umsg.Start

From GMod Wiki

Jump to: navigation, search
Function
Syntax umsg.Start( String message_name, [[CRecipientFilter :Player :Nil recipient]] )
Where is this used?
Description:
Begin a new User Message
Returns: nil
Part of Library: umsg
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Umsg.Start]Umsg.Start [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSends a user message to a single player.
Used onNewerServer.png
Code
umsg.Start( "my message", ply )
    umsg.String( "some text" )
umsg.End()
 
OutputN/A



DescriptionSends a user message to all players.
Used onNewerServer.png
Code
umsg.Start( "my message" )
    umsg.String( "some text" )
umsg.End()
 
OutputN/A



DescriptionSends a user message to all players (using a recipient filter).
Used onNewerServer.png
Code
 
local filter = RecipientFilter()
filter:AddAllPlayers()
 
umsg.Start( "my message", filter )
    umsg.String( "some text" )
umsg.End()
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox