Garry's Mod Wiki

player_manager.ClearPlayerClass

  player_manager.ClearPlayerClass( Player ply )

Description

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

Arguments

1 Player ply
Player to clear class from

Example

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

function ClearPlayerClass( ply ) ply:SetClassID( 0 ) end