Garry's Mod Wiki

Garry's Mod Wiki

  CRecipientFilter:AddPlayer( Player Player )

Description

Adds a player to the recipient filter

Arguments

1 Player Player
Player to add to the recipient filter.

Example

Adds the first player object to the recipient filter, then sends him a message.

function SendMessage() local filter = RecipientFilter() filter:AddPlayer( Entity( 1 ) ) net.Start( "message" ) net.Send( filter ) end
Output: Sends a netmessage to the first player object, if it exists.

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...