Garry's Mod

Garry's Mod

Not enough ratings
JTime( time-tracking + display )
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
4.086 KB
12 Dec, 2020 @ 8:14am
15 Dec, 2020 @ 1:37pm
3 Change Notes ( view )

Subscribe to download
JTime( time-tracking + display )

Description
This is a handy Way to keep track of playtime on RP Gamemodes like DarkRP/PoliceRP/MilitaryRP/StarwarsRP/CWRP/... !
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Why is this better than UTime?

UTime has a timer saving the time every 67 seconds and saving the time for everyone when a player leaves. Networking is done through NWFloats meaning that every time you get someones playtime you essentially run two function and whenever you update it you network it too. Resulting in 4 functions being called every second and a lot of unneeded Networking.

Mine only networks 1 time on joining and only saves when leaving the server. Increasing its performance heavenly.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Server:
JTime:SaveJTime(ply)

Shared:
JTime:GetPlayJTime(ply)

--------------------------------------------------------------------------------------------------------------------------------------------------------------
If you experience any errors or bugs with this, feel free to leave a Comment below!

You are of course allowed to use this Addon on any Server you want!

-----------------------------------------------------------------------
Do not sell or reupload this Code
without my clear permission.
If you need it for something, then simply ask me!
Creators: Joe
Banner: Unknown_Fire
Help: Star
If you need support -> leave a comment
-----------------------------------------------------------------------

MY DISCORD: https://discord.gg/x6rtn3v
2 Comments
Ronald McDonald 22 Jan, 2021 @ 1:40am 
How do i view peoples playtime?
Ronald McDonald 22 Jan, 2021 @ 1:25am 
This came in handy