Skip to content
New issue

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

ox_fuel - "No progress bar is active" error #98

Open
nggcasey opened this issue Jul 24, 2024 · 0 comments
Open

ox_fuel - "No progress bar is active" error #98

nggcasey opened this issue Jul 24, 2024 · 0 comments

Comments

@nggcasey
Copy link

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.
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant