Server exports

Add Alert

---**`server`**
---@param payload ServerAlertPayload
---@return boolean | nil, string | nil
function exports.fd_dispatch:addAlert(payload) end

Get Alerts

---**`server`**
---@return Alert[]
function exports.fd_dispatch:getAlerts() end

Get Alert

---**`server`**
---@param id number
---@return Alert | nil
function exports.fd_dispatch:getAlert(id) end

Create bolo

---**`server`**
---@param payload CreateBoloPayload
---@return string | boolean, string | nil
function exports.fd_dispatch:createBolo(payload) end

Remove bolo

---**`server`**
---@param boloId string
---@return boolean, string | nil
function exports.fd_dispatch:removeBolo(boloId) end

Add bolo log

---**`server`**
---@param boloId string
---@param payload { title: string, description: string}
function exports.fd_dispatch:addBoloLog(boloId, payload) end

Add log

---**`server`**
---@param payload Log
---@param skipInsert? boolean
---@return nil
function exports.fd_dispatch:addLog(payload, skipInsert) end

Update call sign

Updates a player’s callsign from a custom command or external script. Unlike the built-in UI callsign change, this export does not check the callSign.canChange or callSign.allowedGroups config — giving full control to the calling script. The dispatch UI input is automatically updated.

---**`server`**
---@param source number
---@param callsign string
---@return boolean
function exports.fd_dispatch:updateCallSign(source, callsign) end

Create unit

---**`server`**
---@param source number
---@param playerLoaded? boolean
---@return boolean | nil
function exports.fd_dispatch:createUnit(source, playerLoaded) end

Remove unit

---**`server`**
---@param unitId string
---@return boolean | nil
function exports.fd_dispatch:removeUnit(unitId) end

Get unit

---**`server`**
---@param unitId string
---@return Unit | nil
function exports.fd_dispatch:getUnit(unitId) end

Get units

---**`server`**
---@return table<string, Unit>
function exports.fd_dispatch:getUnits() end

Get unit member data

---**`server`**
---@param source number
---@param unitId string
---@return Member | boolean
function exports.fd_dispatch:getUnitMemberData(source, unitId) end

Remove from unit

---**`server`**
---@param source number
---@param unitId string
function exports.fd_dispatch:removeFromUnit(source, unitId) end

Handle duty change

Call this when a player’s duty status changes to sync their dispatch unit.

---**`server`**
---@param source number
function exports.fd_dispatch:handleDutyChange(source) end

Handle job change

Call this when a player’s job changes to sync their dispatch unit.

---**`server`**
---@param source number
function exports.fd_dispatch:handleJobChange(source) end

Handle player loaded

Call this when a player finishes loading to create their dispatch unit.

---**`server`**
---@param source number
function exports.fd_dispatch:handlePlayerLoaded(source) end

Handle player logout

Call this when a player logs out to clean up their dispatch unit.

---**`server`**
---@param source number
function exports.fd_dispatch:handlePlayerLogout(source) end

Copyright © 2025 Felis Development