Advertisement
Guest User

Untitled

a guest
Jun 1st, 2023
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.73 KB | None | 0 0
  1. Config = Config or {}
  2.  
  3. -- _____ _____ _ _ ______ _____ _____ _ _______ ___ _____ _____ _____ _ _
  4. -- / __ \ _ | \ | || ___|_ _| __ \ | | | ___ \/ _ \_ _|_ _| _ | \ | |
  5. -- | / \/ | | | \| || |_ | | | | \/ | | | |_/ / /_\ \| | | | | | | | \| |
  6. -- | | | | | | . ` || _| | | | | __| | | | /| _ || | | | | | | | . ` |
  7. -- | \__/\ \_/ / |\ || | _| |_| |_\ \ |_| | |\ \| | | || | _| |_\ \_/ / |\ |
  8. -- \____/\___/\_| \_/\_| \___/ \____/\___/\_| \_\_| |_/\_/ \___/ \___/\_| \_/
  9.  
  10.  
  11. Config.Debug = false -- Use it for debug
  12. 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
  13.  
  14. Config.MaxPlayers = GetConvarInt('sv_maxclients', 32) -- Use it for get max players
  15. Config.KeyChangeCyclePromixity = GetConvar('voice_defaultCycle', 'F11') -- Key for the cycle proximity for pma-voice
  16.  
  17. Config.UseKeyOpen = true -- Set if the hud config can be open with Config.OpenMenu
  18. Config.OpenMenu = 'I' -- See the list : https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
  19.  
  20. Config.UseMPH = false -- Use mp/h with "true" and km/h with "false"
  21.  
  22. Config.UseStress = true -- Use stress of QBCore if yes set "true" otherwise "false"
  23. Config.StressChance = 0.1 -- Default: 10% • Percentage stress chance when shooting (0-1)
  24. Config.UseLowFuel = true -- If set to true the fuel level is checked
  25.  
  26. Config.MinimumStress = 50 -- Minimum stress level for screen shaking
  27. Config.MinimumFuel = 20 -- Under this % of fuel, the player is notify (Config.Notification.FuelIsLow = true) and with sound (Config.Sounds['FUEL'])
  28. Config.MinimumSpeed = 100 -- Going over this speed will cause stress
  29. Config.MinimumSpeedUnbuckled = 80 -- Going over this Speed without seatbelt will cause stress
  30.  
  31. Config.DisableStressPolice = true -- If true will disable stress for people with the police job
  32.  
  33. Config.ShowRadarOnlyInVehicle = true -- Show the player radar only if the player is in a car.
  34. Config.ShowMoneyInHud = true -- Show the cash and bank on the hud
  35.  
  36. Config.UseKeyToggleseatbelt = false -- Set if the seatbelt can be toggled by Config.ToggleSeatbelt
  37. Config.ToggleSeatbelt = 'B' -- See the list : https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
  38. Config.EjectVelocity = 60 / (Config.UseMPH and 2.236936 or 3.6)
  39. Config.UnknownEjectVelocity = 70 / (Config.UseMPH and 2.236936 or 3.6)
  40. Config.UnknownModifier = 17.0
  41. Config.MinimumDamage = 2000
  42.  
  43. Config.Notification = {
  44. HudIsLoaded = true, -- Show notification when the hud settings is loaded.
  45. MapIsLoaded = true, -- Show notification when the map is loaded.
  46. FuelIsLow = true, -- Show notification when the fuel is low.
  47. GainStress = true, -- Show notification when player gain stress
  48. }
  49.  
  50. Config.Commands = {
  51. ResetHUD = 'resethud', -- Command name to reset the configuration
  52. Announce = 'announce', -- Command name to launch a announcement
  53. OpenHUD = 'menu', -- Command name to open the hud configuration
  54. ZoneTP = 'zone', -- Command to test zone (only available with : Config.Debug = true)
  55. ToggleSeatbelt = 'toggleseatbelt', -- Command name to toggle seatbelt
  56. }
  57.  
  58. Config.Sounds = { -- See the list : https://pastebin.com/DCeRiaLJ
  59. ['BUCKLE'] = {
  60. Enabled = true,
  61. AudioName = 'Beep_Red',
  62. AudioRef = 'DLC_HEIST_HACKING_SNAKE_SOUNDS',
  63. },
  64. ['UNBUCKLE'] = {
  65. Enabled = true,
  66. AudioName = 'Beep_Red',
  67. AudioRef = 'DLC_HEIST_HACKING_SNAKE_SOUNDS',
  68. },
  69. ['FUEL'] = {
  70. Enabled = true,
  71. AudioName = 'Beep_Red',
  72. AudioRef = 'DLC_HEIST_HACKING_SNAKE_SOUNDS',
  73. },
  74. ['ANNOUNCE'] = {
  75. Enabled = true,
  76. AudioName = 'CHARACTER_SELECT',
  77. AudioRef = 'HUD_FRONTEND_DEFAULT_SOUNDSET',
  78. },
  79. }
  80.  
  81. 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
  82. ['RED'] = {
  83. {
  84. 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.
  85. radius = 5.0, -- This is the radius, the larger the number, the larger the area.
  86. },
  87. -- {
  88. -- 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.
  89. -- radius = 5.0, -- This is the radius, the larger the number, the larger the area.
  90. -- },
  91. },
  92. ['SAFE'] = {
  93. {
  94. coords = vector3(-1871.06, -724.59, 8.3),
  95. radius = 5.0,
  96. },
  97. -- {
  98. -- coords = vector3(-1871.06, -724.59, 8.3),
  99. -- radius = 5.0,
  100. -- },
  101. }
  102. }
  103.  
  104. Config.Menu = {
  105. isNormal = true,
  106. isReduced = false,
  107. isMinimal = false
  108. }
  109.  
  110. 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.
  111. ['unemployed'] = { [0] = 'Freelancer' },
  112. ['police'] = { [0] = 'Recruit', [1] = 'Officer', [2] = 'Sergeant', [3] = 'Lieutenant', [4] = 'Chief' },
  113. ['ambulance'] = { [0] = 'Recruit', [1] = 'Paramedic', [2] = 'Doctor', [3] = 'Surgeon', [4] = 'Chief' },
  114. ['realestate'] = { [0] = 'Recruit', [1] = 'House Sales', [2] = 'Business Sales', [3] = 'Broker', [4] = 'Manager' },
  115. ['taxi'] = { [0] = 'Recruit', [1] = 'Driver', [2] = 'Event Driver', [3] = 'Sales', [4] = 'Manager' },
  116. ['bus'] = { [0] = 'Driver' },
  117. ['cardealer'] = { [0] = 'Recruit', [1] = 'Showroom Sales', [2] = 'Business Sales', [3] = 'Finance', [4] = 'Manager' },
  118. ['mechanic'] = { [0] = 'Recruit', [1] = 'Novice', [2] = 'Experienced', [3] = 'Advanced', [4] = 'Manager' },
  119. ['judge'] = { [0] = 'Judge' },
  120. ['lawyer'] = { [0] = 'Associate' },
  121. ['reporter'] = { [0] = 'Journalist' },
  122. ['trucker'] = { [0] = 'Driver' },
  123. ['tow'] = { [0] = 'Driver' },
  124. ['garbage'] = { [0] = 'Collector' },
  125. ['vineyard'] = { [0] = 'Picker' },
  126. ['hotdog'] = { [0] = 'Sales' },
  127. ['firefighter'] = { [0] = 'Recruit', [1] = 'Fire fighter', [2] = 'Lieutenant', [3] = 'Captain', [4] = 'Boss' }
  128. }
  129.  
  130. Config.WhitelistedWeaponStress = { `weapon_petrolcan`, `weapon_hazardcan`, `weapon_fireextinguisher` }
  131.  
  132. Config.EffectInterval = { -- If you activate the use of Stress, there will be a blur effect whenever your character is stressed.
  133. [1] = { min = 50, max = 60, timeout = math.random(50000, 60000) },
  134. [2] = { min = 60, max = 70, timeout = math.random(40000, 50000) },
  135. [3] = { min = 70, max = 80, timeout = math.random(30000, 40000) },
  136. [4] = { min = 80, max = 90, timeout = math.random(20000, 30000) },
  137. [5] = { min = 90, max = 100, timeout = math.random(15000, 20000) }
  138. }
  139.  
  140. Config.Intensity = {
  141. ["BLUR"] = {
  142. [1] = { min = 50, max = 60, intensity = 1500 },
  143. [2] = { min = 60, max = 70, intensity = 2000 },
  144. [3] = { min = 70, max = 80, intensity = 2500 },
  145. [4] = { min = 80, max = 90, intensity = 2700 },
  146. [5] = { min = 90, max = 100, intensity = 3000 },
  147. }
  148. }
  149.  
  150. 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.
  151. [GetHashKey('WEAPON_UNARMED')] = { 'WEAPON_UNARMED' },
  152. [GetHashKey('WEAPON_KNIFE')] = { 'WEAPON_KNIFE' },
  153. [GetHashKey('WEAPON_NIGHTSTICK')] = { 'WEAPON_NIGHTSTICK' },
  154. [GetHashKey('WEAPON_HAMMER')] = { 'WEAPON_HAMMER' },
  155. [GetHashKey('WEAPON_BAT')] = { 'WEAPON_BAT' },
  156. [GetHashKey('WEAPON_GOLFCLUB')] = { 'WEAPON_GOLFCLUB' },
  157. [GetHashKey('WEAPON_CROWBAR')] = { 'WEAPON_CROWBAR' },
  158. [GetHashKey('WEAPON_PISTOL')] = { 'WEAPON_PISTOL' },
  159. [GetHashKey('WEAPON_COMBATPISTOL')] = { 'WEAPON_COMBATPISTOL' },
  160. [GetHashKey('WEAPON_APPISTOL')] = { 'WEAPON_APPISTOL' },
  161. [GetHashKey('WEAPON_PISTOL50')] = { 'WEAPON_PISTOL50' },
  162. [GetHashKey('WEAPON_MICROSMG')] = { 'WEAPON_MICROSMG' },
  163. [GetHashKey('WEAPON_SMG')] = { 'WEAPON_SMG' },
  164. [GetHashKey('WEAPON_ASSAULTSMG')] = { 'WEAPON_ASSAULTSMG' },
  165. [GetHashKey('WEAPON_ASSAULTRIFLE')] = { 'WEAPON_ASSAULTRIFLE' },
  166. [GetHashKey('WEAPON_CARBINERIFLE')] = { 'WEAPON_CARBINERIFLE' },
  167. [GetHashKey('WEAPON_ADVANCEDRIFLE')] = { 'WEAPON_ADVANCEDRIFLE' },
  168. [GetHashKey('WEAPON_MG')] = { 'WEAPON_MG' },
  169. [GetHashKey('WEAPON_COMBATMG')] = { 'WEAPON_COMBATMG' },
  170. [GetHashKey('WEAPON_PUMPSHOTGUN')] = { 'WEAPON_PUMPSHOTGUN' },
  171. [GetHashKey('WEAPON_SAWNOFFSHOTGUN')] = { 'WEAPON_SAWNOFFSHOTGUN' },
  172. [GetHashKey('WEAPON_ASSAULTSHOTGUN')] = { 'WEAPON_ASSAULTSHOTGUN' },
  173. [GetHashKey('WEAPON_BULLPUPSHOTGUN')] = { 'WEAPON_BULLPUPSHOTGUN' },
  174. [GetHashKey('WEAPON_STUNGUN')] = { 'WEAPON_STUNGUN' },
  175. [GetHashKey('WEAPON_SNIPERRIFLE')] = { 'WEAPON_SNIPERRIFLE' },
  176. [GetHashKey('WEAPON_HEAVYSNIPER')] = { 'WEAPON_HEAVYSNIPER' },
  177. [GetHashKey('WEAPON_GRENADELAUNCHER')] = { 'WEAPON_GRENADELAUNCHER' },
  178. [GetHashKey('WEAPON_GRENADELAUNCHER_SMOKE')] = { 'WEAPON_GRENADELAUNCHER_SMOKE' },
  179. [GetHashKey('WEAPON_RPG')] = { 'WEAPON_RPG' },
  180. [GetHashKey('WEAPON_MINIGUN')] = { 'WEAPON_MINIGUN' },
  181. [GetHashKey('WEAPON_GRENADE')] = { 'WEAPON_GRENADE' },
  182. [GetHashKey('WEAPON_STICKYBOMB')] = { 'WEAPON_STICKYBOMB' },
  183. [GetHashKey('WEAPON_SMOKEGRENADE')] = { 'WEAPON_SMOKEGRENADE' },
  184. [GetHashKey('WEAPON_BZGAS')] = { 'WEAPON_BZGAS' },
  185. [GetHashKey('WEAPON_MOLOTOV')] = { 'WEAPON_MOLOTOV' },
  186. [GetHashKey('WEAPON_FIREEXTINGUISHER')] = { 'WEAPON_FIREEXTINGUISHER' },
  187. [GetHashKey('WEAPON_PETROLCAN')] = { 'WEAPON_PETROLCAN' },
  188. [GetHashKey('WEAPON_FLARE')] = { 'WEAPON_FLARE' },
  189. [GetHashKey('WEAPON_SNSPISTOL')] = { 'WEAPON_SNSPISTOL' },
  190. [GetHashKey('WEAPON_SPECIALCARBINE')] = { 'WEAPON_SPECIALCARBINE' },
  191. [GetHashKey('WEAPON_HEAVYPISTOL')] = { 'WEAPON_HEAVYPISTOL' },
  192. [GetHashKey('WEAPON_BULLPUPRIFLE')] = { 'WEAPON_BULLPUPRIFLE' },
  193. [GetHashKey('WEAPON_HOMINGLAUNCHER')] = { 'WEAPON_HOMINGLAUNCHER' },
  194. [GetHashKey('WEAPON_PROXMINE')] = { 'WEAPON_PROXMINE' },
  195. [GetHashKey('WEAPON_SNOWBALL')] = { 'WEAPON_SNOWBALL' },
  196. [GetHashKey('WEAPON_VINTAGEPISTOL')] = { 'WEAPON_VINTAGEPISTOL' },
  197. [GetHashKey('WEAPON_DAGGER')] = { 'WEAPON_DAGGER' },
  198. [GetHashKey('WEAPON_FIREWORK')] = { 'WEAPON_FIREWORK' },
  199. [GetHashKey('WEAPON_MUSKET')] = { 'WEAPON_MUSKET' },
  200. [GetHashKey('WEAPON_MARKSMANRIFLE')] = { 'WEAPON_MARKSMANRIFLE' },
  201. [GetHashKey('WEAPON_HEAVYSHOTGUN')] = { 'WEAPON_HEAVYSHOTGUN' },
  202. [GetHashKey('WEAPON_GUSENBERG')] = { 'WEAPON_GUSENBERG' },
  203. [GetHashKey('WEAPON_HATCHET')] = { 'WEAPON_HATCHET' },
  204. [GetHashKey('WEAPON_RAILGUN')] = { 'WEAPON_RAILGUN' },
  205. [GetHashKey('WEAPON_COMBATPDW')] = { 'WEAPON_COMBATPDW' },
  206. [GetHashKey('WEAPON_KNUCKLE')] = { 'WEAPON_KNUCKLE' },
  207. [GetHashKey('WEAPON_MARKSMANPISTOL')] = { 'WEAPON_MARKSMANPISTOL' },
  208. [GetHashKey('WEAPON_FLASHLIGHT')] = { 'WEAPON_FLASHLIGHT' },
  209. [GetHashKey('WEAPON_MACHETE')] = { 'WEAPON_MACHETE' },
  210. [GetHashKey('WEAPON_MACHINEPISTOL')] = { 'WEAPON_MACHINEPISTOL' },
  211. [GetHashKey('WEAPON_SWITCHBLADE')] = { 'WEAPON_SWITCHBLADE' },
  212. [GetHashKey('WEAPON_REVOLVER')] = { 'WEAPON_REVOLVER' },
  213. [GetHashKey('WEAPON_COMPACTRIFLE')] = { 'WEAPON_COMPACTRIFLE' },
  214. [GetHashKey('WEAPON_DBSHOTGUN')] = { 'WEAPON_DBSHOTGUN' },
  215. [GetHashKey('WEAPON_FLAREGUN')] = { 'WEAPON_FLAREGUN' },
  216. [GetHashKey('WEAPON_AUTOSHOTGUN')] = { 'WEAPON_AUTOSHOTGUN' },
  217. [GetHashKey('WEAPON_BATTLEAXE')] = { 'WEAPON_BATTLEAXE' },
  218. [GetHashKey('WEAPON_COMPACTLAUNCHER')] = { 'WEAPON_COMPACTLAUNCHER' },
  219. [GetHashKey('WEAPON_MINISMG')] = { 'WEAPON_MINISMG' },
  220. [GetHashKey('WEAPON_PIPEBOMB')] = { 'WEAPON_PIPEBOMB' },
  221. [GetHashKey('WEAPON_POOLCUE')] = { 'WEAPON_POOLCUE' },
  222. [GetHashKey('WEAPON_SWEEPER')] = { 'WEAPON_SWEEPER' },
  223. [GetHashKey('WEAPON_WRENCH')] = { 'WEAPON_WRENCH' },
  224. [GetHashKey('WEAPON_PISTOL_MK2')] = { 'WEAPON_PISTOL_MK2' },
  225. [GetHashKey('WEAPON_SNSPISTOL_MK2')] = { 'WEAPON_SNSPISTOL_MK2' },
  226. [GetHashKey('WEAPON_REVOLVER_MK2')] = { 'WEAPON_REVOLVER_MK2' },
  227. [GetHashKey('WEAPON_SMG_MK2')] = { 'WEAPON_SMG_MK2' },
  228. [GetHashKey('WEAPON_PUMPSHOTGUN_MK2')] = { 'WEAPON_PUMPSHOTGUN_MK2' },
  229. [GetHashKey('WEAPON_ASSAULTRIFLE_MK2')] = { 'WEAPON_ASSAULTRIFLE_MK2' },
  230. [GetHashKey('WEAPON_CARBINERIFLE_MK2')] = { 'WEAPON_CARBINERIFLE_MK2' },
  231. [GetHashKey('WEAPON_SPECIALCARBINE_MK2')] = { 'WEAPON_SPECIALCARBINE_MK2' },
  232. [GetHashKey('WEAPON_BULLPUPRIFLE_MK2')] = { 'WEAPON_BULLPUPRIFLE_MK2' },
  233. [GetHashKey('WEAPON_COMBATMG_MK2')] = { 'WEAPON_COMBATMG_MK2' },
  234. [GetHashKey('WEAPON_HEAVYSNIPER_MK2')] = { 'WEAPON_HEAVYSNIPER_MK2' },
  235. [GetHashKey('WEAPON_MARKSMANRIFLE_MK2')] = { 'WEAPON_MARKSMANRIFLE_MK2' }
  236. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement