I am a bit confused on how I would go about this, as I am not an expert in Lua, but I've seen this around on different Garry's Mod servers, where you would type in a command !stats and it would pop up with a GUI which had your hours played, the amount of slays, gags, mutes, kicks, and your ban history.
Staff were able to target specific players and see there stats, as well if they were offline, they could input their Steam ID and still see their stats.
EX:
!stats "Spectral"
!stats STEAM ID HERE
Anybody mind helping me out with this?