player_esp_context_t
Info
player esp context can only be retrieved via the PLAYER_ESP callback in all examples below ctx is the player esp context
local function on_player_esp(ctx)
if ctx.dormant then
return
end
ctx:add_flag("FLAG")
ctx:add_flag("COLOR FLAG", color_t(255, 0, 0))
end
callbacks.add(e_callbacks.PLAYER_ESP, on_player_esp)
Fields#
| Field | Description |
|---|---|
playerentity_t |
player entity that is being rendered right now |
alpha_modifierfloat |
alpha multiplier of the esp (range 0ยทยทยท1) |
dormantbool |
whether new information about this player isnt being networked right now |
render_origine_hitboxes |
world coordinates of the player |
bbox_starte_hitboxes |
2d coordinates of the esp bbox |
bbox_sizee_hitboxes |
2d size of the esp bbox |
modeint |
team mode of this player; 1 = enemy, 0 = friendly |
Functions#
add_flag#
adds a flag to the right side of the player
if no color is supplied, it will use the default flags color
Example
set_font#
overrides the main font for this player
Example
set_small_font#
overrides the small font for this player (e.g. used for flags)