Module core.plugins.admin_assist.cl_init
Clientside Administration Assistance Module
Module Overview
Functions
| PLUGIN:GetTargetPos(ent) | Get the target position of an entity. |
| PLUGIN:WriteBigText(text, x, y, colour, alignX, alignY) | Write a header text on screen. |
| PLUGIN:WriteSmallText(text, x, y, colour, alignX, alignY) | Write a text on screen. |
| PLUGIN:DrawCross(x, y, red, green, blue, alpha) | Draw a cross on the screen. |
| PLUGIN:GetEntData(ent) | Get data about an entity. |
| PLUGIN:DrawEntity(ent) | Draw a generic entity on screen. |
| PLUGIN:DrawFire(ent) | Draw a fire entity on screen. |
| PLUGIN:DrawPlayer(ply) | Draw a player on screen. |
| PLUGIN:DrawAdminHelp() | Draw the admin assistance. |
| PLUGIN:GetCVar(name) | Retrieve a CVar from the plugin configuration. |
| PLUGIN:GetCVarNum(name) | Retrieve a numeric CVar from the plugin configuration. |
| PLUGIN:GetShootPos(ent) | Get the central position of an entity. |
| PLUGIN:DrawWorldHelp() | Draw world solids help. |
- PLUGIN:GetTargetPos(ent)
-
Get the target position of an entity.
Parameters:
- ent The entity to get position for.
Returns:
-
vector The target position.
- PLUGIN:WriteBigText(text, x, y, colour, alignX, alignY)
-
Write a header text on screen.
Parameters:
- text The text to write.
- x The x position to write at.
- y The y position to write at.
- colour The colour to draw in.
- alignX TEXTALIGN alignment for X.
- alignY TEXTALIGN alignment for Y.
Returns:
-
The new Y value.
- PLUGIN:WriteSmallText(text, x, y, colour, alignX, alignY)
-
Write a text on screen.
Parameters:
- text The text to write.
- x The x position to write at.
- y The y position to write at.
- colour The colour to draw in.
- alignX TEXTALIGN alignment for X.
- alignY TEXTALIGN alignment for Y.
Returns:
-
The new Y value.
- PLUGIN:DrawCross(x, y, red, green, blue, alpha)
-
Draw a cross on the screen.
Parameters:
- x The x position to write at.
- y The y position to write at.
- red The amount of red to draw in.
- green The amount of green to draw in.
- blue The amount of blue to draw in.
- alpha The amount of alpha to draw in.
Returns:
-
The new Y value.
- PLUGIN:GetEntData(ent)
-
Get data about an entity.
Parameters:
- ent The entity to get data about.
Returns:
- If the entity is visible.
- The screen X position of the entity.
- The screen Y position of the entity.
- The distance to the entity.
- PLUGIN:DrawEntity(ent)
-
Draw a generic entity on screen.
Parameters:
- ent The entity to draw.
- PLUGIN:DrawFire(ent)
-
Draw a fire entity on screen.
Parameters:
- ent The entity to draw.
- PLUGIN:DrawPlayer(ply)
-
Draw a player on screen.
Parameters:
- ply The player to draw.
- PLUGIN:DrawAdminHelp()
- Draw the admin assistance.
- PLUGIN:GetCVar(name)
-
Retrieve a CVar from the plugin configuration.
Parameters:
- name The name of the CVar.
Returns:
-
mixed The cvar value.
- PLUGIN:GetCVarNum(name)
-
Retrieve a numeric CVar from the plugin configuration.
Parameters:
- name The name of the CVar.
Returns:
-
number The cvar value.
- PLUGIN:GetShootPos(ent)
-
Get the central position of an entity.
Parameters:
- ent The entity to lookup.
Returns:
-
The central position.
- PLUGIN:DrawWorldHelp()
- Draw world solids help.