From 0143b77db8f13a1cc8ff2f8748ef4bfd677cda89 Mon Sep 17 00:00:00 2001 From: Linventif Date: Tue, 27 Feb 2024 02:16:46 +0100 Subject: [PATCH] format: pos & ang -> position & angle. --- lua/gmod_integration/shared/sh_api_format.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/gmod_integration/shared/sh_api_format.lua b/lua/gmod_integration/shared/sh_api_format.lua index 4753773..1a4b603 100644 --- a/lua/gmod_integration/shared/sh_api_format.lua +++ b/lua/gmod_integration/shared/sh_api_format.lua @@ -10,8 +10,8 @@ function gmInte.getPlayerFormat(ply) ["customValues"] = ply:gmIntGetCustomValues(), ["connectTime"] = math.Round(RealTime() - ply:gmIntGetConnectTime()), ["ping"] = ply:Ping(), - ["pos"] = gmInte.getVectorFormat(ply:GetPos()), - ["ang"] = gmInte.getAngleFormat(ply:EyeAngles()) + ["position"] = gmInte.getVectorFormat(ply:GetPos()), + ["angle"] = gmInte.getAngleFormat(ply:EyeAngles()) } end @@ -39,8 +39,8 @@ function gmInte.getEntityFormat(ent) return { ["class"] = ent:GetClass(), ["model"] = ent:GetModel(), - ["pos"] = gmInte.getVectorFormat(ent:GetPos()), - ["ang"] = gmInte.getAngleFormat(ent:GetAngles()) + ["position"] = gmInte.getVectorFormat(ent:GetPos()), + ["angle"] = gmInte.getAngleFormat(ent:GetAngles()) } end