id and an options table, and returns an element handle.
esp.AddText / esp.AddFlag
esp.AddText and esp.AddFlag are aliases.
esp.AddBar
esp.AddBar(id, options) adds a bar.
Layout
Layouts are saved per player type. Custom elements cannot attach to other elements.Value callback
value(pawn, player) runs for each player shown by ESP. pawn is an entity; player contains:
Return
nil or false to hide an element without leaving a gap. Text flags also accept empty text. Bar fills must be finite and are clamped to 0–1.
The preview uses the preview option. A callback error stops the script’s callbacks until reload.
Methods
All handles support these methods.SetPreview takes a string for text flags or a number for bars, followed by an optional Color.
SetPreview also updates the default color if supplied. Removed handles cannot be updated. Unloading the script removes its elements.