- Documentation
- Server functions
- isVehicleRespawnable
Function
isVehicleRespawnable
Checks whether a vehicle has automatic respawning enabled (toggleVehicleRespawn). false by default: the wreck of such a vehicle does not come back but disappears after the time from setVehicleWreckDelay.
Syntax
bool isVehicleRespawnable(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
true when respawning is enabled.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
toggleVehicleRespawn(vehicle, true)
outputDebugString("Odradzanie: " .. tostring(isVehicleRespawnable(vehicle)))