DoesVehicleUseFuel
клиент DOES_VEHICLE_USE_FUEL
c
BOOL DOES_VEHICLE_USE_FUEL(Vehicle vehicle);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.
Параметры
- vehicle: The vehicle handle.
Возвращает
True if the vehicle uses fuel to move. False otherwise.
Страница собрана автоматически из native-decls/DoesVehicleUseFuel.md. Нашли ошибку — поправьте исходный файл.