DoesVehicleUseFuel
Docslocal retval = DoesVehicleUseFuel(vehicle)Description
Checks whether the vehicle consumes fuel. The check is done based on petrol tank volume and vehicle type. Bicycles and vehicles with petrol tank volume equal to zero (only bicycles by default) do not use fuel. All other vehicles do.
You can customize petrol tank volume using <code>SET_HANDLING_FLOAT</code>/<code>SET_VEHICLE_HANDLING_FLOAT</code> natives with fieldName equal to fPetrolTankVolume.
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle handle. |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
BOOLReturns TRUE (1) or FALSE (0).