Theme editor

Guide Toggle Drift Mode Script Free

Admin

FiveM Pro
Joined
Oct 11, 2024
Messages
153
Reaction score
7,415
Points
93
Thread owner
Enhance your FiveM server's driving experience with our toggle drift mode script.
Simply paste into the client file, restart the script, use Numpad 9 to activate drift mode, and hold Shift to trigger car drifting.


Toggle Drift Mode Script.webp

Code:
local kmh = 3.6
local mph = 2.23693629
local carspeed = 0
-----------------
--   E D I T   --
-----------------
local driftmode = true -- on/off drift
local speed = kmh -- mph olarakda ayarlanıla biliyor
local drift_speed_limit = 200.0  -- yanlama hızı
local toggle = 118 -- Numpad 9

Citizen.CreateThread(function()

    while true do

        Citizen.Wait(100)

        if IsControlJustPressed(1, 118) then

            driftmode = not driftmode

            if driftmode then
                exports['mythic_notify']:DoLongHudText('inform', 'Drift Modu Aktif ')
            else
                exports['mythic_notify']:DoLongHudText('error', 'Drift Modu Kapalı ')
            end
        end

        if driftmode then

            if IsPedInAnyVehicle(GetPed(), false) then

                CarSpeed = GetEntitySpeed(GetCar()) * speed

                if GetPedInVehicleSeat(GetCar(), -1) == GetPed() then

                    if CarSpeed <= drift_speed_limit then

                        if IsControlPressed(1, 21) then
    
                            SetVehicleReduceGrip(GetCar(), true)
    
                        else
    
                            SetVehicleReduceGrip(GetCar(), false)
    
                        end
                    end
                end
            end
        end
    end
end)
 
Last edited by a moderator:
Resource 'QBCore V2 FiveM RP base'
The Toxic QBCore V2 RP Server is a fully open-source, ready-to-use FiveM RP server base, built...
Resource 'Toxic QBCore Server files'
Toxic QBCore Latest Server files - Fivem rp base - Download fivem server Open source・No...
Resource 'Toxic ESX legacy  | Server Files'
Toxic ESX legacy | Server File ✔ Latest ESX Legacy Framework ✔ Fully Open-Source – No...
Resource 'V3 pvp Server File'
Download the Toxic V3 PVP Server File with the old ESX framework. Includes a fully configured...
Resource 'WC Clothing Pack'
WC Clothing Pack FiveM Download the WC Clothing Pack for FiveM – a high-quality standalone...
Resource 'Non-Branded Clothing'
FiveM Non-Branded Clothing Pack 5GB Download the 5GB Knocks Non-Branded Clothing Pack for...
Resource 'Toy Cars BMW, Bugatti & More'
Download the FiveM Toy Cars Pack featuring BMW, Bugatti, and more! Perfect for adding a fun and...
Resource 'Car Pack 15+ Vehicles'
Download the FiveM Car Pack 2025 with 15+ unique vehicles, including Audi Monster, Super Cars...
Resource 'Vehicle Pack Unbranded Cars'
Download FiveM Unbranded Cars Pack. A collection of high-quality non-branded vehicles for...
Resource 'LSPD & EMS 45 Unbranded Vehicle Pack'
🔥 What’s Inside the FiveM LSPD & EMS Vehicle Pack? Upgrade your FiveM roleplay server with this...
Resource 'Energy Fast customs Mlo ( clothes + vehicles )'
Energy Fast Customs MLO – FiveM maps for clothes shops and vehicle garages.
Back
Top Bottom