Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- --Opciók: legacy; oldesx; qbcore; none (Ha none-t választod akkor a CreateItems funkció nem lesz elérhető)
- Config.Framework = "none" --Options: esx; oldesx; qbcore; none (If you choose none then CreateItems will be disabled)
- Config.Language = "EN" --Options: EN; HU; DE
- --Ezzel csak akkor kell foglalkzoni ha régi esx-et használsz
- Config.ESXtrigger = "esx:getSharedObject" --You only need to care about the trigger if you have have old esx
- --Az sql tábla neve ahova a játékosok mentve vannak.
- Config.UsersTable = "users" --SQL table where the player's are saved.
- Config.UserIdentifierType = "license" --The identifier type that you want to use to identify the player. (license, steam, xbl, live, discord, fivem, ip)
- --Állítsd falre-ra ha nem szeretnéd, hogy a reource ellenőrizze, hogy van-e új verzió
- Config.VersionCheck = true --Set to false if you don't want to check for updates
- --Ide add meg, hogy meddig legyen új játékos módban a játékos (perc)
- Config.NewPlayerUntil = 60 --Set how long the player should be in new player mode (minutes)
- --Állítsd át false-ra ha nem szeretnél értesítéseket arról, hogy mennyi idő van hátra
- Config.EnableNotifications = false --Set to false if you don't want notifications about how much time is left
- --Á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
- 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
- --Állítsd át false-ra ha nem szeretnéd, hogy a script itemeketet hozzon létre
- Config.CreateItems = false --Set it to false if you don't want to create script create usable items
- --Itt add meg az itemek neveit (Ha a Config.CreateItem false-ra van állítva akkor nem kell ezzel foglalkoznod.)
- Config.Items = { --Set the items name here (If you have Config.CreateItem on false then you don't have to do anything with this.)
- "onehouritem",
- "twohoursitem",
- "threehoursitem"
- }
- --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.]
- 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.]
- onehouritem = { Time = 60 },
- twohoursitem = { Time = 120 },
- threehoursitem = { Time = 180 },
- }
- --Itt add meg, hogy milyen paranccsal lehessen új elvenni egy adott játékostól. Használata: /removenewmode [ID]
- Config.RemoveNewPlayerModeCommand = "removenewmode" --Set the command here to remove new player mode from a player. Usage: /removenewmode [ID]
- --Itt add meg, hogy milyen admin csoportok tudják használni a fentebb megadott parancsot.
- Config.AdminGroups = { --Set the admin groups here. The players in these groups can use the command above.
- "admin"
- }
- --Értesítési beálíltások:
- --Notification settings:
- RegisterNetEvent("mester_newplayernotify")
- AddEventHandler("mester_newplayernotify", function(type, msg)
- --Alapértelmezett, egyedülálló értesítés
- --STANDALONE NOTIFICATION
- BeginTextCommandThefeedPost("STRING")
- AddTextComponentSubstringPlayerName(msg)
- EndTextCommandThefeedPostTicker(true, true)
- --TÖRÖLD KI, HA EGY MÁSIK TÍPUSÚ ÉRTESÍTÉST SZERETNÉL HASZNÁLNI
- --DELETE THIS IF YOU WANT TO USE AN ANOTHER TYPE OF NOTIFICATION
- -----------------------------------------PÉLDÁK-----------------------------------------------
- -----------------------------------------EXAMPLES---------------------------------------------
- --exports['okokNotify']:Alert("New Player Mode", msg, 3000, type) --okok notify (PAID resource)
- --TriggerEvent("mosh_UI:Open", type, msg, "right", true) --Mosh UI / Notify (PAID resource)
- --exports['mythic_notify']:DoHudText(type, msg) --Mythic Notify (Free resource)
- --exports["skeexsNotify"]:TriggerNotification({ ['type'] = type, ['message'] = msg }) --skeexsNotify (Free resource)
- --TriggerEvent('QBCore:Notify', msg, type) --Default QBCore notifcation (Free resource - QB-Core)
- --TriggerEvent('esx:showNotification', msg) --Default ESX notification (Free resource -ESX)
- ----------------------------------------------------------------------------------------------
- end)
- --Ne töröld ezt a funkciót
- function NewModeStarted() --Do not delete this function
- --IDE ADD MEG, HOGY MIT SZERETNÉL CSINÁLNI MIKOR ELINDULT AZ ÚJ JÁTÉKOS MÓD (Nem kötelező)
- --ADD HERE WHAT YOU WANT TO DO WHEN THE NEW PLAYER MODE STARTED (Not required)
- end
- --Ne töröld ezt a funkciót
- function NewModeEnded() --Do not delete this function
- --IDE ADD MEG, HOGY MIT SZERETNÉL CSINÁLNI MIKOR LEJÁRT AZ ÚJ JÁTÉKOS MÓD (Nem kötelező)
- --ADD HERE WHAT YOU WANT TO DO WHEN THE NEW PLAYER MODE ENDED (Not required)
- end
- --Értesítés típúsa:
- --Notification type:
- Config.NotificationType = "WARNING"
- --Fordítások:
- Config.Translations = { --Translations
- ["EN"] = {
- NewPlayerUntil = "New player mode expires after: %s minutes",
- NewPlayerUntilUI = "New mode expires:",
- },
- ["HU"] = {
- NewPlayerUntil = "Új játékos mód lejár: %s perc múlva",
- NewPlayerUntilUI = "Új játékos mód lejár:",
- },
- ["DE"] = {
- NewPlayerUntil = "Neuer Spielermodus läuft ab: %s Minuten",
- NewPlayerUntilUI = "Neuer modus läuft ab:",
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement