PlayTime

Get the playtime to your gamers!
See how lengthy they’ve been taking part in in your server!

Requirements

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

  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



Looking for paid scripts? Click here