Part of TPG namespace
TPG.Economy.RollForRound()📋 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
| Type | Description |
|---|---|
boolean | The rolled `ECON.Active` value. |
Examples
No examples available.
Used In
No usages found in the codebase.