> For the complete documentation index, see [llms.txt](https://docs.mest3rdevelopment.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mest3rdevelopment.com/new-player-mode/config-preview.md).

# Config preview

````lua
```lua
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

--Állítsd át true-ra ha szeretnéd, hogy a script kiírja a debug üzeneteket a konzolba.
Config.DebugMode = false --Set to true if you want to enable debug mode. This will print debug messages in the console.

--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.

--Ezzel tudod beállítani, hogy melyik azonosító típust használod a játékosok azonosítására. (license, steam, xbl, live, discord, fivem, ip)
Config.UserIdentifierType = "license" --The identifier type that you want to use to identify the player. (license, steam, xbl, live, discord, fivem, ip)

--Ezzel tudod beállítani, hogy melyik oszlopban van az azonosító a fentebb megadott táblában.
Config.UsersTableIdentifierColumn = "license" --The column name where the identifier is stored in the table above.

--Ezzel tudod beállítani, hogy használsz-e multichar rendszert. Ha igen, akkor true-ra állítsd.
Config.UsingMultiChar = false --Set to true if you are using a multi character system

--Ezzel tudod beállítani, hogy legyen-e levágva az azonosító elejéről az azonoító típusa.
Config.GsubIdentifier = true --Set to false if you don't want to use gsub to get the identifier from the string. So set it to false if you have idientifier like this: license:1234567890

--Á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)

--Itt add meg, hogy mennyire legyen átlátszó a játékos mikor új játékos módban van. (0-254)
Config.NewPlayerAlpha = 128 --Set the alpha of the player when he is in new player mode (0-254)

--Á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 ftrue-ra ha szeretnéd, hogy a játékosokat értesítse a script, ha lejárt az új játékos mód
Config.NewPlayerModeExpiredNotify = false --Set it to true if you want to notify the player when the new player mode is over

--Á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 player protection active",
        HoursUI = "Hours",
        MinutesUI = "Minutes",
        SecondsUI = "Seconds",
        NewPlayerModeExpired = "New player mode has expired!",
    },

    ["HU"] = {
        NewPlayerUntil = "Új játékos mód lejár: %s perc múlva",
        NewPlayerUntilUI = "Új játékos védelem aktív",
        HoursUI = "Óra",
        MinutesUI = "Perc",
        SecondsUI = "Másodperc",
        NewPlayerModeExpired = "Az új játékos mód lejárt!",
    },

    ["DE"] = {
        NewPlayerUntil = "Neuer Spielermodus läuft ab: %s Minuten",
        NewPlayerUntilUI = "Neuer Spielermodus aktiv",
        HoursUI = "Stunden",
        MinutesUI = "Minuten",
        SecondsUI = "Sekunden",
        NewPlayerModeExpired = "Der neue Spielermodus ist abgelaufen!",
    },
}
```
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mest3rdevelopment.com/new-player-mode/config-preview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
