Garry's Mod Wiki

Revision Difference

player.GetByUniqueID#518009

<function name="GetByUniqueID" parent="player" type="libraryfunc"> <description> Gets the player with the specified uniqueID (not recommended way to identify players). <warning>It is highly recommended to use <page>player.GetByAccountID</page>, <page>player.GetBySteamID</page> or <page>player.GetBySteamID64</page> instead as this function can have collisions ( be same for different people ) while SteamID is guaranteed to unique to each player.</warning> </description> <realm>Shared</realm> <file line="59-L71">lua/includes/extensions/player.lua</file> <args> <arg name="uniqueID" type="string">The &lt;page&gt;Player:UniqueID&lt;/page&gt; to find the player by.</arg> <arg name="uniqueID" type="string">The <page>Player:UniqueID</page> to find the player by.</arg> </args> <rets> <ret name="" type="Player">Player if one is found, false otherwise.</ret> </rets> </function>