Welcome to FiveM Scripts, MLOs & Server Files – Toxic FiveM

Toxic QB V3.2 Server Files

Premium members can download it for free.

Toxic PVP V4 Server Files

Premium members can download it for free.

400+ Unbranded Vehicles 2025

Premium members can download it for free.

FiveMCode FiveM - Toggle Drift Mode Script (Free On-Off Drift Code)

Framework
  1. ESX
  2. QBCORE
  3. VRP
  4. STANDALONE
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:
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top