Garry's Mod Wiki

Garry's Mod Wiki

  Player net.ReadPlayer()

Description

Reads a player entity that was written with net.WritePlayer 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 or was already removed.

You must read information in same order as you write it.

Returns

1 Player
The player, or Entity(0) if no entity could be read.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...