Garry's Mod Wiki

Revision Difference

Player:Name#562651

<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> <file line="57-L57">lua/includes/extensions/player.lua</file>⤶ <rets> <ret name="" type="string">Player's Steam name.</ret> </rets> </function> <example> <description>Prints the players name in console.</description> <code>print( Entity( 1 ):Name() )</code> <output>Player1</output> </example>