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

Was this helpful?

  1. Uk4yty

ug-NightVision

How to edit configuration file to ug-NightVision.

PreviousHomeNextug-TractionControl

Last updated 1 year ago

Was this helpful?

Config File

Config.Key = 172

The key you need to press to turn on the NightVision.

Config.onkey = true

If you want to have a NightVision turned by a key set it to true .

Config.Helmets = {
    Male = {
        ON = {
            Helmet = 116,
            Helmet2 = 118,
            Helmet3 = 147,
        },
        OFF = {
            Helmet = 117,
            Helmet2 = 119,
            Helmet3 = 148,
        }
    },
    Female = {
        ON = {
            Helmet = 115,
            Helmet2 = 117,
            Helmet3 = 146,
        },
        OFF = {
            Helmet = 116,
            Helmet2 = 118,
            Helmet3 = 147,
        }
    }
}

The table with default hats with NightVision possible to turn on.

Under the txt an example how to add a new hat.

--- For Example
Config.Helmets = {
    Male = {
        ON = {
            Helmet = 116,
            Helmet2 = 118,
            Helmet3 = 147,
            Helmet4 = 168, -- Example postion
            --  Helmet(nextnumber) = (postion in hats |when nightvision is activated (scopes on eyes))

        },
        OFF = {
            Helmet = 117,
            Helmet2 = 119,
            Helmet3 = 148,
            Helmet4 = 167, -- Example postion
            -- Helmet(nextnumber) = (postion in hats | when nightvision can be activaited (scopes up))
        }
    } 
}

Same for the Female in their part of table.

TriggerClientEvent('ug-NightVision:ON')

Use it to trigger event that checks the hat you have on your had and turns on the NightVision.

TriggerClientEvent('ug-NightVision:OFF')

Use it to trigger event that turns off the NightVision.

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