Garry's Mod Wiki

Revision Difference

player.GetBySteamID#529309

<function name="GetBySteamID" parent="player" type="libraryfunc"> <description>Gets the player with the specified SteamID.</description>⤶ <description>Gets the player with the specified SteamID. <warning>Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.</warning>⤶ </description>⤶ <realm>Shared</realm> <file line="67-L77">lua/includes/extensions/player.lua</file> <args> <arg name="steamID" type="string">The <page>Player:SteamID</page> to find the player by.</arg> </args> <rets> <ret name="" type="Player">Player if one is found, false otherwise.</ret> </rets> </function>