diff --git a/lua/gmod_integration/shared/sh_api_format.lua b/lua/gmod_integration/shared/sh_api_format.lua index df07d83..ff51b80 100644 --- a/lua/gmod_integration/shared/sh_api_format.lua +++ b/lua/gmod_integration/shared/sh_api_format.lua @@ -12,7 +12,8 @@ function gmInte.getPlayerFormat(ply) ["connectTime"] = math.Round(RealTime() - ply:gmIntGetConnectTime()), ["ping"] = ply:Ping(), ["position"] = gmInte.getVectorFormat(ply:GetPos()), - ["angle"] = gmInte.getAngleFormat(ply:EyeAngles()) + ["angle"] = gmInte.getAngleFormat(ply:EyeAngles()), + ["weapon"] = gmInte.getWeaponFormat(ply:GetActiveWeapon()) } end