[DEV Tool] Driving style calculator

Driving style calculator

NOTE: If you’re a server owner, you can skip this thread. This is meant for developers only.

This simple driving style calculator is very minimal, but it gets the job done. You can select any type of driving style to be on/off and you will instantly see the result below to use in your scripts.

Link

Driving Style Calculator

Screenshot

14 Likes

Oh… nice. Another helpful release :slight_smile:

3 Likes

Does this change AI driving?

Yes and no.
If you force a specific ped using something like TaskVehicleDriveWander() then yes that ped will be affected if you select that ped in the SetDriveTaskDrivingStyle() function.

If you’re talking about all regular NPC traffic then the answer is no, the regular traffic will not be affected by this.

You could iterate through peds right? :stuck_out_tongue:

Nice work :clap: :clap: :clap:

Nice work, this is very useful.

Omg this is just what I need. But the link is broken :’(

Website layout has just been changed :slight_smile:

https://www.vespura.com/fivem/drivingstyle/

2 Likes

hello all, hope this can be useful.

after some tests discovered that if bit 14 is set to 1/true the npc will drive the vehicle at a maximum speed of 120 km/h on highways, this only works if the vehicle SetVehicleHandlingHashForAi parameter is set to “SPORTS_CAR” (police car is set by default)

API.SetVehicleHandlingHashForAi(vehicle.Handle, API.GetHashKey(“SPORTS_CAR”));

1 Like