Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.net.receive

S๐Ÿท๏ธ Net

Part of StarfallEx namespace

๐Ÿ”— External
net.receive(name, func)
View on GitHub|lua/starfall/libs_sh/net.lua:616
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Like glua net.Receive, adds a callback that is called when a net message with the matching name is received. If this happens, the net hook won't be called.

Parameters

NameTypeDescription
namestringThe name of the net message
funcfunctionThe callback or nil to remove callback. (len - length of the net message, ply - player that sent it or nil if clientside)

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.