overextended / ox_fuel

Simplistic fuel resource meant for use with ox_inventory
https://overextended.dev/ox_fuel
GNU General Public License v3.0
60 stars 77 forks source link

TODO #30

Closed LukeWasTakenn closed 2 years ago

LukeWasTakenn commented 2 years ago

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

juddisjudd commented 2 years ago

Notes for electric cars.

In vehicles.meta cars can have the following flag but does not actually do anything for consumption/need for gas. Enum: 43 Name: FLAG_IS_ELECTRIC

Not sure if we can have a check for this flag then we "mark" car as electric and not needing gas.

Alternative and a bit more simplistic would be, set with config and function something like:

Config.VehicleNames = { 
    'tesla' 
}
function IsEV(name)
    for _, evName in ipairs(Config.VehicleNames) do
        if name == evName then
            return true
        end
    end
    return false
end

Source/Ref