- Documentation
- Server functions
- getVehicleRespawnRotation
Function
getVehicleRespawnRotation
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)