- Documentation
- Server functions
- setVehicleWheelsRotation
Function
setVehicleWheelsRotation
Stores the rotation of each of a vehicle's four wheels in degrees.
Syntax
bool setVehicleWheelsRotation(vehicle vehicle [, float rl = 0, float rr = 0, float fl = 0, float fr = 0])Arguments
vehiclevehicle- The vehicle.
rlfloat, optional = 0- Rear left wheel.
rrfloat, optional = 0- Rear right.
flfloat, optional = 0- Front left.
frfloat, optional = 0- Front right.
Returns
true on success.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleWheelsRotation(vehicle, 0, 0, 30, 30)
Notes
State for scripts. Wheels in the game turn according to driving.