FREE TOOL · SetDriveTaskDrivingStyle
Driving style calculator
Tick the behaviours you want and get the driving style value for TaskVehicleDriveToCoord, TaskVehicleDriveWander and SetDriveTaskDrivingStyle — with the seven bits nobody has documented marked as exactly that.
25 documented, 7 undocumented — every row says which it is. Names from the FiveM native docs — SET_DRIVE_TASK_DRIVING_STYLE.
00000000000011000000000010101011
-- Driving style 786603
local style = 786603
local ped = PlayerPedId()
local veh = GetVehiclePedIsIn(ped, false)
TaskVehicleDriveToCoordLongRange(ped, veh, 195.2, -933.8, 30.7, 20.0, style, 5.0)QUESTIONS
About driving style calculator
Why is my value negative?
What are the unknown bits?
Which style should I use for normal traffic?
MORE
The other calculators
Build the flag value for TaskPlayAnim. All 31 documented flags with what each one does, the combinations people actually use, and the snippet filled in.
Warning screen buttonsBuild the instructional-button value for SetWarningMessage. Ten bits are in the published enum and labelled; the other twenty are guesses or unknown.
All the free toolsThe map, the animation and cutscene lists, and every reference table.
ALSO FREE
Tools that go with this one
Picked because they touch the same files, natives or part of the game.