Garry's Mod Wiki

Revision Difference

Player:Name#512482

<function name="Name" parent="Player" type="classfunc">⤶ <description>Returns the players name. Identical to <page>Player:Nick</page> and <page>Player:GetName</page>.</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 players name in console.</description>⤶ <code>print(Player(1):Name())</code>⤶ <output>YourNameHere</output>⤶ ⤶ </example>