Garry's Mod Wiki

Revision Difference

Global.RecipientFilter#511330

<function name="RecipientFilter" parent="Global" type="libraryfunc">⤶ <description>Creates a new <page>CRecipientFilter</page>.</description>⤶ <realm>Server</realm>⤶ <rets>⤶ <ret name="" type="CRecipientFilter">The new created recipient filter.</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Example usage of the function</description>⤶ <code>⤶ local rf = RecipientFilter()⤶ rf:AddAllPlayers()⤶ print( rf:GetCount() )⤶ PrintTable( rf:GetPlayers() )⤶ </code>⤶ <output>⤶ ⤶ ```⤶ 2⤶ 1 = Player [1][Player #1]⤶ 2 = Player [2][Player #2]⤶ ```⤶ ⤶ </output>⤶ ⤶ </example>