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

feat(config): Prepare electric vehicles #7

Closed antond15 closed 2 years ago

antond15 commented 2 years ago

Prepared config for electric vehicles.

LukeWasTakenn commented 2 years ago

uhm why not just list the hashes in an array without assigning a bool to them, or am I missing something?

antond15 commented 2 years ago

uhm why not just list the hashes in an array without assigning a bool to them, or am I missing something?

You can check if the current vehicle is electric like this.

if ox.electricModels[GetEntityModel(vehicle)] then
    -- some electric stuff
end

Or I missed some better way 😄