Garry's Mod Wiki

GM:PlayerSetModel

  GM:PlayerSetModel( Player ply )

Description

Called whenever a player spawns and must choose a model. A good place to assign a model to a player.

This function may not work in your custom gamemode if you have overridden your GM:PlayerSpawn and you do not use self.BaseClass.PlayerSpawn or hook.Call.

Arguments

1 Player ply
The player being chosen

Example

Sets the player's model to Odessa

function GM:PlayerSetModel( ply ) ply:SetModel( "models/player/odessa.mdl" ) end