Gamemode.AcceptStream
From GMod Wiki
| Event Hook | |
| Hook Name | AcceptStream |
| Syntax | GM:AcceptStream( Player pl, String handler, Number id ) |
| Description | Called when a client wants to use datastream to communicate with the server. |
| Returns | Boolean |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.AcceptStream]Gamemode.AcceptStream [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Allows the player to send the stream. |
|---|---|
| Used on | |
| Code | function GM:AcceptStream ( pl, handler, id ) return true end |
| Output | The stream is opened and the data will start streaming. |
Additional Notes
- ID is the temporary ID assigned clientside. Not useful serverside to anything but the wrapper's internal functions.