Config, Lang, Noti = {}, {}, {} Config.vehZones = {} -- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ -- $$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|\_$$ _|$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ | -- $$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ | -- $$ | $$ | $$ |$$ $$\$$ |$$$$$\ $$ | $$ |$$$$\ $$ | $$ |$$$$$$$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ | -- $$ | $$ | $$ |$$ \$$$$ |$$ __| $$ | $$ |\_$$ |$$ | $$ |$$ __$$< $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | -- $$ | $$\ $$ | $$ |$$ |\$$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ | -- \$$$$$$ | $$$$$$ |$$ | \$$ |$$ | $$$$$$\ \$$$$$$ |\$$$$$$ |$$ | $$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ | -- \______/ \______/ \__| \__|\__| \______| \______/ \______/ \__| \__|\__| \__| \__| \______| \______/ \__| \__| -- Command to open the menu. Leave empty if you don't want to use command (Config.command = "") Config.command = "vehcontrol" -- Key that will open the menu."]" key by default. More keys: https://docs.fivem.net/docs/game-references/controls/ Config.openKey = 168 -- Default distance at which the vehicle's music will be heard Config.DistanceToVolume = 20 -- Leave true if you want all users to be able to listen to the music. Config.EveryoneHears = true -- Set to true if you want to use the custom function to lock the vehicle. If true, edit the function below Config.customLock = true -- Set to true if you want to use the custom function to turn off/on the vehicle lights. If true, edit the function below Config.customLights = true -- If you want to deactivate or use the "Engine" button for something else you can activate this option and add what you need in the engineButton function below. Config.customEngineButton = false -- Set to true if you want the window buttons to be displayed Config.viewWindows = true -- $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\ -- $$$\ $$ |$$ __$$\\__$$ __|\_$$ _|$$ _____|\_$$ _|$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |$$ __$$\ -- $$$$\ $$ |$$ / $$ | $$ | $$ | $$ | $$ | $$ / \__|$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |$$ / \__| -- $$ $$\$$ |$$ | $$ | $$ | $$ | $$$$$\ $$ | $$ | $$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |\$$$$$$\ -- $$ \$$$$ |$$ | $$ | $$ | $$ | $$ __| $$ | $$ | $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | \____$$\ -- $$ |\$$$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ | $$\ $$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |$$\ $$ | -- $$ | \$$ | $$$$$$ | $$ | $$$$$$\ $$ | $$$$$$\ \$$$$$$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |\$$$$$$ | -- \__| \__| \______/ \__| \______|\__| \______| \______/ \__| \__| \__| \______| \______/ \__| \__| \______/ function notifications(notitype, message, time) -- Change this trigger for your notification system keeping the variables -- EXAMPLE: -- TriggerEvent('codem-notification', message, time, notitype) end -- Notifications types: Noti.info = "info" Noti.check = "check" Noti.error = "error" -- Notification time: Noti.time = 5000 -- $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$$\ -- $$ | $$ __$$\ $$$\ $$ |$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ _____| -- $$ | $$ / $$ |$$$$\ $$ |$$ / \__|$$ | $$ |$$ / $$ |$$ / \__|$$ | -- $$ | $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ | $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\ -- $$ | $$ __$$ |$$ \$$$$ |$$ |\_$$ |$$ | $$ |$$ __$$ |$$ |\_$$ |$$ __| -- $$ | $$ | $$ |$$ |\$$$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | -- $$$$$$$$\ $$ | $$ |$$ | \$$ |\$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$$$$$$$\ -- \________|\__| \__|\__| \__| \______/ \______/ \__| \__| \______/ \________| Lang.noDest = "No destination" Lang.locked = "The vehicle has been locked" Lang.unlocked = "Vehicle has been unlocked" Lang.lightsOn = "The lights have been turned on" Lang.lightsOff = "The lights have been turned off" -- $$$$$$$$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\ -- $$ _____|$$ | $$ |$$$\ $$ |$$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |$$ __$$\ -- $$ | $$ | $$ |$$$$\ $$ |$$ / \__| $$ | $$ | $$ / $$ |$$$$\ $$ |$$ / \__| -- $$$$$\ $$ | $$ |$$ $$\$$ |$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |\$$$$$$\ -- $$ __| $$ | $$ |$$ \$$$$ |$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | \____$$\ -- $$ | $$ | $$ |$$ |\$$$ |$$ | $$\ $$ | $$ | $$ | $$ |$$ |\$$$ |$$\ $$ | -- $$ | \$$$$$$ |$$ | \$$ |\$$$$$$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |\$$$$$$ | -- \__| \______/ \__| \__| \______/ \__| \______| \______/ \__| \__| \______/ -- Function to focus on the NUI function focus(bool) SetNuiFocus(bool, bool) SetNuiFocusKeepInput(bool) end -- Function to remove focus from the NUI function focusOff() SetNuiFocus(false, false) SetNuiFocusKeepInput(false) end -- Function to retrieve the current weather function getWeather() -- example with cd_easytime -- return exports['cd_easytime']:GetWeather().weather end -- This function will be activated if the user has activated the "Emergency" option in the menu function emergencyAlert() -- trigger to send alert to ems -- example -- TriggerServerEvent('esx_ambulancejob:onPlayerDistress') end --If you have set Config.customLights to true, you can add here what you need function customLock(vehicle) end --If you have set Config.customEngineButton to true, you can add here what you need function engineButton(vehicle) end