Revision Difference
Player:SetUserGroup#528486
<function name="SetUserGroup" parent="Player" type="classfunc">
<description>Sets the usergroup of the player.</description>
<realm>Server</realm>
<file line="49-L55">lua/includes/extensions/player_auth.lua</file>
<args>
<arg name="groupName" type="string">The user group of the player.</arg>
</args>
</function>
<example>
<description>Make the player superadmin and print their group.</description>
<code>
Entity( 1 ):SetUserGroup( "superadmin" )
print( Entity( 1 ):GetUserGroup() )
</code>
<outputfixedwidth>Fixed width</outputfixedwidth>⤶
<output>superadmin</output>⤶
<output>⤶
```⤶
superadmin⤶
```⤶
</output>⤶
</example>