Back to TPG

TPG.State.InitPlayer

S🏷️ State

Part of TPG namespace

TPG.State.InitPlayer(ply)
View on GitHub|gamemode/core/sv_gamestate.lua:91-107
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Create a player's state table, discarding anything already there. Called from PlayerInitialSpawn. Prefer GetPlayer, which initialises on demand; calling this on a connected player wipes their cooldowns and votes.

Parameters

NameTypeDescription
plyPlayer

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.