For the complete documentation index, see llms.txt. This page is also available as Markdown.

Drift

Turns a vehicle into a drift car by swapping its handling.

  • Two modes via DriftControls.mode: hold (drift while holding a key) or always (permanently active).

  • In hold mode the key is registered with lib.addKeybind, so players can rebind it in FiveM → Settings → Key Bindings. In always mode no key is registered.

  • Per-vehicle handling profiles are supported (VehicleHandling), with a global fallback (DriftHandling).

Drift activation is routed through a setDrift(vehicle, status) hook in client/_editable/vehicle_properties.lua. Leave it as-is to use the built-in drift, or point it at your own external drift resource.

Last updated