Datastream

From GMod Wiki

Jump to: navigation, search
Warning 64 severe.pngThis element is being removed from garrysmod once the GMod Beta 13 update becomes public



Note: You no longer need to use require("datastream") if you want to use datastream. It's automatically included now, from garrysmod/lua/init.lua.

A method for sending data from client to server and server to client supporting multiple data types.

Supported types: table boolean number string Vector Angle Entity Player CEffectData ConVar Color Reference

Datastream Tutorial

Library Functions

NewerServer.png datastream.StreamToClients
NewerShared.png datastream.DownstreamActive
NewerShared.png datastream.GetProgress
NewerShared.png datastream.Hook
NewerClient.png datastream.StreamToServer

Hooks

NewerServer.png gamemode.AcceptStream
NewerShared.png gamemode.CompletedIncomingStream

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox