isVehicleNitroRecharging | Multi Theft Auto: Wiki Skip to content

isVehicleNitroRecharging

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

isVehicleNitroRecharging ( )

Code Examples

client

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