Server Events
These are server-side events emitted by zephyr_mdt. Other server resources can listen to them with AddEventHandler.
zephyr_mdt:server:bolosUpdated
Fired whenever a BOLO is created or cancelled. zephyr_dispatch listens to this event to keep its own BOLO list in sync.
AddEventHandler('zephyr_mdt:server:bolosUpdated', function(bolos)
-- bolos is a table containing the affected BOLO object(s)
end)| Parameter | Type | Description |
|---|---|---|
bolos | table | Array of affected BOLO objects (one item for create/cancel). |
BOLO object fields
| Field | Type | Description |
|---|---|---|
id | string | BOLO ID (e.g. BOLO-0001). |
priority | number | Priority level (1 = high, 2 = medium, 3 = low). |
status | string | 'Active' or 'Cancelled'. |
subjectType | string | 'Person' or 'Vehicle'. |
subjectId | string | CID for persons, plate for vehicles. |
description | string | BOLO description text. |
lastSeen | string | Last known location or description. |
officer | string | Display name of the officer who created the BOLO. |
date | string | Creation date (YYYY-MM-DD). |
Example
AddEventHandler('zephyr_mdt:server:bolosUpdated', function(bolos)
for _, bolo in ipairs(bolos) do
if bolo.status == 'Active' then
print(('New BOLO: %s — %s'):format(bolo.id, bolo.description))
end
end
end)