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

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 11