[Preview]
Preview Link 
[Explanation]
Simple script that will count players play time on server via os.time function. Script is for esx/qb and it will automatically determine which one you use, also sql file will be automatically installed.
[Installation]
Drag and drop.
[Commands]
- /mytime - to show your play time on server
 
- /timelist - show leaderboard of all players sorted by highest to lowest
 
[Dependencies]
 PAID RESOURCES
Download (FREE)
Get this resource at GitHub
             
            
              
              
              5 Likes
            
           
          
            
            
              Is it all-time playtime or just current session?
             
            
              
              
              
            
           
          
            
            
              This resource looks great,  thank you for making this!
             
            
              
              
              1 Like
            
           
          
            
            
              You could have a look into the GetResourceKvp native function. This gives you the opportunity to store and fetch data without a database.
             
            
              
              
              3 Likes
            
           
          
            
            
              Il y a un bug de compteur avec 2482 game.
J’ai joué 6 heures et je suis rendu au niveau 13 . Le jeu n’a pas donner les pieces par minutes ainsi que pour les niveaux
Quelqu’un peu m’aider ou regler ça
Merci
Gaetanus
             
            
              
              
              
            
           
          
            
            
              Is there any change to export the txadmin playtime into database?
             
            
              
              
              
            
           
          
            
            
              QBCore the top 50 playtime list command does not work
FIX: server.lua:157
Find This: name = (‘%s %s’):format(info.firstname, info.lastname),
Change To This:  name = (‘%s %s’):format(data.firstname, data.lastname),
             
            
              
              
              
            
           
          
            
            
              The top played time of player list only shows names of players when they are online else it shows NIL NIL, QBCore framework