Garry's Mod Wiki

player_manager.SetPlayerClass

void 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: 27ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 10
Render Body 0
Render Sidebar 11