GM:PlayerInitialSpawn
Description
Called when the player spawns for the first time.
See GM:PlayerSpawn for a hook called every player spawn.
This hook is called before the player has fully loaded, when the player is still in seeing the
Starting Lua
screen. For example, trying to use the Entity:GetModel function will return the default model (models/player.mdl
).Arguments
Example
Prints the name of the player joining.
Output: Player1 joined the game.