Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...