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
2 boolean transition
If
true, the player just spawned from a map transition. (Specifically via trigger_changelevel or point_changelevel entities)Example
Prints the name of the player joining.
Output: Player1 joined the game.
Garry's Mod
Rust
Steamworks
Wiki Help