Garry's Mod Wiki

Revision Difference

player_manager.ClearPlayerClass#512555

<function name="ClearPlayerClass" parent="player_manager" type="libraryfunc">⤶ <description>Clears a player's class association by setting their ClassID to 0</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="ply" type="Player">Player to clear class from</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>⤶ Source for player_manager.ClearPlayerClass (from lua/includes/modules/player_manager.lua)⤶ ```⤶ ⤶ | Code =⤶ ```⤶ ⤶ function ClearPlayerClass( ply )⤶ ⤶ ply:SetClassID( 0 )⤶ ⤶ end⤶ ```⤶ ⤶ | Output =⤶ ```⤶ ⤶ </description>⤶ ⤶ </example>