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

Function

resetVehicleExplosionTime

ServerVehiclesIdentical to MTA:SA

Restarts the countdown to a wreck respawn: the wreck respawns after the full time from setVehicleRespawnDelay, counted from now. When the vehicle is not a wreck waiting to respawn, the function changes nothing.

Syntax

bool resetVehicleExplosionTime(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

true on success.

Example

addEventHandler("onVehicleExplode", root, function()
    if getElementData(source, "dowod") then
        setVehicleRespawnDelay(source, 120000)
        resetVehicleExplosionTime(source)
    end
end)

See also