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

Function

getVehicleWreckDelay

ServerVehiclesTrilogy Hub only

Returns how many milliseconds after the explosion this vehicle's wreck disappears (for root: the default, initially 20000).

Syntax

int getVehicleWreckDelay(vehicle vehicle)

Arguments

vehiclevehicle
A vehicle or root.

Returns

Time in milliseconds, or false for a bad argument.

Example

addEventHandler("onVehicleExplode", root, function()
    outputDebugString("Wrak zniknie za " .. getVehicleWreckDelay(source) / 1000 .. " s")
end)

See also