Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = Config or {}
- -- _____ _____ _ _ ______ _____ _____ _ _______ ___ _____ _____ _____ _ _
- -- / __ \ _ | \ | || ___|_ _| __ \ | | | ___ \/ _ \_ _|_ _| _ | \ | |
- -- | / \/ | | | \| || |_ | | | | \/ | | | |_/ / /_\ \| | | | | | | | \| |
- -- | | | | | | . ` || _| | | | | __| | | | /| _ || | | | | | | | . ` |
- -- | \__/\ \_/ / |\ || | _| |_| |_\ \ |_| | |\ \| | | || | _| |_\ \_/ / |\ |
- -- \____/\___/\_| \_/\_| \___/ \____/\___/\_| \_\_| |_/\_/ \___/ \___/\_| \_/
- Config.Debug = false -- Use it for debug
- Config.Framework = "qb" -- Use "esx" or "qb" - If you use a different framework or a renamed esx/qb in the config_framework you can modify all the functions
- Config.MaxPlayers = GetConvarInt('sv_maxclients', 32) -- Use it for get max players
- Config.KeyChangeCyclePromixity = GetConvar('voice_defaultCycle', 'F11') -- Key for the cycle proximity for pma-voice
- Config.UseKeyOpen = true -- Set if the hud config can be open with Config.OpenMenu
- Config.OpenMenu = 'I' -- See the list : https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
- Config.UseMPH = false -- Use mp/h with "true" and km/h with "false"
- Config.UseStress = true -- Use stress of QBCore if yes set "true" otherwise "false"
- Config.StressChance = 0.1 -- Default: 10% • Percentage stress chance when shooting (0-1)
- Config.UseLowFuel = true -- If set to true the fuel level is checked
- Config.MinimumStress = 50 -- Minimum stress level for screen shaking
- Config.MinimumFuel = 20 -- Under this % of fuel, the player is notify (Config.Notification.FuelIsLow = true) and with sound (Config.Sounds['FUEL'])
- Config.MinimumSpeed = 100 -- Going over this speed will cause stress
- Config.MinimumSpeedUnbuckled = 80 -- Going over this Speed without seatbelt will cause stress
- Config.DisableStressPolice = true -- If true will disable stress for people with the police job
- Config.ShowRadarOnlyInVehicle = true -- Show the player radar only if the player is in a car.
- Config.ShowMoneyInHud = true -- Show the cash and bank on the hud
- Config.UseKeyToggleseatbelt = false -- Set if the seatbelt can be toggled by Config.ToggleSeatbelt
- Config.ToggleSeatbelt = 'B' -- See the list : https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
- Config.EjectVelocity = 60 / (Config.UseMPH and 2.236936 or 3.6)
- Config.UnknownEjectVelocity = 70 / (Config.UseMPH and 2.236936 or 3.6)
- Config.UnknownModifier = 17.0
- Config.MinimumDamage = 2000
- Config.Notification = {
- HudIsLoaded = true, -- Show notification when the hud settings is loaded.
- MapIsLoaded = true, -- Show notification when the map is loaded.
- FuelIsLow = true, -- Show notification when the fuel is low.
- GainStress = true, -- Show notification when player gain stress
- }
- Config.Commands = {
- ResetHUD = 'resethud', -- Command name to reset the configuration
- Announce = 'announce', -- Command name to launch a announcement
- OpenHUD = 'menu', -- Command name to open the hud configuration
- ZoneTP = 'zone', -- Command to test zone (only available with : Config.Debug = true)
- ToggleSeatbelt = 'toggleseatbelt', -- Command name to toggle seatbelt
- }
- Config.Sounds = { -- See the list : https://pastebin.com/DCeRiaLJ
- ['BUCKLE'] = {
- Enabled = true,
- AudioName = 'Beep_Red',
- AudioRef = 'DLC_HEIST_HACKING_SNAKE_SOUNDS',
- },
- ['UNBUCKLE'] = {
- Enabled = true,
- AudioName = 'Beep_Red',
- AudioRef = 'DLC_HEIST_HACKING_SNAKE_SOUNDS',
- },
- ['FUEL'] = {
- Enabled = true,
- AudioName = 'Beep_Red',
- AudioRef = 'DLC_HEIST_HACKING_SNAKE_SOUNDS',
- },
- ['ANNOUNCE'] = {
- Enabled = true,
- AudioName = 'CHARACTER_SELECT',
- AudioRef = 'HUD_FRONTEND_DEFAULT_SOUNDSET',
- },
- }
- Config.Zones = { -- The Safe Zone and Red Zone system will warn you with a sign on the HUD that you are in the Safe Zone and Red Zone. You can add as many as you want
- ['RED'] = {
- {
- coords = vector3(-1852.42, -778.63, 6.75), -- The co-ordinate of the centre of the zone where you want it to be red zone/hot zone.
- radius = 5.0, -- This is the radius, the larger the number, the larger the area.
- },
- -- {
- -- coords = vector3(-1852.42, -778.63, 6.75), -- The co-ordinate of the centre of the zone where you want it to be red zone/hot zone.
- -- radius = 5.0, -- This is the radius, the larger the number, the larger the area.
- -- },
- },
- ['SAFE'] = {
- {
- coords = vector3(-1871.06, -724.59, 8.3),
- radius = 5.0,
- },
- -- {
- -- coords = vector3(-1871.06, -724.59, 8.3),
- -- radius = 5.0,
- -- },
- }
- }
- Config.Menu = {
- isNormal = true,
- isReduced = false,
- isMinimal = false
- }
- Config.Jobs = { -- Here you have to add all the jobs that will appear in your HUD. This ensures that it appears the way you want it to appear, and it also reduces the HUD consumption by half.
- ['unemployed'] = { [0] = 'Freelancer' },
- ['police'] = { [0] = 'Recruit', [1] = 'Officer', [2] = 'Sergeant', [3] = 'Lieutenant', [4] = 'Chief' },
- ['ambulance'] = { [0] = 'Recruit', [1] = 'Paramedic', [2] = 'Doctor', [3] = 'Surgeon', [4] = 'Chief' },
- ['realestate'] = { [0] = 'Recruit', [1] = 'House Sales', [2] = 'Business Sales', [3] = 'Broker', [4] = 'Manager' },
- ['taxi'] = { [0] = 'Recruit', [1] = 'Driver', [2] = 'Event Driver', [3] = 'Sales', [4] = 'Manager' },
- ['bus'] = { [0] = 'Driver' },
- ['cardealer'] = { [0] = 'Recruit', [1] = 'Showroom Sales', [2] = 'Business Sales', [3] = 'Finance', [4] = 'Manager' },
- ['mechanic'] = { [0] = 'Recruit', [1] = 'Novice', [2] = 'Experienced', [3] = 'Advanced', [4] = 'Manager' },
- ['judge'] = { [0] = 'Judge' },
- ['lawyer'] = { [0] = 'Associate' },
- ['reporter'] = { [0] = 'Journalist' },
- ['trucker'] = { [0] = 'Driver' },
- ['tow'] = { [0] = 'Driver' },
- ['garbage'] = { [0] = 'Collector' },
- ['vineyard'] = { [0] = 'Picker' },
- ['hotdog'] = { [0] = 'Sales' },
- ['firefighter'] = { [0] = 'Recruit', [1] = 'Fire fighter', [2] = 'Lieutenant', [3] = 'Captain', [4] = 'Boss' }
- }
- Config.WhitelistedWeaponStress = { `weapon_petrolcan`, `weapon_hazardcan`, `weapon_fireextinguisher` }
- Config.EffectInterval = { -- If you activate the use of Stress, there will be a blur effect whenever your character is stressed.
- [1] = { min = 50, max = 60, timeout = math.random(50000, 60000) },
- [2] = { min = 60, max = 70, timeout = math.random(40000, 50000) },
- [3] = { min = 70, max = 80, timeout = math.random(30000, 40000) },
- [4] = { min = 80, max = 90, timeout = math.random(20000, 30000) },
- [5] = { min = 90, max = 100, timeout = math.random(15000, 20000) }
- }
- Config.Intensity = {
- ["BLUR"] = {
- [1] = { min = 50, max = 60, intensity = 1500 },
- [2] = { min = 60, max = 70, intensity = 2000 },
- [3] = { min = 70, max = 80, intensity = 2500 },
- [4] = { min = 80, max = 90, intensity = 2700 },
- [5] = { min = 90, max = 100, intensity = 3000 },
- }
- }
- Config.Weapons = { -- These are the images of the weapons, if there are weapons you don't like, you can change them inside the NUI images folder.
- [GetHashKey('WEAPON_UNARMED')] = { 'WEAPON_UNARMED' },
- [GetHashKey('WEAPON_KNIFE')] = { 'WEAPON_KNIFE' },
- [GetHashKey('WEAPON_NIGHTSTICK')] = { 'WEAPON_NIGHTSTICK' },
- [GetHashKey('WEAPON_HAMMER')] = { 'WEAPON_HAMMER' },
- [GetHashKey('WEAPON_BAT')] = { 'WEAPON_BAT' },
- [GetHashKey('WEAPON_GOLFCLUB')] = { 'WEAPON_GOLFCLUB' },
- [GetHashKey('WEAPON_CROWBAR')] = { 'WEAPON_CROWBAR' },
- [GetHashKey('WEAPON_PISTOL')] = { 'WEAPON_PISTOL' },
- [GetHashKey('WEAPON_COMBATPISTOL')] = { 'WEAPON_COMBATPISTOL' },
- [GetHashKey('WEAPON_APPISTOL')] = { 'WEAPON_APPISTOL' },
- [GetHashKey('WEAPON_PISTOL50')] = { 'WEAPON_PISTOL50' },
- [GetHashKey('WEAPON_MICROSMG')] = { 'WEAPON_MICROSMG' },
- [GetHashKey('WEAPON_SMG')] = { 'WEAPON_SMG' },
- [GetHashKey('WEAPON_ASSAULTSMG')] = { 'WEAPON_ASSAULTSMG' },
- [GetHashKey('WEAPON_ASSAULTRIFLE')] = { 'WEAPON_ASSAULTRIFLE' },
- [GetHashKey('WEAPON_CARBINERIFLE')] = { 'WEAPON_CARBINERIFLE' },
- [GetHashKey('WEAPON_ADVANCEDRIFLE')] = { 'WEAPON_ADVANCEDRIFLE' },
- [GetHashKey('WEAPON_MG')] = { 'WEAPON_MG' },
- [GetHashKey('WEAPON_COMBATMG')] = { 'WEAPON_COMBATMG' },
- [GetHashKey('WEAPON_PUMPSHOTGUN')] = { 'WEAPON_PUMPSHOTGUN' },
- [GetHashKey('WEAPON_SAWNOFFSHOTGUN')] = { 'WEAPON_SAWNOFFSHOTGUN' },
- [GetHashKey('WEAPON_ASSAULTSHOTGUN')] = { 'WEAPON_ASSAULTSHOTGUN' },
- [GetHashKey('WEAPON_BULLPUPSHOTGUN')] = { 'WEAPON_BULLPUPSHOTGUN' },
- [GetHashKey('WEAPON_STUNGUN')] = { 'WEAPON_STUNGUN' },
- [GetHashKey('WEAPON_SNIPERRIFLE')] = { 'WEAPON_SNIPERRIFLE' },
- [GetHashKey('WEAPON_HEAVYSNIPER')] = { 'WEAPON_HEAVYSNIPER' },
- [GetHashKey('WEAPON_GRENADELAUNCHER')] = { 'WEAPON_GRENADELAUNCHER' },
- [GetHashKey('WEAPON_GRENADELAUNCHER_SMOKE')] = { 'WEAPON_GRENADELAUNCHER_SMOKE' },
- [GetHashKey('WEAPON_RPG')] = { 'WEAPON_RPG' },
- [GetHashKey('WEAPON_MINIGUN')] = { 'WEAPON_MINIGUN' },
- [GetHashKey('WEAPON_GRENADE')] = { 'WEAPON_GRENADE' },
- [GetHashKey('WEAPON_STICKYBOMB')] = { 'WEAPON_STICKYBOMB' },
- [GetHashKey('WEAPON_SMOKEGRENADE')] = { 'WEAPON_SMOKEGRENADE' },
- [GetHashKey('WEAPON_BZGAS')] = { 'WEAPON_BZGAS' },
- [GetHashKey('WEAPON_MOLOTOV')] = { 'WEAPON_MOLOTOV' },
- [GetHashKey('WEAPON_FIREEXTINGUISHER')] = { 'WEAPON_FIREEXTINGUISHER' },
- [GetHashKey('WEAPON_PETROLCAN')] = { 'WEAPON_PETROLCAN' },
- [GetHashKey('WEAPON_FLARE')] = { 'WEAPON_FLARE' },
- [GetHashKey('WEAPON_SNSPISTOL')] = { 'WEAPON_SNSPISTOL' },
- [GetHashKey('WEAPON_SPECIALCARBINE')] = { 'WEAPON_SPECIALCARBINE' },
- [GetHashKey('WEAPON_HEAVYPISTOL')] = { 'WEAPON_HEAVYPISTOL' },
- [GetHashKey('WEAPON_BULLPUPRIFLE')] = { 'WEAPON_BULLPUPRIFLE' },
- [GetHashKey('WEAPON_HOMINGLAUNCHER')] = { 'WEAPON_HOMINGLAUNCHER' },
- [GetHashKey('WEAPON_PROXMINE')] = { 'WEAPON_PROXMINE' },
- [GetHashKey('WEAPON_SNOWBALL')] = { 'WEAPON_SNOWBALL' },
- [GetHashKey('WEAPON_VINTAGEPISTOL')] = { 'WEAPON_VINTAGEPISTOL' },
- [GetHashKey('WEAPON_DAGGER')] = { 'WEAPON_DAGGER' },
- [GetHashKey('WEAPON_FIREWORK')] = { 'WEAPON_FIREWORK' },
- [GetHashKey('WEAPON_MUSKET')] = { 'WEAPON_MUSKET' },
- [GetHashKey('WEAPON_MARKSMANRIFLE')] = { 'WEAPON_MARKSMANRIFLE' },
- [GetHashKey('WEAPON_HEAVYSHOTGUN')] = { 'WEAPON_HEAVYSHOTGUN' },
- [GetHashKey('WEAPON_GUSENBERG')] = { 'WEAPON_GUSENBERG' },
- [GetHashKey('WEAPON_HATCHET')] = { 'WEAPON_HATCHET' },
- [GetHashKey('WEAPON_RAILGUN')] = { 'WEAPON_RAILGUN' },
- [GetHashKey('WEAPON_COMBATPDW')] = { 'WEAPON_COMBATPDW' },
- [GetHashKey('WEAPON_KNUCKLE')] = { 'WEAPON_KNUCKLE' },
- [GetHashKey('WEAPON_MARKSMANPISTOL')] = { 'WEAPON_MARKSMANPISTOL' },
- [GetHashKey('WEAPON_FLASHLIGHT')] = { 'WEAPON_FLASHLIGHT' },
- [GetHashKey('WEAPON_MACHETE')] = { 'WEAPON_MACHETE' },
- [GetHashKey('WEAPON_MACHINEPISTOL')] = { 'WEAPON_MACHINEPISTOL' },
- [GetHashKey('WEAPON_SWITCHBLADE')] = { 'WEAPON_SWITCHBLADE' },
- [GetHashKey('WEAPON_REVOLVER')] = { 'WEAPON_REVOLVER' },
- [GetHashKey('WEAPON_COMPACTRIFLE')] = { 'WEAPON_COMPACTRIFLE' },
- [GetHashKey('WEAPON_DBSHOTGUN')] = { 'WEAPON_DBSHOTGUN' },
- [GetHashKey('WEAPON_FLAREGUN')] = { 'WEAPON_FLAREGUN' },
- [GetHashKey('WEAPON_AUTOSHOTGUN')] = { 'WEAPON_AUTOSHOTGUN' },
- [GetHashKey('WEAPON_BATTLEAXE')] = { 'WEAPON_BATTLEAXE' },
- [GetHashKey('WEAPON_COMPACTLAUNCHER')] = { 'WEAPON_COMPACTLAUNCHER' },
- [GetHashKey('WEAPON_MINISMG')] = { 'WEAPON_MINISMG' },
- [GetHashKey('WEAPON_PIPEBOMB')] = { 'WEAPON_PIPEBOMB' },
- [GetHashKey('WEAPON_POOLCUE')] = { 'WEAPON_POOLCUE' },
- [GetHashKey('WEAPON_SWEEPER')] = { 'WEAPON_SWEEPER' },
- [GetHashKey('WEAPON_WRENCH')] = { 'WEAPON_WRENCH' },
- [GetHashKey('WEAPON_PISTOL_MK2')] = { 'WEAPON_PISTOL_MK2' },
- [GetHashKey('WEAPON_SNSPISTOL_MK2')] = { 'WEAPON_SNSPISTOL_MK2' },
- [GetHashKey('WEAPON_REVOLVER_MK2')] = { 'WEAPON_REVOLVER_MK2' },
- [GetHashKey('WEAPON_SMG_MK2')] = { 'WEAPON_SMG_MK2' },
- [GetHashKey('WEAPON_PUMPSHOTGUN_MK2')] = { 'WEAPON_PUMPSHOTGUN_MK2' },
- [GetHashKey('WEAPON_ASSAULTRIFLE_MK2')] = { 'WEAPON_ASSAULTRIFLE_MK2' },
- [GetHashKey('WEAPON_CARBINERIFLE_MK2')] = { 'WEAPON_CARBINERIFLE_MK2' },
- [GetHashKey('WEAPON_SPECIALCARBINE_MK2')] = { 'WEAPON_SPECIALCARBINE_MK2' },
- [GetHashKey('WEAPON_BULLPUPRIFLE_MK2')] = { 'WEAPON_BULLPUPRIFLE_MK2' },
- [GetHashKey('WEAPON_COMBATMG_MK2')] = { 'WEAPON_COMBATMG_MK2' },
- [GetHashKey('WEAPON_HEAVYSNIPER_MK2')] = { 'WEAPON_HEAVYSNIPER_MK2' },
- [GetHashKey('WEAPON_MARKSMANRIFLE_MK2')] = { 'WEAPON_MARKSMANRIFLE_MK2' }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement