- Documentation
- Server functions
- getVehicleWheelFrictionState
Function
getVehicleWheelFrictionState
Returns a wheel's grip: 0 = full, 1 = slipping, 2 = none.
Syntax
int getVehicleWheelFrictionState(vehicle vehicle, int wheel)Arguments
vehiclevehicle- The vehicle.
wheelint- Wheel number 0-3.
Returns
0, 1 or 2.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
outputDebugString(getVehicleWheelFrictionState(vehicle, 0))
Notes
Always the default value. The server does not receive this information from the game yet, so the function returns 0.