Skip to content

Items

API Returns
aqua.glove_kit_id(paintIdx) Glove paint-kit id for Skins.Glove.*.PaintIdx (0 = none; N = SortedGloveKitIds()[N-1])
aqua.agent_def_index(team, modelIndex) Agent item def for Misc.Agent.*.ModelIndex ("ct"/"t"; 0 = none)
aqua.item_icon(def) short equipment icon name ("ak47", "m4a1_silencer", …) or nil
aqua.item_name(def) localized display name or nil
aqua.item_path(def) Panorama path file://{images}/icons/equipment/<icon>.svg or nil

Icons match the built-in scoreboard, including the MP5-SD, M4A1-S, USP-S and R8.

for _, def in ipairs(p.weapons or {}) do
local icon = aqua.item_icon(def)
local path = aqua.item_path(def)
print(def, icon, aqua.item_name(def))
end