Back to TPG

TPG.Economy.RollForRound

S🏷️ Economy

Part of TPG namespace

TPG.Economy.RollForRound()
View on GitHub|gamemode/systems/sv_economy.lua:716-726
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Per-round activation roll: is the economy live this round. The economy behaves like a secondary game mode: forced always-on by tpg_economy_enabled, otherwise a TPG.Config.economyChance chance each round (tpg_economy_random), otherwise off. Sets ECON.Active and mirrors it to clients via SetGlobalBool("TPG_EconomyActive", ...). Call this from TPG.Rounds.Setup BEFORE ResetRound, so ECON.OnRoundReset sees the correct state when it decides whether to reset wallets.

Parameters

No parameters.

Returns

TypeDescription
booleanThe rolled `ECON.Active` value.

Examples

No examples available.

Used In

No usages found in the codebase.