Back to TPG

TPG.Economy.GetContraptionCost

S🏷️ Economy

Part of TPG namespace

TPG.Economy.GetContraptionCost(entList)
View on GitHub|gamemode/systems/sv_economy.lua:285-300
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Vehicle cost: sum of unique contraptions' ACE points across a set of entities. Forces each unique contraption to bring its point total up to date first (via ACE_EnsureContraptionPoints), so a just-pasted build is priced correctly even before anything else has read its points.

Parameters

NameTypeDescription
entListtableEntities from a paste or spawn.

Returns

TypeDescription
number

Examples

No examples available.

Used In

No usages found in the codebase.