Player management page of the admin panel, open to players with the manage_permissions permission: a list of the online players and, for the selected one, a header with their avatar, name and role above the permission editor. The header is the fl_player_info panel, which is also defined here; its edit button opens a selector that changes the player's role. The server only applies the changes made here to the editing player themselves and to players whose role has a lower immunity than theirs (root players may edit anyone).

Summary

Methods

Returns the selected player.
Init()client
Creates the player list, the player info header and the permissions editor.
Init()client
Creates the avatar, the name and role labels and the button that opens the role selector.
Docks and sizes the info header and the permissions editor once the admin panel has opened this page.
Draws the card of the header.
Positions the avatar on the right and the labels and the role button on the left.
rebuild()client
Refreshes the avatar, name and role label from the current player.
Selects a player, showing the info header and the permissions editor for them.
Sets the player to display and refreshes the panel.

Methods

Returns the selected player.

Returns

  • Player the player, or nil if none has been selected

Creates the player list, the player info header and the permissions editor. The last two stay hidden until a player is selected.

Creates the avatar, the name and role labels and the button that opens the role selector.

Docks and sizes the info header and the permissions editor once the admin panel has opened this page.

Draws the card of the header.

Parameters

  • w Number panel width
  • h Number panel height

Positions the avatar on the right and the labels and the role button on the left.

Parameters

  • w Number panel width
  • h Number panel height

Refreshes the avatar, name and role label from the current player.

Selects a player, showing the info header and the permissions editor for them.

Parameters

  • target Player

Sets the player to display and refreshes the panel.

Parameters

  • target Player

Defined in