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

Function

getVehicleRespawnDelay

ServerVehiclesIdentical to MTA:SA

Returns how many milliseconds after destruction this vehicle's wreck respawns (10000 by default).

Syntax

int getVehicleRespawnDelay(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

Time in milliseconds, or false for a bad argument.

Example

addEventHandler("onVehicleExplode", root, function()
    local seconds = getVehicleRespawnDelay(source) / 1000
    outputDebugString(getVehicleName(source) .. " wroci za " .. seconds .. " s")
end)

See also