-
Put the
ncore_touchgrassfolder intoresources/[ncore](create the[ncore]folder if you do not have one yet). -
Optional: import
sql/install.sql. The table is also created automatically on the first start. -
Add these lines to
server.cfg, after your framework and inventory:Codeensure oxmysql ensure ncore_touchgrass add_ace group.admin ncore_touchgrass.admin allow -
Optional: for logs, add your webhook URL with
set ncore_touchgrass:webhook "https://..."./levelsadmin discordposts a test message. -
Rename the gift items in
config_server.luato items your inventory has. -
Restart the server and type
/levelsin game (or press PAGE UP).
Important#
- Required:
oxmysql, and an FXServer artifact that has theGetPlayerTimeOnlineserver native. - Detected automatically: ESX, QBCore, QBox,
ncore_inventory,ox_inventory,qb-inventory,ncore_hudandox_lib. - Debug:
Config.debug = trueinconfig.luaadds detail to the console. You can also turn it on fromserver.cfgwithsetr ncore_touchgrass:debug true. The convar wins over the config value. - Admin replies use the standard chat events, so any chat resource that handles them works, such as
ncore_chat. - Updating: keep your own
config.lua,config_server.luaandlocales/files and copy every other file over the old ones.CHANGELOG.mdlists new settings per version. - Do not rename the
ncore_touchgrassfolder: other nCore resources look for it by this name.
