Payload Object

Both onStart and onStop receive a payload table:

{
    kind = "START" | "STOP",
    eventId = "911",
    eventName = "Lockdown",
    msgType = number,
    colorId = number,
    message = string,
    source = "phone" | "bindable" | "api" | "panic_button",
    reason = "ended" | "busy" | "stopped",
    at = unix_timestamp
}

Last updated