Back to TPG

TPG.Economy.Notify

S🏷️ Economy

Part of TPG namespace

TPG.Economy.Notify(ply, delta, reason)
View on GitHub|gamemode/systems/sv_economy.lua:165-171
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Tell a client their wallet changed, for the HUD's floating +N/-N popup. Purely cosmetic net message; does not itself change pState.money. No-op for an invalid player or a zero delta.

Parameters

NameTypeDescription
plyPlayer
deltanumberSigned; rounded before sending.
reason?stringShort label the HUD displays with the popup.(default: "")

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.