player_manager.ClearPlayerClass

From Garry's Mod
Jump to: navigation, search
 player_manager.ClearPlayerClass( )

Contents

Description

Clears a player's class association by setting their ClassID to 0

Arguments

Player ply

Player to clear class from

Examples

Example

Source for player_manager.ClearPlayerClass (from lua/includes/modules/player_manager.lua)

function ClearPlayerClass( ply )

	ply:SetClassID( 0 )

end


Personal tools
Navigation