Part of TPG namespace
TPG.Gear.Sync(ply)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Push a player's gear state to their own client, over TPG_GearState. Sends the player's live runs and timers, the picks the server actually has on record (so the menu shows what they're really set to rather than what they last clicked in this session), and what they're carrying RIGHT NOW -- which is how the menu can tell "equipped" apart from "you still have to respawn for this". Runs whose timer has finished are dropped on the way out -- they mean exactly what no entry at all means -- which is also the only cleanup that table ever needs. Called on TPG_GearRequest (menu opened) and wherever else the server needs to push a fresh state.
Parameters
| Name | Type | Description |
|---|---|---|
ply | Player |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.