NPC Pro – talking, remembering street NPCs with trust, gossip and errands NPC PRO - talk to ANY ped. They remember, they gossip, they snitch. €29.99 See NPC PRO
Important

Installation

Touch Grass – playtime rewards, levels and level gates installation

v1.0.6 Updated 1 min read
On this page
  1. Important
  1. Put the ncore_touchgrass folder into resources/[ncore] (create the [ncore] folder if you do not have one yet).

  2. Optional: import sql/install.sql. The table is also created automatically on the first start.

  3. Add these lines to server.cfg, after your framework and inventory:

    Code
    ensure oxmysql
    ensure ncore_touchgrass
    add_ace group.admin ncore_touchgrass.admin allow
  4. Optional: for logs, add your webhook URL with set ncore_touchgrass:webhook "https://...". /levelsadmin discord posts a test message.

  5. Rename the gift items in config_server.lua to items your inventory has.

  6. Restart the server and type /levels in game (or press PAGE UP).

Important#

  • Required: oxmysql, and an FXServer artifact that has the GetPlayerTimeOnline server native.
  • Detected automatically: ESX, QBCore, QBox, ncore_inventory, ox_inventory, qb-inventory, ncore_hud and ox_lib.
  • Debug: Config.debug = true in config.lua adds detail to the console. You can also turn it on from server.cfg with setr 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.lua and locales/ files and copy every other file over the old ones. CHANGELOG.md lists new settings per version.
  • Do not rename the ncore_touchgrass folder: other nCore resources look for it by this name.