Garry's Mod Wiki


  player_manager.OnPlayerSpawn( Player ply, boolean transiton )


Applies basic class variables when the player spawns.

Called from GM:PlayerSpawn in the base gamemode.


1 Player ply
Player to setup.
2 boolean transiton
If true, the player just spawned from a map transition. You probably want to not touch player's weapons or position if this is set to true.