Garry's Mod Wiki

net.WritePlayer

  net.WritePlayer( Player ply )

Description

Appends a player entity to the current net message using its Entity:EntIndex. This saves a small amount of network bandwidth over net.WriteEntity.

See net.ReadPlayer for the function to read the entity.

Arguments

1 Player ply
The player to be sent.