ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onVehicleRespawn

Event

onVehicleRespawn

ServerVehiclesIdentical to MTA:SA

A vehicle respawned (respawnVehicle or automatically).

Handler

addEventHandler("onVehicleRespawn", root, function(exploded) ... end)

Parameters

explodedbool
true if it had exploded before respawning.

Source

source is the vehicle.

Example

addEventHandler("onVehicleRespawn", root, function()
    setVehicleColor(source, 255, 255, 255)
end)

See also