isVehicleNitroRecharging | Multi Theft Auto: Wiki Skip to content

isVehicleNitroRecharging

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function checks if nitro is recharging on the vehicle.

Caution

Only works if the vehicle is streamed in.

Syntax

bool isVehicleNitroRecharging ( ​vehicle theVehicle )
Required arguments
  • theVehicle:

Returns

Returns true if the nitro is currently recharging on the vehicle, false otherwise.

  • bool: value

Code Examples

shared

This example will print if vehicle's nitro is already recharging

addCommandHandler("checknitro",function ()
local pedVeh = getPedOccupiedVehicle(localPlayer)
if pedVeh then
if isVehicleNitroRecharging(pedVeh) then
outputChatBox("Your vehicle's nitro is recharging.",255,255,0)
end
end
end)

See Also

Vehicle Functions