Part of TPG namespace
TPG.Economy.SetMoney(ply, amount)📋 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
| Name | Type | Description |
|---|---|---|
ply | Player | |
amount | number |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.