Native referenceFiveMclient

DOES_VEHICLE_USE_FUEL

0xEF30A696 CFX
FUNCTION SIGNATURE
BOOL DOES_VEHICLE_USE_FUEL(Vehicle vehicle);
Property Value
Native Name DOES_VEHICLE_USE_FUEL
Hash 0xEF30A696
Return Type BOOL
API Set client
Parameters vehicle (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 SET_HANDLING_FLOAT/SET_VEHICLE_HANDLING_FLOAT natives with fieldName equal to fPetrolTankVolume.

Parameters

  • vehicle (Vehicle) — The vehicle handle.
Back to CFX