Back to TPG

TPG.Economy.SetMoney

S🏷️ Economy

Part of TPG namespace

TPG.Economy.SetMoney(ply, amount)
View on GitHub|gamemode/systems/sv_economy.lua:191-196
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Set a player's wallet to an exact amount, clamped to [0, ECON.Config.maxMoney]. Also mirrors the value to the client via NWInt TPG_Money. Every other wallet-changing function in this file goes through this, so it is the one place the clamp and the network sync both live.

Parameters

NameTypeDescription
plyPlayer
amountnumber

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.