Get the playtime for your players!
See how long they have been playing on your server!
Download:
Requirements
- FiveM FXServer
- Discord sever to use the bot (Optional)
Main Features
- Saves the playtime of every player
- External accessible info you can use on your website! (SERVER_IP:PORT/Prefech_playTime/info)
- Export function to get the total play time and current session time in any resource you need it.
- Export will return a table with the values in seconds.
exports.Prefech_PlayTime:getPlayTime(PLAYER_ID)
- Want to give players access to certain things after being x amount of time online. You can simply check with the export if you have played long enough!
Commands
/getPlayTime [PlayerID]
- The
PlayerID
is optional.
Download & Installation
- Download the files
- Put the Prefech_PlayTime folder in the server resource directory
- Add this to your
server.cfg
ensure Prefech_PlayTime
Optional Discord Bot
Installation:
- Install Prefech_playTime on your FiveM Server.
- Invite the bot.
- run the
/setup
command.- Fill out the info in the popup.
- Enjoy the new
/playtime
and/leaderboard
commands!Invite the bot here