Garry's Mod Wiki

player_manager.SetPlayerClass

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

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 7