SMmest3r

Mest3r New Player Mode 2.0 Config File

Dec 12th, 2022
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.00 KB | Source Code | 0 0
  1. Config = {}
  2.  
  3. --Itt lehet beállítani a mentési időt az új játékosoknak. Alapértelmezetten 300 másodpercenként azaz 5 percenként van mentés. (NEM LEHET 0!!!)
  4. Config.SaveTime = 300 --Set the seconds for saving new player time. For default it's 300 second so player time get saved every 5 min. (NEVER USE 0!!!)
  5.  
  6. --Opciók: legacy; oldesx; qbcore
  7. Config.Framework = "legacy" --Options: legacy; oldesx; qbcore
  8.  
  9. --Ezzel csak akkor kell foglalkzoni ha régi esx-et használsz
  10. Config.ESXtrigger = "esx:getSharedObject" --You only need to care about the trigger if you have have old esx
  11.  
  12. --Mentés számláló. Ha egy új játékos 12 alkalommal lesz elmentve akkor lejár az új játékos mód. Tehát alapértelmezetten most 12 * 300 másodperc azaz 60 percig tart az új játékos mód.
  13. Config.SaveCount = 12 --Save counter. If a new player is saved 12 times the new player mode expires. So by default, the new player mode now lasts for 12 * 300 seconds, i.e. 60 minutes.
  14.  
  15. --Állítsd át false-ra ha nem szeretnél értesítéseket arról, hogy mennyi idő van hátra
  16. Config.EnableNotifications = true --Set to false if you don't want notifications about how much time is left
  17.  
  18. --Állítsd át false-ra ha nem szeretnéd, hogy legyen felirat a játékosok kijelzőjén mikor új játékos módban vannak
  19. Config.EnableScreenText = true --Set to false if you don't want to have a text on players screen when they are in new player mode
  20.  
  21. --Állítsd át false-ra ha nem szeretnéd, hogy a script itemeketet hozzon létre
  22. Config.CreateItems = true --Set it to false if you don't want to create script create usable items
  23.  
  24. --Itt add meg az itemek neveit (Ha a Config.CreateItem false-ra van állítva akkor nem kell ezzel foglalkoznod.)
  25. Config.Items = { --Set the items name here (If you have Config.CreateItem on false then you don't have to do anything with this.)
  26.     "onehouritem",
  27.     "twohoursitem",
  28.     "threehoursitem"
  29. }
  30.  
  31. --Itt add meg, hogy az itemeknek mennyi ideig legyen hatásuk (A SaveCount itt is ugyan azt jelenti, mint fentebb a Config.SaveCount) [Ha a Config.CreateItem false-ra van állítva akkor nem kell ezzel foglalkoznod.]
  32. Config.ItemSaveCount = { --Specify here how long the items should have an effect (SaveCount here also means the same as Config.SaveCount above) [If you have Config.CreateItem on false then you don't have to do anything with this.]
  33.     onehouritem = { SaveCount = -12 },
  34.     twohoursitem = { SaveCount = -24 },
  35.     threehoursitem = { SaveCount = -48 },
  36. }
  37.  
  38. --Értesítési beálíltások:
  39. --Notification settings:
  40.  
  41. RegisterNetEvent("mester_newplayernotify")
  42. AddEventHandler("mester_newplayernotify", function(type, msg)
  43.     --Itt tudod beállítani az értesítést
  44.     --You can customize the notification here
  45. --Example: TriggerEvent('YourNotificationSystemTrigger', type, msg)
  46.  
  47. --exports['okokNotify']:Alert("New Player Mode", msg, 5000, type) --okok notify (PAID resource)
  48. --TriggerEvent("mosh_UI:Open", type, msg, "right", true) --Mosh UI / Notify (PAID resource)
  49. --exports['mythic_notify']:DoHudText(type, msg) --Mythic Notify (Free resource)
  50. --exports["skeexsNotify"]:TriggerNotification({ ['type'] = type, ['message'] = msg }) --skeexsNotify (Free resource)
  51. --TriggerEvent('QBCore:Notify', msg, type) --Default QBCore notifcation (Free resource)
  52. TriggerEvent('esx:showNotification', msg) --Default ESX notification (Free resource)
  53. end)
  54.  
  55. --Értesítés típúsa:
  56. --Notification type:
  57. Config.NotificationType = "WARNING"
  58.  
  59. --Nyelv beállítások:
  60. --Locales:
  61.  
  62. --EN:
  63. Config.NewPlayerUntil = "New player mode expires after: "
  64. Config.Seconds = " seconds"
  65. Config.YouAreInNewPlayerMode = "You are in new player mode"
  66.  
  67. --HU:
  68. --[[
  69. Config.NewPlayerUntil = "Új játékos vagy még ennyi ideig: "
  70. Config.Seconds = " másodpercig"
  71. Config.YouAreInNewPlayerMode = "ÚJ JÁTÉKOS MÓDBAN VAGY"
  72. ]]
  73.  
  74. --DE:
  75. --[[
  76. Config.NewPlayerUntil = "Der Modus für neue Spieler läuft ab in: "
  77. Config.Seconds = " sekunden"
  78. Config.YouAreInNewPlayerMode = "Sie sind im Modus für neue Spieler"
  79. ]]
  80.  
Advertisement
Add Comment
Please, Sign In to add comment