Overview
About Touch Grass
Playtime levels, hourly gifts and level gates for FiveM, with a sunset-themed panel and webhook logs.
- Playtime read from the server's own online timer
- A gift after every played hour, paid on the spot
- Default ladder: level 8 at 64 hours, fully editable
- Level gates that your other resources can ask about
- Runs on ESX, QBCore, QBox or standalone
A player stays on your server for an hour and a small sunset banner comes up with their gift, $250 and a water by default. The gift is paid on the spot, so there is nothing to claim. By default they go up a level every eight hours, and a bigger synthwave banner plays across the top of the screen with the new rank.
Time is read on the server, from its own online timer. Each check only adds the new time, so a resource restart doesn't count anything twice. The client checks movement, camera and voice chat, and after 10 idle minutes by default (Config.afk.minutes) a player stops earning time until they move again. Playtime is saved per license by default, so all characters on one account share a level.
Levels and gifts#
The default ladder goes up to level 8 at 64 hours. You can change the hours or add rows. Rank names like Newcomer, Regular and Icon are in the language files.
Milestone hours pay more, for example $5,000 in the bank at hour 8. One gift can mix money, items, a server event and a console command, so you can hand out a vehicle or VIP from another script. If the inventory is full, the gift waits and is tried again, even after a restart. The default items are water, burger, phone and lockpick, so rename them to items your inventory has.
Level gates#
Your other resources can ask with one line if a player has the level for something, like level 3 for buying a weapon. The gates are only names and levels, so each resource decides for itself what to do with the answer.
Panel and admin#
Players see their level, a live countdown, the next gift and the gates in a panel on /levels or PAGE UP. Admins use /levelsadmin, and its info, add, sethours, setlevel and reset also work on offline players. Level-ups, gifts and admin changes can be logged to a webhook.
Requirements#
- oxmysql
- An FXServer build with the
GetPlayerTimeOnlineserver native. Without it tracking does not start, and the console says why. - ESX, QBCore or QBox if you use one. Without a framework it runs standalone, and money gifts then need ncore_inventory.
- An inventory for item gifts. ncore_inventory, ox_inventory and qb-inventory are detected, otherwise the framework's own item functions are used.
English and Hungarian are included.
The Lua code is protected by Cfx.re escrow, and the config files, the language files and server/bridge.lua (the framework and inventory calls) stay open to edit. When you update, your config and language files stay as they are.
The full feature list is in README.md.
I reply to support requests within 72 hours. Refunds are handled by Tebex under their terms.
Not approved, sponsored or endorsed by Rockstar Games.
Features
What it does
Server-side playtime
Time comes from the server's own online timer, and each check only adds the new time, so a resource restart never counts time twice. Playtime is saved per license by default.
AFK detection
The client checks movement, turning, camera and voice chat. After the idle time (10 minutes by default) the player stops earning time until they are active again.
Levels and ranks
Played hours become levels with named ranks. Add or remove rows and change the hours in Config.levels, and rename the ranks in locales/*.lua.
Hourly and milestone gifts
A gift after every hour, plus bigger gifts on milestone hours. A gift can combine money, items, a server event and a console command.
Waiting gifts
A gift that can't be given yet, for example because the inventory is full, is saved as waiting and tried again. This survives a reconnect and a server restart.
Level gates
Three gates ship: buy_vehicle, buy_weapon and own_business. Your other resources ask with one line and decide what to do with the answer.
Sunset banners and panel
A synthwave level-up banner and a smaller gift banner. The /levels panel shows the level, a live countdown, the next gifts, the ladder and the gates.
Webhook logging
Level-ups, gifts and every admin change are posted as embeds. Keep the URL out of the config with the ncore_touchgrass:webhook convar.
What you get
Config open, core escrowed
Compatibility
Will it run on your server?
Frameworks
- ESXstable
- QBCorestable
- QBoxstable
- StandalonestableMoney gifts need ncore_inventory, and item gifts need an inventory resource.
Resources
- ncore_inventorydeep integrationPreferred, also works on standalone servers.
- ox_inventorydeep integration
- qb-inventorydeep integration
- ncore_huddeep integrationMessages go through it when it runs.
- ncore_npc_prodeep integrationUses bonus minutes to reward quests.
Docs
Read it before you buy
The same docs that ship with the script, updated with every release.
Playtime levels, hourly gifts and level gates for FiveM, with a sunset-themed panel and webhook logs.
nCore Development · intelnpc.com · Resource: ncore_touchgrass · Version: see fxmanifest.lua
What it is#
Touch Grass rewards the players who stay. It counts how long each player has really been on the server, using the server's own online timer, and stops counting while they're AFK. Played hours become levels with named ranks, every hour pays out a gift, and other resources can lock things behind a level.
It runs on ESX, QBCore, QBox or standalone. It needs oxmysql and a server artifact with the GetPlayerTimeOnline native. Everything else is optional.
-
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 allowIf a command gift calls a restricted command (
RegisterCommand(..., true), or a QBCore or ESX admin command), also addadd_ace resource.ncore_touchgrass command.<name> allowfor that command. -
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.
Updates don't install themselves. When a new version is out, download it again (escrow from your Cfx.re account, full source from Tebex), keep your own config.lua, config_server.lua and locales/ files, and copy every other file over the old ones. Settings added in a new version are listed under that version, so you can copy them into your config. New versions are announced on intelnpc.com.
1.0.8#
First public release. Everything the script does is listed in README.md.
From the same studio
More from nCore
FAQ
About Touch Grass
What do I need to run it?
oxmysql and an FXServer build that has the GetPlayerTimeOnline server native. Everything else is optional. Without the native, tracking does not start and the console says why.
Which frameworks does it support?
ESX, QBCore and QBox are detected automatically, and it runs standalone without one. You can force a choice with ServerConfig.framework.
Do all characters on an account share a level?
Yes by default. Playtime is stored per license, so on a multi-character server all characters share one level, and gifts go to the character that is loaded when the hour is reached.
A gift item never arrives. Why?
The console names the item. An item your inventory doesn't know is dropped, so rename the default items (water, burger, phone, lockpick) in config_server.lua.
What can I edit?
config.lua, config_server.lua, server/bridge.lua (the framework and inventory calls) and the locale files stay editable.
How do updates work?
Keep your own config.lua, config_server.lua and locales/ files and copy every other file over the old ones. The changelog lists new settings per version.
Is the code escrowed?
The core is, through Cfx asset escrow. Everything you normally tune stays open: config.lua, config_server.lua, framework and inventory bridge (server/bridge.lua), locale files and browser panel (html/).
Do I need a licence key? Does it phone home?
No key from us and nothing calls back to us - we run no licence server. Escrowed files are checked by Cfx itself: the Cfx account that owns your server key must hold the script, so buy with that account.
Which Cfx.re account should I buy with?
The Cfx.re account that owns your server's licence key. Escrowed scripts only start on servers whose key belongs to the account that bought them.
€9.99
Ready when you are
Instant delivery, checkout right here on the site, and a Discord full of people who will answer before you pay.


