Luduvo Contents
Theme

Event

(name: string, direction: EventDirection, fields: {{string | EventFieldType}}) -> EventTable

networked event tables

Defining and Pushing Network Events

Lifecycle: Shared

An event table pairs a name and a direction with a fixed field layout that both sides decode the same way.

Luau
local ET = game.EventTablelocal ToolEquip = ET("ToolEquip", ET.ToServer, {	{"slot", ET.U8},})-- Push payload to the serverToolEquip:Push(1)