CadIsPlayerLinked
Checks if a specific CAD API ID exists by sending a request to the API and executing a callback with the result.- Parameters
- Returns
- Example Usage
GetPluginConfig
Provides access to a specific plugin’s configuration using the plugin name.- Parameters
- Returns
- Example Usage
GetUnitByPlayerId
Retrieves the unit information associated with a player based on their identifiers.- Parameters
- Returns
- Example Usage
GetUnitCache
Returns the globalUnitCache table containing unit data.
- Parameters
- Returns
- Example Usage
GetUnitCache is the preferred way to read active CAD unit data from another server resource. It reads SonoranCADFiveM’s local real-time cache, so it is not limited by the public v2 API request limit and can be called repeatedly by your resource. If you are building an external service outside of FiveM, use the v2 Get Active Units API endpoint instead.
Each cached unit payload now includes unit.data.communityUserId when the CAD account was linked through the v2 community link flow. That gives third-party resources a stable way to map a CAD unit or push event back to an in-game player without relying on legacy API IDs.
To understand where that value comes from, see Map Players to CAD Users and the FiveM resource’s LINKING_V2.md.
Typical pattern:
registerEndpoints
Registers API endpoints for use with thesonorancad resource.
- Parameters
- Returns
- Example Usage
None
addBlip
Adds a new blip to the map using the SonoranCAD integration.- Parameters
- Returns
- Usage Example
addBlips
Adds multiple blips to the map using the SonoranCAD integration.- Parameters
- Returns
- Example Usage
removeBlip
Removes one or more blips from the map using the SonoranCAD integration.- Parameters
- Returns
- Example Usage
modifyBlipd
Modifies an existing blip’s data on the map using the SonoranCAD integration.- Parameters
- Returns
- Example Usage
getBlips
Fetches the list of all active blips from the SonoranCAD system.- Parameters
- Returns
- Example Usage
removeWithSubtype
Removes all blips of a specific subtype from the map using the SonoranCAD system.- Parameters
- Returns
- Example Usage
call911
Thecall911 function facilitates the creation of a 911 emergency call within the SonoranCAD system by sending a structured API request.
- Parameters
- Returns
- Example Usage
addTempBlipData
Temporarily modifies a blip’s data in the SonoranCAD system and then reverts it back to its original data after a specified duration.- Parameters
- Returns
- Example Usage
addTempBlipColor
Temporarily changes a blip’s color in the SonoranCAD system and reverts it to its original color after a specified duration.- Parameters
- Returns
remove911
Removes an active 911 call from the SonoranCAD system.- Parameters
- Returns
addCallNote
Adds a note to an existing 911 call in the SonoranCAD system.- Parameters
- Returns
- Example Usage
setCallPostal
Updates the postal code of an existing 911 call in the SonoranCAD system.- Parameters
- Returns
- Example Usage
performLookup
Performs a lookup in the SonoranCAD system for information associated with a license plate.- Parameters
- Returns
- Example Usage
createDispatchCall
Creates a dispatch call in SonoranCAD using the v2 dispatch request format.- Parameter
- Return
- Example Usage
The
data table supports the same fields as the Create Dispatch Call v2 endpoint. origin, status, priority, and title are required. Include at least one of communityUserIds, accounts, roblox, or discord. To create an unassigned call, pass an empty communityUserIds or accounts array.metaData must contain flat string key/value pairs. Coordinates belong directly under metaData as x, y, and z; do not pass a nested coords table.cadNameLookup
Perform a name lookup in CAD (Requires “Lookups” submodule to be enabled)- Parameters
- Return
cadPlateLookup
Perform a plate lookup in CAD (Requires “Lookups” submodule to be enabled)- Parameters
- Return
- Example Usage
cadGetPlateInformation
Retrieve parsed registration, vehicle, owner, BOLO, and warrant data for a single plate while reusing the shared plate-information cache. This is the same lookup path used by the WraithV2 integration.This function requires the
lookups submodule to be enabled. Results are cached by normalized plate number for 60 seconds by default unless you override or bypass the cache in the options table.- Parameters
- Returns
- Example Usage
getAllWarrantsAndBolos
Retrieve all active and inactive warrants and bolos with pagination support- Parameters
- Example Usage
- Returns

