SetVehicleRespawnRotation
Jump to navigation
Jump to search
This function sets the rotation the vehicle will respawn to.
Syntax
bool setVehicleRespawnRotation ( vehicle theVehicle, float rx, float ry, float rz )
OOP Syntax Help! I don't understand this!
- Method: vehicle:setRespawnRotation(...)
- Variable: .respawnRotation
Required Arguments
- theVehicle: The vehicle you wish to change the respawn position of.
- rx: A float representing the rotation about the X axis in degrees.
- ry: A float representing the rotation about the Y axis in degrees.
- rz: A float representing the rotation about the Z axis in degrees.
Returns
Returns true if the vehicle respawn rotation was set successfully, false otherwise.
Example
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
- addVehicleSirens
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getModelHandling
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleRespawnPosition
- getVehicleRespawnRotation
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehiclesOfType
- getVehicleTowedByVehicle
- getVehicleTowingVehicle