overextended / ox_fuel Goto Github PK
View Code? Open in Web Editor NEWSimplistic fuel resource meant for use with ox_inventory
Home Page: https://overextended.dev/ox_fuel
License: GNU General Public License v3.0
Simplistic fuel resource meant for use with ox_inventory
Home Page: https://overextended.dev/ox_fuel
License: GNU General Public License v3.0
everytime i take a vehicle out from the garage the fuel level will be 65
before saving the vehicle back in to the garage no matter your fuel is below or above 65 once you save the vehicle and take out the vehicle from the garage the 1st second is showing you the correct value but then after that it will turn back to 65
been checking the native on es extended / ox lib is either getvehiclefuellevel or setvehiclefuellevel
garage script using is luke garage script and there is no fuel native in the luke garage script
would hope to get this issue fix...
beside the above issue the script is working just fine...
When you try to refill a petrol can the durability of the item does not increase. No errors. Please see the video for more info: https://streamable.com/13t9mf
It would be cool to add ablity to stop fueling, and show how much we will have to pay with current fuel we refueled.
I would be perfect to when u fuel or buy a can to choose payment method.
For some reason if I fuel any car with the gas can or even refuel the gas can it locks up the key for aiming and entering a vehicle.
This doesn't happen while refueling with the stations
This happens with latest ox_lib and ox_inventory.
Hi,
Just noticed a days ago a strage action from the car when i've like 0/1% of fuel into it. When i try to accellerate the car is going back and not stopped where she need to stay or like shutdown the car. I'll give you a video below.
How can i fix it?
Will it be added to qtarget, and can you add some nice refueling animations etc.
When I have a canister in my hand and I try to refuel the car, an error is displayed
i Have this error
ox_fuel/client.lua:405 no such export addModel in resource ox_target
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.
step 1 : target a fuel pump
step 2 : buy or refill the jerry can
step 3 : while in progress bar again target and select buy menu it goes on
U cant fill the Boats ...
unable to refuel a vehicle from fuel can
MainThrd/ ^1SCRIPT ERROR: @ox_fuel/client.lua:389: attempt to index a boolean value (upvalue 'fuelingCan')^7
[ 1809516] [b2372_GTAProce] MainThrd/ ^3> ref^7 (^5@ox_fuel/client.lua^7:389)
[ 1809516] [b2372_GTAProce] MainThrd/ ^3> fn^7 (^5@qtarget/client.lua^7:461)
[ 1809531] [b2372_GTAProce] MainThrd/ ^1SCRIPT ERROR: error object is not a string^7
Hello!
I was wondering if there is a way to make so people pay trough bank instead of cash money,
Please hear out the people and other people who think it's beneficial. I've seen that you closed the request that was posted #16 here to have an export for GetFuel because you rather people use state bags, not against that. but I believe that for people that are swapping from existing fuel systems i.e.; Legacy Fuel, etc. or any other, this would be more convenient. Suggestion is to add two exports to the fuel system which are exports.ox_fuel:getFuel(vehicle)
and exports.ox_fuel:setFuel(vehicle, amount)
. Reason to that is because it seems much cleaner than something like this;
local vehicle = GetVehiclePedIsIn(PlayerPedId())
local Vehicle = Entity(vehicle).state
Vehicle:set('fuel', 100, true)
SetVehicleFuelLevel(vehicle, 100)
Versus:
local vehicle = GetVehiclePedIsIn(PlayerPedId())
exports.ox_fuel:setFuel(vehicle, 100)
It seems like the exports are more cleaner and less tedious to implement. Thank you for hearing the 'feature/enhancement' out. ๐ ๐
*Support for frameworks is currently awaiting a change to ox_lib which would make checking for money and items possible to easily integrate the frameworks.
getting error at line 364
exports.qtarget:AddTargetModel(Config.pumpModels, {
The next version will support ox_target?
You're able to get infinite gas for free by doing the following;
is it possible to just black list Electric cars
One way to replicate is to have a person fuel a vehicle with a jerry can, when the person who refueled the car gets into the car they will have the new fuel level however the other person will have a different fuel level
If you damage tank of vehicle, he start leaking fuel.
There is a native for checking fuel tank damage
https://docs.fivem.net/natives/?_0x7D5DABE888D2D074
Begin leaking gas at around 650 health
You can buy a filling station and export fuel. You can unload jobs to export fuel. You can buy levels, the bigger the levels, the more fuel you can keep in stock.
Problem with the new update, petrol Can won't refuel cars
also if you use all the fuel it drops the prop and says gas can durability is depleted and can't even refuel it
When purchasing a new petrol can and fueling a vehicle the durability does not decrease, so you can keep fueling forever. No errors. See video for more info: https://streamable.com/13t9mf
ox fuel does not want to start automatically, we have to do this manually
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.