- Documentation
- Server functions
- setVehicleRespawnRotation
Function
setVehicleRespawnRotation
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
getVehicleRespawnRotationReturns the rotation the vehicle will have when it respawns.setVehicleRespawnPositionSets the place (and optionally the rotation) where the vehicle appears when it respawns: after destruction, after being abandoned and onrespawnVehicle. By default it is where the vehicle was created. The vehicle is not moved right away.