Garry's Mod Wiki

CRecipientFilter:AddAllPlayers

  CRecipientFilter:AddAllPlayers()

Description

Adds all players to the recipient filter.

Example

Adds all players to a recipient filter, then uses the recipient filter in a usermessage.

function SendMessage() local filter = RecipientFilter() filter:AddAllPlayers() umsg.Start("message",filter) umsg.End() end
Output: Sends a usermessage to every player.