Docs
  • 🏠Home
  • 📁Resources
  • 🥷Uk4yty
    • 🌙ug-NightVision
    • 🛞ug-TractionControl
  • 🦾Hexus
    • 🚲hex-BikeRack
Powered by GitBook
On this page

Was this helpful?

  1. Uk4yty

ug-TractionControl

Simple script to turn ON/OFF drift mode in your car.

Previousug-NightVisionNexthex-BikeRack

Last updated 1 year ago

Was this helpful?

Config File

Config.OnKey = true

If you want to active in on key make it true else make it false

Config.Key = 47

You can choose the key that will turn ON/OFF the drift mode.

Config.WhitelistVehicles = {'champion', 'sultan'}

Here are the list of Whitelisted vechicle in which you can turn the drift mode on.

TriggerEvent('ug-TractionControl:DriftON') -- This event in on client side

Event that will trigger vehichle check if it is on whitelisted list and if it is then it turn on drift mode.

TriggerEvent('ug-TractionControl:DriftOFF') -- This event in on client side

Event that will turn off drift mode.

Config.ugNotifyON = function()
    lib.notify({
        title = 'You turned ON drift mode',
        type = 'success'
    })
end

Config.ugNotifyOFF = function()
    lib.notify({
        title = 'You turned OFF drift mode',
        type = 'success'
    })
end

Here you can use your own Notify system just write trigger to your notify in that function.

It uses ox notify for deafult.

🥷
🛞
https://docs.fivem.net/docs/game-references/controls/