setVehicleRespawnPosition | Multi Theft Auto: Wiki Skip to content

setVehicleRespawnPosition

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 sets the position (and rotation) the vehicle will respawn to.

Syntax

setVehicleRespawnPosition ( )

Code Examples

server

This example creates a vehicle and changes its respawn position.

local vehicle = createVehicle ( 400, 1, 1, 1 ) -- create us a new vehicle
if ( vehicle ) then
setVehicleRespawnPosition ( vehicle, 10, 10, 10 ) -- tell the server to respawn the vehicle at position (10,10,10)
end

See Also

Vehicle Functions