respawnVehicle | Multi Theft Auto: Wiki Skip to content

respawnVehicle

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function respawns a vehicle according to its set respawn position, set by setVehicleRespawnPosition or the position and rotation it was created on. To spawn a vehicle to a specific location just once, spawnVehicle can be used.

Syntax

respawnVehicle ( )

Code Examples

server

This example makes an exploded vehicle re-spawn after 5 seconds.

function respawnExplodedVehicle()
setTimer(respawnVehicle, 5000, 1, source)
end
addEventHandler("onVehicleExplode", root, respawnExplodedVehicle)

See Also

Vehicle Functions