VehicleClientNot in this build

setDriftSlipAngleLimits

_SET_DRIFT_SLIP_ANGLE_LIMITS0xDAF4C98C18AC6F06

The GTA V native _SET_DRIFT_SLIP_ANGLE_LIMITS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDriftSlipAngleLimits, in JavaScript and in Lua.

SignatureJavaScript
setDriftSlipAngleLimits(
  vehicle: Vehicle,
  durationScalar: number,
  amplitudeScalar: number,
  slipAngleLimit: number
): void
SignatureLua
setDriftSlipAngleLimits(
  vehicle: Vehicle,
  durationScalar: number,
  amplitudeScalar: number,
  slipAngleLimit: number
)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
setDriftSlipAngleLimits(vehicle, durationScalar, amplitudeScalar, slipAngleLimit);
Lua
setDriftSlipAngleLimits(vehicle, durationScalar, amplitudeScalar, slipAngleLimit)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
durationScalarfloatnumbernumber
amplitudeScalarfloatnumbernumber
slipAngleLimitfloatnumbernumber

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.

First two floats relate to rumble, the last is a threshold

Reference

Namespace
Vehicle VEHICLE
In the game
void _SET_DRIFT_SLIP_ANGLE_LIMITS(Vehicle vehicle, float durationScalar, float amplitudeScalar, float slipAngleLimit)
Hash
0xDAF4C98C18AC6F06
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference