Get Active Units
Retrieve active emergency units for a configured server.
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Default
Description
Example Request
-- luarocks install sonoran.lua
-- For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client.
local Sonoran = require("sonoran")
local sonoran = Sonoran.createClient({
product = Sonoran.productEnums.CAD,
communityId = "YOUR_COMMUNITY_ID",
apiKey = "YOUR_API_KEY",
defaultServerId = 1
})
local response = sonoran.cad:getUnitsV2({
serverId = 1,
includeOffline = false,
onlyUnits = true,
limit = 100,
offset = 0,
})
-- Inspect response.success, response.data, or response.reason as needed.
print(response.success)Response
Enumeration Values
UNIT_STATUS
Value
Description
UNIT_PAGE
Value
Description
Last updated
Was this helpful?

