setVehicleSteerBias
SET_VEHICLE_STEER_BIAS0x42A8EC77D5150CBEThe GTA V native SET_VEHICLE_STEER_BIAS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleSteerBias, in JavaScript and in Lua.
setVehicleSteerBias(vehicle: Vehicle, value: number): voidsetVehicleSteerBias(vehicle: Vehicle, value: number)Usage
JavaScript
setVehicleSteerBias(vehicle, value);Lua
setVehicleSteerBias(vehicle, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
value | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Locks the vehicle's steering to the desired angle, explained below.
Requires to be called onTick. Steering is unlocked the moment the function stops being called on the vehicle.
Steer bias:
-1.0 = full right
0.0 = centered steering
1.0 = full left
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_STEER_BIAS(Vehicle vehicle, float value)- Hash
0x42A8EC77D5150CBE