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

Function

getVehicleRespawnRotation

ServerVehiclesIdentical to MTA:SA

Returns the rotation the vehicle will have when it respawns.

Syntax

float, float, float getVehicleRespawnRotation(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

Rotation rx, ry, rz in degrees, or false.

Example

local vehicle = createVehicle(560, 2495, -1665, 13.2, 0, 0, 90)
local _, _, rz = getVehicleRespawnRotation(vehicle)
outputDebugString("Kierunek odrodzenia: " .. rz)

See also