< Driving Style Calculator - GTA V

GTA V

Driving Style Calculator


* These flags are not used in Rockstar's decompiled scripts as far as I can tell.

For additional FiveM/GTA modding tools, datasets and resources, checkout Pleb Masters: Forge

Driving style Flags (binary)

0000000000000000000000000000000

Driving style (integer)

0

Code Examples (Lua)

-- Setup variables
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
local x = 40.0
local y = -492.0
local z = 20.0
local stopRange = 8.0
local speed = 20.0 -- averages around 45 mph top speed.
local drivingStyle = 0

-- Useful functions to make the ped perform better while driving.
SetDriverAbility(ped, 1.0)        -- values between 0.0 and 1.0 are allowed.
SetDriverAggressiveness(ped, 0.0) -- values between 0.0 and 1.0 are allowed.

-- Example 1
-- Give the player a wander driving task.
TaskVehicleDriveWander(ped, vehicle, speed, drivingStyle)

-- Example 2
-- Manually set/override the driving style (after giving the ped a driving task).
SetDriveTaskDrivingStyle(ped, drivingStyle)

-- Example 3
-- Drive to a location (far away).
TaskVehicleDriveToCoordLongrange(ped, vehicle, x, y, z, speed, drivingStyle, stopRange);

Common values Rockstar uses in their scripts

0
1
4
16
131
139
7785
7791
262144
262208
262275
525116
786468
786469
786475
786484
786485
786491
786597
786599
786603
786613
786619
786859
786981
790699
794660
2883621
2883755
17039360
17563684
34340900
537657381
537657515
1074272427
1074528293
1076369579
1076631588
1090781748