Garry's Mod Wiki

Revision Difference

Player:Nick#527145

<function name="Nick" parent="Player" type="classfunc"> <description>Returns the player's nickname.</description> <realm>Shared</realm> <rets> <ret name="" type="string">Player's Steam name <bug issue="3178">This is limited to 31 characters even though Steam names can have 32.</bug></ret> </rets> </function> <example> <description>Prints the player's nickname</description> <code>print( Entity(1):Nick() )</code> <output>Ninja101</output>⤶ <code>print( Entity( 1 ):Nick() )</code> <output>Player1</output>⤶ </example>