We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you have enough money to start refuelling but not enough to get you to the next fuel tick, you get a "No progress bar is active" error.
oxfuel/config.lua -- Fuel tick time (every 250 msec) refillTick = 250, -- Fuel cost (Added once every tick) priceTick = 5,
If I have $5, I can start refueling...but it will give me this error. If I have more than $10, I'm fine.
Possible solution:
Add a check to see if the progressbar is active
Current
ox_fuel/client/fuel.lua: Line 106 if price + config.priceTick >= moneyAmount then
Modified
ox_fuel/client/fuel.lua: Line 106 if price + config.priceTick >= moneyAmount and lib.progressActive() then
Seems to work alright so far.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you have enough money to start refuelling but not enough to get you to the next fuel tick, you get a "No progress bar is active" error.
If I have $5, I can start refueling...but it will give me this error. If I have more than $10, I'm fine.
![image](https://private-user-images.githubusercontent.com/60057103/351626579-dd633eab-828c-4767-acf6-052c2ab6c2b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxNjk5NzgsIm5iZiI6MTcyNTE2OTY3OCwicGF0aCI6Ii82MDA1NzEwMy8zNTE2MjY1NzktZGQ2MzNlYWItODI4Yy00NzY3LWFjZjYtMDUyYzJhYjZjMmI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDA1NDc1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxNTE1MWFlOTZjOTE3OWM0ZjU1YzcyZTFmNjk2NWIxMjU1YjBhY2UwN2ZiNGExOGRjZDg0ZTRjYzE1MzFlYTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.48myC_hrkP76UO4DwVciJzxdpF9VM-gL-K_iARvjMe4)
Possible solution:
Add a check to see if the progressbar is active
Current
Modified
Seems to work alright so far.
The text was updated successfully, but these errors were encountered: