Garry's Mod Wiki

History for GM:PlayerClassChanged

Revision Difference

GM:PlayerClassChanged#517760

<function name="PlayerClassChanged" parent="GM" type="hook"> <ishook>yes</ishook> <description> <internal></internal> Called whenever a player's class is changed on the server-side with <page>player_manager.SetPlayerClass</page>. </description> <realm>Client</realm> <predicted>No</predicted> <file line="682">gamemodes/base/gamemode/cl_init.lua</file> <args> <arg name="ply" type="Player">The player whose class has been changed.</arg> <arg name="newID" type="number">The network ID of the player class&#x27;s name string, or 0 if we are clearing a player class from the player.&#xA;&#xA;Pass this into &lt;page&gt;util.NetworkIDToString&lt;/page&gt; to retrieve the proper name of the player class.</arg> <arg name="newID" type="number">The network ID of the player class's name string, or 0 if we are clearing a player class from the player. Pass this into <page>util.NetworkIDToString</page> to retrieve the proper name of the player class.</arg> </args> </function>

Special Pages


Wikis

?

Render Time: 14ms

DB GetPage 2
Get RevNew 1
Get RevOld 2
Render Body 0
Render Sidebar 7