Closed LukeWasTakenn closed 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
*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.