Lua · Variables · Features

players

Player list flags and colours, and public stats (Steam, Faceit, Leetify).

Players are found by SteamID64 as text (the steamid field of a player table).

FunctionWhat it does
players.flag(steamid[, flag]) Reads a player's flag in the player list, or sets it.
players.color(steamid[, col]) Reads or sets a player's custom colour.
players.intel(steamid)Public stats. The first call starts loading them; it returns nil until they arrive, so call it again on later frames.

#players.flag

players.flag(steamid[, flag])

Reads a player's flag in the player list, or sets it.

Arguments

steamidstring
-
flagintegeroptional
0 none, 1 priority, 2 ignore. Setting needs the settings permission.

Returns

integer
Flag after the call.

#players.color

players.color(steamid[, col])

Reads or sets a player's custom colour.

Arguments

steamidstring
-
colcoloroptional
Needs the settings permission.

Returns

integer
Colour after the call.

#players.intel

players.intel(steamid)

Public stats. The first call starts loading them; it returns nil until they arrive, so call it again on later frames.

Returns

table | nil
name, country, since, vac_bans, game_bans, public, and when found faceit {nick, level, elo, kd, win_rate, matches, hs, adr} and leetify {rating, aim, utility, positioning, hs, win_rate, matches, premier}.
Example
local i = players.intel(p.steamid)
if i and i.faceit then esp.add_text(p.slot, "FACEIT " .. i.faceit.level) end