Garry's Mod Wiki

Revision Difference

net.ReadPlayer#552412

<function name="ReadPlayer" parent="net" type="libraryfunc">⤶ <description>⤶ Reads a player entity from the received net message.⤶ ⤶ You should always check if the specified entity exists as it may have been removed and therefore `NULL` if it is outside of the local players [PVS](https://developer.valvesoftware.com/wiki/PVS) or was already removed.⤶ ⤶ <warning>You **must** read information in same order as you write it.</warning>⤶ </description>⤶ <realm>Shared</realm>⤶ <added>2023.10.06</added>⤶ <rets>⤶ <ret name="" type="Player">The player, or `Entity(0)` if no entity could be read.</ret>⤶ </rets>⤶ </function>⤶ ⤶