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

Function

setVehicleRespawnRotation

ServerVehiclesIdentical to MTA:SA

Sets the rotation the vehicle will have when it respawns (the respawn position stays the same).

Syntax

bool setVehicleRespawnRotation(vehicle vehicle [, float rx = 0, float ry = 0, float rz = 0])

Arguments

vehiclevehicle
The vehicle.
rxfloat, optional = 0
X rotation in degrees.
ryfloat, optional = 0
Y rotation in degrees.
rzfloat, optional = 0
Heading in degrees.

Returns

true on success.

Example

local vehicle = createVehicle(560, 2495, -1665, 13.2)
setVehicleRespawnRotation(vehicle, 0, 0, 180)

See also