Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.ServerName = "Eter"
- Config.ServerNameColor = "nity"
- --Refreshes hud every 50 ticks
- Config.HudRefreshTime = 50
- --Refreshes Money every 1,5 seconds
- Config.MoneyRefreshTime = 1500
- --Refreshes Job every 1,5 seconds
- Config.JobRefreshTime = 1500
- --Formation Language for the date formating in the top right corner
- --https://pastebin.com/j1R4DwJF
- Config.DateFormation = "de-DE"
- --Possible: km/h, mp/h
- Config.SpeedFormation = "km/h"
- --The fuel level in percent when the color changes to red
- Config.FuelEmptyColorChange = 15
- Config.VehicleHud = true
- -----------------------------------------------------------------------------------------
- Config.CruiseControl = false
- --https://pastebin.com/bswRxWaW
- Config.CruiseKey = "CAPS"
- --https://docs.fivem.net/natives/?_0x29439776AAA00A62
- Config.BlackListVehicleClass = {
- 14, --Boats
- 15, --Helicopters
- }
- -----------------------------------------------------------------------------------------
- --Deactivate or activate the food and water bars
- Config.StatusBars = true
- --Round the food and water percents
- Config.RoundStatus = true
- -----------------------------------------------------------------------------------------
- --You can play a notification sound if you want
- Config.onNotification = function()
- --Please notice that you need to install https://forum.cfx.re/t/release-play-custom-sounds-for-interactions/8282 to use this event!
- --TriggerEvent('LIFE_CL:Sound:PlayOnOne', 'notification', 1)
- end
- Config.onAnnounce = function()
- --TriggerEvent('LIFE_CL:Sound:PlayOnOne', 'notification', 1)
- end
- --Hacker protection
- Config.UseAnnounceGroups = true
- Config.AnnounceGroups = {
- "admin",
- }
- -----------------------------------------------------------------------------------------
- --Allows you to hide the vehicle menu for any vehicle
- Config.HideVehicleHud = {
- "BMX",
- "CRUISER",
- "FIXTER",
- "SCORCHER",
- "TRIBIKE",
- "TRIBIKE2",
- "TRIBIKE3"
- }
- --You can either use "ingame", "saltychat", "pmaVoice"
- Config.Voice = "ingame"
- --KEEP IN MIND THAT "Config.VoiceLevels" MUST BE THE SAME LIKE IN THE SALTYCHAT CONFIG!!! (if using saltychat)
- Config.onVoiceLevelChange = function(voicelevel)
- TriggerEvent('hud:sendNotification', "Voice Level wurde auf <span style='color: rgb(69, 255, 141)'>" .. voicelevel .. "</span>m gesetzt", 3000)
- end
- -----------------------------------------------------------------------------------------
- --Note: THIS IS ONLY FOR INGAME ↓↓↓↓↓↓
- --Your voice level on join will be set to this level!
- --Voice Level MUST be in the Config.VoiceLevels list!
- Config.DefaultVoiceLevel = 2.0
- --https://pastebin.com/bswRxWaW
- Config.ChangeLevelKey = "G"
- Config.VoiceLevels = {
- 2.0,
- 6.0,
- 12.0,
- 32.0,
- }
- -----------------------------------------------------------------------------------------
- --https://pastebin.com/bswRxWaW
- Config.QuestionAcceptKey = "Y"
- Config.QuestionDenyKey = "N"
- --Wille close the question ui after 15 seconds if not answered
- Config.QuestionCloseTimeout = 15000
- Config.onQuestionAsk = function(target, title, desc)
- TriggerEvent('hud:sendNotification', "Du hast " .. GetPlayerName(target) .. " eine Frage gestellt!", 3000)
- end
- --Here you can simply do anything you want when someone received a question
- Config.onQuestionReceived = function(title, desc)
- --TriggerEvent('InteractSound_CL:PlayOnOne', 'notification', 1)
- end
- --Here you can do whatever you want with the question callbacks
- Config.onQuestionAccept = function(qplayer)
- --You can send for example "qplayer" a notification that the player
- --he had asked for, answered with "yes"
- TriggerServerEvent("hud:sendNotification", GetPlayerServerId(qplayer), "The player you have asked, answered with YES", 3000)
- print("ACCEPT")
- end
- Config.onQuestionDeny = function(qplayer)
- TriggerServerEvent("hud:sendNotification", GetPlayerServerId(qplayer), "The player you have asked, answered with NO", 3000)
- print("DENY")
- end
- -----------------------------------------------------------------------------------------
- Config.RestrictedZones = true
- --Here you can change the notification event to your notication system if you want to
- Config.restrictedZonesNotification = function(text)
- SendNUIMessage({
- type = "announce",
- msg = text,
- duration = 5000
- })
- end
- Config.RZones = {
- Police = {
- --https://docs.fivem.net/docs/game-references/blips/
- Blip = {
- Sprite = 161,
- Scale = 1.5,
- Colour = 3,
- Name = "LSPD: Sperrzone",
- Radius = 150.0,
- },
- Command = "sperrzonelspd",
- RemoveCommand = "removesperrzonelspd",
- --You can either use [location] for the location or [streetname] for the current streetname
- Text = "An <span style='color: rgb(69, 255, 141)'>[location]</span> wurde eine Sperrzone errichtet bis zu 150m, betreten verboten!!",
- RemoveText = "Die Sperrzone an <span style='color: rgb(69, 255, 141)'>[location]</span> wurde aufgelöst!",
- Job = "police",
- --Important to use job grade NAME and not job grade LABEL! (https://imgur.com/a/uaBk1Od)
- JobGrades = {
- "lieutenant",
- "boss",
- "sergeant",
- },
- },
- FIB = {
- --https://docs.fivem.net/docs/game-references/blips/
- Blip = {
- Sprite = 161,
- Scale = 1.5,
- Colour = 3,
- Name = "FIB: Sperrzone",
- Radius = 150.0,
- },
- Command = "sperrzonefib",
- RemoveCommand = "removesperrzonefib",
- --You can either use [location] for the location or [streetname] for the current streetname
- Text = "An <span style='color: rgb(69, 255, 141)'>[location]</span> wurde eine Sperrzone errichtet bis zu 150m, betreten verboten!!",
- RemoveText = "Die Sperrzone an <span style='color: rgb(69, 255, 141)'>[location]</span> wurde aufgelöst!",
- Job = "fib",
- --Important to use job grade NAME and not job grade LABEL! (https://imgur.com/a/uaBk1Od)
- JobGrades = {
- "lieutenant",
- "boss",
- "sergeant",
- },
- },
- }
- -----------------------------------------------------------------------------------------
- --You can easily change the keys on the left side
- --https://fontawesome.com/search?s=solid
- Config.ShowKeys = true
- --If more than 3 notification are showing then the keys will be hidden
- Config.NotiCountToCloseKeys = 3
- Config.Keys = {
- Key1 = {
- Key = "F1",
- Icon = "phone",
- },
- Key2 = {
- Key = "F2",
- Icon = "backpack",
- },
- Key3 = {
- Key = "^",
- Icon = "microphone",
- },
- Key4 = {
- Key = "Y",
- Icon = "shirt",
- },
- Key5 = {
- Key = "L",
- Icon = "key",
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement