Skip to content

Commit

Permalink
Add Player:getUserGroup() (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
legokidlogan authored Jul 30, 2024
1 parent e5dc6d1 commit fbd9738
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/starfall/libs_sh/players.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbd9738

Please sign in to comment.