Player.SendData

From GMod Wiki

Revision as of 14:23, 1 March 2011 by _Undefined (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:SendData( String handler, Table data, Function callback )
Description:
Sends a table to a player.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SendData]Player.SendData [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionDisplays notify hud display saying "You removed the prop." This is what Garry's Mod uses to tell you when you delete something.
Used onNewerServer.png
Code
for _, ply in pairs(player.GetAll()) do
	ply:SendData("IncomingData", {this = "is", a = "test"})
end
OutputNone


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox