Skip to content

ax.net

Enqueue a net job to prevent overlapping net.Start calls.

Documented functions: 8  ·  Realm: shared

Functions


ax.net:BuildPayload(arguments)

Builds the encoded payload for a net message.

Realm: shared

Parameters

Name Type Description
arguments table -

Returns

  • string|boolean: Encoded payload or false on failure.

Source: gamemode/framework/libraries/sh_net.lua:62


ax.net:Enqueue(job)

Enqueue a net job to prevent overlapping net.Start calls.

Realm: shared

Parameters

Name Type Description
job function Callback that receives a done() function.

Source: gamemode/framework/libraries/sh_net.lua:24


ax.net:Hook(name, callback, bNoDelay)

Hooks a network message.

Realm: shared

Parameters

Name Type Description
name string Unique identifier.

Source: gamemode/framework/libraries/sh_net.lua:106


ax.net:ProcessQueue()

Processes the next queued net job.

Realm: shared

Source: gamemode/framework/libraries/sh_net.lua:35


ax.net:QueueMessage(name, arguments, sendFunc, debugMessage, warningMessage)

Queues a net message to avoid overlapping net.Start calls.

Realm: shared

Parameters

Name Type Description
name string -
arguments table -
sendFunc function -
debugMessage string -
warningMessage string -

Source: gamemode/framework/libraries/sh_net.lua:78


ax.net:Start(target, name, ...)

Starts a stream.

Realm: shared

Parameters

Name Type Description
target Player, table, vector or nil (nil = broadcast or to server).
name string Hook name.

Source: gamemode/framework/libraries/sh_net.lua:134


ax.net:Start(name, ...)

Starts a stream.

Realm: shared

Parameters

Name Type Description
target Player, table, vector or nil (nil = broadcast or to server).
name string Hook name.

Source: gamemode/framework/libraries/sh_net.lua:238


ax.net:StartOmit(target, name, ...)

Starts a stream, sends to people other than the specified target.

Realm: shared

Parameters

Name Type Description
target Player, table, vector or nil (nil = broadcast or to server).
name string Hook name.

Source: gamemode/framework/libraries/sh_net.lua:186