CityRP Documentation Repository

core.plugins.adminhub.sv_init

Serverside Adminhub.

Functions

Servercityrp.adminhub.AddLogLine(event, text, color)Source ☍

Add a line to the logs.

Parameters

  • eventanyType of event to add.
  • textanyThe text of the event.
  • coloranyThe colour to show on clients.
Servercityrp.adminhub.ChangeOpacity(ply, opac)Source ☍

Update the adminhub opacity on a player.

Parameters

  • plyanyPlayer to update.
  • opacanyOpacity between 0 and 255.
Servercityrp.adminhub.CloseMenu(ply)Source ☍

Function to close the menu on a player.

Parameters

  • plyanyThe player to close the menu on.
Servercityrp.adminhub.OpenMenu(ply)Source ☍

Function to open the menu on a client.

Parameters

  • plyanyThe player to open the menu on.
Servercityrp.adminhub.ToggleMenu(ply)Source ☍

Function to toggle the menu on a client.

Parameters

  • plyanyThe player to toggle the menu on.

Tables

Servercityrp.adminhubSource ☍