Skip to main content
Unit Status showing status commands and a CAD unit marked AVAILABLE.

Activation Guide

Download and Install the Resource

This submodule is already enabled by default when installing the Sonoran CAD FiveM resource.

Adjust the Configuration

Unit Status is a built-in integration and is hidden from the CAD plugin list. Its default status commands remain available; there is no separate configuration panel. Configure the CAD unit status codes in Admin > Customization > Unit Status Codes.

Ensure Players are Linked

Ensure the player has already linked their CAD for this integration to work.

Setup User Permissions

With the default permission check, players using the status command need the literal command.setstatus ACE permission. This is the permission node used by the current resource. Example add_ace group.sonoran_cad_units command.setstatus allow Add this line to your config.cfg for a group containing units who should be able to update their status. Avoid granting builtin.everyone unless public access is intentional.

Commands

In-game commands can be used to
  • /setstatus [status] Set your unit status in the CAD.

Function

This is a server-side function only and is exported as cadSetUnitStatus. Use setUnitStatus if using with other submodules.
  • apiId: The identifier attached to the unit
  • status: A status, can be the actual string or a number, based on configuration
  • player (optional): server ID of the player, used to send a client event

Event