Module core.plugins.adminhub.sv_init
Serverside Adminhub.
Module Overview
Functions
| cityrp.adminhub.OpenMenu(ply) | Function to open the menu on a client. |
| cityrp.adminhub.CloseMenu(ply) | Function to close the menu on a player. |
| cityrp.adminhub.ToggleMenu(ply) | Function to toggle the menu on a client. |
| cityrp.adminhub.ChangeOpacity(ply, opac) | Update the adminhub opacity on a player. |
| cityrp.adminhub.ChangeHeight(ply, opac) | Update the adminhub rows on a player. |
| cityrp.adminhub.AddLogLine(event, text, color) | Add a line to the logs. |
- cityrp.adminhub.OpenMenu(ply)
-
Function to open the menu on a client.
Parameters:
- ply The player to open the menu on.
- cityrp.adminhub.CloseMenu(ply)
-
Function to close the menu on a player.
Parameters:
- ply The player to close the menu on.
- cityrp.adminhub.ToggleMenu(ply)
-
Function to toggle the menu on a client.
Parameters:
- ply The player to toggle the menu on.
- cityrp.adminhub.ChangeOpacity(ply, opac)
-
Update the adminhub opacity on a player.
Parameters:
- ply Player to update.
- opac Opacity between 0 and 255.
- cityrp.adminhub.ChangeHeight(ply, opac)
-
Update the adminhub rows on a player.
Parameters:
- ply Player to update.
- opac New number of rows.
- cityrp.adminhub.AddLogLine(event, text, color)
-
Add a line to the logs.
Parameters:
- event Type of event to add.
- text The text of the event.
- color The colour to show on clients.