- Documentation
- Shared functions
- isVehicleNitroRecharging
Function
isVehicleNitroRecharging
Returns whether nitro is recharging.
Syntax
bool isVehicleNitroRecharging(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
true when nitro is recharging.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
outputDebugString(tostring(isVehicleNitroRecharging(vehicle)))
Notes
Client. In a client script it reads the game.
Always the default value. The server does not receive this information from the game yet, so the function returns false.