Unit Status
Allows you to change a unit's status in the CAD.
Last updated
Was this helpful?
Allows you to change a unit's status in the CAD.
Last updated
Was this helpful?
This submodule utilizes API endpoints that require the standard version of Sonoran CAD or higher. For more information, view our page.
Looking for VPS, web, or dedicated hosting? Check out our official !
If you haven't already, be sure to install and configure the first.
Follow the for the required submodules.
Don't forget to set your account to properly link your in-game user to the CAD.
This script provides a status set command by default. Players will need the command.setstatus
(or whatever you configure the command to be).
Example
add_ace builtin.everyone command.setstatus allow
This line in your config.cfg
file will allow everyone to access the command. We highly reccomend creating to prevent users from spamming.
Option
Description
Default
setStatusCommand
Command that will allow units to set their own status.
setstatus
statusCodes
Array of status codes, configurable to be community-specific
Default SonoranCAD setup
Command
Description
setstatus <STATUS>
Update your unit status in the CAD.
Ex: setstatus AVAILABLE
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