Advertisement
Guest User

Untitled

a guest
Mar 14th, 2023
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.96 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.ServerName       = "Eter"
  4. Config.ServerNameColor  = "nity"
  5.  
  6. --Refreshes hud every 50 ticks
  7. Config.HudRefreshTime   = 50
  8.  
  9. --Refreshes Money every 1,5 seconds
  10. Config.MoneyRefreshTime = 1500
  11.  
  12. --Refreshes Job every 1,5 seconds
  13. Config.JobRefreshTime = 1500
  14.  
  15. --Formation Language for the date formating in the top right corner
  16. --https://pastebin.com/j1R4DwJF
  17. Config.DateFormation    = "de-DE"
  18.  
  19. --Possible: km/h, mp/h
  20. Config.SpeedFormation   = "km/h"
  21.  
  22. --The fuel level in percent when the color changes to red
  23. Config.FuelEmptyColorChange = 15
  24.  
  25. Config.VehicleHud = true
  26.  
  27. -----------------------------------------------------------------------------------------
  28.  
  29. Config.CruiseControl = false
  30. --https://pastebin.com/bswRxWaW
  31. Config.CruiseKey = "CAPS"
  32.  
  33. --https://docs.fivem.net/natives/?_0x29439776AAA00A62
  34. Config.BlackListVehicleClass = {
  35.     14, --Boats
  36.     15, --Helicopters
  37. }
  38.  
  39. -----------------------------------------------------------------------------------------
  40.  
  41. --Deactivate or activate the food and water bars
  42. Config.StatusBars       = true
  43. --Round the food and water percents
  44. Config.RoundStatus      = true
  45.  
  46. -----------------------------------------------------------------------------------------
  47.  
  48. --You can play a notification sound if you want
  49. Config.onNotification = function()
  50.     --Please notice that you need to install https://forum.cfx.re/t/release-play-custom-sounds-for-interactions/8282 to use this event!
  51.  
  52.     --TriggerEvent('LIFE_CL:Sound:PlayOnOne', 'notification', 1)
  53. end
  54.  
  55. Config.onAnnounce = function()
  56.     --TriggerEvent('LIFE_CL:Sound:PlayOnOne', 'notification', 1)
  57. end
  58.  
  59. --Hacker protection
  60. Config.UseAnnounceGroups = true
  61. Config.AnnounceGroups = {
  62.     "admin",
  63. }
  64.  
  65. -----------------------------------------------------------------------------------------
  66.  
  67. --Allows you to hide the vehicle menu for any vehicle
  68. Config.HideVehicleHud = {
  69.     "BMX",
  70.     "CRUISER",
  71.     "FIXTER",
  72.     "SCORCHER",
  73.     "TRIBIKE",
  74.     "TRIBIKE2",
  75.     "TRIBIKE3"
  76. }
  77.  
  78. --You can either use "ingame", "saltychat", "pmaVoice"
  79. Config.Voice = "ingame"
  80. --KEEP IN MIND THAT "Config.VoiceLevels" MUST BE THE SAME LIKE IN THE SALTYCHAT CONFIG!!! (if using saltychat)
  81.  
  82. Config.onVoiceLevelChange = function(voicelevel)
  83.     TriggerEvent('hud:sendNotification', "Voice Level wurde auf <span style='color: rgb(69, 255, 141)'>" .. voicelevel .. "</span>m gesetzt", 3000)
  84. end
  85.  
  86. -----------------------------------------------------------------------------------------
  87.  
  88. --Note: THIS IS ONLY FOR INGAME ↓↓↓↓↓↓
  89.  
  90. --Your voice level on join will be set to this level!
  91. --Voice Level MUST be in the Config.VoiceLevels list!
  92. Config.DefaultVoiceLevel = 2.0
  93.  
  94. --https://pastebin.com/bswRxWaW
  95. Config.ChangeLevelKey = "G"
  96.  
  97. Config.VoiceLevels = {
  98.     2.0,
  99.     6.0,
  100.     12.0,
  101.     32.0,
  102. }
  103.  
  104. -----------------------------------------------------------------------------------------
  105.  
  106. --https://pastebin.com/bswRxWaW
  107. Config.QuestionAcceptKey = "Y"
  108. Config.QuestionDenyKey   = "N"
  109.  
  110. --Wille close the question ui after 15 seconds if not answered
  111. Config.QuestionCloseTimeout = 15000
  112.  
  113. Config.onQuestionAsk = function(target, title, desc)
  114.     TriggerEvent('hud:sendNotification', "Du hast " .. GetPlayerName(target) ..  " eine Frage gestellt!", 3000)
  115. end
  116.  
  117. --Here you can simply do anything you want when someone received a question
  118. Config.onQuestionReceived = function(title, desc)
  119.     --TriggerEvent('InteractSound_CL:PlayOnOne', 'notification', 1)
  120. end
  121.  
  122. --Here you can do whatever you want with the question callbacks
  123. Config.onQuestionAccept = function(qplayer)
  124.     --You can send for example "qplayer" a notification that the player
  125.     --he had asked for, answered with "yes"
  126.  
  127.     TriggerServerEvent("hud:sendNotification", GetPlayerServerId(qplayer), "The player you have asked, answered with YES", 3000)
  128.     print("ACCEPT")
  129. end
  130.  
  131. Config.onQuestionDeny = function(qplayer)
  132.     TriggerServerEvent("hud:sendNotification", GetPlayerServerId(qplayer), "The player you have asked, answered with NO", 3000)
  133.     print("DENY")
  134. end
  135.  
  136. -----------------------------------------------------------------------------------------
  137.  
  138. Config.RestrictedZones = true
  139.  
  140. --Here you can change the notification event to your notication system if you want to
  141. Config.restrictedZonesNotification = function(text)
  142.     SendNUIMessage({
  143.         type = "announce",
  144.         msg = text,
  145.         duration = 5000
  146.     })
  147. end
  148.  
  149. Config.RZones = {
  150.  
  151.     Police = {
  152.  
  153.         --https://docs.fivem.net/docs/game-references/blips/
  154.         Blip = {
  155.             Sprite  = 161,
  156.             Scale   = 1.5,
  157.             Colour  = 3,
  158.             Name    = "LSPD: Sperrzone",
  159.  
  160.             Radius  = 150.0,
  161.         },
  162.  
  163.         Command           = "sperrzonelspd",
  164.         RemoveCommand     = "removesperrzonelspd",
  165.  
  166.         --You can either use [location] for the location or [streetname] for the current streetname
  167.         Text        = "An <span style='color: rgb(69, 255, 141)'>[location]</span> wurde eine Sperrzone errichtet bis zu 150m, betreten verboten!!",
  168.         RemoveText  = "Die Sperrzone an <span style='color: rgb(69, 255, 141)'>[location]</span> wurde aufgelöst!",
  169.  
  170.         Job         = "police",
  171.         --Important to use job grade NAME and not job grade LABEL! (https://imgur.com/a/uaBk1Od)
  172.         JobGrades   = {
  173.             "lieutenant",
  174.             "boss",
  175.             "sergeant",
  176.         },
  177.  
  178.     },
  179.  
  180.     FIB = {
  181.  
  182.         --https://docs.fivem.net/docs/game-references/blips/
  183.         Blip = {
  184.             Sprite  = 161,
  185.             Scale   = 1.5,
  186.             Colour  = 3,
  187.             Name    = "FIB: Sperrzone",
  188.  
  189.             Radius  = 150.0,
  190.         },
  191.  
  192.         Command           = "sperrzonefib",
  193.         RemoveCommand     = "removesperrzonefib",
  194.  
  195.         --You can either use [location] for the location or [streetname] for the current streetname
  196.         Text        = "An <span style='color: rgb(69, 255, 141)'>[location]</span> wurde eine Sperrzone errichtet bis zu 150m, betreten verboten!!",
  197.         RemoveText  = "Die Sperrzone an <span style='color: rgb(69, 255, 141)'>[location]</span> wurde aufgelöst!",
  198.  
  199.         Job         = "fib",
  200.         --Important to use job grade NAME and not job grade LABEL! (https://imgur.com/a/uaBk1Od)
  201.         JobGrades   = {
  202.             "lieutenant",
  203.             "boss",
  204.             "sergeant",
  205.         },
  206.  
  207.     },
  208. }
  209.  
  210. -----------------------------------------------------------------------------------------
  211.  
  212. --You can easily change the keys on the left side
  213. --https://fontawesome.com/search?s=solid
  214.  
  215. Config.ShowKeys = true
  216.  
  217. --If more than 3 notification are showing then the keys will be hidden
  218. Config.NotiCountToCloseKeys = 3
  219.  
  220. Config.Keys = {
  221.     Key1 = {
  222.         Key = "F1",
  223.         Icon = "phone",
  224.     },
  225.     Key2 = {
  226.         Key = "F2",
  227.         Icon = "backpack",
  228.     },
  229.     Key3 = {
  230.         Key = "^",
  231.         Icon = "microphone",
  232.     },
  233.     Key4 = {
  234.         Key = "Y",
  235.         Icon = "shirt",
  236.     },
  237.     Key5 = {
  238.         Key = "L",
  239.         Icon = "key",
  240.     },
  241. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement