From fbd9738c843ce96ba23105d19cd7cff4515f7758 Mon Sep 17 00:00:00 2001 From: legokidlogan <26103433+legokidlogan@users.noreply.github.com> Date: Tue, 30 Jul 2024 18:06:03 -0400 Subject: [PATCH] Add Player:getUserGroup() (#1796) --- lua/starfall/libs_sh/players.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/starfall/libs_sh/players.lua b/lua/starfall/libs_sh/players.lua index 96be6735e..efefb651c 100644 --- a/lua/starfall/libs_sh/players.lua +++ b/lua/starfall/libs_sh/players.lua @@ -348,6 +348,13 @@ function player_methods:isUserGroup(group) return getply(self):IsUserGroup(group) end +--- Returns the usergroup of the player +-- @shared +-- @return string Usergroup, "user" if player has no group +function player_methods:getUserGroup() + return getply(self):GetUserGroup() +end + --- Returns the player's current ping -- @shared -- @return number The player's ping