[Free] TGB-PLAYTIME | Check your playtime

SCRIPT DESCRIPTION

It allows players to check their playtime in the server based on txAdmin.

THE IDEA - FORUM POSTS REGARDING THE ISSUES

1
2
3

Requirements

Build

Recommended Latest Fivem Build
Recommended Latest Version of txadmin

Install

copy the tgb_playtime folder in resources of the server.
start the resource in server.cfg.
IMPORTANT: Please make sure that you have txadmin.

To Do

in server.lua,replace the txdata path according to you and your server profile if set.

local playerData = ReadFile(“/txData/default/data/playersDB.json”)

Change it to yours. /txData/default/data/playersDB.json

Usage

/playtime

Releases

Releases

Download

Github

4 Likes

Much simpler than my version, i went through the hassle of DB queries, i didn’t even think of reading the time from TxAdmin, but i guess this is where we learn, from others lol, GG

1 Like

thats why this was made.i saw others but this hits different

This is great for standalone servers, I was looking for a system like this [standalone] to build on, ended up building my own with json to store player data, though mine was for a different purpose (logging LEO hours per month per user)

1 Like

thanks <3
oh i see

W Script! Helped setup, Great Dev!

2 Likes

Could I get help with this, I get “Error: Unable to read playersDB.json”. I’ve set it up right but it doesn’t work. Please help.

change location according to your preferences
/txData/default/data/playersDB.json

I did set it to where it’s located its that file path, and it doesn’t work.

pm me on forum page