ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isVehicleNitroRecharging

Function

isVehicleNitroRecharging

Server and clientVehiclesIdentical to MTA:SA

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.

See also