Admin ESP shows staff where the other players are while they are noclipping. For every other player it draws their name and Steam name, an outline box and health and armor bars, visible through walls. It is only drawn for players with the 'admin_esp' permission, which the plugin registers, and its colors come from the esp_red, esp_blue and esp_grey colors of the theme.

Summary

Hooks

Draws the admin ESP for every other player: names, an outline box, health and armor bars.
Refreshes the ESP colors from the theme that has just been loaded.
Registers the 'admin_esp' permission.

Hooks

PLUGIN:HUDPaint()

client plugins/cl_adminesp.lua:37

Draws the admin ESP for every other player: names, an outline box, health and armor bars. Only drawn while the local player is noclipping and has the 'admin_esp' permission.

PLUGIN:OnThemeLoaded(current_theme)

client plugins/cl_adminesp.lua:104

Implements hook OnThemeLoaded

Refreshes the ESP colors from the theme that has just been loaded.

Parameters

  • current_theme ThemeBase the loaded theme

PLUGIN:RegisterPermissions()

client plugins/cl_adminesp.lua:18

Implements hook RegisterPermissions

Registers the 'admin_esp' permission. The plugin only exists on the client, which is also the only place where the permission is checked.

Defined in