Prefech_playTime

PlayTime

Get the playtime for your players!
See how long they have been playing on your server!

:arrow_down: Download:

:page_with_curl: Requirements

  • FiveM FXServer
  • Discord sever to use the bot (Optional)

:white_check_mark: 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!

:speech_balloon: Commands

  • /getPlayTime [PlayerID]
    • The PlayerID is optional.

:wrench: Download & Installation

  1. Download the files
  2. Put the Prefech_PlayTime folder in the server resource directory
  3. Add this to your server.cfg
ensure Prefech_PlayTime

:robot: Optional Discord Bot


Installation:

  1. Install Prefech_playTime on your FiveM Server.
  2. Invite the bot.
  3. run the /setup command.
  4. Fill out the info in the popup.
  5. Enjoy the new /playtime and /leaderboard commands!

:robot: Invite the bot here

9 Likes

This is nice

1 Like

Another Great Release by a great Development community.

2 Likes

yesss

2 Likes

awesome release man :smiley:

3 Likes

deleted

https://docs.prefech.com/#/Prefech_playTime?id=export

V1.0.2

  • Updated to use SQL database.

28 Jul 2022

Added:

  • Discord Bot

:robot: Optional Discord Bot


Installation:

  1. Install Prefech_playTime on your FiveM Server.
  2. Invite the bot.
  3. run the /setup command.
  4. Fill out the info in the popup.
  5. Enjoy the new /playtime and /leaderboard commands!

:robot: Invite the bot here