Registers the Manage Groups system, which lists the members of the superadmin, admin and operator user groups and lets them be demoted.

The page is shown to players with access to /PlySetGroup unless the use_own_group_system config is on. Members are read from the players database table and sent eight per page over the SystemGroupGet Cable message; SystemGroupDemote demotes through the PlyDemote command.

Summary

Methods

Shows the Manage Groups system to players who may use PlySetGroup, unless use_own_group_system is enabled.
Shows the user group buttons, or the paged member list of the selected group with demote buttons.

Methods

Shows the Manage Groups system to players who may use PlySetGroup, unless use_own_group_system is enabled.

Returns

  • Boolean true when the player has access, otherwise nil

SYSTEM:OnDisplay(systemPanel, systemForm)

client gamemodes/catwork/gamemode/core/system/sh_manage_groups.lua:39

Shows the user group buttons, or the paged member list of the selected group with demote buttons.

Members are requested with the SystemGroupGet Cable message unless noRefresh is set; demoting asks for confirmation, requires the PlyDemote command's access and sends SystemGroupDemote.

Parameters

  • systemPanel Panel The system panel to add the group buttons or member list to
  • systemForm Panel The system's form (unused, the system does not create one)

Defined in