ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isVehicleRespawnable

Function

isVehicleRespawnable

ServerVehiclesIdentical to MTA:SA

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)))

See also