From ddd0aeec1d547964f6b57a872cd3e30487ce893a Mon Sep 17 00:00:00 2001 From: Linventif Date: Sat, 29 Jun 2024 04:48:38 +0000 Subject: [PATCH] add: active weapon --- lua/gmod_integration/shared/sh_api_format.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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