Back to TPG

TPG.Maps.GetVoteInfo

S🏷️ Maps

Part of TPG namespace

TPG.Maps.GetVoteInfo(mapName)
View on GitHub|gamemode/maps/_loader.lua:1145-1157
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Display name and budgets for any map, for the map-vote screen. Works on maps other than the running one and does not disturb the loaded config. The objective count reported is the CP-mode one, as a stand-in for how big the map plays. displayName falls back to the map name tidied up.

Parameters

NameTypeDescription
mapNamestring

Returns

TypeDescription
table`{ map, displayName, points, weight, props, objectives }`.

Examples

No examples available.

Used In

No usages found in the codebase.