Advertisement
SMmest3r

Mest3r New Player Mode Config 3.3

Oct 28th, 2023
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.58 KB | Source Code | 0 0
  1. Config = {}
  2.  
  3. --Opciók: legacy; oldesx; qbcore; none (Ha none-t választod akkor a CreateItems funkció nem lesz elérhető)
  4. Config.Framework = "none" --Options: esx; oldesx; qbcore; none (If you choose none then CreateItems will be disabled)
  5.  
  6. Config.Language = "EN" --Options: EN; HU; DE
  7.  
  8. --Ezzel csak akkor kell foglalkzoni ha régi esx-et használsz
  9. Config.ESXtrigger = "esx:getSharedObject" --You only need to care about the trigger if you have have old esx
  10.  
  11. --Az sql tábla neve ahova a játékosok mentve vannak.
  12. Config.UsersTable = "users" --SQL table where the player's are saved.
  13.  
  14. Config.UserIdentifierType = "license" --The identifier type that you want to use to identify the player. (license, steam, xbl, live, discord, fivem, ip)
  15.  
  16. --Állítsd falre-ra ha nem szeretnéd, hogy a reource ellenőrizze, hogy van-e új verzió
  17. Config.VersionCheck = true --Set to false if you don't want to check for updates
  18.  
  19. --Ide add meg, hogy meddig legyen új játékos módban a játékos (perc)
  20. Config.NewPlayerUntil = 60 --Set how long the player should be in new player mode (minutes)
  21.  
  22. --Állítsd át false-ra ha nem szeretnél értesítéseket arról, hogy mennyi idő van hátra
  23. Config.EnableNotifications = false --Set to false if you don't want notifications about how much time is left
  24.  
  25. --Állítsd át false-ra ha nem szeretnéd, hogy legyen visszaszámláló a játékosok kijelzőjén mikor új játékos módban vannak
  26. Config.EnableCountdownUI = true --Set to false if you don't want to have a countdown UI on players screen when they are in new player mode
  27.  
  28. --Állítsd át false-ra ha nem szeretnéd, hogy a script itemeketet hozzon létre
  29. Config.CreateItems = false --Set it to false if you don't want to create script create usable items
  30.  
  31. --Itt add meg az itemek neveit (Ha a Config.CreateItem false-ra van állítva akkor nem kell ezzel foglalkoznod.)
  32. Config.Items = { --Set the items name here (If you have Config.CreateItem on false then you don't have to do anything with this.)
  33.     "onehouritem",
  34.     "twohoursitem",
  35.     "threehoursitem"
  36. }
  37.  
  38. --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.]
  39. 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.]
  40.     onehouritem = { Time = 60 },
  41.     twohoursitem = { Time = 120 },
  42.     threehoursitem = { Time = 180 },
  43. }
  44.  
  45. --Itt add meg, hogy milyen paranccsal lehessen új elvenni egy adott játékostól. Használata: /removenewmode [ID]
  46. Config.RemoveNewPlayerModeCommand = "removenewmode" --Set the command here to remove new player mode from a player. Usage: /removenewmode [ID]
  47.  
  48. --Itt add meg, hogy milyen admin csoportok tudják használni a fentebb megadott parancsot.
  49. Config.AdminGroups = { --Set the admin groups here. The players in these groups can use the command above.
  50.     "admin"
  51. }
  52.  
  53. --Értesítési beálíltások:
  54. --Notification settings:
  55.  
  56. RegisterNetEvent("mester_newplayernotify")
  57. AddEventHandler("mester_newplayernotify", function(type, msg)
  58.     --Alapértelmezett, egyedülálló értesítés
  59.     --STANDALONE NOTIFICATION
  60.     BeginTextCommandThefeedPost("STRING")
  61.     AddTextComponentSubstringPlayerName(msg)
  62.     EndTextCommandThefeedPostTicker(true, true)
  63. --TÖRÖLD KI, HA EGY MÁSIK TÍPUSÚ ÉRTESÍTÉST SZERETNÉL HASZNÁLNI
  64. --DELETE THIS IF YOU WANT TO USE AN ANOTHER TYPE OF NOTIFICATION
  65.  
  66. -----------------------------------------PÉLDÁK-----------------------------------------------
  67. -----------------------------------------EXAMPLES---------------------------------------------
  68. --exports['okokNotify']:Alert("New Player Mode", msg, 3000, type) --okok notify (PAID resource)
  69. --TriggerEvent("mosh_UI:Open", type, msg, "right", true) --Mosh UI / Notify (PAID resource)
  70. --exports['mythic_notify']:DoHudText(type, msg) --Mythic Notify (Free resource)
  71. --exports["skeexsNotify"]:TriggerNotification({ ['type'] = type, ['message'] = msg }) --skeexsNotify (Free resource)
  72. --TriggerEvent('QBCore:Notify', msg, type) --Default QBCore notifcation (Free resource - QB-Core)
  73. --TriggerEvent('esx:showNotification', msg) --Default ESX notification (Free resource -ESX)
  74. ----------------------------------------------------------------------------------------------
  75. end)
  76.  
  77. --Ne töröld ezt a funkciót
  78. function NewModeStarted() --Do not delete this function
  79.     --IDE ADD MEG, HOGY MIT SZERETNÉL CSINÁLNI MIKOR ELINDULT AZ ÚJ JÁTÉKOS MÓD (Nem kötelező)
  80.     --ADD HERE WHAT YOU WANT TO DO WHEN THE NEW PLAYER MODE STARTED (Not required)
  81. end
  82.  
  83. --Ne töröld ezt a funkciót
  84. function NewModeEnded() --Do not delete this function
  85.     --IDE ADD MEG, HOGY MIT SZERETNÉL CSINÁLNI MIKOR LEJÁRT AZ ÚJ JÁTÉKOS MÓD (Nem kötelező)
  86.     --ADD HERE WHAT YOU WANT TO DO WHEN THE NEW PLAYER MODE ENDED (Not required)
  87. end
  88.  
  89. --Értesítés típúsa:
  90. --Notification type:
  91. Config.NotificationType = "WARNING"
  92.  
  93. --Fordítások:
  94. Config.Translations = { --Translations
  95.     ["EN"] = {
  96.         NewPlayerUntil = "New player mode expires after: %s minutes",
  97.         NewPlayerUntilUI = "New mode expires:",
  98.     },
  99.  
  100.     ["HU"] = {
  101.         NewPlayerUntil = "Új játékos mód lejár: %s perc múlva",
  102.         NewPlayerUntilUI = "Új játékos mód lejár:",
  103.     },
  104.  
  105.     ["DE"] = {
  106.         NewPlayerUntil = "Neuer Spielermodus läuft ab: %s Minuten",
  107.         NewPlayerUntilUI = "Neuer modus läuft ab:",
  108.     },
  109. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement