Advertisement
Guest User

Aqua-Hudv2 (Config)

a guest
Feb 16th, 2025
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. Config = {
  2. locale = 'de',
  3. disabledHudComponents = {
  4. 1, 2, 3, 4, 5, 6, 7, 8, 9
  5. },
  6. -- if a logo should be displayed in the top-right corner.
  7. useServerLogo = true, -- you can replace it in web/dist/images/logo.png
  8. voice = {
  9. type = 'pma-voice', -- pma-voice / saltychat
  10. circle = {
  11. enabled = true,
  12. smooth = true,
  13. color = { r = 0, g = 128, b = 255, a = 255 },
  14. height = 1.0
  15. },
  16. notification = false
  17. },
  18. permissions = {
  19. teamchat = {
  20. 'admin'
  21. },
  22. announcements = {
  23. 'admin'
  24. }
  25. },
  26. features = {
  27. chat = true,
  28. status = true,
  29. weapon = true,
  30. teamchat = true,
  31. announce = true
  32. },
  33. command = {
  34. chat = {
  35. name = 'chat',
  36. defaultMapper = 'T'
  37. },
  38. hudsettings = {
  39. name = 'hudsettings',
  40. defaultMapper = 'F11'
  41. },
  42. teamchat = {
  43. name = 'teamchat',
  44. time = 5000
  45. },
  46. announce = {
  47. name = 'announce',
  48. time = 11000
  49. }
  50. },
  51. sounds = {
  52. notification = {
  53. info = { 'ATM_WINDOW', 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
  54. error = { 'ERROR', 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
  55. warning = { 'ERROR', 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
  56. success = { 'ATM_WINDOW', 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
  57. teamchat = { 'ATM_WINDOW', 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
  58. lifeinvader = { 'ATM_WINDOW', 'HUD_FRONTEND_DEFAULT_SOUNDSET' }
  59. },
  60. announce = { 'CHALLENGE_UNLOCKED', 'HUD_AWARDS' },
  61. helpNotify = {
  62. fadeIn = { 'INFO', 'HUD_FRONTEND_DEFAULT_SOUNDSET' },
  63. fadeOut = { 'CANCEL', 'HUD_FRONTEND_DEFAULT_SOUNDSET' }
  64. }
  65. },
  66. events = {
  67. status = {
  68. add = 'esx_status:add',
  69. remove = 'esx_status:remove',
  70. set = 'esx_status:set',
  71. onTick = 'esx_status:onTick',
  72. load = 'esx_status:load',
  73. getStatus = 'esx_status:getStatus'
  74. },
  75. setAccountMoney = 'esx:setAccountMoney',
  76. setJob = 'esx:setJob'
  77. }
  78. };
  79.  
  80. if not IsDuplicityVersion() then
  81. RegisterCommand('aqua_hud', function()
  82. TriggerEvent('aqua_hud:StartProgressBar', 5000, 'Test');
  83.  
  84. Citizen.Wait(1000);
  85.  
  86. TriggerEvent('aqua_hud:AddNotification', {
  87. type = 'warning',
  88. title = 'Warning',
  89. text = 'This is a test info notification',
  90. time = 5000
  91. });
  92.  
  93. Citizen.Wait(1000);
  94.  
  95. TriggerEvent('aqua_hud:AddNotification', {
  96. type = 'error',
  97. title = 'Error',
  98. text = 'This is a test error notification',
  99. time = 5000
  100. });
  101.  
  102. Citizen.Wait(1000);
  103.  
  104. TriggerEvent('aqua_hud:AddNotification', {
  105. type = 'success',
  106. title = 'Success',
  107. text = 'This is a test success notification',
  108. time = 5000
  109. });
  110.  
  111. Citizen.Wait(1000);
  112.  
  113. TriggerEvent('aqua_hud:AddNotification', {
  114. type = 'info',
  115. title = 'Information',
  116. text = 'This is a test info notification',
  117. time = 5000
  118. });
  119.  
  120. Citizen.Wait(1000);
  121.  
  122. TriggerEvent('aqua_hud:AddTeamchat', {
  123. title = 'Teamchat',
  124. text = 'This is a test teamchat',
  125. player = 'Test',
  126. time = 5000
  127. });
  128.  
  129. Citizen.Wait(1000);
  130.  
  131. TriggerEvent('aqua_hud:AddLifeInvader', {
  132. title = 'LifeInvader',
  133. text = 'This is a test lifeinvader',
  134. player = 'Test',
  135. number = '000000000',
  136. time = 5000
  137. });
  138.  
  139. Citizen.Wait(1000);
  140.  
  141. TriggerEvent('aqua_hud:AddAnnouncement', {
  142. title = 'Announcement',
  143. text = 'This is a test announcement',
  144. time = 5000
  145. });
  146.  
  147. Citizen.Wait(1000);
  148.  
  149. TriggerEvent('aqua_hud:HelpNotification', {
  150. key = 'E',
  151. text = 'This is a test help notification'
  152. });
  153. end, false);
  154. end
  155.  
  156. WEAPON_LABELS = {
  157. -- Pistols
  158. [`WEAPON_PISTOL`] = 'Pistol',
  159. [`WEAPON_PISTOL_MK2`] = 'Pistol Mk II',
  160. [`WEAPON_COMBATPISTOL`] = 'Combat Pistol',
  161. [`WEAPON_APPISTOL`] = 'AP Pistol',
  162. [`WEAPON_STUNGUN`] = 'Stun Gun',
  163. [`WEAPON_PISTOL50`] = 'Pistol .50',
  164. [`WEAPON_SNSPISTOL`] = 'SNS Pistol',
  165. [`WEAPON_SNSPISTOL_MK2`] = 'SNS Pistol Mk II',
  166. [`WEAPON_HEAVYPISTOL`] = 'Heavy Pistol',
  167. [`WEAPON_VINTAGEPISTOL`] = 'Vintage Pistol',
  168. [`WEAPON_FLAREGUN`] = 'Flare Gun',
  169. [`WEAPON_MARKSMANPISTOL`] = 'Marksman Pistol',
  170. [`WEAPON_REVOLVER`] = 'Revolver',
  171. [`WEAPON_REVOLVER_MK2`] = 'Revolver Mk II',
  172. [`WEAPON_DOUBLEACTION`] = 'Double-Action Revolver',
  173. [`WEAPON_RAYPISTOL`] = 'Up-n-Atomizer',
  174. [`WEAPON_CERAMICPISTOL`] = 'Ceramic Pistol',
  175. [`WEAPON_NAVYREVOLVER`] = 'Navy Revolver',
  176. [`WEAPON_GADGETPISTOL`] = 'Perico Pistol',
  177. -- SMGs
  178. [`WEAPON_MICROSMG`] = 'Micro SMG',
  179. [`WEAPON_SMG`] = 'SMG',
  180. [`WEAPON_SMG_MK2`] = 'SMG Mk II',
  181. [`WEAPON_ASSAULTSMG`] = 'Assault SMG',
  182. [`WEAPON_COMBATPDW`] = 'Combat PDW',
  183. [`WEAPON_MACHINEPISTOL`] = 'Machine Pistol',
  184. [`WEAPON_MINISMG`] = 'Mini SMG',
  185. [`WEAPON_RAYCARBINE`] = 'Unholy Hellbringer',
  186. -- Shotguns
  187. [`WEAPON_PUMPSHOTGUN`] = 'Pump Shotgun',
  188. [`WEAPON_PUMPSHOTGUN_MK2`] = 'Pump Shotgun Mk II',
  189. [`WEAPON_SAWNOFFSHOTGUN`] = 'Sawed-Off Shotgun',
  190. [`WEAPON_ASSAULTSHOTGUN`] = 'Assault Shotgun',
  191. [`WEAPON_BULLPUPSHOTGUN`] = 'Bullpup Shotgun',
  192. [`WEAPON_MUSKET`] = 'Musket',
  193. [`WEAPON_HEAVYSHOTGUN`] = 'Heavy Shotgun',
  194. [`WEAPON_DBSHOTGUN`] = 'Double Barrel Shotgun',
  195. [`WEAPON_AUTOSHOTGUN`] = 'Sweeper Shotgun',
  196. [`WEAPON_COMBATSHOTGUN`] = 'Combat Shotgun',
  197. -- Rifles
  198. [`WEAPON_ASSAULTRIFLE`] = 'Assault Rifle',
  199. [`WEAPON_ASSAULTRIFLE_MK2`] = 'Assault Rifle Mk II',
  200. [`WEAPON_CARBINERIFLE`] = 'Carbine Rifle',
  201. [`WEAPON_CARBINERIFLE_MK2`] = 'Carbine Rifle Mk II',
  202. [`WEAPON_ADVANCEDRIFLE`] = 'Advanced Rifle',
  203. [`WEAPON_SPECIALCARBINE`] = 'Special Carbine',
  204. [`WEAPON_SPECIALCARBINE_MK2`] = 'Special Carbine Mk II',
  205. [`WEAPON_BULLPUPRIFLE`] = 'Bullpup Rifle',
  206. [`WEAPON_BULLPUPRIFLE_MK2`] = 'Bullpup Rifle Mk II',
  207. [`WEAPON_COMPACTRIFLE`] = 'Compact Rifle',
  208. [`WEAPON_MILITARYRIFLE`] = 'Military Rifle',
  209. [`WEAPON_HEAVYRIFLE`] = 'Heavy Rifle',
  210. [`WEAPON_TACTICALRIFLE`] = 'Service Carbine',
  211. -- MGs
  212. [`WEAPON_MG`] = 'MG',
  213. [`WEAPON_COMBATMG`] = 'Combat MG',
  214. [`WEAPON_COMBATMG_MK2`] = 'Combat MG Mk II',
  215. [`WEAPON_GUSENBERG`] = 'Gusenberg Sweeper',
  216. -- Snipers
  217. [`WEAPON_SNIPERRIFLE`] = 'Sniper Rifle',
  218. [`WEAPON_HEAVYSNIPER`] = 'Heavy Sniper',
  219. [`WEAPON_HEAVYSNIPER_MK2`] = 'Heavy Sniper Mk II',
  220. [`WEAPON_MARKSMANRIFLE`] = 'Marksman Rifle',
  221. [`WEAPON_MARKSMANRIFLE_MK2`] = 'Marksman Rifle Mk II',
  222. [`WEAPON_PRECISIONRIFLE`] = 'Precision Rifle',
  223. -- Heavies
  224. [`WEAPON_RPG`] = 'RPG',
  225. [`WEAPON_GRENADELAUNCHER`] = 'Grenade Launcher',
  226. [`WEAPON_GRENADELAUNCHER_SMOKE`] = 'Grenade Launcher Smoke',
  227. [`WEAPON_MINIGUN`] = 'Minigun',
  228. [`WEAPON_FIREWORK`] = 'Firework Launcher',
  229. [`WEAPON_RAILGUN`] = 'Railgun',
  230. [`WEAPON_HOMINGLAUNCHER`] = 'Homing Launcher',
  231. [`WEAPON_COMPACTLAUNCHER`] = 'Compact Grenade Launcher',
  232. [`WEAPON_RAYMINIGUN`] = 'Widowmaker',
  233. [`WEAPON_EMPLAUNCHER`] = 'Compact EMP Launcher'
  234. };
  235.  
  236. ZONE_LABELS = {
  237. ['AIRP'] = 'Los Santos International Airport',
  238. ['ALAMO'] = 'Alamo Sea',
  239. ['ALTA'] = 'Alta',
  240. ['ARMYB'] = 'Fort Zancudo',
  241. ['BANHAMC'] = 'Banham Canyon Dr',
  242. ['BANNING'] = 'Banning',
  243. ['BEACH'] = 'Vespucci Beach',
  244. ['BHAMCA'] = 'Banham Canyon',
  245. ['BRADP'] = 'Braddock Pass',
  246. ['BRADT'] = 'Braddock Tunnel',
  247. ['BURTON'] = 'Burton',
  248. ['CALAFB'] = 'Calafia Bridge',
  249. ['CANNY'] = 'Raton Canyon',
  250. ['CCREAK'] = 'Cassidy Creek',
  251. ['CHAMH'] = 'Chamberlain Hills',
  252. ['CHIL'] = 'Vinewood Hills',
  253. ['CHU'] = 'Chumash',
  254. ['CMSW'] = 'Chiliad Mountain State Wilderness',
  255. ['CYPRE'] = 'Cypress Flats',
  256. ['DAVIS'] = 'Davis',
  257. ['DELBE'] = 'Del Perro Beach',
  258. ['DELPE'] = 'Del Perro',
  259. ['DELSOL'] = 'La Puerta',
  260. ['DESRT'] = 'Grand Senora Desert',
  261. ['DOWNT'] = 'Downtown',
  262. ['DTVINE'] = 'Downtown Vinewood',
  263. ['EAST_V'] = 'East Vinewood',
  264. ['EBURO'] = 'El Burro Heights',
  265. ['ELGORL'] = 'El Gordo Lighthouse',
  266. ['ELYSIAN'] = 'Elysian Island',
  267. ['GALFISH'] = 'Galilee',
  268. ['GOLF'] = 'GWC and Golfing Society',
  269. ['GRAPES'] = 'Grapeseed',
  270. ['GREATC'] = 'Great Chaparral',
  271. ['HARMO'] = 'Harmony',
  272. ['HAWICK'] = 'Hawick',
  273. ['HORS'] = 'Vinewood Racetrack',
  274. ['HUMLAB'] = 'Humane Labs and Research',
  275. ['JAIL'] = 'Bolingbroke Penitentiary',
  276. ['KOREAT'] = 'Little Seoul',
  277. ['LACT'] = 'Land Act Reservoir',
  278. ['LAGO'] = 'Lago Zancudo',
  279. ['LDAM'] = 'Land Act Dam',
  280. ['LEGSQU'] = 'Legion Square',
  281. ['LMESA'] = 'La Mesa',
  282. ['LOSPUER'] = 'La Puerta',
  283. ['MIRR'] = 'Mirror Park',
  284. ['MORN'] = 'Morningwood',
  285. ['MOVIE'] = 'Richards Majestic',
  286. ['MTCHIL'] = 'Mount Chiliad',
  287. ['MTGORDO'] = 'Mount Gordo',
  288. ['MTJOSE'] = 'Mount Josiah',
  289. ['MURRI'] = 'Murrieta Heights',
  290. ['NCHU'] = 'North Chumash',
  291. ['NOOSE'] = 'N.O.O.S.E',
  292. ['OCEANA'] = 'Pacific Ocean',
  293. ['PALCOV'] = 'Paleto Cove',
  294. ['PALETO'] = 'Paleto Bay',
  295. ['PALFOR'] = 'Paleto Forest',
  296. ['PALHIGH'] = 'Palomino Highlands',
  297. ['PALMPOW'] = 'Palmer-Taylor Power Station',
  298. ['PBLUFF'] = 'Pacific Bluffs',
  299. ['PBOX'] = 'Pillbox Hill',
  300. ['PROCOB'] = 'Procopio Beach',
  301. ['RANCHO'] = 'Rancho',
  302. ['RGLEN'] = 'Richman Glen',
  303. ['RICHM'] = 'Richman',
  304. ['ROCKF'] = 'Rockford Hills',
  305. ['RTRAK'] = 'Redwood Lights Track',
  306. ['SANAND'] = 'San Andreas',
  307. ['SANCHIA'] = 'San Chianski Mountain Range',
  308. ['SANDY'] = 'Sandy Shores',
  309. ['SKID'] = 'Mission Row',
  310. ['SLAB'] = 'Stab City',
  311. ['STAD'] = 'Maze Bank Arena',
  312. ['STRAW'] = 'Strawberry',
  313. ['TATAMO'] = 'Tataviam Mountains',
  314. ['TERMINA'] = 'Terminal',
  315. ['TEXTI'] = 'Textile City',
  316. ['TONGVAH'] = 'Tongva Hills',
  317. ['TONGVAV'] = 'Tongva Valley',
  318. ['VCANA'] = 'Vespucci Canals',
  319. ['VESP'] = 'Vespucci',
  320. ['VINE'] = 'Vinewood',
  321. ['WINDF'] = 'Ron Alternates Wind Farm',
  322. ['WVINE'] = 'West Vinewood',
  323. ['ZANCUDO'] = 'Zancudo River',
  324. ['ZP_ORT'] = 'Port of South Los Santos',
  325. ['ZQ_UAR'] = 'Davis Quartz'
  326. };
  327.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement