setVehicleRespawnRotation | Multi Theft Auto: Wiki Skip to content

setVehicleRespawnRotation

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 rotation the vehicle will respawn to.

Syntax

setVehicleRespawnRotation ( )

Code Examples

server

This example creates a vehicle and changes its respawn rotation.

local vehicle = createVehicle ( 400, 1, 1, 1 ) -- create us a new vehicle
if ( vehicle ) then
setVehicleRespawnRotation ( vehicle, 10, 10, 10 ) -- tell the server to respawn the vehicle with rotation (10,10,10)
end

See Also

Vehicle Functions