There is a drift script already, I know, but someone told me I should make one too using natives so, here you go.
Quick little release, might come in handy to those who want to blame Rockstar for weird drift handling.
Oh this also lowers the stance of vehicles that support it.
Download can be found here
By default, Left Shift is the default button for toggling drift mode. This can be changed in:
Key Bindings > FiveM > (lbg-drift) Toggle Drift
update: you can now make it a hold instead of a toggle by editing the first lines of the script
This has no dependencies, only requires a car and game build 2189.
can you make it hold LShift for drift? like vMenu one??
The actual function is a toggle but I think I could. I’ll see
Nice release, will for sure come in handy thanks
Ty for release
I am getting this error
__Lua_InvokeNative: execution failed: Error executing native 0x5ac79c98c5c17f05 at address (nil).
^1SCRIPT ERROR: Execution of native 5ac79c98c5c17f05 in script host failed: Error executing native 0x5ac79c98c5c17f05 at address (nil).^7
you need to have the los santos tuners build enforced on your server
i assume that’s that since i’ve never seen that error before
Just wanted to say thanks for this - I am guessing it uses the native that GTA Online uses when equipping low-grip tyres?
Either way, it works perfectly, doesn’t feel like driving on ice (like vMenu’s drift mode) and is super simple and lightweight. Good work!
the native isn’t documented, but it was introduced in the tuners update, so definitely is the gta online thing.
also thanks
The script works great so far but it seems like no matter what I can’t change the Toggle Keybind to another key besides LeftShift. The custom keybind works for Hold Mode but toggle doesn’t accept the custom keybind. Is there a way to fix this? I’ve tried to edit the “lshift” in the client.lua but it still reverts to lshift
The toggle mode is based on the RegisterKeyMapping() function. This creates a custom keybind in Settings > Key Bindings > FiveM
The “lshift” that you see there is the default command that gets set for the player when they first use the script, but each player can change their key bind in the game settings.
Thanks, is there a way to change the default key for new players tho? We’d prefer F5 Toggle rather than shift but it’s a not huge deal
Go to RegisterKeyMapping()
and change lshift
to f5
. But this change will only appear to new players that haven’t played on servers that use Lbg-drift.
If they played before, they need to change the key bind themselves.
thank you, I didn’t realize I had to change my personal keybind until after I tried the script