Garry's Mod Wiki

player_manager.SetPlayerClass

player_manager.SetPlayerClass( Player ply, string classname )

Description

Sets a player's class

Arguments

1 Player ply
Player to set class
2 string classname
Name of class to set

Example

Sets the player's class to 'player_default' every time they spawn

function GM:PlayerSpawn( ply ) player_manager.SetPlayerClass(ply, "player_default") end

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 12
Render Body 0
Render Sidebar 12