# Sonoran Bot Source: https://docs.sonoransoftware.com/bot Our very own Discord bot to integrate your Discord community with our CAD and CMS software. ### What is Sonoran Bot? Sonoran Bot is a fully featured Discord bot providing integration tools with our other software, Sonoran CAD, Sonoran Radio and Sonoran CMS. It also provides general community management tools! ### Get Started We've put together some helpful guides for you to get setup with our product quickly and easily. [Get started now!](/bot/tutorials/getting-started) > [card] [Getting Started](/bot/tutorials/getting-started) # Discord-to-Discord Role Sync Source: https://docs.sonoransoftware.com/bot/tutorials/discord-role-sync Mirror Discord roles between servers linked to the same Sonoran community. Sonoran Bot can automatically mirror roles between Discord servers connected to the same Sonoran community. For example, a **Police Department** role in a department server can automatically grant the matching **Police Department** role in your main community server. ## Choose the Right Sync Path The `/rolemap` command contains two separate role sync options: | Sync path | Use it for | | - | - | | **Discord → Discord** | Mirroring roles from one Discord server to another Discord server. | | **Discord → Sonoran Products** | Mapping Discord roles to CMS or Radio permissions. | > [!NOTE] > > Changes made under **Discord → Discord** do not change your Sonoran CAD, CMS, or Radio permission mappings. > [!NOTE] > > **Screenshot placeholder:** `/rolemap` home menu showing the separate **Discord → Discord** and **Discord → Sonoran** buttons. For CAD permissions, use the [Role sync panel in CAD](/cad/integration-plugins/discord-bot-integration/role-sync). ## Before You Begin Make sure that: * [Sonoran Bot is set up](/bot/tutorials/getting-started) in both Discord servers. * Both servers are linked to the same Sonoran community. * You have the Discord **Manage Server** permission. * Sonoran Bot has **Manage Roles** in the destination server. * The destination role is below Sonoran Bot's highest role. * The member exists in the destination server before Sonoran Bot can assign the destination role. You will need the Discord server and role IDs when creating a mapping. Enable **Developer Mode** in Discord, then use **Copy Server ID** and **Copy Role ID** from the appropriate Discord menus. > [!WARNING] > > Discord-managed roles and roles above Sonoran Bot cannot be used as destination roles. ## Create a Mapping 1. Run `/rolemap` in a linked Discord server. 2. Select **Discord → Discord**. 3. Select **Create**. 4. Enter the requested IDs: * **Source Discord Server ID:** The server containing the role you want Sonoran Bot to watch. * **Source Role ID:** The role that controls access. * **Destination Discord Server ID:** The server that should receive the mirrored role. * **Destination Role ID:** The role Sonoran Bot should add or remove. * **Administrator Note:** An optional description to help your team identify the mapping. 5. Submit the form. New mappings are enabled immediately. > [!NOTE] > > **Screenshot placeholder:** Discord-to-Discord dashboard showing mapping totals and the **View Mappings**, **Create**, **Edit**, **Enable / Disable**, and **Delete** actions. > [!NOTE] > > **Screenshot placeholder:** Create mapping form with example source and destination server and role IDs. ### Example | Field | Example selection | | - | - | | Source server | Police Department server | | Source role | Police Department | | Destination server | Main community server | | Destination role | Police Department | When a member receives the source role, Sonoran Bot adds the destination role. When the source role is removed, Sonoran Bot removes the destination role. ## Manage Existing Mappings Run `/rolemap` and select **Discord → Discord** to manage your mappings: * **View Mappings:** Review each mapping, its enabled state, and any warning that needs attention. * **Edit:** Change the source, destination, or administrator note. * **Enable / Disable:** Pause a mapping without deleting it, or turn it back on later. * **Delete:** Permanently remove a mapping. > [!NOTE] > > **Screenshot placeholder:** Mapping list showing an enabled mapping, source and destination names, and a ready status. > [!NOTE] > > **Screenshot placeholder:** Mapping details screen showing the edit, enable or disable, and delete confirmation actions. ## How Role Mirroring Works * Mappings are one-way. The source role controls the destination role. * To mirror roles in both directions, create a separate mapping for each direction. * Sonoran Bot matches the same Discord user across both servers. * Role changes are synchronized automatically while the mapping is enabled. * If several source mappings grant the same destination role, the member keeps the destination role while any enabled source mapping still applies. You can also run `/sync` to manually synchronize your own roles. Administrators can run `/sync community: yes` to synchronize the linked community. ## Troubleshooting ### A Mapping Shows a Warning Open **View Mappings** and review the warning shown below the mapping. Common fixes include: * Reinvite Sonoran Bot if it is no longer in one of the linked servers. * Replace a role that was deleted. * Grant Sonoran Bot the **Manage Roles** permission in the destination server. * Move Sonoran Bot's role above the destination role. ### A Member Did Not Receive the Destination Role Check that: 1. The mapping is enabled. 2. The member has the source role. 3. The member is in the destination server. 4. Sonoran Bot can manage the destination role. After correcting the issue, run `/sync` or ask an administrator to run `/sync community: yes`. ### A Mapping Cannot Be Created Confirm that both servers are linked to the same Sonoran community and that each server and role ID was copied correctly. The source and destination cannot be the exact same role. # Getting Started Source: https://docs.sonoransoftware.com/bot/tutorials/getting-started Start using Sonoran Bot to link Sonoran products to your discord and perform common moderation actions. Sonoran Bot supports role sync with [Sonoran CAD](/bot/tutorials/sonoran-cad-integration) and [Sonoran Radio](/bot/tutorials/sonoran-radio-integration). Or, Sonoran Bot can sync roles with [Sonoran CMS](/bot/tutorials/sonoran-cms-integration) ranks. CMS ranks manage CAD, Radio, Drive, website, whitelisting, and more. > [!WARNING] > > You need **Manage Server** to invite and configure the bot. For CAD, follow the [CAD Discord setup guide](/cad/integration-plugins/discord-bot-integration). Role permissions are configured in the CAD UI. For Radio, follow the [Radio Discord setup guide](/radio/tutorials/integrations/discord-bot-integration). Role permissions and private channels are configured in the Radio UI. ### Invite the Bot to Your Server > [accordion] Inviting Sonoran Bot > > [Invite the bot to your Discord server](https://sonoranbot.com/invite). You must have the "Manage Server" permission to add bots; plus any permissions the bot requires to function. You will also be joined to our support server (Sonoran Software Systems) automatically. ### Setup the Bot and Link your Communities > [accordion] Setting up Sonoran Bot > > After inviting the bot, run the `/settings` command. You will then be prompted to select a logging channel for Sonoran Bot to use. > > ![Sonoran Bot - Set Logging Channel](https://docs-assets.sonoransoftware.com/sha256/4b/4bcac0e5cce635ae468970553a6622d4c2504271eb651c30eaffbfb2c7b2a4e9.png) > > Next, the bot will ask you if you are using Sonoran CMS or if you wish to manage Sonoran CAD/Radio manually with Discord roles. > > ![](https://docs-assets.sonoransoftware.com/sha256/29/29027ce1f25425127aff83778c35f7b145657dff09337b633ecadf5cbb52f7d3.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/96/96948e8e1dd7178cd7aea6b62fe83a572b9ee8c7fde1620a43639d8d7fa01af3.png) > > Enter your community ID and API key for [Sonoran CAD](/cad/api-integration/getting-started/retrieving-your-credentials) and/or [Sonoran Radio](/radio/developer-documentation/developer-documentation/api-endpoints-v2/retrieving-your-credentials). > > If you are using [Sonoran CMS](https://sonorancms.com/) to manage your community, you only need to enter your [CMS community ID and API key](/cms/developer-api-documentation/api-integration/getting-started/retrieving-your-credentials). Sonoran CMS manages your [CAD](/cms/integration-capabilities/sonoran-cad-sync) and [Radio](/cms/integration-capabilities/sonoran-radio-sync) permissions inside the app with CMS user ranks. ### Invite to Additional Servers If your community uses multiple discord servers, you can link them all to the same community to utilize the permissions sync easily. Simply set them up normally as you just did, and they will automatically be synced! You will be able to use the bot's commands just like on the primary server. ### Set up Integrations At this point, you will need to select either CAD or CMS integration. We highly encourage users to make use of the CMS integration as the CMS can integrate with the CAD on its own! * [CMS Integration](/bot/tutorials/sonoran-cms-integration) * [CAD Integration](/bot/tutorials/sonoran-cad-integration) * [Radio Integration](/bot/tutorials/sonoran-radio-integration) * [Settings](/bot/tutorials/usage/settings) * [Commands](/bot/tutorials/usage/commands) # Sonoran CAD Integration Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cad-integration Configure Discord role permissions directly in the CAD admin panel. Choose a Discord role and the CAD permissions it gives members, all inside CAD. ## Connect Discord 1. In CAD, open **Administration > Advanced > Discord Integration > Invite bot**. 2. Select **Invite Sonoran Bot** and choose your server. 3. In Discord, run `/settings`. Choose a logging channel, select **Discord Only**, and enter the **Community ID** and **API Key** shown in CAD. 4. Return to CAD and select **Refresh Discord connection**. If the bot is already set up, use `/settings > API Settings > Change CAD Setup` to connect your CAD community. ## Choose role permissions in CAD 1. Open the **Role sync** tab and select **Add role**. 2. Search for a Discord role. Check its color and server name before selecting it. 3. Choose permissions under **Access**, **Records**, and **Administration**. 4. Wait for **Saved automatically**, then select **Done**. ![CAD Role sync tab showing Police Officer and Dispatcher role mappings](https://docs-assets.sonoransoftware.com/sha256/de/de58efd1cab6e2fbbddb32f513dd777e78ac393c4154d14ba70c858f3e748bd6.jpg) *Manage role permissions directly in CAD.* ![Police Officer role mapping with CAD permissions selected and Saved automatically confirmation](https://docs-assets.sonoransoftware.com/sha256/1f/1f0a2dbaf3aa0db06434f3ef5d5701dc0cfa278062661c1ac1f674e6c7f6ab7c.jpg) *Choose what members with this role can do.* Select **Edit permissions** beside an existing role to change it. Changes save automatically. ## Sync members 1. Members join your CAD community. 2. Members run `/sync` in Discord. The bot guides them through account linking if needed. Mapping changes automatically resync all linked members **5 minutes after your last edit**. Finishing the sync may take a little longer. Members receive the combined permissions from their mapped roles. Sync replaces manually assigned and permission-key permissions. > [!NOTE] > > If this community uses Sonoran CMS, configure [CAD permissions in CMS](/cms/integration-capabilities/sonoran-cad-sync). The CAD role mapping editor is disabled for CMS-managed communities. See the [CAD Role sync guide](/cad/integration-plugins/discord-bot-integration/role-sync) for the full walkthrough. # Sonoran CMS Integration Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration Link Sonoran Bot to Sonoran CMS for role syncing and other handy features! # Account Link Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration/account-link Learn how to link your Discord account to Sonoran CMS! ## **Link your Discord Account** ### Via CMS Once the bot has been [added and linked to your CMS community](/bot/tutorials/getting-started), any users who do not yet have their Discord account linked will see the following banner: ![Sonoran CMS - Link Discord Prompt](https://docs-assets.sonoransoftware.com/sha256/1d/1dd08c3b29ae92f4661976563d6d4bdce782d841437562372c9825bdacaa511e.png) They will be required to link their Discord account in order for the bot's features to work on them. This banner will show until they link their Discord to their Sonoran account. Select `Link Discord` to sign into your Discord account and authorize Sonoran CMS. ### Via Command Users can also run the `/linkme` command in Discord to link their Sonoran Software account. # Calendar Event Sync Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration/calendar-event-sync Sync calendar events between CMS and Discord! ## CMS Calendar Integration If you have linked Sonoran Bot to your community, creating an event in CMS will automatically create an event within your community's Discord channel making it easy to coordinate community events across multiple platforms! By clicking the **Interested** button, you will be automatically RSVP'd in CMS. ![Sonoran CMS Calendar Event in Discord](https://docs-assets.sonoransoftware.com/sha256/38/3876df9a6c13cbe52c67cefbd012760cae40458f509ac80eac8dedfddce6a75a.png) # Import Discord Roles Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration/import-discord-roles Quickly configure CMS ranks by importing your existing Discord roles! ## Import Discord Roles as CMS Ranks Importing Discord roles to the CMS allows you to quickly create CMS ranks from your existing Discord roles. Access the **Rank Manager** in the **Administration** panel under **Ranks**. Select the **Discord** import button > **Select Guild** > toggle the specific Discord roles you wish to import. Once imported, a CMS rank will be created for every selected Discord role with a matching name, color, and icon. Additionally, toggling the optional **Also create one-to-one Discord role mapping(s)** to create one-to-one mappings for every imported role. This will [sync the CMS ranks to the Discord roles for all users](/bot/tutorials/sonoran-cms-integration/role-mapping). ![](https://docs-assets.sonoransoftware.com/sha256/c3/c381783755db51f558dc51ff2d24d87bf4f175f8dfa2eacca0d64533c99192ca.png) ![](https://docs-assets.sonoransoftware.com/sha256/57/57c4e84daf659349777c46418d2597d140868c3dfc54299b3408915b096e15ac.png) # Promotion Flows Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration/promotion-flows Trigger a Sonoran CMS Promotion Flow from Discord on specified users ## Triggering a Promotion Flow You can trigger a Sonoran CMS [promotion flow](/cms/tutorials/user-management/rank-promotions) via the following commands * `/promote` * `/demote` These commands can be used to trigger specific rank changes you have prior configured on Sonoran CMS. You can select up to 5 users at a time to trigger this flow on. ![](https://docs-assets.sonoransoftware.com/sha256/1f/1fe3d389d8f7f97558bea58eff0f5c639aeb2d8193ed7b1c2d710fb904788b6f.png) *Sonoran Bot - Select up to 5 users* Flow names are based on the ranks they add/ remove. You can type to begin searching for a specific flow you are looking for as shown below: ![](https://docs-assets.sonoransoftware.com/sha256/d6/d6abe39ec2a5d1f5765d989b6c2d66042bc4220173a9afdea31bc8ebcb550994.png) *Sonoran Bot - Searching for specific promotion flows* Upon successfully running a flow the users ranks will be updated in Sonoran CMS. ![](https://docs-assets.sonoransoftware.com/sha256/40/40cabc253b22cf13d12002cbec8e0b911f4ef519e383f176ac7f792b8597e28f.png) *Sonoran CMS - Rank updated* ![](https://cdn.discordapp.com/attachments/1067667756188696626/1435410810389139587/image.png?ex=690bddfd\&is=690a8c7d\&hm=fcd9cb51af2c425068caa24665004cb21106a2f96fe080ad7e50d3e317fd079e&) *SonoranBot - Promotion Flow sucessful message* # Role Mapping Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration/role-mapping Learn more about mapping Discord roles in Sonoran CMS! ## Mapping Discord Roles and CMS Ranks In the **Administration** panel, navigate to **Integrations** > **Discord** > **Role Mapping** Configure your CMS x Discord [One-to-One](/bot/tutorials/sonoran-cms-integration/role-mapping#one-to-one-mapping) and [Category](/bot/tutorials/sonoran-cms-integration/role-mapping#category-mapping) mappings below. ## One-to-One Mapping ![](https://docs-assets.sonoransoftware.com/sha256/e1/e1c7a31bb5e98595441d072e567932a33862c1d50d77027e10f066a684a3d8db.png) *CMS x Discord: One-to-One Mapping* > [accordion] One-to-One Mapping Explained > > One-to-one mapping allows you to map a CMS rank to one or more Discord roles. Adding or removing a one-to-one mapped rank in the CMS will add or remove the Discord role and vice versa. > > **This mapping type is the most common.** > > * CMS: `Admin` rank > * Discord: `Admin` role in one or more Discord guilds > > ![](https://docs-assets.sonoransoftware.com/sha256/43/43299419aaeed337113547a056fd8b78ac2da029f7cfb867ae0bebed03c443a2.png) ## Category Mapping ![](https://docs-assets.sonoransoftware.com/sha256/ad/ada15140a3da84204fe2079f317602ed6d5dc206686fe070a68c162178b9d4f9.png) *CMS x Discord: Category Mapping* > [accordion] Category Mapping Explained > > Category mapping allows you to map multiple CMS ranks to a single Discord role. If a user has any of the CMS ranks they will receive the Discord role. If a user has none of the CMS ranks the Discord role will be removed. > > This mapping type is best used for role categories. > > * CMS: Multiple staff ranks `Moderator`, `Admin` and `Director` > * Discord: A general `Staff` role > > ![](https://docs-assets.sonoransoftware.com/sha256/a6/a6ff11fcd4f1b9d8be50582ae9709032ba628cafcb27788f45fa0d049cc7ea8a.png) ## Syncing the Role Map > [!NOTE] > > After modifying the mapping, your community will automatically be re-synced.\ > This may take a couple of minutes to complete. While changes are automatic, you can also manually re-sync users with the `/sync` command. Administrators can also run `/sync community: yes` to re-sync the entire community in all linked Discord guilds. # Discord Sync Logic Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-cms-integration/role-mapping/discord-sync-logic Learn more about how Sonoran Bot syncs permissions with Discord. ![](https://docs-assets.sonoransoftware.com/sha256/f1/f17afc4782ac01d52b47ba1f63acf1065bcb58bf84f59ab822cbe51afbab0e84.webp) ## About The Sonoran Bot offers automated permission syncing by "mapping" CMS ranks to Discord roles. There are several different cases where these permissions are continually synced. ## CMS -> Discord Events ### User Discord Link When a user newly links their Discord account in the CMS: * CMS requests all existing Discord roles that the user has * CMS adds all associated "mapped" CMS ranks based on existing Discord roles * CMS [removes the Discord link](/bot/tutorials/sonoran-cms-integration/role-mapping/discord-sync-logic#user-discord-unlink) from any other CMS accounts ### User Discord Unlink When a user has their Discord account unlinked from their CMS account: * CMS removes all associated "mapped" ranks * Bot removes all associated "mapped" roles *This ensures a user cannot unlink their Discord account from CMS prior to a ban, and keep their Discord roles.* ### User CMS Join When a user joins the CMS community: * CMS checks for a linked Discord account * CMS requests all existing Discord roles that the user has * CMS adds all associated "mapped" CMS ranks based on existing Discord roles ### User CMS Leave When a user leaves the CMS community: * CMS removes all ranks for the user * CMS informs the bot of a user leaving the CMS community * Bot removes all associated "mapped" Discord roles ### User CMS Ban When a user is banned in the CMS community: * CMS removes all ranks for the user * CMS informs the bot of a user ban * Bot removes all associated "mapped" Discord roles * If [ban sync](/bot/tutorials/usage/settings#ban-sync) is enabled, bot will ban user in any remaining guilds ## Discord -> CMS Events ### Account Join When an account joins a Discord Guild: * Bot requests any existing CMS ranks the user has * Bot applies any associated "mapped" roles from the existing CMS ranks ### Account Leave When an account leaves a Discord Guild: * If [kick on leave](/bot/tutorials/usage/settings#toggle-kick-on-leave) is enabled * The user will be kicked from the CMS * The user will be kicked from any remaining Discord Guilds * Bot checks for remaining "mapped" roles in any other linked Discord Guilds * Any mapped ranks in remaining other Discord Guilds will remain unchanged * Any mapped ranks that no longer remain in any Discord Guild will be removed ### Account Role Added When a new Discord role is added to a user: * Bot informs the CMS of the new role * The associated "mapped" rank is applied in CMS * Bot applies all associated "mapped" roles to all additional Discord Guilds ### Account Role Removed When a Discord role is removed from a user: * Bot informs the CMS of the role removal * The associated "mapped" rank is removed in CMS * Bot removes all associated "mapped" roles to all additional Discord Guilds ### Account Manual Sync When a user runs the `/sync` command in a Discord Guild: * Bot requests all existing CMS ranks the user has * Bot applies any associated "mapped" roles from the existing CMS ranks * Bot informs CMS of any existing Discord roles the user has * CMS adds any associated "mapped" roles from the existing Discord roles *A manual sync will never result in any role or rank removal. It will only "complete" any missing pieces to the mapping.* ### Account Kicked When a user is kicked from a Discord Guild: * If [kick on leave](/bot/tutorials/usage/settings#toggle-kick-on-leave) is enabled * The user will be kicked from the CMS * The user will be kicked from any remaining Discord Guilds * Bot checks for remaining "mapped" roles in any other linked Discord Guilds * Any mapped ranks in remaining other Discord Guilds will remain unchanged * Any mapped ranks that no longer remain in any Discord Guild will be removed ### Account Banned When a user is banned from a Discord Guild: * If [ban sync](/bot/tutorials/usage/settings#ban-sync) is enabled * The user will be banned from the CMS * The user will be banned in any remaining Discord Guilds * Bot checks for remaining "mapped" roles in any other linked Discord Guilds * Any mapped ranks in remaining other Discord Guilds will remain unchanged * Any mapped ranks that no longer remain in any Discord Guild will be removed # Sonoran Radio Integration Source: https://docs.sonoransoftware.com/bot/tutorials/sonoran-radio-integration Configure Discord role permissions directly in the Radio panel. Choose a Discord role and the Radio permissions it gives members, all inside Radio. ## Connect Discord 1. [Invite Sonoran Bot](https://sonoranbot.com/invite) and choose your Discord server. 2. In Radio, open **Administration** and copy your **Community ID** and **Community API Key**. 3. In Discord, run `/settings`. Choose a logging channel, select **Discord Only**, and enter your Radio community ID and API key. 4. Return to Radio, open **Customize > Discord**, and select **Refresh Discord roles**. If the bot is already set up, use **Change Radio Setup** in the API settings under `/settings` to connect your Radio community. ## Choose role permissions in Radio 1. In **Customize > Discord**, select **Add role**. You can also get there with **Set up role sync** in **Members**. 2. Choose your Discord server if more than one is connected. 3. Type to search for a role. Check its Discord color before selecting it. 4. Choose **Permissions** and **Private channels**. 5. Wait for **Changes saved automatically**, then select **Done**. Select **Edit permissions** beside an existing role to change it. Changes save automatically. See the [illustrated Radio role sync guide](/radio/tutorials/integrations/discord-bot-integration/role-sync) for screenshots and permission details. ## Sync members 1. Members join your Radio community. 2. Members run `/sync` in Discord. The bot guides them through account linking if needed. Mapping edits automatically resync all linked members **5 minutes after the last edit**. Finishing the sync may take a little longer. Once a member is linked, adding or removing their Discord roles automatically updates Radio permissions without another `/sync`. Members receive the combined permissions and private channel access from their mapped roles across connected Discord servers. Sync replaces manually assigned Radio permissions and private channel grants; the community owner keeps full access. > [!NOTE] > > If your community uses Sonoran CMS, configure [Radio permissions in CMS](/cms/integration-capabilities/sonoran-radio-sync). Radio role mapping is disabled for communities managed by CMS. ## Troubleshooting 1. Confirm Sonoran Bot is connected to the correct Radio community. 2. Select **Refresh Discord roles** in Radio if a server or role is missing. 3. Check that the member has a mapped Discord role and has joined your Radio community. 4. Run `/sync` in Discord to check the member's permissions. The bot explains any account linking needed. 5. After editing a mapping, wait 5 minutes without another edit, then allow a little longer for the sync to finish. # Usage Source: https://docs.sonoransoftware.com/bot/tutorials/usage SonoranBot can be used for a variety of different features, here you can learn about all the different commands and settings it offers. > [card] [Settings](/bot/tutorials/usage/settings) > > Learn about all of SonoranBot's different settings! > [card] [Commands](/bot/tutorials/usage/commands) > > Learn more about SonoranBot's Discord commands. > [card] [Ticket System](/bot/tutorials/usage/tickets) > > Create configurable private support tickets. > [card] [Moderation](/bot/tutorials/usage/moderation) > > Learn more about SonoranBot's Discord moderation capabilities. # Commands Source: https://docs.sonoransoftware.com/bot/tutorials/usage/commands Learn more about SonoranBot's Discord commands. Configure [CAD role sync in the CAD admin panel](/cad/integration-plugins/discord-bot-integration/role-sync). ## Commands Reference By default, only server administrators (those with Administrator in the guild) can execute any of the below commands. You must use [Discord's permissions setting feature](https://discord.com/blog/slash-commands-permissions-discord-apps-bots) to give users access. | Command | Product | Function | | - | - | - | | `/rolemap` | Discord/CMS/Radio | Opens Discord-to-Discord, CMS, and Radio role mapping settings | | `/settings` | | Allows adjustment of various [settings](/bot/tutorials/usage/settings) in the bot | | `/ticket` | | Creates, configures, and manages private support tickets. See the [Ticket System](/bot/tutorials/usage/tickets) guide. | | `/linkme` | All | Links your Discord account to your Sonoran account | | `/sync` | All | Syncs your roles across Sonoran products. Select `community: Yes` to sync everyone in the linked servers. | | `/syncuser` | All | Syncs the selected member across Sonoran products. | | `/help` | | Links to sonoranbot.com | | `/promote` | CMS | Trigger a CMS [promotion flow](/cms/tutorials/user-management/rank-promotions) | | `/demote` | CMS | Trigger a CMS [demotion flow](/cms/tutorials/user-management/rank-promotions) | | `/clockincms` | CMS | Clock in to CMS | | `/clockoutcms` | CMS | Clock out of CMS | | `/caduser` | CAD | Get information on a linked CAD user | | `/embedbuilder` | | Possible flags are `link` and `build` | | `/info` | | Returns server and community information | | `/ping` | | Pings the server | | `/ban` | | Ban Members | | `/unban` | | Unban Members | | `/kick` | | Kick Members | | `/mute` | | Timeout Members | | `/unmute` | | Unmute Members | | `/warn` | | Warn Members | ## Deprecated Commands These commands are no longer in use, please use the specified replacements (or see notes). | Command | Replacement | Notes | | - | - | - | | `/guildlink` | None | Setup additional communities through `/settings` and they will be linked automatically | | `/syncroles` | `/sync` | Select `community: Yes` to sync all linked servers. Run `/sync` alone to sync your own account. | | `/syncme` | `/sync` | Run `/sync` to sync your own account. | | `/setsyncmode` | None | Automatically detects sync mode. If a CMS community has been linked to your guild, then it will sync to that, and and CAD roles will have to be mapped using [CMS -> CAD Permission Sync](/cms/integration-capabilities/sonoran-cad-sync) | # Moderation Source: https://docs.sonoransoftware.com/bot/tutorials/usage/moderation Learn more about SonoranBot's Discord moderation capabilities. Using SonoranBot, you have access to several commands that are all logged to a special channel. Keep moderation actions organized and easily control access! > [!NOTE] > > Moderation commands are available to any Discord server linked to a community, including those on the Free version of CAD and/or CMS! ## Getting Started ### Set Permissions > [!WARNING] > > The permissions in the below table are also what SonoranBot will need to perform them, otherwise you will get an error message. By default, all commands are set to what you expect: | Command | Required Permission | | - | - | | `/ban` | Ban Members | | `/kick` | Kick Members | | `/mute` | Timeout Members | | `/warn` | Manage Guild ("disabled") | The `/warn` command is attached to Manage Guild by default like all other commands - you will want to give this command to certain roles as desired. This can be accomplished within Discord's Integrations settings (Desktop/Web only). ![SonoranBot - Manage Integration](https://docs-assets.sonoransoftware.com/sha256/77/7767b107defce98cb88be33260b0877c6a673a32231c1db87f734bc4795a2ba6.png) ![SonoranBot - Warn Permission](https://docs-assets.sonoransoftware.com/sha256/ef/ef9d66927c4ed28ccbaae0a149044db765db8229ecf0c70c81645b90473fa5d1.png) Managing integration permissions is outside the scope of this guide, but Discord [has a guide](https://support.discord.com/hc/en-us/articles/4644915651095-Command-Permissions) of their own to walk you through the process. Chances are, you've already done this if you're using the CAD/CMS integrations. ## Usage Examples When a command is used, a logging entry will be created depending on the action. ### Ban/Unban ![SonoranBot - /Ban Command](https://docs-assets.sonoransoftware.com/sha256/45/45a19917632baaff824fa26716b99c822e4eda403740e3f7bccae8ea2aa9303c.png) ![SonoranBot - Ban Message](https://docs-assets.sonoransoftware.com/sha256/3a/3a296503cfc6505ce194c4f66d98a2fc86eb96b86d91cf3780b59ff049dae69c.png) *** ### Kick ![SonoranBot - /Kick Command](https://docs-assets.sonoransoftware.com/sha256/c1/c1fbd3fda77a3d2f9cb58446c3c40251b4bb7a9213e758fc03ea2d4f36746e8a.png) ![SonoranBot - Kick Message](https://docs-assets.sonoransoftware.com/sha256/e2/e2459bdf9654c7cb11a14d5236d423eaa06ca38c50288ca76956c314eb737084.png) *** ### Mute/Unmute ![SonoranBot - /Mute Command](https://docs-assets.sonoransoftware.com/sha256/1a/1a95645e9b7b9fefa25412843031ad3595d4244b008b7ad8b9ad99c9a794676b.png) ![SonoranBot - /Unmute Command](https://docs-assets.sonoransoftware.com/sha256/d9/d966993d6095ffe9184bc8ce2fdb5d9a7c94bba9b2ae075281294449d93869f1.png) *** ### Warn ![SonoranBot - /Warn Command](https://docs-assets.sonoransoftware.com/sha256/14/14a1810ff72ee8839b0d8b061b5aca5a45d0edf929364c150402f1d3c7a5ca6d.png) ![SonoranBot - /Warn Message](https://docs-assets.sonoransoftware.com/sha256/80/8006722230ee4222e305339f1985728ead803568db3ef3186abf11ca0f255bbc.png) # Settings Source: https://docs.sonoransoftware.com/bot/tutorials/usage/settings Learn more about SonoranBot's different settings. Running the command `/settings` allows you to manage many different aspects of how Sonoran Bot interacts with your Discord and CMS. ![SonoranBot - /settings command](https://docs-assets.sonoransoftware.com/sha256/36/36ba0f9b8cee74f6e334977963b4fd71ef88c3d869467acae96db7d19ce13968.png) ## API Settings Within the `/settings` menu, you can select API Settings, which will give you the options to change or delete the settings for your linked CAD and CMS communities. ![SonoranBot - API Settings](https://docs-assets.sonoransoftware.com/sha256/cf/cf98d6a615af085f5a20cf8dac480f4d2ac8bad882efa9038a83a8640e75e752.png) ## CMS Settings #### CMS Settings Menu Many of the following settings can be toggled from within CMS in the settings menu located at `Admin` > `Integrations` > `Discord` > `Settings` ![](https://docs-assets.sonoransoftware.com/sha256/2b/2b3e64512461da8458f54d962a97f5cdb96b5ae4acc91ea7002d350e5e457c52.png) ### Branding Removal CMS communities with [branding removal](/cms/pricing/pricing-faq/branding-removal) can customize the avatar, nickname, banner image, and bio! Once set in the CMS Discord settings panel, the changes can take up to five minutes to be reflected due to Discord rate limits. ### [Calendar Sync](/bot/tutorials/sonoran-cms-integration/calendar-event-sync) Allows you to toggle sync between CMS calendar events and your Discord. Enabling this will create a Discord event for any calendar events created in CMS. This can also be toggled from CMS in `Admin` > `Integrations` > `Discord` > `Settings` ### Name Sync Name sync allows you to sync the names between Sonoran CMS and Discord. This can also be toggled and configured from the CMS in `Admin` > `Integrations` > `Discord` > `Settings` #### CMS -> Discord Mode Enabling Name Sync in CMS -> Discord mode will automatically change the nicknames of all users in the Discord server to their corresponding CMS community names. The name it shows is whatever you've set in [CMS's Name Customizations settings](/cms/tutorials/customization/community-branding-and-settings#community-name-customization). Thus, a hypothetical user whose name is displayed as `John Doe | 1A` would receive that as a nickname in Discord. #### Discord -> CMS Mode Enabling Name Sync in Discord -> CMS mode will update users' CMS display names to match their Discord server name. ### Clock In/Out Toggles the ability to clock in and out in CMS from Discord. If enabled, users can do `/clockincms` to clock in or `/clockoutcms` to clock out. This will automatically send clock information to CMS. For more information on CMS's time clock system, [see its documentation here](/cms/tutorials/forms/clock-in-out-system). This can also be toggled from CMS in `Admin` > `Integrations` > `Discord` > `Settings` ### Ban Sync Syncs CMS & Discord Guild bans with your community. If a user is banned from one, they will also automatically be banned from the other, and vice versa. Banning a user in a linked Discord guild will also ban them in the CMS. This can also be toggled from CMS in `Admin` > `Integrations` > `Discord` > `Settings` ## Role Sync Settings ### Toggle Kick On Leave This will automatically remove a user from CMS if they leave or are banned from the Discord. Likewise, it will also automatically remove a user from the Discord Guild if they leave the CMS community. This can also be toggled from CMS in `Admin` > `Integrations` > `Discord` > `Settings` ## Logging Settings Allows you to set or change the General logging channel and the Moderation logging channel. ![SonoranBot - Set Logging Channel](https://docs-assets.sonoransoftware.com/sha256/4b/4bcac0e5cce635ae468970553a6622d4c2504271eb651c30eaffbfb2c7b2a4e9.png) # Ticket System Source: https://docs.sonoransoftware.com/bot/tutorials/usage/tickets Create and manage private support tickets with Sonoran Bot. Sonoran Bot can create private support channels from configurable ticket panels. Each panel can use its own support roles, categories, intake questions, limits, transcripts, and logging channels. ![A Sonoran Bot ticket panel with a Create Ticket button](https://docs-assets.sonoransoftware.com/sha256/98/9877cfa2f0c6c105138e8ec7f3c5659493c1c43c5b353d7a38e875bb84eb6a76.png) *Members select the panel button to open a private ticket.* ## Create a Ticket Panel You need the **Manage Server** permission to configure ticket panels. Sonoran Bot also needs permission to manage channels and messages in the ticket categories. 1. Create the panel and select an initial support role and open-ticket category: `/ticket panel create name:Support support_role:@Support open_category:Open Tickets` 2. Configure where closed tickets, transcripts, and ticket logs should go: `/ticket panel edit panel:Support closed_category:Closed Tickets transcript_channel:#ticket-transcripts log_channel:#ticket-logs` 3. Publish the panel in a channel members can access: `/ticket panel send panel:Support channel:#open-a-ticket` Use `/ticket panel list` to view existing panels. Running `/ticket panel send` again publishes another copy of the same panel. ## Add Intake Questions A panel can ask up to five questions before opening the ticket. Add each question with `/ticket form add`: `/ticket form add panel:Support question:What can we help you with? style:Paragraph required:True` Use `/ticket form list`, `/ticket form remove`, or `/ticket form clear` to review and change the questions. ![A Discord modal containing ticket intake questions](https://docs-assets.sonoransoftware.com/sha256/3c/3ce87dada7e0be4c2a1dcd0449ba2ab14126ea149f944765c35d104f30059848.png) *Intake answers are displayed to the support team when the ticket opens.* ## Configure Access and Limits Use `/ticket panel role-add` and `/ticket panel role-remove` to manage these role groups: * **Support team:** Can view and manage tickets for the panel. * **Read-only observer:** Can view tickets without replying. * **Allowed to open:** Limits panel use to selected roles. * **Blocked from opening:** Prevents selected roles from opening tickets. * **Bypass ticket limits:** Allows selected roles to ignore panel limits. `/ticket panel edit` also configures the maximum open tickets per user and across the panel, automatic transcripts, claiming, close confirmation, channel names, and behavior when a ticket owner leaves the server. ## Manage Tickets New tickets include buttons to close, claim, and save a transcript. The main ticket message is pinned automatically when that panel option is enabled. ![An open Sonoran Bot support ticket with Close, Claim, and Transcript buttons](https://docs-assets.sonoransoftware.com/sha256/10/10d49a12238cdc9e7a905d1b07cacbf4d32891bc4b654da79f862336a201247b.png) *A private ticket channel visible to the ticket owner and configured support roles.* The ticket owner and support team can use the available buttons or these commands: | Command | Function | | - | - | | `/ticket open` | Open a ticket from a selected panel. Support staff can open one for another member. | | `/ticket close` | Close an open ticket. | | `/ticket reopen` | Reopen a closed ticket. | | `/ticket delete` | Permanently delete a ticket channel. | | `/ticket claim` and `/ticket unclaim` | Assign or unassign a support team member. | | `/ticket add` and `/ticket remove` | Add or remove a user or role. | | `/ticket rename` | Rename the ticket channel. | | `/ticket transfer` | Transfer ownership to another member. | | `/ticket transcript` | Export up to 1,000 messages as an HTML transcript. | | `/ticket info` | View the ticket owner, status, assignment, and participants. | Most ticket-management commands accept an optional `ticket` channel. If it is omitted, the command uses the current channel. # 🏆 Why Sonoran CAD? Source: https://docs.sonoransoftware.com/cad Experience Sonoran CAD, the free, most popular dispatching software for FiveM, ER:LC & gaming communities alike! ## What is Sonoran CAD? ![](https://docs-assets.sonoransoftware.com/sha256/03/036bd368fc2dce6dec32bb8df1f14eaad758f2118367030bb22710ac8084748b.png) Sonoran CAD is the largest, most popular dispatch and records management system for gaming communities. With seamless integrations for FiveM, ER:LC on Roblox, and more, it delivers unmatched power, speed, and customization—taking your roleplay experience to the next level. > [card] [getting-started](/cad/tutorials/getting-started) ### ✨ [Dispatch AI](/radio/tutorials/usage/dispatch-ai) Dispatch AI is our most advanced integration to date—bringing a real-time AI dispatcher directly into your community’s CAD. When paired with [Sonoran Radio](/radio), units can create calls, run license plates, update their status, and more—all automatically through their radio transmissions. ![](https://docs-assets.sonoransoftware.com/sha256/b7/b79c2125dcbc3d4e15b4c7f89598999a94f6e7b680f5f7c67acb47e1a4443628.png) ### 📱 Downloadable Apps In addition to our web version, you can download Sonoran CAD on the [iOS App Store](https://apps.apple.com/us/app/sonoran-cad/id1496539456), the [Google Play Store](https://play.google.com/store/apps/details?id=sonorancadmdt.app/\&hl=en_US), or for [Windows Desktop](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cad/\&platform=windows).\ \ It's never been more easy to access your community's CAD system, regardless of what platform you're on! ![](https://docs-assets.sonoransoftware.com/sha256/60/6001db4de9f15e6043f59cb38a9006af497859cc5da66a6b0158ec9b6d196338.png) *Sonoran CAD - Downloadable Apps* ### 💾 Database Sync Tired of having to manually register civilians? With Sonoran CAD's [Database Sync](/cad/integration-plugins/database-sync-and-merge), all of your in-game characters, licenses, and vehicle registrations are automatically in your CAD! ![](https://docs-assets.sonoransoftware.com/sha256/8c/8c1113f073e062dc99369f3abd6bb879cd17a8a7c5cfea65021f930ec8a7e404.png) *Sonoran CAD - Database Sync* ### 🎮 FiveM In-Game Integration Plugins Sonoran CAD's integration framework includes [**over a dozen drag-and-drop plugins**](/cad/integration-plugins/in-game-integration/available-plugins) for your game server! ![](https://docs-assets.sonoransoftware.com/sha256/80/8074dfcc36bb656f12b495ac264672c7ad7c02ab3a0ffec12890a2cf33399534.png) *Sonoran CAD - In Game Integration* ### 💬 Discord Permission Integration Our official [Discord bot](/cad/integration-plugins/discord-bot-integration) automatically **syncs Discord roles with CAD account permissions**. This allows you to easily grant and remove permissions from a user's CAD account all through Discord!‌ ​[Discord webhooks](/cad/integration-plugins/discord-bot-integration/discord-webhooks) instantly notify your community when changes are made, calls are placed, units toggle their panic status, and more! ![](https://docs-assets.sonoransoftware.com/sha256/a1/a13c3940fe1fb571fbff9b93f2d0eea0ca368478901fa869dffe421497551090.png) *Sonoran CAD - Discord Webhooks* ### 🌎 Full Translation and Locality Support Only Sonoran CAD supports full [i18n localization](/other/translation-support). Regardless of your community's native language, Sonoran CAD supports it!\ \ Sonoran CAD is currently fully translated in Chinese, Russian, Spanish, Polish, Italian, German, Arabic, and more! Anyone is allowed to [contribute to our GitHub translation files](/other/translation-support). Sonoran CAD also offers vast [geographical location](/cad/tutorials/customization/geographical-settings) support for non-American communities. ![](https://docs-assets.sonoransoftware.com/sha256/66/664521d6825b8a0f00c8be32dc96de1b51f21fc4fb8ce0d5035c01c645511ca0.png) *Sonoran CAD - Translations* ### 🎥FiveM Live Bodycam Footage In-CAD Sonoran CAD's [bodycam system](/cad/integration-plugins/in-game-integration/available-plugins/bodycam) offers live video feeds from in-game, right in the CAD! ![](https://docs-assets.sonoransoftware.com/sha256/b4/b4f1095bfbe835e004d9fa57807d78a36ebbe854981a5b18de153126b3405606.png) ### 📍 3D Live Map Sonoran CAD's custom [3D live map](/cad/integration-plugins/in-game-integration/available-plugins/live-map) allows you to edit and view live unit information, emergency call blips, Sonoran Street Signs, and more! ![](https://docs-assets.sonoransoftware.com/sha256/62/62cf8c75ba8cb9ce13e65814c8752b547b0e4175e4ceb79dbc80f607b2880bc7.png) ### [🛑](https://emojipedia.org/stop-sign/) [FiveM Street Signs Integration](/cad/integration-plugins/in-game-integration/available-plugins/smart-signs) We've released a free street signs integration for everyone! You can customize in-game roadway signs right from Sonoran CAD! ![An in-game roadway sign and its matching CAD controls.](https://docs-assets.sonoransoftware.com/sha256/bb/bbdceeb8e39bbae763e43bbfb69c7c0adaf74423fd710d28ac52d70c52750f76.png) *Sonoran Street Signs* ### 🚔 [FiveM ERS Integration](/cad/integration-plugins/in-game-integration/available-plugins/ers) Does your community play Emergency Response Simulator? [Sonoran CAD's ERS integration](/cad/integration-plugins/in-game-integration/available-plugins/ers) allows dispatchers to create callouts from the live map, lookup character records, and more! ![](https://docs-assets.sonoransoftware.com/sha256/1a/1a07b5b6f0f7ebb17a47272b41c98eadbf825ef8d0e6d4661f4c75c727dc09f9.png) *Sonoran CAD x ERS* ### 🚒 FiveM Station Alert Integration We've partnered up with Inferno Collection to integrate their Station Alert script directly with Sonoran CAD! Dispatchers can toggle station doors, lights, and text-to-speech messages right from Sonoran CAD! [Learn more about this free script included with Sonoran CAD Pro!](/cad/integration-plugins/in-game-integration/available-plugins/station-alert) ![](https://docs-assets.sonoransoftware.com/sha256/15/15aafd91c1bb4e6742c22fcb6ea437ad5fbd4e7185f1127941de9c31747a0493.png) *Sonoran CAD x Inferno Collection* ### [💻](https://emojipedia.org/laptop/) FiveM Mini CAD Easily view and attach to calls, talk to other officers, and more all from the [in-game mini CAD](/cad/integration-plugins/in-game-integration/available-plugins/tablet)! ![](https://docs-assets.sonoransoftware.com/sha256/2b/2b204258a6ddd3d10317cda76f696dd7d09ffd30ff8a0a3342624f0eb0a97040.png) *Sonoran CAD Mini-CAD* ### 📞 [FiveM Local Callers](/cad/integration-plugins/in-game-integration/available-plugins/local-callers) Nearby civilian witnesses will place an emergency call during car jackings, weapon brandishing, death, and more. Stop or cut their information short by killing them in time! ![](https://docs-assets.sonoransoftware.com/sha256/ec/ec16af2d3f8c1bcd7021c20c46ad6b5433f966a2854ee6744e99b31bfa6c91a2.png) *Sonoran CAD - Local Callers* ### 🏥 [Rapid IQ](/cad/tutorials/dispatching/rapid-iq) Rapid IQ guides emergency call-takers through dynamic, protocol-driven medical intake flows, enabling faster triage, consistent decision-making, and accurate dispatching. ![](https://docs-assets.sonoransoftware.com/sha256/1c/1c58189b4ef6195858e72fa56ddd9002430f8dd68cf6cfa0c13a7164e8c739bb.png) ### 📺 Twitch Bodycam, Bot, and Smart Lighting ![](https://docs-assets.sonoransoftware.com/sha256/ce/ced124026e0ed7be1ea7f9dd5298e6a3aada47dfa82e54a5e60782dab178b13f.png) *Sonoran CAD - Stream Overlay* ![Sonoran CAD - Smart Lighting](https://docs-assets.sonoransoftware.com/sha256/60/609b8f892e22d239a0dbe903effb0473ddda4cbcfb77e79cfa725f003df0e31c.png) Sonoran CAD also offers a [customizable stream overlay and Twitch bot](/cad/integration-plugins/twitch-overlay-and-bot) to display your unit and attached call information in real time! ### [ER:LC Roblox Integration](/cad/integration-plugins/erlc) ![Sonoran CAD x ER:LC](https://docs-assets.sonoransoftware.com/sha256/3d/3debfd4de1db6b9d2228967168cc942e0055152e4f5d77d1770e8e226ea76262.png) Do you play Roblox? Sonoran CAD is integrated with Emergency Response Liberty County! Update your unit locations in real time, run name and plate searches, create automated traffic stops, and more! ### 💻 Multitasking Window and Tab System Only Sonoran CAD lets you easily multitask and open multiple search windows, records, penal codes references, ten code lists, and more! Our workflow allows you to handle even the most complicated and demanding patrols. [Every panel and window can be locked into position and customized.](/cad/tutorials/customization/customizing-your-layout) Drag-and-drop allows you to easily view calls, attach units, and more! ![](https://docs-assets.sonoransoftware.com/sha256/ef/ef6070a0f1b34e64d7ea50c0fe04a0b36f709a5ba3679d9527afa4bbf0319049.png) *Sonoran CAD - Custom Layouts* ### 🎤 [TeamSpeak 3 Integration](/cad/integration-plugins/in-game-integration/available-plugins/teamspeak-3) Enforce security in your TeamSpeak 3 channels by requiring them to be signed into the CAD. Additionally, kick users from secured TS channels when they log off. ### 🔢 [Stream Deck Integration](/cad/integration-plugins/stream-deck-integration) Check out our official [Stream Deck profiles](/cad/integration-plugins/stream-deck-integration) to change your unit status, panic, open a lookup, and more from a physical button. Along with the [Sonoran CAD desktop application](/cad/download), these actions can be done even while the app is minimized. ![](https://docs-assets.sonoransoftware.com/sha256/e7/e74672e29c79d10b9c3985151ad711c8ca56a93059c90d3bbadd80e0a1803b8b.png) *Sonoran CAD - Stream Deck Profile* ### 📖 API Integration In addition to over a dozen drag-and-drop integration [plugins](/cad/integration-plugins/in-game-integration/available-plugins), you can write your own integration plugins using our [API documentation](/cad/api-integration). We've complied extensive documentation for over two-dozen API endpoints and server [push events](/cad/api-integration/push-events)! Easily integrate external scripts with our [LUA and JS export examples](/cad/integration-plugins/in-game-integration/framework-development-documentation)! ![](https://docs-assets.sonoransoftware.com/sha256/5a/5a1b0ee54bf77d60a27391bfad247dd09b3097c43be3d8de2c71002ef7b2b766.png) *Sonoran CAD - API Integration* ### 📝 Custom Records and Reports Create your very own [custom report and record formats](/cad/tutorials/customization/creating-custom-record-and-report-types) for your community to use! Whether it's your own firearms registration system, an in-depth vehicle accident report format, or a custom incident record, Sonoran CAD allows you to customize it all. You can even index specific record fields for [custom search types](/cad/tutorials/customization/custom-search-types). Allowing you to run a lookup on your record's custom ID numbers, phone numbers, and more! ![](https://docs-assets.sonoransoftware.com/sha256/98/98cc19c52abb80e68c0716ea3e7a6f87872482c6a1f11638f24936e5d53d2a59.png) *Sonoran CAD - Custom Reports* ![](https://docs-assets.sonoransoftware.com/sha256/f7/f7a065b1cf1ff9214956ce927322e54956336375643b2f36e0fdd9eaf4a72003.png) ### [🧑‍🎨️ Scene Diagram Builder](/cad/tutorials/records-management/scene-diagram-builder) Create detailed scene diagrams in custom reports! ![](https://docs-assets.sonoransoftware.com/sha256/27/2750ab0ce70320bedbb831a7716b04f300c58ce79392dcafe3dc9d645238e5cc.png) *Sonoran CAD - Diagram Builder* ### 📧 Custom Branding Sonoran CAD enables you to place your community's name and [branding](/cad/tutorials/customization/community-branding-and-info) in the CAD, [customize user account emails](/cad/tutorials/customization/custom-emails), host a [custom login page](/cad/tutorials/customization/custom-login-page) on **your own domain**, and more! ### 🧍 Self-Dispatch Don't have a dedicated dispatcher for your community?\ Sonoran CAD allows your units to easily [self-dispatch](/cad/tutorials/dispatching/self-dispatch), attach to calls, preview other open calls, and more! ### 🖨️ PDF Records Looking to store official criminal records or prior call logs in a PDF format? Sonoran CAD allows you to easily view and [print records to PDF](/cad/tutorials/records-management/pdf-records). ![](https://docs-assets.sonoransoftware.com/sha256/4e/4e0c66bc986a8557bb8d014ef8a648683bf84cafc1b799812c06ad7a12db9da7.png) *Sonoran CAD - PDF Records* ### 🏠 Auto Suggested Street Names and Addresses Sonoran CAD allows you to upload a [custom spreadsheet with your game's street names and addresses](/cad/tutorials/customization/addresses-and-street-names). Dispatchers in the call editor can quickly and easily search and filter these names automatically. ![](https://docs-assets.sonoransoftware.com/sha256/73/73c7d90ac85e318a5a26a44547b8b2c6efa6b251446a2059808363c465b71695.png) *Sonoran CAD - Street Addresses* ### ⌨️ Global Hotkeys Only Sonoran CAD allows you to configure customizable [hotkeys](/cad/tutorials/other-features/configurable-hotkeys) for quick actions in the CAD. With our [Desktop application](/cad/download), hotkeys are even registered globally and do not require the application to be visible or in-focus to trigger commands. ![Sonoran CAD's global hotkey configuration!](https://docs-assets.sonoransoftware.com/sha256/c0/c0318b4a2b8b7fefee705dca7e26beb8f62bcd92ea59925838d2918e3041c76f.png) ### 📦 Easy Migration Sonoran CAD allows you to easily migrate your [10-codes ](/cad/tutorials/customization/10-codes#import-10-codes-from-a-spreadsheet-csv)and [penal codes](/cad/tutorials/customization/penal-codes#import-from-spreadsheet-csv) by importing directly from a spreadsheet (CSV) or JSON file. Fully [customizable record formats/templates](/cad/tutorials/customization/sharing-custom-records) can also be exported and shared between communities. ### 🎤 Voice Commands Common tasks are made even easier with our [voice commands](/cad/tutorials/other-features/voice-commands). Sonoran CAD allows you to easily lookup a civilian's name, a vehicle license plate, or trigger a panic tone completely hands free! ### 📋 Frequent Updates As shown in our [changelog](/cad/roadmap/roadmap-and-changelog/changelog), new features, fixes, and suggestions are added all the time! # API Integration Source: https://docs.sonoransoftware.com/cad/api-integration Sonoran CAD's open API endpoints allow you to automatically update unit locations, panic statuses, send 911 calls and more from in-game. ![](https://docs-assets.sonoransoftware.com/sha256/5a/5a1b0ee54bf77d60a27391bfad247dd09b3097c43be3d8de2c71002ef7b2b766.png) ## How are API calls sent? The v2 API uses standard HTTP methods and JSON request bodies where applicable. See [Authentication](/cad/api-integration/api-endpoints-v2/authentication) for the base URL and required headers. ## Can I integrate this with my gamemode/framework? Yes, our API calls can be integrated into nearly any gamemode with nearly any programming language. We provide a library of drag-and-drop plugins written in Lua.\ You can also write your own script using our API endpoints: > [card] [API Endpoints v2](/cad/api-integration/api-endpoints-v2) Easily integrate external scripts with our LUA and JS export examples: > [card] [FiveM Development Documentation](/cad/integration-plugins/in-game-integration/framework-development-documentation) Or, learn more about receiving push events directly to your game server: > [card] [push-events](/cad/api-integration/push-events) ## Are there rate limits? Yes. Requests are limited per API key. Check the individual endpoint page for its limit. > [card] [getting-started](/cad/api-integration/getting-started) # v2 API Endpoints Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2 View Sonoran CAD's v2 API endpoints and authentication flow. The Sonoran CAD v2 API is a versioned API surface built around resource-style routes, standard HTTP methods, bearer authentication, and structured error responses. ## Available v2 Docs ### Libraries Use the official Sonoran SDK libraries if you want package-managed helpers for the v2 API. > [card] [Libraries](/cad/api-integration/api-endpoints-v2/libraries) ### Authentication Start here for bearer authentication, required headers, and common error formats. > [card] [Authentication](/cad/api-integration/api-endpoints-v2/authentication) ### Emergency Emergency endpoints are grouped by feature area for units, identifiers, calls, map items, and configuration. > [card] [emergency](/cad/api-integration/api-endpoints-v2/emergency) ### Civilian Civilian endpoints cover character retrieval, character selection, linked sync-character IDs, and character removal. > [card] [civilian](/cad/api-integration/api-endpoints-v2/civilian) ### Integration Panels Integration Panels let third-party systems define interactive CAD UI, publish live state, and process CAD user actions. > [card] [integration-panels](/cad/api-integration/api-endpoints-v2/integration-panels) ### General General endpoints cover account management, custom records, lookup workflows, and community-level configuration. > [card] [general](/cad/api-integration/api-endpoints-v2/general) ## Full OpenAPI Collection Use this combined OpenAPI document if you want to import the full Sonoran CAD v2 API into Postman in one pass. This generated collection currently includes `84` documented v2 operations. > [accordion] Copy the full OpenAPI YAML > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran CAD v2 API > version: 1.0.0 > description: Combined OpenAPI import for all documented Sonoran CAD v2 endpoints. > servers: > - url: https://api.sonorancad.com > paths: > /v2/civilian/character-links/{syncId}: > put: > summary: Add Character Link > operationId: addCharacterLink > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > syncId: citizen:1234 > action: ADD > parameters: > - description: Database Sync character identifier. > name: syncId > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > discord: '123456789012345678' > tags: > - Civilian > delete: > summary: Remove Character Link > operationId: removeCharacterLink > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > syncId: citizen:1234 > action: REMOVE > parameters: > - description: Database Sync character identifier. > name: syncId > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > discord: '123456789012345678' > tags: > - Civilian > /v2/civilian/characters/{characterId}: > delete: > summary: Delete Character > operationId: deleteCharacter > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > characterId: 2451 > parameters: > - description: Character record ID. > name: characterId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - Civilian > /v2/civilian/character-links: > get: > summary: Get Character Links > operationId: getCharacterLinks > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: array > items: > type: object > example: > - citizen:1234 > - citizen:5678 > parameters: > - description: Default target option for the in-game community user ID. Provide > exactly one identifier. > name: communityUserId > in: query > schema: > type: string > required: false > - description: Target the account linked to a Roblox user ID. Provide exactly > one identifier. > name: roblox > in: query > schema: > type: integer > required: false > - description: Target the account linked to a Discord user ID. Provide exactly > one identifier. > name: discord > in: query > schema: > type: string > required: false > - description: Target account UUID. Provide exactly one identifier. > name: accountUuid > in: query > schema: > type: string > required: false > security: > - bearerAuth: [] > tags: > - Civilian > /v2/civilian/characters: > get: > summary: Get Characters > operationId: getCharacters > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 7 > id: 2451 > syncId: citizen:1234 > name: John Doe > type: 7 > sections: > category: 0 > label: Civilian Info > fields: > label: First Name > value: John > uid: first_name > parameters: > - description: Default target option for the in-game community user ID. Provide > exactly one identifier. > name: communityUserId > in: query > schema: > type: string > required: false > - description: Target the account linked to a Roblox user ID. Provide exactly > one identifier. > name: roblox > in: query > schema: > type: integer > required: false > - description: Target the account linked to a Discord user ID. Provide exactly > one identifier. > name: discord > in: query > schema: > type: string > required: false > - description: Target account UUID. Provide exactly one identifier. > name: accountUuid > in: query > schema: > type: string > required: false > security: > - bearerAuth: [] > tags: > - Civilian > /v2/civilian/selected-character: > put: > summary: Set Selected Character > operationId: setSelectedCharacter > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > characterId: citizen:1234 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > discord: '123456789012345678' > characterId: '1042' > tags: > - Civilian > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/notes: > post: > summary: Add Call Note > operationId: addCallNote > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 501 > note: Caller is hiding. > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Dispatch or 911 call ID. > name: callId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > note: Suspect vehicle fleeing northbound > noteType: text > label: Integration > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/attachments: > post: > summary: Attach Units > operationId: attachUnits > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 501 > identIds: > - 12 > - 18 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Dispatch or 911 call ID. > name: callId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserIds: player-1234 > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls/close: > post: > summary: Close Dispatch Calls > operationId: closeDispatchCalls > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callIds: > - 501 > - 502 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > callIds: > - 1042 > - 1043 > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/calls/911: > post: > summary: Create 911 Call > operationId: create911Call > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 302 > isEmergency: true > caller: Jane Doe > location: Innocence Blvd > description: Medical emergency reported. > metaData: > phone: 555-0100 > x: '425.1' > y: '-979.2' > z: '30.7' > postal: '9001' > updated: '2026-04-08T21:31:00Z' > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > isEmergency: true > caller: 911 Caller > location: Alta St / Integrity Way > description: Shots fired > deleteAfterMinutes: 15 > metaData: > source: integration > x: '425.1' > y: '-979.2' > z: '30.7' > postal: '9001' > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/custom-dispatch-calls: > post: > operationId: createCustomDispatchCall > security: > - bearerAuth: [] > parameters: > - name: serverId > in: path > required: true > schema: > type: integer > minimum: 1 > example: 1 > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - templateId > - values > properties: > templateId: > type: integer > minimum: 1 > values: > type: object > additionalProperties: true > identIds: > type: array > items: > type: integer > accountUuid: > type: string > format: uuid > accounts: > type: array > items: > type: string > format: uuid > communityUserId: > type: string > communityUserIds: > type: array > items: > type: string > roblox: > type: string > discord: > type: string > notes: > type: array > items: > type: object > metaData: > type: object > additionalProperties: > type: string > deleteAfterMinutes: > type: integer > minimum: 0 > example: > templateId: 1 > values: > status: deployed > priority: Immediate > description: Reports of a disturbance outside the station. > code: GRADE_1 > caller_name: Alex Smith > communityUserIds: > - player-1234 > responses: > '201': > description: Custom dispatch call created > '400': > description: Template values or required fields are invalid > '404': > description: Template or unit target not found > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls: > post: > summary: Create Dispatch Call > operationId: createDispatchCall > responses: > '201': > description: Dispatch call created > content: > application/json: > schema: > type: object > example: > callId: 501 > origin: 0 > status: 1 > priority: 1 > block: '100' > address: Mission Row > postal: '9001' > title: Armed Robbery > code: '211' > primary: 12 > trackPrimary: false > description: Clerk reports a firearm. > notes: > - time: '2026-04-08T21:30:00Z' > label: Sonoran CAD > type: text > content: Caller is hiding. > idents: > - 12 > - 18 > metaData: > source: integration > x: '425.1' > y: '-979.2' > z: '30.7' > radius: '75' > updated: '2026-04-08T21:30:00Z' > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > origin: 0 > status: 1 > priority: 1 > block: '100' > address: Mission Row > postal: '9001' > title: Armed Robbery > code: '211' > description: Clerk reports a firearm. > notes: [] > communityUserIds: > - player-1234 > metaData: > source: integration > x: '425.1' > y: '-979.2' > z: '30.7' > radius: '75' > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls/attachments: > delete: > summary: Detach Units > operationId: detachUnits > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > identIds: > - 12 > - 18 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserIds: player-1234 > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/calls: > get: > summary: Get Calls > operationId: getCalls > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > ActiveCalls: > callId: 501 > origin: 0 > status: 1 > priority: 1 > block: '100' > address: Mission Row > postal: '9001' > title: Armed Robbery > code: '211' > primary: 12 > trackPrimary: false > description: Clerk reports a firearm. > notes: > time: '2026-04-08T21:30:00Z' > label: Sonoran CAD > type: text > content: Caller is hiding. > idents: > - 12 > - 18 > metaData: > source: integration > x: '425.1' > y: '-979.2' > z: '30.7' > radius: '75' > updated: '2026-04-08T21:30:00Z' > EmergencyCalls: > callId: 302 > isEmergency: true > caller: Jane Doe > location: Innocence Blvd > description: Medical emergency reported. > metaData: > phone: 555-0100 > x: '425.1' > y: '-979.2' > z: '30.7' > postal: '9001' > updated: '2026-04-08T21:31:00Z' > ClosedCalls: > callId: 480 > origin: 0 > status: 2 > priority: 1 > block: '100' > address: Mission Row > postal: '9001' > title: Armed Robbery > code: '211' > primary: 12 > trackPrimary: false > description: Clerk reports a firearm. > notes: > time: '2026-04-08T21:30:00Z' > label: Sonoran CAD > type: text > content: Caller is hiding. > idents: > - 12 > - 18 > metaData: > source: integration > x: '425.1' > y: '-979.2' > z: '30.7' > radius: '75' > updated: '2026-04-08T21:30:00Z' > ClosedCallCount: 18 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Maximum number of closed dispatch calls returned. > name: closedLimit > in: query > schema: > type: integer > required: true > - description: Number of closed calls to skip. > name: closedOffset > in: query > schema: > type: integer > required: true > - description: Call table type filter. See `CALL_TABLE_TYPE` below. > name: type > in: query > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Calls > /v2/emergency/accounts/{accountUuid}/current-call: > get: > summary: Get Current Call > operationId: getCurrentCall > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > IdentId: 12 > CallId: 501 > parameters: > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Calls > /v2/emergency/dispatch-templates: > get: > operationId: getDispatchTemplates > security: > - bearerAuth: [] > responses: > '200': > description: Community dispatch templates > content: > application/json: > schema: > type: array > items: > $ref: '#/components/schemas/DispatchTemplate' > tags: > - Emergency / Calls > /v2/emergency/dispatch-templates/{templateId}: > get: > operationId: getDispatchTemplate > security: > - bearerAuth: [] > parameters: > - name: templateId > in: path > required: true > schema: > type: integer > minimum: 1 > responses: > '200': > description: Dispatch template > content: > application/json: > schema: > $ref: '#/components/schemas/DispatchTemplate' > '404': > description: Template not found > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/calls/911/{callId}: > delete: > summary: Remove 911 Call > operationId: remove911Call > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 302 > serverId: 1 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Dispatch or 911 call ID. > name: callId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/postal: > patch: > summary: Update Call Postal > operationId: updateCallPostal > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 501 > postal: '9002' > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Dispatch or 911 call ID. > name: callId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > postal: '9001' > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/primary: > patch: > summary: Update Call Primary > operationId: updateCallPrimary > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 501 > identId: 12 > trackPrimary: true > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Dispatch or 911 call ID. > name: callId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > identId: 15 > trackPrimary: true > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}: > patch: > summary: Update Dispatch Call > operationId: updateDispatchCall > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > callId: 501 > origin: 0 > status: 1 > priority: 1 > block: '100' > address: Mission Row > postal: '9002' > title: Armed Robbery > code: '211' > primary: 12 > trackPrimary: false > description: Clerk reports a firearm. > notes: > time: '2026-04-08T21:30:00Z' > label: Sonoran CAD > type: text > content: Caller is hiding. > idents: > - 12 > - 18 > metaData: > source: integration > x: '430.5' > y: '-982.1' > z: '31.0' > radius: '100' > updated: '2026-04-08T21:30:00Z' > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Dispatch or 911 call ID. > name: callId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > status: 1 > postal: '9002' > trackPrimary: true > metaData: > source: integration > x: '430.5' > y: '-982.1' > z: '31.0' > radius: '100' > tags: > - Emergency / Calls > /v2/emergency/servers/{serverId}/pager-config: > get: > summary: Get Pager Config > operationId: getPagerConfig > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > natureWords: > Emergency: Emergency > NonEmergency: Non-Emergency > Administrative: Administrative > maxAddresses: 5 > maxBodyLength: 250 > nodes: null > perms: > roles: null > players: null > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Configuration > put: > summary: Set Pager Config > operationId: setPagerConfig > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > serverId: 1 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > natureWords: > Emergency: Emergency > NonEmergency: Non-Emergency > Administrative: Administrative > maxAddresses: 5 > maxBodyLength: 250 > nodes: > - id: root-1 > name: Fire > description: Fire services > permission: fire > address: FIRE-01 > shortCode: F1 > kind: group > children: [] > tags: > - Emergency / Configuration > /v2/emergency/servers/{serverId}/callouts: > put: > summary: Set Callouts > operationId: setCallouts > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > serverId: 1 > callouts: 1 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > callouts: > - id: armed_suspect > data: > PedActionOnNoActionFound: Flee > PedActionMinimumTimeoutInMs: 2000 > PedChanceToFleeFromPlayer: 50 > PedChanceToObtainWeapons: 30 > CalloutName: Armed Suspect > CalloutDescriptions: > - Reports of an armed suspect in the area. > PedChanceToAttackPlayer: 20 > PedActionMaximumTimeoutInMs: 10000 > Enabled: true > CalloutLocations: [] > PedChanceToSurrender: 30 > PedWeaponData: > - WEAPON_PISTOL > CalloutUnitsRequired: > towRequired: false > fireRequired: false > description: Single suspect, use caution. > policeRequired: true > ambulanceRequired: false > tags: > - Emergency / Configuration > /v2/emergency/servers/{serverId}/stations: > put: > summary: Set Stations > operationId: setStations > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > serverId: 1 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > locations: > - name: Mission Row > coordinates: > x: 425.1 > y: -979.2 > z: 30.7 > w: 0.0 > doors: > - bay_1 > - bay_2 > icon: fas fa-building > tones: > - tone_station_open.mp3 > unitColors: > - '#2563eb' > - '#ef4444' > tags: > - Emergency / Configuration > /v2/emergency/accounts/{accountUuid}/identifiers: > post: > summary: Create Identifier > operationId: createIdentifier > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > identId: 42 > parameters: > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > status: 0 > aop: Los Santos > unitNum: A-10 > name: John Doe > district: Los Santos > department: LSPD > subdivision: Patrol > rank: Officer > group: CAR-51 > page: 0 > isDispatch: false > tags: > - Emergency / Identifiers > get: > summary: Get Identifiers > operationId: getIdentifiers > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > SelectedIdent: 12 > Identifiers: > id: 12 > accId: 00000000-0000-0000-0000-000000000000 > status: 3 > isPanic: false > location: Mission Row PD > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: Los Santos > data: > unitNum: A-10 > name: John Doe > district: Los Santos > department: LSPD > subdivision: Patrol > rank: Officer > group: CAR-51 > page: 0 > isDispatch: false > parameters: > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Identifiers > /v2/emergency/accounts/{accountUuid}/identifiers/{identId}: > delete: > summary: Delete Identifier > operationId: deleteIdentifier > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > identId: 12 > serverId: 1 > parameters: > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > - description: Identifier ID. > name: identId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Identifiers > patch: > summary: Update Identifier > operationId: updateIdentifier > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > identId: 12 > serverId: 1 > identifier: > id: 12 > accId: 00000000-0000-0000-0000-000000000000 > status: 3 > isPanic: false > location: Mission Row PD > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: Los Santos > data: > unitNum: A-10 > name: John Doe > district: Los Santos > department: LSPD > subdivision: Patrol > rank: Officer > group: CAR-51 > page: 0 > isDispatch: false > parameters: > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > - description: Identifier ID. > name: identId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > status: 2 > group: SUPERVISOR-1 > page: 3 > tags: > - Emergency / Identifiers > /v2/emergency/servers/{serverId}/identifier-groups/{groupName}: > put: > summary: Set Identifier Group > operationId: setIdentifierGroup > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > ok: true > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Identifier group name. > name: groupName > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserIds: player-1234 > tags: > - Emergency / Identifiers > /v2/emergency/accounts/{accountUuid}/selected-identifier: > put: > summary: Set Selected Identifier > operationId: setSelectedIdentifier > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > serverId: 1 > isDispatch: false > identifier: > id: 12 > accId: 00000000-0000-0000-0000-000000000000 > status: 3 > isPanic: false > location: Mission Row PD > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: Los Santos > data: > unitNum: A-10 > name: John Doe > district: Los Santos > department: LSPD > subdivision: Patrol > rank: Officer > group: CAR-51 > page: 0 > isDispatch: false > parameters: > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > identId: 15 > tags: > - Emergency / Identifiers > /v2/emergency/servers/{serverId}/blips: > post: > summary: Create Blip > operationId: createBlip > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > id: 32 > coordinates: > x: 425.5 > y: -979.8 > z: 0.0 > w: 0.0 > subType: radius > icon: fa-location-dot > color: '#ff0000' > tooltip: Perimeter > data: > - title: Assigned Unit > text: A-10 > radius: 100.0 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > properties: > data: > type: array > items: > type: object > properties: > title: > type: string > text: > type: string > panelKey: > type: string > pattern: ^[a-z0-9][a-z0-9._-]{1,79}$ > description: Registered Integration Panel key. Renders the > panel instead of text. > instanceKey: > type: string > pattern: ^[a-z0-9][a-z0-9._-]{1,79}$ > default: default > description: Exact instance on this server. > example: > coordinates: > x: 441.2 > y: -981.9 > z: 0.0 > w: 0.0 > subType: scene > icon: fa-solid fa-location-crosshairs > color: red > tooltip: Scene perimeter > radius: 50.0 > data: > - title: Units > text: '2' > tags: > - Emergency / Map > get: > summary: Get Blips > operationId: getBlips > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: array > items: > type: object > example: > - id: 32 > coordinates: > x: 425.5 > y: -979.8 > z: 0.0 > w: 0.0 > subType: radius > icon: fa-location-dot > color: '#ff0000' > tooltip: Perimeter > data: > - title: Assigned Unit > text: A-10 > radius: 100.0 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Map > /v2/emergency/servers/{serverId}/blips/delete: > post: > summary: Delete Blips > operationId: deleteBlips > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > ids: > - 32 > - 33 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > ids: > - 14 > - 15 > tags: > - Emergency / Map > /v2/emergency/servers/{serverId}/blips/{blipId}: > patch: > summary: Update Blip > operationId: updateBlip > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > id: 32 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Blip ID. > name: blipId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > properties: > data: > type: array > description: Replaces all menu entries. An empty array clears the > menu. > items: > type: object > properties: > title: > type: string > text: > type: string > panelKey: > type: string > pattern: ^[a-z0-9][a-z0-9._-]{1,79}$ > description: Registered Integration Panel key. Renders the > panel instead of text. > instanceKey: > type: string > pattern: ^[a-z0-9][a-z0-9._-]{1,79}$ > default: default > description: Exact instance on this server. > example: > tooltip: Updated perimeter > color: '#00a3ff' > radius: 150 > tags: > - Emergency / Map > /v2/emergency/servers/{serverId}/accounts/{accountUuid}/units: > get: > summary: Get Account Units > operationId: getAccountUnits > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > Units: > id: 12 > accId: 00000000-0000-0000-0000-000000000000 > status: 3 > isPanic: false > location: Mission Row PD > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: Los Santos > data: > unitNum: A-10 > name: John Doe > district: Los Santos > department: LSPD > subdivision: Patrol > rank: Officer > group: CAR-51 > page: 0 > isDispatch: false > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Sonoran CAD account UUID. > name: accountUuid > in: path > schema: > type: string > required: true > - description: Only returns online identifiers for the target account. > name: onlyOnline > in: query > schema: > type: boolean > required: true > - description: When `true`, hides dispatcher identifiers. > name: onlyUnits > in: query > schema: > type: boolean > required: true > - description: Maximum number of rows returned. > name: limit > in: query > schema: > type: integer > required: true > - description: Number of rows to skip. > name: offset > in: query > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Units > /v2/emergency/servers/{serverId}/units: > get: > summary: Get Active Units > operationId: getActiveUnits > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > id: 12 > accId: 00000000-0000-0000-0000-000000000000 > status: 3 > isPanic: false > location: Mission Row PD > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: Los Santos > data: > unitNum: A-10 > name: John Doe > district: Los Santos > department: LSPD > subdivision: Patrol > rank: Officer > group: CAR-51 > page: 0 > communityUserId: license:abc123 > isDispatch: false > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > - description: Include offline identifiers in the response. > name: includeOffline > in: query > schema: > type: boolean > required: true > - description: When `true`, hides active dispatchers. > name: onlyUnits > in: query > schema: > type: boolean > required: true > - description: Maximum number of rows returned. > name: limit > in: query > schema: > type: integer > required: true > - description: Number of rows to skip. > name: offset > in: query > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - Emergency / Units > /v2/emergency/servers/{serverId}/units/kick: > post: > summary: Kick Unit > operationId: kickUnit > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > identId: 12 > reason: Restarting server. > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > oneOf: > - type: object > required: > - communityUserId > - reason > properties: > communityUserId: > type: string > roblox: > type: integer > reason: > type: string > - type: array > items: > type: object > required: > - communityUserId > - reason > properties: > communityUserId: > type: string > roblox: > type: integer > reason: > type: string > example: > - communityUserId: player-1234 > reason: Connection reset by integration > - communityUserId: player-5678 > reason: Server restart > tags: > - Emergency / Units > /v2/emergency/servers/{serverId}/units/panic: > patch: > summary: Set Unit Panic > operationId: setUnitPanic > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > updated: 1 > isPanic: true > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserIds: player-1234 > isPanic: true > tags: > - Emergency / Units > /v2/emergency/servers/{serverId}/units/status: > patch: > summary: Set Unit Status > operationId: setUnitStatus > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > updated: 1 > status: ENROUTE > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserIds: player-1234 > status: 3 > tags: > - Emergency / Units > /v2/emergency/servers/{serverId}/unit-locations: > patch: > summary: Update Unit Locations > operationId: updateUnitLocations > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > updated: 1 > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > updates: > - communityUserId: player-1234 > location: Mission Row > coordinates: > x: 441.2 > y: -981.9 > z: 30.7 > w: 90.0 > peerId: peer-1 > vehicle: > model: police3 > headingOffset: 0 > tags: > - Emergency / Units > /v2/general/permission-keys/applications: > post: > summary: Apply Permission Key > operationId: applyPermissionKey > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > username: ExampleUser > message: Permission key applied. > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > roblox: 123456789 > discord: '123456789012345678' > permissionKey: YOUR_PERMISSION_KEY > tags: > - General / Accounts > /v2/general/account-bans: > post: > summary: Kick Or Ban User > operationId: kickOrBanUser > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > action: ban > message: Account was banned. > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > roblox: 123456789 > isBan: true > tags: > - General / Accounts > /v2/general/links/check: > post: > summary: Check Community Link > operationId: checkCommunityLink > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > communityUserId: player_12345 > linked: true > accountUuid: 00000000-0000-0000-0000-000000000000 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player_12345 > tags: > - General / Accounts > /v2/general/links: > post: > summary: Create Community Link > operationId: createCommunityLink > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > code: A7K2 > communityUserId: player_12345 > communityUuid: 00000000-0000-0000-0000-000000000000 > expiresAt: '2026-04-09T19:25:00Z' > expiresInSeconds: 600 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player_12345 > tags: > - General / Accounts > /v2/general/permissions/accounts/{accountId}: > get: > summary: Get Account Permissions > operationId: getAccountPermissionsV2 > security: > - bearerAuth: [] > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > properties: > permissions: > type: object > properties: > version: > type: integer > enum: > - 2 > grants: > type: array > items: > type: string > owner: > type: boolean > migrated: > type: boolean > status: > type: integer > example: > permissions: > version: 2 > grants: > - global.police > owner: false > migrated: true > status: 1 > '400': > description: Invalid request or account cannot be edited > '401': > description: Missing or invalid API key > '429': > description: Rate limited; follow Retry-After before retrying > '404': > description: Account not found in this community > parameters: > - name: accountId > in: path > required: true > schema: > type: string > format: uuid > example: 00000000-0000-0000-0000-000000000000 > tags: > - General / Accounts > put: > summary: Replace Account Permissions > operationId: replaceAccountPermissionsV2 > security: > - bearerAuth: [] > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > properties: > accountUuid: > type: string > format: uuid > permissions: > type: object > properties: > version: > type: integer > enum: > - 2 > grants: > type: array > items: > type: string > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > permissions: > version: 2 > grants: > - global.police > '400': > description: Invalid request or account cannot be edited > '401': > description: Missing or invalid API key > '429': > description: Rate limited; follow Retry-After before retrying > parameters: > - name: accountId > in: path > required: true > schema: > type: string > format: uuid > example: 00000000-0000-0000-0000-000000000000 > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - grants > properties: > version: > type: integer > enum: > - 2 > default: 2 > grants: > type: array > uniqueItems: true > items: > type: string > example: > version: 2 > grants: > - global.police > tags: > - General / Accounts > /v2/general/accounts/account: > get: > summary: Get Account > operationId: getAccount > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > uuid: 00000000-0000-0000-0000-000000000000 > username: ExampleUser > communityUserId: player-1234 > status: 1 > joined: '2026-01-14T18:22:00Z' > lastLogin: '2026-04-08T20:55:00Z' > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > parameters: > - description: Default target option for the in-game community user ID. Provide > exactly one identifier. > name: communityUserId > in: query > schema: > type: string > required: false > - description: Target the account linked to a Roblox user ID. Provide exactly > one identifier. > name: roblox > in: query > schema: > type: integer > required: false > - description: Target account UUID. Provide exactly one identifier. > name: accountUuid > in: query > schema: > type: string > required: false > - description: Target username. Provide exactly one identifier. > name: username > in: query > schema: > type: string > required: false > security: > - bearerAuth: [] > tags: > - General / Accounts > /v2/general/accounts: > get: > summary: Get Accounts > operationId: getAccounts > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > pagination: > limit: 25 > offset: 0 > total: 1 > accounts: > uuid: 00000000-0000-0000-0000-000000000000 > username: ExampleUser > status: 1 > joined: '2026-01-14T18:22:00Z' > lastLogin: '2026-04-08T20:55:00Z' > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > parameters: > - description: Maximum number of accounts returned. The backend enforces 1-100. > name: limit > in: query > schema: > type: integer > required: true > - description: Number of accounts to skip. > name: offset > in: query > schema: > type: integer > required: true > - description: Filter by account status. See `ACCOUNT_STATUS` below. > name: status > in: query > schema: > type: integer > required: true > - description: Case-insensitive username filter. > name: username > in: query > schema: > type: string > required: false > security: > - bearerAuth: [] > tags: > - General / Accounts > /v2/general/permissions/catalog: > get: > summary: Get Permission Catalog > operationId: getPermissionCatalogV2 > security: > - bearerAuth: [] > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > properties: > version: > type: integer > enum: > - 2 > communityUuid: > type: string > format: uuid > permissions: > type: array > items: > type: object > properties: > id: > type: string > label: > type: string > templateId: > type: integer > nullable: true > templateName: > type: string > nullable: true > action: > type: string > legacyGrants: > type: object > additionalProperties: > type: array > items: > type: string > example: > version: 2 > communityUuid: 00000000-0000-0000-0000-000000000000 > permissions: > - id: global.police > label: police > templateId: null > templateName: null > action: police > - id: record.4.read > label: read > templateId: 4 > templateName: Example record template > action: read > legacyGrants: > POLICE: > - global.police > - record.4.read > '400': > description: Invalid request or account cannot be edited > '401': > description: Missing or invalid API key > '429': > description: Rate limited; follow Retry-After before retrying > tags: > - General / Accounts > /v2/general/accounts/permissions: > patch: > summary: Modify Account Permissions > operationId: modifyAccountPermissions > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > active: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > roblox: 123456789 > add: > - POLICE > - DISPATCH > active: true > tags: > - General / Accounts > /v2/general/photos: > post: > summary: Send Photo > description: Send an HTTPS image link to the recipient's CAD connections in the authenticated community. > operationId: sendPhoto > responses: > '200': > description: The photo link was routed to the listed number of CAD connections. > content: > application/json: > schema: > type: object > properties: > communityUserId: > type: string > delivered: > type: integer > description: Number of CAD connections the link was routed to. > example: > communityUserId: player-1234 > delivered: 1 > '400': > description: The request is missing a required value or the image URL is invalid. > '404': > description: No eligible CAD connection was found for the recipient in this community. > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [communityUserId, url] > properties: > communityUserId: > type: string > description: Recipient's community user ID. > url: > type: string > format: uri > description: Absolute HTTPS image URL without embedded credentials. > example: > communityUserId: player-1234 > url: https://cdn.example.com/mugshots/example.png > tags: > - General / Accounts > /v2/general/links/set: > post: > summary: Set Community Link > operationId: setCommunityLink > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - accountUuid > - secretUuid > - communityUserId > properties: > accountUuid: > type: string > format: uuid > secretUuid: > type: string > format: uuid > communityUserId: > type: string > maxLength: 255 > example: > accountUuid: 11111111-1111-1111-1111-111111111111 > secretUuid: 22222222-2222-2222-2222-222222222222 > communityUserId: fivem:12345 > responses: > '200': > description: The account link was set successfully. > content: > application/json: > schema: > type: object > example: > linked: true > accountUuid: 11111111-1111-1111-1111-111111111111 > communityUserId: fivem:12345 > '400': > description: The request body is invalid. > '403': > description: The account UUID and secret UUID do not match an account in > the authenticated community. > tags: > - General / Accounts > /v2/general/secrets/verify: > post: > summary: Verify Secret > operationId: verifySecret > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > 00000000-0000-0000-0000-000000000000: 11111111-2222-3333-4444-555555555555 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > secret: 00000000-0000-0000-0000-000000000000 > tags: > - General / Accounts > /v2/fivem/servers/{serverId}/configuration/acknowledge/{revision}: > post: > summary: Acknowledge FiveM Configuration > operationId: acknowledge_fivem_configuration > parameters: > - name: serverId > in: path > required: true > schema: > type: integer > format: int32 > minimum: 1 > example: 1 > - name: revision > in: path > required: true > schema: > type: integer > format: int64 > minimum: 1 > example: 4 > security: > - BearerAuth: [] > responses: > '200': > description: Loaded revision acknowledged > content: > application/json: > schema: > type: object > required: > - success > properties: > success: > type: boolean > example: > success: true > '401': > description: Missing or invalid bearer API key > '404': > description: Server does not belong to the authenticated community > '409': > description: Revision changed or no configuration has been saved for this > server > content: > application/problem+json: > schema: > type: object > properties: > title: > type: string > detail: > type: string > status: > type: integer > example: > status: 409 > title: Revision changed > detail: Configuration changed after startup. > tags: > - General / Configuration > /v2/general/database-sync: > get: > summary: Get Database Sync Configuration > operationId: getDatabaseSyncConfiguration > responses: > '200': > description: Successful response > content: > application/json: > schema: > $ref: '#/components/schemas/DatabaseSyncConfiguration' > example: > enabled: true > character: true > licenses: false > vehicleRegistrations: true > security: > - bearerAuth: [] > tags: > - General / Configuration > /v2/fivem/servers/{serverId}/configuration: > get: > summary: Get FiveM Configuration > operationId: get_fivem_configuration > parameters: > - name: serverId > in: path > required: true > schema: > type: integer > format: int32 > minimum: 1 > example: 1 > security: > - BearerAuth: [] > responses: > '200': > description: Resolved configuration (values abbreviated in this example) > content: > application/json: > schema: > type: object > required: > - revision > - schemaVersion > - templateRevision > - serverId > - values > - appliedRevision > - appliedAt > properties: > revision: > type: integer > format: int64 > minimum: 0 > description: Saved configuration revision; zero means this server > has no saved configuration. > schemaVersion: > type: integer > example: 1 > description: Wire protocol version. > templateRevision: > type: string > description: SHA-256 fingerprint of the current configuration > catalog. > serverId: > type: integer > example: 1 > values: > type: object > required: > - core > - plugins > properties: > core: > type: object > additionalProperties: true > plugins: > type: object > additionalProperties: true > appliedRevision: > type: integer > format: int64 > nullable: true > appliedAt: > type: string > format: date-time > nullable: true > example: > revision: 4 > schemaVersion: 1 > templateRevision: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > serverId: 1 > values: > core: {} > plugins: {} > appliedRevision: 3 > appliedAt: '2026-09-21T15:30:00Z' > '401': > description: Missing or invalid bearer API key > '404': > description: Server does not belong to the authenticated community > tags: > - General / Configuration > /v2/general/info: > get: > summary: Get Info > operationId: getInfo > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > uuid: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee > community: > comId: examplecad > name: Example CAD > timezone: America/Phoenix > customLoginUrl: https://portal.examplecad.com/login > codes: > - 10-8 > - 10-23 > security: > - bearerAuth: [] > tags: > - General / Configuration > /v2/general/login-page: > get: > summary: Get Login Page > operationId: getLoginPage > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > comId: examplecad > name: Example CAD > timezone: America/Phoenix > customLoginUrl: https://portal.examplecad.com/login > parameters: > - description: Use the community ID instead of `url`. Provide exactly one. > name: communityId > in: query > schema: > type: string > required: false > - description: Use the community website or login URL instead of `communityId`. > name: url > in: query > schema: > type: string > required: false > tags: > - General / Configuration > /v2/general/penal-codes: > get: > summary: Get Penal Codes > operationId: getPenalCodes > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: array > items: > $ref: '#/components/schemas/PenalCode' > example: > - title: Unsafe Lane Change > code: '22107' > type: INFRACTION > bondType: NONE > bondAmount: 0 > jailTime: '0' > security: > - bearerAuth: [] > tags: > - General / Configuration > put: > summary: Set Penal Codes > operationId: setPenalCodes > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > required: > - updated > properties: > updated: > type: integer > example: > updated: 1 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - codes > properties: > codes: > type: array > items: > $ref: '#/components/schemas/PenalCode' > example: > codes: > - title: Unsafe Lane Change > code: '22107' > type: INFRACTION > bondType: NONE > bondAmount: 0 > jailTime: '0' > tags: > - General / Configuration > /v2/general/servers: > get: > summary: Get Servers > operationId: getServers > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > servers: > id: 1 > name: Main Server > description: Primary patrol server > signal: '100' > mapUrl: https://example.com/tiles/{z}/{x}/{y}.png > mapIp: 203.0.113.10 > listenerPort: '30120' > differingOutbound: false > outboundIp: '' > enableMap: true > mapType: NORMAL > isStatic: false > liveMapFormat: 0 > security: > - bearerAuth: [] > tags: > - General / Configuration > put: > summary: Set Servers > operationId: setServers > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > servers: > id: 1 > name: Main Server > description: Primary patrol server > signal: '100' > mapUrl: https://example.com/tiles/{z}/{x}/{y}.png > mapIp: 203.0.113.10 > listenerPort: '30120' > differingOutbound: false > outboundIp: '' > enableMap: true > mapType: NORMAL > isStatic: false > liveMapFormat: 0 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > deployMap: true > servers: > id: 1 > name: Main Server > description: Primary patrol server > signal: '100' > mapUrl: https://example.com/tiles/{z}/{x}/{y}.png > mapIp: 203.0.113.10 > listenerPort: '30120' > differingOutbound: false > outboundIp: '' > enableMap: true > mapType: NORMAL > isStatic: false > liveMapFormat: 0 > tags: > - General / Configuration > /v2/general/turn: > get: > summary: Get Turn Credentials > operationId: getTurnCredentials > parameters: > - in: query > name: userId > required: false > schema: > type: string > description: Optional user identifier appended to the generated TURN username. > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > iceServers: > - urls: > - turn:coturn.sonorancad.com:3478?transport=udp > - turn:coturn.sonorancad.com:3478?transport=tcp > - stun:coturn.sonorancad.com:3478 > username: 1735689600:unit-1 > credential: base64-turn-credential > ttl: 600 > security: > - bearerAuth: [] > tags: > - General / Configuration > /v2/general/version: > get: > summary: Get Version > operationId: getVersion > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > version: 2 > name: PLUS > security: > - bearerAuth: [] > tags: > - General / Configuration > /v2/general/servers/{serverId}/heartbeat: > post: > summary: Heartbeat > operationId: heartbeat > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > serverId: 1 > playerCount: 32 > receivedAtUtc: '2026-04-08T21:35:00Z' > parameters: > - description: Configured Sonoran CAD server ID. > name: serverId > in: path > schema: > type: integer > example: 1 > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > playerCount: 42 > tags: > - General / Configuration > /v2/general/postals: > put: > summary: Set Postal Config > operationId: setPostalConfig > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > updated: 2 > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > postals: null > tags: > - General / Configuration > /v2/general/bodycam-recordings: > post: > summary: Upload Bodycam Recording > operationId: uploadBodycamRecording > requestBody: > required: true > content: > multipart/form-data: > schema: > type: object > required: > - file > - durationMs > properties: > file: > type: string > format: binary > accountUuid: > type: string > format: uuid > communityUserId: > type: string > durationMs: > type: integer > minimum: 1 > maximum: 120000 > identId: > type: integer > unitNumber: > type: string > unitLocation: > type: string > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: array > items: > type: string > example: > - https://files.example.com/bodycam/community/unit/clip.webm > '400': > description: Validation or upload error > content: > application/problem+json: > schema: > type: object > example: > title: Unable to upload bodycam recording > status: 400 > detail: Bodycam uploads must be webm files. > security: > - bearerAuth: [] > tags: > - General / Configuration > /v2/general/lookups/custom: > post: > summary: Lookup By Custom Search > operationId: lookupByCustomSearch > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 7 > id: 2451 > syncId: citizen:1234 > name: John Doe > type: 7 > sections: > category: 0 > label: Civilian Info > fields: > label: First Name > value: John > uid: first_name > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > map: drivers_license > value: D1234567 > types: 7 > partial: false > tags: > - General / Lookups > /v2/general/lookups/by-value: > post: > summary: Lookup By Value > operationId: lookupByValue > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 7 > id: 2451 > syncId: citizen:1234 > name: John Doe > type: 7 > sections: > category: 0 > label: Civilian Info > fields: > label: First Name > value: John > uid: first_name > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > searchType: NUMBER > value: '451' > notifyCommunityUserId: player-1234 > types: 12 > tags: > - General / Lookups > /v2/general/lookups: > post: > summary: Lookup Name Or Plate > operationId: lookupNameOrPlate > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: array > items: > type: object > example: > - recordTypeId: 7 > id: 2451 > syncId: citizen:1234 > name: John Doe > type: 7 > sections: > category: 0 > label: Civilian Info > fields: > label: First Name > value: John > uid: first_name > - recordTypeId: 12 > id: 451 > name: Incident Report > type: 9 > sections: > category: 0 > label: Report Details > fields: > label: Case Number > value: SC-2026-001 > uid: case_number > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > first: John > last: Doe > mi: '' > plate: '' > notifyCommunityUserId: player-1234 > types: > - 7 > - 12 > partial: true > tags: > - General / Lookups > /v2/general/records: > post: > summary: Create Record > operationId: createRecord > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 12 > id: 451 > name: Incident Report > type: 9 > sections: > category: 0 > label: Report Details > fields: > label: Case Number > value: SC-2026-001 > uid: case_number > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > roblox: 123456789 > useDictionary: true > recordTypeId: 12 > replaceValues: > plate: ABC123 > tags: > - General / Records > /v2/general/records/{recordId}: > delete: > summary: Delete Record > operationId: deleteRecord > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordId: 451 > parameters: > - description: Record ID. > name: recordId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - General / Records > patch: > summary: Update Record > operationId: updateRecord > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 12 > id: 451 > name: Incident Report > type: 9 > sections: > category: 0 > label: Report Details > fields: > label: Case Number > value: SC-2026-001 > uid: case_number > parameters: > - description: Record ID. > name: recordId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > communityUserId: player-1234 > useDictionary: true > templateId: 12 > replaceValues: > plate: XYZ987 > tags: > - General / Records > /v2/general/templates/{recordTypeId}: > get: > summary: Get Template > operationId: getTemplate > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 12 > id: 0 > name: Incident Report > type: 9 > sections: > category: 0 > label: Report Details > fields: > label: Case Number > value: '' > uid: case_number > parameters: > - description: Custom record template ID. > name: recordTypeId > in: path > schema: > type: integer > required: true > security: > - bearerAuth: [] > tags: > - General / Records > /v2/general/templates: > get: > summary: Get Templates > operationId: getTemplates > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 12 > id: 0 > name: Incident Report > type: 9 > sections: > category: 0 > label: Report Details > fields: > label: Case Number > value: '' > uid: case_number > security: > - bearerAuth: [] > tags: > - General / Records > /v2/general/record-drafts: > post: > summary: Send Draft > operationId: sendDraft > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > example: > recordTypeId: 12 > id: 0 > name: Incident Report > type: 9 > sections: > category: 0 > label: Report Details > fields: > label: Case Number > value: '' > uid: case_number > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > example: > recordTypeId: 12 > replaceValues: > '{{plate}}': ABC123 > communityUserId: player-1234 > tags: > - General / Records > /v2/integration-panels/servers/{serverId}/panels/{panelKey}/actions/{eventId}/ack: > post: > summary: Acknowledge Integration Panel Action > operationId: acknowledgeIntegrationPanelAction > security: > - bearerAuth: [] > parameters: > - name: serverId > in: path > required: true > schema: > type: integer > example: 1 > - name: panelKey > in: path > required: true > schema: > type: string > example: example.fire-alarms > - name: eventId > in: path > required: true > schema: > type: string > format: uuid > example: 11111111-1111-1111-1111-111111111111 > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - success > properties: > success: > type: boolean > message: > type: string > maxLength: 500 > result: > type: object > additionalProperties: true > example: > success: true > message: Alarm disabled > result: > alarmId: mrpd-lobby > active: false > responses: > '200': > description: Acknowledged action > content: > application/json: > schema: > type: object > example: > panelKey: example.fire-alarms > serverId: 1 > eventId: 11111111-1111-1111-1111-111111111111 > success: true > message: Alarm disabled > tags: > - Integration Panels > /v2/integration-panels/{panelKey}: > delete: > summary: Delete Integration Panel > operationId: deleteIntegrationPanel > security: > - bearerAuth: [] > parameters: > - name: panelKey > in: path > required: true > schema: > type: string > example: example.fire-alarms > responses: > '200': > description: Panel disabled > content: > application/json: > schema: > type: object > example: > key: example.fire-alarms > enabled: false > tags: > - Integration Panels > get: > summary: Get Integration Panel > operationId: getIntegrationPanel > security: > - bearerAuth: [] > parameters: > - name: panelKey > in: path > required: true > schema: > type: string > example: example.fire-alarms > responses: > '200': > description: Panel definition and instances > content: > application/json: > schema: > type: object > tags: > - Integration Panels > put: > summary: Set Integration Panel > operationId: putIntegrationPanel > security: > - bearerAuth: [] > parameters: > - name: panelKey > in: path > required: true > schema: > type: string > example: example.fire-alarms > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - definition > properties: > definition: > type: object > example: > definition: > schemaVersion: 1 > key: example.fire-alarms > name: Fire Alarm > icon: fas fa-bell > surfaces: > - dispatch > - fire > body: > - type: text > text: Connected to the alarm controller. > responses: > '200': > description: Created or replaced panel > content: > application/json: > schema: > type: object > tags: > - Integration Panels > /v2/integration-panels: > get: > summary: List Integration Panels > operationId: listIntegrationPanels > security: > - bearerAuth: [] > responses: > '200': > description: Active panels and stored instances > content: > application/json: > schema: > type: array > items: > type: object > example: > - key: example.fire-alarms > name: Fire Alarm > definition: > schemaVersion: 1 > name: Fire Alarm > body: [] > instances: > - instanceKey: default > state: {} > revision: 4 > tags: > - Integration Panels > /v2/integration-panels/servers/{serverId}/panels/{panelKey}/actions: > get: > summary: Poll Integration Panel Actions > operationId: pollIntegrationPanelActions > security: > - bearerAuth: [] > parameters: > - name: serverId > in: path > required: true > schema: > type: integer > example: 1 > - name: panelKey > in: path > required: true > schema: > type: string > example: example.fire-alarms > - name: after > in: query > schema: > type: integer > format: int64 > minimum: 0 > default: 0 > - name: limit > in: query > schema: > type: integer > minimum: 1 > maximum: 100 > default: 100 > responses: > '200': > description: Pending actions and next cursor > content: > application/json: > schema: > type: object > example: > events: > - cursor: 42 > id: 11111111-1111-1111-1111-111111111111 > panelKey: example.fire-alarms > serverId: 1 > instanceKey: default > actionId: alarm.set-active > actorUuid: 22222222-2222-2222-2222-222222222222 > actorName: John Doe > values: > alarmId: mrpd-lobby > active: false > createdAt: '2026-08-25T18:02:00Z' > expiresAt: '2026-08-25T18:03:00Z' > nextCursor: 42 > tags: > - Integration Panels > /v2/integration-panels/servers/{serverId}/panels/{panelKey}/instances/{instanceKey}/state: > put: > summary: Set Integration Panel State > operationId: replaceIntegrationPanelState > security: > - bearerAuth: [] > parameters: > - name: serverId > in: path > required: true > schema: > type: integer > example: 1 > - name: panelKey > in: path > required: true > schema: > type: string > example: example.fire-alarms > - name: instanceKey > in: path > required: true > schema: > type: string > example: default > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - state > properties: > state: > type: object > additionalProperties: true > example: > state: > summary: > active: 1 > normal: 2 > alarms: > - id: mrpd-lobby > name: MRPD Lobby > active: true > responses: > '200': > description: Stored state and revision > content: > application/json: > schema: > type: object > tags: > - Integration Panels > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > bearerFormat: JWT > BearerAuth: > type: http > scheme: bearer > schemas: > DispatchTemplate: > type: object > properties: > templateId: > type: integer > name: > type: string > version: > type: integer > isDefault: > type: boolean > statusOptions: > type: array > items: > type: object > properties: > id: > type: string > label: > type: string > status: > type: integer > enum: > - 0 > - 1 > - 2 > sections: > type: array > items: > type: object > properties: > uid: > type: string > label: > type: string > icon: > type: string > size: > type: integer > minimum: 4 > maximum: 12 > fields: > type: array > items: > type: object > properties: > uid: > type: string > type: > type: string > label: > type: string > binding: > type: string > size: > type: integer > minimum: 1 > maximum: 12 > required: > type: boolean > locked: > type: boolean > placeholder: > type: string > options: > type: array > items: > type: string > DatabaseSyncConfiguration: > type: object > required: > - enabled > - character > - licenses > - vehicleRegistrations > properties: > enabled: > type: boolean > character: > type: boolean > licenses: > type: boolean > vehicleRegistrations: > type: boolean > PenalCode: > type: object > properties: > title: > type: string > code: > type: string > type: > type: string > bondType: > type: string > bondAmount: > type: integer > jailTime: > type: string > ``` # Authentication Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/authentication Learn how to authenticate requests against the Sonoran CAD v2 API. All current v2 API endpoints require bearer authentication. ## Base URL ```http theme={null} https://api.sonorancad.com ``` ## Required Headers | Header | Value | Description | | - | - | - | | `Authorization` | `Bearer` [`YOUR_API_KEY`](/cad/api-integration/getting-started/retrieving-your-credentials) | Authenticates the request | | `Accept` | `application/json` | Recommended for all requests | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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({ > onlyUnits = true, > includeOffline = false > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getUnitsV2({ > onlyUnits = true, > includeOffline = false > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getUnitsV2({ > onlyUnits: true, > includeOffline: false, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getUnitsV2({ > "onlyUnits": True, > "includeOffline": False, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getUnitsV2(new GetUnitsV2Query > { > OnlyUnits = true, > IncludeOffline = false > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/units?onlyUnits=true&includeOffline=false" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` > [tab] JavaScript > > ```javascript theme={null} > const response = await fetch( > "https://api.sonorancad.com/v2/emergency/servers/1/units?onlyUnits=true&includeOffline=false", > { > method: "GET", > headers: { > Authorization: "Bearer YOUR_API_KEY", > Accept: "application/json", > }, > } > ); > > const data = await response.json(); > console.log(data); > ``` > [tab] PowerShell > > ```powershell theme={null} > $headers = @{ > Authorization = "Bearer YOUR_API_KEY" > Accept = "application/json" > } > > Invoke-RestMethod ` > -Method Get ` > -Uri "https://api.sonorancad.com/v2/emergency/servers/1/units?onlyUnits=true&includeOffline=false" ` > -Headers $headers > ``` ## Response Formats ### Successful Requests Successful responses return `application/json`. ### Failed Requests Failed requests return `application/problem+json`. Example: ```json theme={null} { "type": "https://httpstatuses.com/401", "title": "Unauthorized", "status": 401, "detail": "Missing Authorization header.", "instance": "/v2/emergency/servers/1/units", "traceId": "00-abc123..." } ``` ## Common Authentication Errors | Status | Cause | | - | - | | `401` | Missing `Authorization` header | | `401` | `Authorization` header is not using the `Bearer` scheme | | `401` | API key is invalid | | `404` | The requested `serverId` is not configured for the authenticated community | ## Rate Limits All v2 endpoints are rate limited per API key. Limits vary by endpoint, so check the individual endpoint page for the current enforced limit. When a request is rate limited, the API returns `429 Too Many Requests`. Example: ```json theme={null} { "message": "API rate limit exceeded", "request_id": "9457fb389b3729164e453e4db4328909" } ``` If the gateway provides a `Retry-After` header, your client should wait that long before retrying. Our official libraries already help with this: * [`Sonoran.js`](https://github.com/Sonoran-Software/Sonoran.js) automatically retries v2 CAD requests on `429` responses up to 2 times. * [`Sonoran.lua`](https://github.com/Sonoran-Software/Sonoran.Lua) automatically retries v2 CAD requests on `429` responses up to 2 times. * [`Sonoran.Net`](https://github.com/Sonoran-Software/Sonoran.Net) automatically retries v2 CAD requests on `429` responses up to 2 times and respects `Retry-After` when it is provided. * [`Sonoran.py`](https://pypi.org/project/Sonoran.py/) automatically retries v2 CAD requests on `429` responses up to 2 times and respects `Retry-After` when it is provided. These retries are intentionally limited. High-frequency integrations should still avoid bursty request patterns and should respect the published per-endpoint limits. # Civilian Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian View Sonoran CAD's current v2 civilian API endpoints. The v2 civilian API includes account-scoped character management and linked sync-character management. ## Endpoints > [card] [Get Characters](/cad/api-integration/api-endpoints-v2/civilian/get-characters) > [card] [Delete Character](/cad/api-integration/api-endpoints-v2/civilian/delete-character) > [card] [Set Selected Character](/cad/api-integration/api-endpoints-v2/civilian/set-selected-character) > [card] [Get Character Links](/cad/api-integration/api-endpoints-v2/civilian/get-character-links) > [card] [Add Character Link](/cad/api-integration/api-endpoints-v2/civilian/add-character-link) > [card] [Remove Character Link](/cad/api-integration/api-endpoints-v2/civilian/remove-character-link) # Add Character Link Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian/add-character-link Link a sync-character ID to a community user or account. `PUT` `https://api.sonorancad.com/v2/civilian/character-links/{syncId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Link a sync-character ID to a community user or account. ## Path Parameters | Name | Type | Description | | - | - | - | | `syncId` | string | Database Sync character identifier. | ## Request Body Use `communityUserId` by default, or provide exactly one of `roblox`, `discord`, or `accountUuid`. ```json theme={null} { "communityUserId": "player-1234" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:addCharacterLinkV2('CHAR_123', { > communityUserId = 'player-1234', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:addCharacterLinkV2('CHAR_123', { > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.addCharacterLinkV2('CHAR_123', { > communityUserId: 'player-1234', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.addCharacterLinkV2('CHAR_123', { > "communityUserId": 'player-1234', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.addCharacterLinkV2( > "CHAR_123", > new CharacterLinkTargetV2Request > { > CommunityUserId = "player-1234" > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Add Character Link" > version: "1.0.0" > description: "Link a sync-character ID to a community user or account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/civilian/character-links/{syncId}: > put: > summary: "Add Character Link" > operationId: "addCharacterLink" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > accountUuid: "00000000-0000-0000-0000-000000000000" > syncId: "citizen:1234" > action: "ADD" > parameters: > - > description: "Database Sync character identifier." > name: "syncId" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > discord: "123456789012345678" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/civilian/character-links/citizen:1234" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "accountUuid": "00000000-0000-0000-0000-000000000000", "syncId": "citizen:1234", "action": "ADD" } ``` # Delete Character Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian/delete-character Remove a character by character ID. `DELETE` `https://api.sonorancad.com/v2/civilian/characters/{characterId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Remove a Sonoran CAD character by character ID. ## Path Parameters | Name | Type | Description | | - | - | - | | `characterId` | integer | Character record ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:removeCharacterV2(42) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:removeCharacterV2(42) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.removeCharacterV2(42); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.removeCharacterV2(42) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.removeCharacterV2(42); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Delete Character" > version: "1.0.0" > description: "Remove a character by character ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/civilian/characters/{characterId}: > delete: > summary: "Delete Character" > operationId: "deleteCharacter" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > characterId: 2451 > parameters: > - > description: "Character record ID." > name: "characterId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > --url "https://api.sonorancad.com/v2/civilian/characters/2451" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "characterId": 2451 } ``` # Get Character Links Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian/get-character-links Retrieve linked sync-character IDs for a community user, linked Roblox user, linked Discord user, or account. `GET` `https://api.sonorancad.com/v2/civilian/character-links` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve linked sync-character IDs for a community user, linked Roblox user, linked Discord user, or account. ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `communityUserId` | string | Optional | Default target option for the in-game community user ID. Provide exactly one identifier. | | `roblox` | integer | Optional | Target the account linked to a Roblox user ID. Provide exactly one identifier. | | `discord` | string | Optional | Target the account linked to a Discord user ID. Provide exactly one identifier. | | `accountUuid` | string (uuid) | Optional | Target account UUID. Provide exactly one identifier. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getCharacterLinksV2({ > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getCharacterLinksV2({ > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getCharacterLinksV2({ > accountUuid: '00000000-0000-0000-0000-000000000000', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getCharacterLinksV2({ > "accountUuid": '00000000-0000-0000-0000-000000000000', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getCharacterLinksV2(new GetCharacterLinksV2Query > { > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Character Links" > version: "1.0.0" > description: "Retrieve linked sync-character IDs for a community user, linked Roblox user, linked Discord user, or account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/civilian/character-links: > get: > summary: "Get Character Links" > operationId: "getCharacterLinks" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "array" > items: > type: "object" > example: > - "citizen:1234" > - "citizen:5678" > parameters: > - > description: "Default target option for the in-game community user ID. Provide exactly one identifier." > name: "communityUserId" > in: "query" > schema: > type: "string" > required: false > - > description: "Target the account linked to a Roblox user ID. Provide exactly one identifier." > name: "roblox" > in: "query" > schema: > type: "integer" > required: false > - > description: "Target the account linked to a Discord user ID. Provide exactly one identifier." > name: "discord" > in: "query" > schema: > type: "string" > required: false > - > description: "Target account UUID. Provide exactly one identifier." > name: "accountUuid" > in: "query" > schema: > type: "string" > required: false > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/civilian/character-links?communityUserId=player-1234" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ "citizen:1234", "citizen:5678" ] ``` # Get Characters Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian/get-characters Retrieve characters for a community user, linked Roblox user, linked Discord user, or account. `GET` `https://api.sonorancad.com/v2/civilian/characters` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve characters for a Sonoran CAD account using `communityUserId` by default, or `roblox`, `discord`, or `accountUuid` as alternatives. ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `communityUserId` | string | Optional | Default target option for the in-game community user ID. Provide exactly one identifier. | | `roblox` | integer | Optional | Target the account linked to a Roblox user ID. Provide exactly one identifier. | | `discord` | string | Optional | Target the account linked to a Discord user ID. Provide exactly one identifier. | | `accountUuid` | string (uuid) | Optional | Target account UUID. Provide exactly one identifier. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getCharactersV2({ > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to call `getCharactersV2` directly. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local response = exports["sonorancad"]:getCharactersV2({ > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > > **Sonoran.js** > > ```javascript theme={null} > const response = exports["sonorancad"].getCharactersV2({ > accountUuid: "00000000-0000-0000-0000-000000000000", > }); > > console.log(response.success); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the C# client: > > ```csharp theme={null} > var response = await sonoran.Cad.getCharactersV2(new GetCharactersV2Query > { > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > ``` > > For other Sonoran.lua CAD v2 helpers that do not have a direct resource export, get the ready CAD client first: > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getCharactersV2({ > accountUuid: '00000000-0000-0000-0000-000000000000', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getCharactersV2({ > "accountUuid": '00000000-0000-0000-0000-000000000000', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getCharactersV2(new GetCharactersV2Query > { > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Characters" > version: "1.0.0" > description: "Retrieve characters for a community user, linked Roblox user, linked Discord user, or account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/civilian/characters: > get: > summary: "Get Characters" > operationId: "getCharacters" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 7 > id: 2451 > syncId: "citizen:1234" > name: "John Doe" > type: 7 > sections: > category: 0 > label: "Civilian Info" > fields: > label: "First Name" > value: "John" > uid: "first_name" > parameters: > - > description: "Default target option for the in-game community user ID. Provide exactly one identifier." > name: "communityUserId" > in: "query" > schema: > type: "string" > required: false > - > description: "Target the account linked to a Roblox user ID. Provide exactly one identifier." > name: "roblox" > in: "query" > schema: > type: "integer" > required: false > - > description: "Target the account linked to a Discord user ID. Provide exactly one identifier." > name: "discord" > in: "query" > schema: > type: "string" > required: false > - > description: "Target account UUID. Provide exactly one identifier." > name: "accountUuid" > in: "query" > schema: > type: "string" > required: false > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/civilian/characters?communityUserId=player-1234" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "recordTypeId": 7, "id": 2451, "syncId": "citizen:1234", "name": "John Doe", "type": 7, "sections": [ { "category": 0, "label": "Civilian Info", "fields": [ { "label": "First Name", "value": "John", "uid": "first_name" } ] } ] } ] ``` # Remove Character Link Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian/remove-character-link Unlink a sync-character ID from a community user or account. `DELETE` `https://api.sonorancad.com/v2/civilian/character-links/{syncId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Unlink a sync-character ID from a community user or account. ## Path Parameters | Name | Type | Description | | - | - | - | | `syncId` | string | Database Sync character identifier. | ## Request Body Use `communityUserId` by default, or provide exactly one of `roblox`, `discord`, or `accountUuid`. ```json theme={null} { "communityUserId": "player-1234" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:removeCharacterLinkV2('CHAR_123', { > communityUserId = 'player-1234', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:removeCharacterLinkV2('CHAR_123', { > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.removeCharacterLinkV2('CHAR_123', { > communityUserId: 'player-1234', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.removeCharacterLinkV2('CHAR_123', { > "communityUserId": 'player-1234', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.removeCharacterLinkV2( > "CHAR_123", > new CharacterLinkTargetV2Request > { > CommunityUserId = "player-1234" > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Remove Character Link" > version: "1.0.0" > description: "Unlink a sync-character ID from a community user or account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/civilian/character-links/{syncId}: > delete: > summary: "Remove Character Link" > operationId: "removeCharacterLink" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > accountUuid: "00000000-0000-0000-0000-000000000000" > syncId: "citizen:1234" > action: "REMOVE" > parameters: > - > description: "Database Sync character identifier." > name: "syncId" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > discord: "123456789012345678" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > --url "https://api.sonorancad.com/v2/civilian/character-links/citizen:1234" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "accountUuid": "00000000-0000-0000-0000-000000000000", "syncId": "citizen:1234", "action": "REMOVE" } ``` # Set Selected Character Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/civilian/set-selected-character Set the selected character for a community user or account. `PUT` `https://api.sonorancad.com/v2/civilian/selected-character` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Set the selected character or selected sync character for an account. ## Request Body Use `communityUserId` by default, or provide exactly one of `roblox`, `discord`, or `accountUuid`. ```json theme={null} { "communityUserId": "player-1234", "characterId": "1042" } ``` `characterId` may be a numeric Sonoran character ID or a sync character string ID. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setSelectedCharacterV2({ > characterId = '42', > communityUserId = 'player-1234', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setSelectedCharacterV2({ > characterId = '42', > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setSelectedCharacterV2({ > characterId: '42', > communityUserId: 'player-1234', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setSelectedCharacterV2({ > "characterId": '42', > "communityUserId": 'player-1234', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setSelectedCharacterV2(new SetSelectedCharacterV2Request > { > CharacterId = "CHAR_123", > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Selected Character" > version: "1.0.0" > description: "Set the selected character for a community user or account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/civilian/selected-character: > put: > summary: "Set Selected Character" > operationId: "setSelectedCharacter" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > accountUuid: "00000000-0000-0000-0000-000000000000" > characterId: "citizen:1234" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > discord: "123456789012345678" > characterId: "1042" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/civilian/selected-character" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234", > "characterId": "1042" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "accountUuid": "00000000-0000-0000-0000-000000000000", "characterId": "citizen:1234" } ``` # Emergency Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency View Sonoran CAD's current v2 emergency API endpoints. The v2 emergency API includes unit state updates, identifier management, dispatch and 911 call management, custom blips, and emergency configuration endpoints. ## Categories > [card] [units](/cad/api-integration/api-endpoints-v2/emergency/units) > [card] [identifiers](/cad/api-integration/api-endpoints-v2/emergency/identifiers) > [card] [calls](/cad/api-integration/api-endpoints-v2/emergency/calls) > [card] [map](/cad/api-integration/api-endpoints-v2/emergency/map) > [card] [configuration](/cad/api-integration/api-endpoints-v2/emergency/configuration) # Calls Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls v2 emergency call and dispatch endpoints. Use these endpoints to read active calls, create and manage 911 calls, and manage dispatch calls. ## Endpoints > [card] [Get Calls](/cad/api-integration/api-endpoints-v2/emergency/calls/get-calls) > [card] [Get Current Call](/cad/api-integration/api-endpoints-v2/emergency/calls/get-current-call) > [card] [Create 911 Call](/cad/api-integration/api-endpoints-v2/emergency/calls/create-911-call) > [card] [Remove 911 Call](/cad/api-integration/api-endpoints-v2/emergency/calls/remove-911-call) > [card] [Create Dispatch Call](/cad/api-integration/api-endpoints-v2/emergency/calls/create-dispatch-call) > [card] [Get Dispatch Templates](/cad/api-integration/api-endpoints-v2/emergency/calls/get-dispatch-templates) > [card] [Create Custom Dispatch Call](/cad/api-integration/api-endpoints-v2/emergency/calls/create-custom-dispatch-call) > [card] [Update Dispatch Call](/cad/api-integration/api-endpoints-v2/emergency/calls/update-dispatch-call) > [card] [Attach Units](/cad/api-integration/api-endpoints-v2/emergency/calls/attach-units) > [card] [Detach Units](/cad/api-integration/api-endpoints-v2/emergency/calls/detach-units) > [card] [Update Call Postal](/cad/api-integration/api-endpoints-v2/emergency/calls/update-call-postal) > [card] [Update Call Primary](/cad/api-integration/api-endpoints-v2/emergency/calls/update-call-primary) > [card] [Add Call Note](/cad/api-integration/api-endpoints-v2/emergency/calls/add-call-note) > [card] [Close Dispatch Calls](/cad/api-integration/api-endpoints-v2/emergency/calls/close-dispatch-calls) # Add Call Note Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/add-call-note Add a note to a dispatch call. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/{callId}/notes` > **Rate limit:** `60 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `callId` | integer | Dispatch or 911 call ID. | ## Request Body ```json theme={null} { "note": "Suspect vehicle fleeing northbound", "noteType": "text", "label": "Integration" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:addDispatchNoteV2(501, { > serverId = 1, > note = 'Caller updated with additional suspect info.', > noteType = 'text', > label = 'Dispatcher', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:addDispatchNoteV2(501, { > serverId = 1, > note = 'Caller updated with additional suspect info.', > noteType = 'text', > label = 'Dispatcher', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.addDispatchNoteV2(501, { > serverId: 1, > note: 'Caller updated with additional suspect info.', > noteType: 'text', > label: 'Dispatcher', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.addDispatchNoteV2(501, { > "serverId": 1, > "note": 'Caller updated with additional suspect info.', > "noteType": 'text', > "label": 'Dispatcher', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.addDispatchNoteV2( > 501, > new AddDispatchNoteV2Request > { > ServerId = 1, > Note = "Units advised of updated suspect vehicle information.", > NoteType = "INFO", > Label = "Dispatch" > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Add Call Note" > version: "1.0.0" > description: "Add a note to a dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/notes: > post: > summary: "Add Call Note" > operationId: "addCallNote" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 501 > note: "Caller is hiding." > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Dispatch or 911 call ID." > name: "callId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > note: "Suspect vehicle fleeing northbound" > noteType: "text" > label: "Integration" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/501/notes" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "note": "Suspect vehicle fleeing northbound", > "noteType": "text", > "label": "Integration" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 501, "note": "Caller is hiding." } ``` # Attach Units Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/attach-units Attach identifiers or a group to a dispatch call. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/{callId}/attachments` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Attach identifiers or a group to a dispatch call. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `callId` | integer | Dispatch or 911 call ID. | ## Request Body Provide either `groupName` or one or more identifier targets. Use `communityUserId` or `communityUserIds` by default, or provide `roblox`, `discord`, `accountUuid`, or `identIds`. ```json theme={null} { "communityUserIds": ["player-1234"] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:attachUnitsToDispatchCallV2(501, { > serverId = 1, > communityUserIds = {'player-1234'}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:attachUnitsToDispatchCallV2(501, { > serverId = 1, > apiIds = {'1234567890'}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.attachUnitsToDispatchCallV2(501, { > serverId: 1, > communityUserIds: ['player-1234'], > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.attachUnitsToDispatchCallV2(501, { > "serverId": 1, > "communityUserIds": ['player-1234'], > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.attachUnitsToDispatchCallV2( > 501, > new DispatchAttachmentV2Request > { > ServerId = 1, > CommunityUserIds = new[] { "player-1234" } > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Attach Units" > version: "1.0.0" > description: "Attach identifiers or a group to a dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/attachments: > post: > summary: "Attach Units" > operationId: "attachUnits" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 501 > identIds: > - 12 > - 18 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Dispatch or 911 call ID." > name: "callId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserIds: "player-1234" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/501/attachments" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserIds": ["player-1234"] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 501, "identIds": [ 12, 18 ] } ``` # Close Dispatch Calls Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/close-dispatch-calls Close one or more dispatch calls. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/close` > **Rate limit:** `20 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Close one or more dispatch calls. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "callIds": [1042, 1043] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:closeDispatchCallsV2({501}, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:closeDispatchCallsV2({501}, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.closeDispatchCallsV2([501], 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.closeDispatchCallsV2([501], 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.closeDispatchCallsV2(new[] { 501, 502 }, 1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Close Dispatch Calls" > version: "1.0.0" > description: "Close one or more dispatch calls." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/close: > post: > summary: "Close Dispatch Calls" > operationId: "closeDispatchCalls" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callIds: > - 501 > - 502 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > callIds: > - 1042 > - 1043 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/close" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "callIds": [1042, 1043] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callIds": [ 501, 502 ] } ``` # Create 911 Call Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/create-911-call Create a new 911 call for a server. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/calls/911` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Create a new 911 call for a server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body Common `metaData` keys used by the CAD: | Property | Type | Required | Description | | - | - | - | - | | `isEmergency` | boolean | Yes | Whether the 911 should be marked as an emergency call. | | `caller` | string | Yes | Caller name or label shown in CAD. | | `location` | string | Yes | Human-readable location or address. | | `description` | string | Yes | Call details shown to dispatchers. | | `deleteAfterMinutes` | integer | No | Schedule automatic deletion after creation. | | `metaData` | object | No | Additional string key/value metadata. Pass `x` and `y` coordinate values to enable live map placement, 911 screenshot rendering, and coordinate-based dispatch tools. `z`, `postal`, `block`, `code`, and `priority` may also be supplied when applicable. | ```json theme={null} { "isEmergency": true, "caller": "911 Caller", "location": "Alta St / Integrity Way", "description": "Shots fired", "deleteAfterMinutes": 15, "metaData": { "source": "integration", "x": "425.1", "y": "-979.2", "z": "30.7", "postal": "9001" } } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:createEmergencyCallV2({ > serverId = 1, > isEmergency = true, > caller = 'John Doe', > location = '101 Alta Street', > description = 'Structure fire with visible smoke.', > deleteAfterMinutes = 30, > metaData = { > source = 'integration', > x = '425.1', > y = '-979.2', > z = '30.7', > postal = '9001', > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:createEmergencyCallV2({ > serverId = 1, > isEmergency = true, > caller = 'John Doe', > location = '101 Alta Street', > description = 'Structure fire with visible smoke.', > deleteAfterMinutes = 30, > metaData = { > source = 'integration', > x = '425.1', > y = '-979.2', > z = '30.7', > postal = '9001', > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createEmergencyCallV2({ > serverId: 1, > isEmergency: true, > caller: 'John Doe', > location: '101 Alta Street', > description: 'Structure fire with visible smoke.', > deleteAfterMinutes: 30, > metaData: { > source: 'integration', > x: '425.1', > y: '-979.2', > z: '30.7', > postal: '9001', > }, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createEmergencyCallV2({ > "serverId": 1, > "isEmergency": True, > "caller": 'John Doe', > "location": '101 Alta Street', > "description": 'Structure fire with visible smoke.', > "deleteAfterMinutes": 30, > "metaData": { > "source": 'integration', > "x": '425.1', > "y": '-979.2', > "z": '30.7', > "postal": '9001', > }, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createEmergencyCallV2(new CreateEmergencyCallV2Request > { > ServerId = 1, > IsEmergency = true, > Caller = "John Doe", > Location = "101 Alta Street", > Description = "Structure fire with visible smoke.", > DeleteAfterMinutes = 30, > MetaData = new Dictionary > { > ["source"] = "integration", > ["x"] = "425.1", > ["y"] = "-979.2", > ["z"] = "30.7", > ["postal"] = "9001" > } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Create 911 Call" > version: "1.0.0" > description: "Create a new 911 call for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/calls/911: > post: > summary: "Create 911 Call" > operationId: "create911Call" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 302 > isEmergency: true > caller: "Jane Doe" > location: "Innocence Blvd" > description: "Medical emergency reported." > metaData: > phone: "555-0100" > x: "425.1" > y: "-979.2" > z: "30.7" > postal: "9001" > updated: "2026-04-08T21:31:00Z" > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > isEmergency: true > caller: "911 Caller" > location: "Alta St / Integrity Way" > description: "Shots fired" > deleteAfterMinutes: 15 > metaData: > source: "integration" > x: "425.1" > y: "-979.2" > z: "30.7" > postal: "9001" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/calls/911" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "isEmergency": true, > "caller": "911 Caller", > "location": "Alta St / Integrity Way", > "description": "Shots fired", > "deleteAfterMinutes": 15, > "metaData": { > "source": "integration", > "x": "425.1", > "y": "-979.2", > "z": "30.7", > "postal": "9001" > } > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 302, "isEmergency": true, "caller": "Jane Doe", "location": "Innocence Blvd", "description": "Medical emergency reported.", "metaData": { "phone": "555-0100", "x": "425.1", "y": "-979.2", "z": "30.7", "postal": "9001" }, "updated": "2026-04-08T21:31:00Z" } ``` # Create Custom Dispatch Call Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/create-custom-dispatch-call Create a dispatch call from a community-defined layout. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/custom-dispatch-calls` Create a dispatch call using a configured template. Call `GET /v2/emergency/dispatch-templates` first and key `values` by each field's `uid`. The status field value must be a status option `id`, not the canonical numeric status. Sonoran CAD maps that option to pending, active, or closed behavior. Priority is a normal customizable select field: submit the selected text exactly as it appears in that field's `options` array. Unit targets are supplied through the target properties and are snapshotted into the required units field. The normalized template and complete value dictionary are stored on the call, so later template edits do not change historical calls. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body | Property | Type | Required | Description | | - | - | - | - | | `templateId` | integer | Yes | Template returned by the dispatch-template endpoint. | | `values` | object | Yes | Field values keyed by template field `uid`. Unknown keys are rejected. | | `identIds` | array of integers | Conditional | Active identifier IDs to attach. At least one valid unit target is required. | | `accountUuid` | string (uuid) | Conditional | Account whose selected identifier is attached. | | `accounts` | array of strings (uuid) | Conditional | Accounts whose selected identifiers are attached. | | `communityUserId` | string | Conditional | One linked community user target. | | `communityUserIds` | array of strings | Conditional | Linked community user targets. | | `roblox` | string | Conditional | Linked Roblox target. | | `discord` | string | Conditional | Linked Discord target. | | `notes` | array | No | Initial call notes. | | `metaData` | object | No | String metadata, including optional map coordinates. | | `deleteAfterMinutes` | integer | No | Schedule automatic call deletion. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:createCustomDispatchCallV2({ > serverId = 1, > templateId = 1, > values = { > status = "deployed", > priority = "Immediate", > description = "Reports of a disturbance outside the station.", > code = "GRADE_1", > caller_name = "Alex Smith" > }, > communityUserIds = {"player-1234"} > }) > ``` > [tab] SonoranCADFiveM > > Use this tab when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the configured CAD client. > * **Sonoran.Net:** read the protected Sonoran CAD convars and create a client. > * **Sonoran.py:** FiveM does not run Python resources; use the Sonoran.py tab for external integrations. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:createCustomDispatchCallV2({ > templateId = 1, > values = { status = "deployed", priority = "Immediate", description = "Disturbance reported." }, > communityUserIds = {"player-1234"} > }) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.createCustomDispatchCallV2({ > templateId: 1, > values: { status: 'deployed', priority: 'Immediate', description: 'Disturbance reported.' }, > communityUserIds: ['player-1234'], > }); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using System.Collections.Generic; > using CitizenFX.Core.Native; > using Sonoran; > > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = API.GetConvar("sonoran_communityID", ""), > apiKey = API.GetConvar("sonoran_apiKey", ""), > defaultServerId = serverId > }); > > var response = await sonoran.Cad.createCustomDispatchCallV2(new CreateCustomDispatchCallV2Request > { > TemplateId = 1, > Values = new Dictionary > { > ["status"] = "deployed", > ["description"] = "Disturbance reported." > }, > CommunityUserIds = new[] { "player-1234" } > }); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createCustomDispatchCallV2({ > serverId: 1, > templateId: 1, > values: { > status: 'deployed', > priority: 'Immediate', > description: 'Reports of a disturbance outside the station.', > code: 'GRADE_1', > caller_name: 'Alex Smith', > }, > communityUserIds: ['player-1234'], > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createCustomDispatchCallV2({ > "serverId": 1, > "templateId": 1, > "values": { > "status": "deployed", > "priority": "Immediate", > "description": "Reports of a disturbance outside the station.", > "code": "GRADE_1", > "caller_name": "Alex Smith", > }, > "communityUserIds": ["player-1234"], > }) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createCustomDispatchCallV2(new CreateCustomDispatchCallV2Request > { > ServerId = 1, > TemplateId = 1, > Values = new Dictionary > { > ["status"] = "deployed", > ["priority"] = "Immediate", > ["description"] = "Reports of a disturbance outside the station.", > ["code"] = "GRADE_1", > ["caller_name"] = "Alex Smith" > }, > CommunityUserIds = new[] { "player-1234" } > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: Sonoran CAD v2 - Create Custom Dispatch Call > version: 1.0.0 > servers: > - url: https://api.sonorancad.com > paths: > /v2/emergency/servers/{serverId}/custom-dispatch-calls: > post: > operationId: createCustomDispatchCall > security: > - bearerAuth: [] > parameters: > - name: serverId > in: path > required: true > schema: { type: integer, minimum: 1, example: 1 } > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [templateId, values] > properties: > templateId: { type: integer, minimum: 1 } > values: { type: object, additionalProperties: true } > identIds: { type: array, items: { type: integer } } > accountUuid: { type: string, format: uuid } > accounts: { type: array, items: { type: string, format: uuid } } > communityUserId: { type: string } > communityUserIds: { type: array, items: { type: string } } > roblox: { type: string } > discord: { type: string } > notes: { type: array, items: { type: object } } > metaData: { type: object, additionalProperties: { type: string } } > deleteAfterMinutes: { type: integer, minimum: 0 } > example: > templateId: 1 > values: > status: deployed > priority: Immediate > description: Reports of a disturbance outside the station. > code: GRADE_1 > caller_name: Alex Smith > communityUserIds: [player-1234] > responses: > '201': { description: Custom dispatch call created } > '400': { description: Template values or required fields are invalid } > '404': { description: Template or unit target not found } > components: > securitySchemes: > bearerAuth: { type: http, scheme: bearer, bearerFormat: JWT } > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/custom-dispatch-calls" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Content-Type: application/json" \ > --data '{ > "templateId": 1, > "values": { > "status": "deployed", > "priority": "Immediate", > "description": "Reports of a disturbance outside the station.", > "code": "GRADE_1", > "caller_name": "Alex Smith" > }, > "communityUserIds": ["player-1234"] > }' > ``` ## Response The response is the stored dispatch call. It includes canonical fields for existing integrations plus `template`, `values`, and `statusId` for the customized format. # Create Dispatch Call Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/create-dispatch-call Create a new dispatch call. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls` > **Rate limit:** `20 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Create a new dispatch call and optionally attach initial units resolved from community user IDs, linked Roblox IDs, linked Discord IDs, or account UUIDs. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body The request must include at least one target property: `communityUserIds`, `accounts`, `roblox`, or `discord`. To create an unassigned call, send `communityUserIds: []` or `accounts: []`. | Property | Type | Required | Description | | - | - | - | - | | `origin` | integer | Yes | Call origin enum. See `CALL_ORIGIN` below. | | `status` | integer | Yes | Call status enum. See `CALL_STATUS` below. | | `priority` | integer | Yes | Call priority. | | `block` | string | No | Block or intersection label. | | `address` | string | No | Dispatch address text. | | `postal` | string | No | Postal code. | | `title` | string | Yes | Short dispatch title. | | `code` | string | No | Call code such as `211`. | | `description` | string | No | Full call description. | | `notes` | array | No | Initial note objects to store on the call. | | `communityUserIds` | array of strings | Conditional | Linked community users whose active identifiers should be attached. An empty array creates an unassigned call. | | `roblox` | string | Conditional | Roblox user ID whose linked account's active identifiers should be attached. | | `discord` | string | Conditional | Discord user ID whose linked account's active identifiers should be attached. | | `accounts` | array of strings (uuid) | Conditional | Accounts whose selected identifiers should be attached. An empty array creates an unassigned call. | | `metaData` | object | No | Additional string key/value metadata. Pass `x` and `y` coordinate values to enable live map placement and coordinate-based search actions. `z`, `radius`, `postal`, `block`, `code`, and `priority` may also be supplied when applicable. | | `deleteAfterMinutes` | integer | No | Schedule automatic deletion after creation. | ```json theme={null} { "origin": 0, "status": 1, "priority": 1, "block": "100", "address": "Mission Row", "postal": "9001", "title": "Armed Robbery", "code": "211", "description": "Clerk reports a firearm.", "notes": [], "communityUserIds": ["player-1234"], "metaData": { "source": "integration", "x": "425.1", "y": "-979.2", "z": "30.7", "radius": "75" } } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:createDispatchCallV2({ > serverId = 1, > origin = 1, > status = 1, > priority = 1, > block = '101', > address = 'Alta Street', > postal = '100', > title = 'Structure Fire', > code = 'FIRE', > description = 'Visible smoke from the roof.', > notes = {}, > communityUserIds = {'player-1234'}, > metaData = { > source = 'integration', > x = '425.1', > y = '-979.2', > z = '30.7', > radius = '75', > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:createDispatchCallV2({ > serverId = 1, > origin = 1, > status = 1, > priority = 1, > block = '101', > address = 'Alta Street', > postal = '100', > title = 'Structure Fire', > code = 'FIRE', > description = 'Visible smoke from the roof.', > notes = {}, > communityUserIds = {'player-1234'}, > metaData = { > source = 'integration', > x = '425.1', > y = '-979.2', > z = '30.7', > radius = '75', > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createDispatchCallV2({ > serverId: 1, > origin: 1, > status: 1, > priority: 1, > block: '101', > address: 'Alta Street', > postal: '100', > title: 'Structure Fire', > code: 'FIRE', > description: 'Visible smoke from the roof.', > notes: [], > communityUserIds: ['player-1234'], > metaData: { > source: 'integration', > x: '425.1', > y: '-979.2', > z: '30.7', > radius: '75', > }, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createDispatchCallV2({ > "serverId": 1, > "origin": 1, > "status": 1, > "priority": 1, > "block": '101', > "address": 'Alta Street', > "postal": '100', > "title": 'Structure Fire', > "code": 'FIRE', > "description": 'Visible smoke from the roof.', > "notes": [], > "communityUserIds": ['player-1234'], > "metaData": { > "source": 'integration', > "x": '425.1', > "y": '-979.2', > "z": '30.7', > "radius": '75', > }, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createDispatchCallV2(new CreateDispatchCallV2Request > { > ServerId = 1, > Origin = 0, > Status = 1, > Priority = 1, > Block = "Alta St / Integrity Way", > Address = "101 Alta Street", > Postal = "9001", > Title = "Structure Fire", > Code = "10-70", > Description = "Visible smoke coming from the second floor.", > Notes = new[] > { > new DispatchCallNoteV2 > { > Label = "Dispatch", > Type = "INFO", > Content = "Caller reports flames visible from the rear alley." > } > }, > CommunityUserIds = new[] { "player-1234" }, > DeleteAfterMinutes = 30 > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Create Dispatch Call" > version: "1.0.0" > description: "Create a new dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls: > post: > summary: "Create Dispatch Call" > operationId: "createDispatchCall" > responses: > 201: > description: "Dispatch call created" > content: > application/json: > schema: > type: "object" > example: > callId: 501 > origin: 0 > status: 1 > priority: 1 > block: "100" > address: "Mission Row" > postal: "9001" > title: "Armed Robbery" > code: "211" > primary: 12 > trackPrimary: false > description: "Clerk reports a firearm." > notes: > - time: "2026-04-08T21:30:00Z" > label: "Sonoran CAD" > type: "text" > content: "Caller is hiding." > idents: > - 12 > - 18 > metaData: > source: "integration" > x: "425.1" > y: "-979.2" > z: "30.7" > radius: "75" > updated: "2026-04-08T21:30:00Z" > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > origin: 0 > status: 1 > priority: 1 > block: "100" > address: "Mission Row" > postal: "9001" > title: "Armed Robbery" > code: "211" > description: "Clerk reports a firearm." > notes: [] > communityUserIds: > - "player-1234" > metaData: > source: "integration" > x: "425.1" > y: "-979.2" > z: "30.7" > radius: "75" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "origin": 0, > "status": 1, > "priority": 1, > "block": "100", > "address": "Mission Row", > "postal": "9001", > "title": "Armed Robbery", > "code": "211", > "description": "Clerk reports a firearm.", > "notes": [], > "communityUserIds": ["player-1234"], > "metaData": { > "source": "integration", > "x": "425.1", > "y": "-979.2", > "z": "30.7", > "radius": "75" > } > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 501, "origin": 0, "status": 1, "priority": 1, "block": "100", "address": "Mission Row", "postal": "9001", "title": "Armed Robbery", "code": "211", "primary": 12, "trackPrimary": false, "description": "Clerk reports a firearm.", "notes": [ { "time": "2026-04-08T21:30:00Z", "label": "Sonoran CAD", "type": "text", "content": "Caller is hiding." } ], "idents": [ 12, 18 ], "metaData": { "source": "integration", "x": "425.1", "y": "-979.2", "z": "30.7", "radius": "75" }, "updated": "2026-04-08T21:30:00Z" } ``` ## Enumeration Values ### CALL\_STATUS | Value | Description | | - | - | | `0` | `PENDING` | | `1` | `ACTIVE` | | `2` | `CLOSED` | ### CALL\_ORIGIN | Value | Description | | - | - | | `0` | `CALLER` | | `1` | `RADIO_DISPATCH` | | `2` | `OBSERVED` | | `3` | `WALK_UP` | # Detach Units Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/detach-units Detach identifiers or a group from any active dispatch call. `DELETE` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/attachments` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Detach identifiers or a group from any currently attached dispatch call. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body Provide either `groupName` or one or more identifier targets. Use `communityUserId` or `communityUserIds` by default, or provide `roblox`, `discord`, `accountUuid`, or `identIds`. ```json theme={null} { "communityUserIds": ["player-1234"] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:detachUnitsFromDispatchCallV2({ > serverId = 1, > communityUserIds = {'player-1234'}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:detachUnitsFromDispatchCallV2({ > serverId = 1, > apiIds = {'1234567890'}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.detachUnitsFromDispatchCallV2({ > serverId: 1, > communityUserIds: ['player-1234'], > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.detachUnitsFromDispatchCallV2({ > "serverId": 1, > "communityUserIds": ['player-1234'], > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.detachUnitsFromDispatchCallV2(new DispatchAttachmentV2Request > { > ServerId = 1, > CommunityUserIds = new[] { "player-1234" } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Detach Units" > version: "1.0.0" > description: "Detach identifiers or a group from any active dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/attachments: > delete: > summary: "Detach Units" > operationId: "detachUnits" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > identIds: > - 12 > - 18 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserIds: "player-1234" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/attachments" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserIds": ["player-1234"] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "identIds": [ 12, 18 ] } ``` # Get Calls Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/get-calls Retrieve active, emergency, and closed calls for a server. `GET` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/calls` > **Rate limit:** `5 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve dispatch calls, emergency calls, and recent closed calls. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `closedLimit` | integer | `10` | Maximum number of closed dispatch calls returned. | | `closedOffset` | integer | `0` | Number of closed calls to skip. | | `type` | integer | `100` | Call table type filter. See `CALL_TABLE_TYPE` below. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getCallsV2({ > serverId = 1, > closedLimit = 10, > closedOffset = 0, > type = 100, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getCallsV2({ > serverId = 1, > closedLimit = 10, > closedOffset = 0, > type = 100, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getCallsV2({ > serverId: 1, > closedLimit: 10, > closedOffset: 0, > type: 100, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getCallsV2({ > "serverId": 1, > "closedLimit": 10, > "closedOffset": 0, > "type": 100, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getCallsV2(new GetCallsV2Query > { > ServerId = 1, > ClosedLimit = 10, > Type = "dispatch" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Calls" > version: "1.0.0" > description: "Retrieve active, emergency, and closed calls for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/calls: > get: > summary: "Get Calls" > operationId: "getCalls" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > ActiveCalls: > callId: 501 > origin: 0 > status: 1 > priority: 1 > block: "100" > address: "Mission Row" > postal: "9001" > title: "Armed Robbery" > code: "211" > primary: 12 > trackPrimary: false > description: "Clerk reports a firearm." > notes: > time: "2026-04-08T21:30:00Z" > label: "Sonoran CAD" > type: "text" > content: "Caller is hiding." > idents: > - 12 > - 18 > metaData: > source: "integration" > x: "425.1" > y: "-979.2" > z: "30.7" > radius: "75" > updated: "2026-04-08T21:30:00Z" > EmergencyCalls: > callId: 302 > isEmergency: true > caller: "Jane Doe" > location: "Innocence Blvd" > description: "Medical emergency reported." > metaData: > phone: "555-0100" > x: "425.1" > y: "-979.2" > z: "30.7" > postal: "9001" > updated: "2026-04-08T21:31:00Z" > ClosedCalls: > callId: 480 > origin: 0 > status: 2 > priority: 1 > block: "100" > address: "Mission Row" > postal: "9001" > title: "Armed Robbery" > code: "211" > primary: 12 > trackPrimary: false > description: "Clerk reports a firearm." > notes: > time: "2026-04-08T21:30:00Z" > label: "Sonoran CAD" > type: "text" > content: "Caller is hiding." > idents: > - 12 > - 18 > metaData: > source: "integration" > x: "425.1" > y: "-979.2" > z: "30.7" > radius: "75" > updated: "2026-04-08T21:30:00Z" > ClosedCallCount: 18 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Maximum number of closed dispatch calls returned." > name: "closedLimit" > in: "query" > schema: > type: "integer" > required: true > - > description: "Number of closed calls to skip." > name: "closedOffset" > in: "query" > schema: > type: "integer" > required: true > - > description: "Call table type filter. See `CALL_TABLE_TYPE` below." > name: "type" > in: "query" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/calls?closedLimit=10&closedOffset=0&type=100" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "ActiveCalls": [ { "callId": 501, "origin": 0, "status": 1, "priority": 1, "block": "100", "address": "Mission Row", "postal": "9001", "title": "Armed Robbery", "code": "211", "primary": 12, "trackPrimary": false, "description": "Clerk reports a firearm.", "notes": [ { "time": "2026-04-08T21:30:00Z", "label": "Sonoran CAD", "type": "text", "content": "Caller is hiding." } ], "idents": [ 12, 18 ], "metaData": { "source": "integration", "x": "425.1", "y": "-979.2", "z": "30.7", "radius": "75" }, "updated": "2026-04-08T21:30:00Z" } ], "EmergencyCalls": [ { "callId": 302, "isEmergency": true, "caller": "Jane Doe", "location": "Innocence Blvd", "description": "Medical emergency reported.", "metaData": { "phone": "555-0100", "x": "425.1", "y": "-979.2", "z": "30.7", "postal": "9001" }, "updated": "2026-04-08T21:31:00Z" } ], "ClosedCalls": [ { "callId": 480, "origin": 0, "status": 2, "priority": 1, "block": "100", "address": "Mission Row", "postal": "9001", "title": "Armed Robbery", "code": "211", "primary": 12, "trackPrimary": false, "description": "Clerk reports a firearm.", "notes": [ { "time": "2026-04-08T21:30:00Z", "label": "Sonoran CAD", "type": "text", "content": "Caller is hiding." } ], "idents": [ 12, 18 ], "metaData": { "source": "integration", "x": "425.1", "y": "-979.2", "z": "30.7", "radius": "75" }, "updated": "2026-04-08T21:30:00Z" } ], "ClosedCallCount": 18 } ``` ## Enumeration Values ### CALL\_TABLE\_TYPE | Value | Description | | - | - | | `0` | `DISPATCH_CALL` | | `1` | `EMERGENCY_CALL` | | `100` | `SEARCH_ALL` | ### CALL\_STATUS | Value | Description | | - | - | | `0` | `PENDING` | | `1` | `ACTIVE` | | `2` | `CLOSED` | ### CALL\_ORIGIN | Value | Description | | - | - | | `0` | `RADIO_DISPATCH` | | `1` | `SELF_INITIATED` | # Get Current Call Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/get-current-call Retrieve the current selected identifier and active call for an account. `GET` `https://api.sonorancad.com/v2/emergency/accounts/{accountUuid}/current-call` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve the currently selected identifier and active call for an account. ## Path Parameters | Name | Type | Description | | - | - | - | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getCurrentCallV2('00000000-0000-0000-0000-000000000000') > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getCurrentCallV2('00000000-0000-0000-0000-000000000000') > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getCurrentCallV2('00000000-0000-0000-0000-000000000000'); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getCurrentCallV2('00000000-0000-0000-0000-000000000000') > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getCurrentCallV2("00000000-0000-0000-0000-000000000000"); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Current Call" > version: "1.0.0" > description: "Retrieve the current selected identifier and active call for an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/accounts/{accountUuid}/current-call: > get: > summary: "Get Current Call" > operationId: "getCurrentCall" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > IdentId: 12 > CallId: 501 > parameters: > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/accounts/00000000-0000-0000-0000-000000000000/current-call" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "IdentId": 12, "CallId": 501 } ``` # Get Dispatch Templates Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/get-dispatch-templates Retrieve the custom dispatch call layouts configured for the authenticated community. `GET` `https://api.sonorancad.com/v2/emergency/dispatch-templates` Retrieve every dispatch layout for the community. Add `/{templateId}` to retrieve one layout. Use the returned field `uid` values when creating a custom dispatch call. A template contains grouped `sections`, responsive field widths, and custom `statusOptions`. Each status option maps its community-facing label and API `id` to the canonical call behavior: `0` pending, `1` active, or `2` closed. Fields with the `status`, `units`, or `description` binding are locked and required. Priority is represented as a standard `select` field whose text options are fully controlled by the community. The code field's visible label is controlled by the community's geographical 10-code setting. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:getDispatchTemplatesV2() > if response.success then > print(("Found %d dispatch templates"):format(#response.data)) > end > ``` > [tab] SonoranCADFiveM > > Use this tab when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the configured CAD client. > * **Sonoran.Net:** read the protected Sonoran CAD convars and create a client. > * **Sonoran.py:** FiveM does not run Python resources; use the Sonoran.py tab for external integrations. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:getDispatchTemplatesV2() > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.getDispatchTemplatesV2(); > console.log(response.data); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using System.Collections.Generic; > using CitizenFX.Core.Native; > using Sonoran; > > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = API.GetConvar("sonoran_communityID", ""), > apiKey = API.GetConvar("sonoran_apiKey", ""), > defaultServerId = serverId > }); > > var response = await sonoran.Cad.getDispatchTemplatesV2(); > var templates = response.data?.ToObject>() ?? new(); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getDispatchTemplatesV2(); > console.log(response.data); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getDispatchTemplatesV2() > print(response.data) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getDispatchTemplatesV2(); > var templates = response.data?.ToObject>() ?? new(); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: Sonoran CAD v2 - Dispatch Templates > version: 1.0.0 > servers: > - url: https://api.sonorancad.com > paths: > /v2/emergency/dispatch-templates: > get: > operationId: getDispatchTemplates > security: > - bearerAuth: [] > responses: > '200': > description: Community dispatch templates > content: > application/json: > schema: > type: array > items: > $ref: '#/components/schemas/DispatchTemplate' > /v2/emergency/dispatch-templates/{templateId}: > get: > operationId: getDispatchTemplate > security: > - bearerAuth: [] > parameters: > - name: templateId > in: path > required: true > schema: { type: integer, minimum: 1 } > responses: > '200': > description: Dispatch template > content: > application/json: > schema: > $ref: '#/components/schemas/DispatchTemplate' > '404': { description: Template not found } > components: > securitySchemes: > bearerAuth: { type: http, scheme: bearer, bearerFormat: JWT } > schemas: > DispatchTemplate: > type: object > properties: > templateId: { type: integer } > name: { type: string } > version: { type: integer } > isDefault: { type: boolean } > statusOptions: > type: array > items: > type: object > properties: > id: { type: string } > label: { type: string } > status: { type: integer, enum: [0, 1, 2] } > sections: > type: array > items: > type: object > properties: > uid: { type: string } > label: { type: string } > icon: { type: string } > size: { type: integer, minimum: 4, maximum: 12 } > fields: > type: array > items: > type: object > properties: > uid: { type: string } > type: { type: string } > label: { type: string } > binding: { type: string } > size: { type: integer, minimum: 1, maximum: 12 } > required: { type: boolean } > locked: { type: boolean } > placeholder: { type: string } > options: { type: array, items: { type: string } } > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/dispatch-templates" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response ```json theme={null} [ { "templateId": 1, "name": "UK Control Room", "version": 2, "isDefault": true, "statusOptions": [ { "id": "awaiting_deployment", "label": "Awaiting Deployment", "status": 0 }, { "id": "deployed", "label": "Deployed", "status": 1 }, { "id": "resolved", "label": "Resolved", "status": 2 } ], "sections": [ { "uid": "call_source", "label": "Call Source", "icon": "fas fa-broadcast-tower", "size": 6, "fields": [] } ] } ] ``` # Remove 911 Call Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/remove-911-call Remove a 911 call from a server. `DELETE` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/calls/911/{callId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Remove an existing 911 call. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `callId` | integer | Dispatch or 911 call ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:deleteEmergencyCallV2(501, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:deleteEmergencyCallV2(501, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.deleteEmergencyCallV2(501, 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.deleteEmergencyCallV2(501, 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.deleteEmergencyCallV2(302, 1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Remove 911 Call" > version: "1.0.0" > description: "Remove a 911 call from a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/calls/911/{callId}: > delete: > summary: "Remove 911 Call" > operationId: "remove911Call" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 302 > serverId: 1 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Dispatch or 911 call ID." > name: "callId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/calls/911/501" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 302, "serverId": 1 } ``` # Update Call Postal Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/update-call-postal Update the postal on a dispatch call. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/{callId}/postal` > **Rate limit:** `20 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `callId` | integer | Dispatch or 911 call ID. | ## Request Body ```json theme={null} { "postal": "9001" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setDispatchPostalV2(501, '100', 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setDispatchPostalV2(501, '100', 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setDispatchPostalV2(501, '100', 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setDispatchPostalV2(501, '100', 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setDispatchPostalV2(501, "100", 1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Call Postal" > version: "1.0.0" > description: "Update the postal on a dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/postal: > patch: > summary: "Update Call Postal" > operationId: "updateCallPostal" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 501 > postal: "9002" > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Dispatch or 911 call ID." > name: "callId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > postal: "9001" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/501/postal" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "postal": "9001" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 501, "postal": "9002" } ``` # Update Call Primary Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/update-call-primary Update the primary identifier on a dispatch call. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/{callId}/primary` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `callId` | integer | Dispatch or 911 call ID. | ## Request Body ```json theme={null} { "identId": 15, "trackPrimary": true } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setDispatchPrimaryV2(501, 12, true, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setDispatchPrimaryV2(501, 12, true, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setDispatchPrimaryV2(501, 12, true, 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setDispatchPrimaryV2(501, 12, True, 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setDispatchPrimaryV2(501, 12, true, 1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Call Primary" > version: "1.0.0" > description: "Update the primary identifier on a dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}/primary: > patch: > summary: "Update Call Primary" > operationId: "updateCallPrimary" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 501 > identId: 12 > trackPrimary: true > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Dispatch or 911 call ID." > name: "callId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > identId: 15 > trackPrimary: true > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/501/primary" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "identId": 15, > "trackPrimary": true > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 501, "identId": 12, "trackPrimary": true } ``` # Update Dispatch Call Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/calls/update-dispatch-call Update editable fields on an existing dispatch call. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls/{callId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Update one or more editable fields on an existing dispatch call. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `callId` | integer | Dispatch or 911 call ID. | ## Request Body Send only the fields you want to update. If you provide `metaData`, it replaces the stored object for the call. Include existing keys you want to keep. Pass `x` and `y` to update the call's live map position; `z` and `radius` are also commonly used for map workflows. ```json theme={null} { "status": 1, "postal": "9002", "trackPrimary": true, "metaData": { "source": "integration", "x": "430.5", "y": "-982.1", "z": "31.0", "radius": "100" } } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:updateDispatchCallV2(501, { > serverId = 1, > description = 'Caller confirmed the fire has spread to the garage.', > postal = '100', > metaData = { > source = 'integration', > x = '430.5', > y = '-982.1', > z = '31.0', > radius = '100', > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:updateDispatchCallV2(501, { > serverId = 1, > description = 'Caller confirmed the fire has spread to the garage.', > postal = '100', > metaData = { > source = 'integration', > x = '430.5', > y = '-982.1', > z = '31.0', > radius = '100', > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.updateDispatchCallV2(501, { > serverId: 1, > description: 'Caller confirmed the fire has spread to the garage.', > postal: '100', > metaData: { > source: 'integration', > x: '430.5', > y: '-982.1', > z: '31.0', > radius: '100', > }, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.updateDispatchCallV2(501, { > "serverId": 1, > "description": 'Caller confirmed the fire has spread to the garage.', > "postal": '100', > "metaData": { > "source": 'integration', > "x": '430.5', > "y": '-982.1', > "z": '31.0', > "radius": '100', > }, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.updateDispatchCallV2( > 501, > new UpdateDispatchCallV2Request > { > ServerId = 1, > Priority = 2, > Postal = "9002", > Description = "Fire has extended to the roof.", > TrackPrimary = true > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Dispatch Call" > version: "1.0.0" > description: "Update editable fields on an existing dispatch call." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/dispatch-calls/{callId}: > patch: > summary: "Update Dispatch Call" > operationId: "updateDispatchCall" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > callId: 501 > origin: 0 > status: 1 > priority: 1 > block: "100" > address: "Mission Row" > postal: "9002" > title: "Armed Robbery" > code: "211" > primary: 12 > trackPrimary: false > description: "Clerk reports a firearm." > notes: > time: "2026-04-08T21:30:00Z" > label: "Sonoran CAD" > type: "text" > content: "Caller is hiding." > idents: > - 12 > - 18 > metaData: > source: "integration" > x: "430.5" > y: "-982.1" > z: "31.0" > radius: "100" > updated: "2026-04-08T21:30:00Z" > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Dispatch or 911 call ID." > name: "callId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > status: 1 > postal: "9002" > trackPrimary: true > metaData: > source: "integration" > x: "430.5" > y: "-982.1" > z: "31.0" > radius: "100" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/dispatch-calls/501" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "status": 1, > "postal": "9002", > "trackPrimary": true, > "metaData": { > "source": "integration", > "x": "430.5", > "y": "-982.1", > "z": "31.0", > "radius": "100" > } > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "callId": 501, "origin": 0, "status": 1, "priority": 1, "block": "100", "address": "Mission Row", "postal": "9002", "title": "Armed Robbery", "code": "211", "primary": 12, "trackPrimary": false, "description": "Clerk reports a firearm.", "notes": [ { "time": "2026-04-08T21:30:00Z", "label": "Sonoran CAD", "type": "text", "content": "Caller is hiding." } ], "idents": [ 12, 18 ], "metaData": { "source": "integration", "x": "430.5", "y": "-982.1", "z": "31.0", "radius": "100" }, "updated": "2026-04-08T21:30:00Z" } ``` ## Enumeration Values ### CALL\_STATUS | Value | Description | | - | - | | `0` | `PENDING` | | `1` | `ACTIVE` | | `2` | `CLOSED` | ### CALL\_ORIGIN | Value | Description | | - | - | | `0` | `RADIO_DISPATCH` | | `1` | `SELF_INITIATED` | # Configuration Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/configuration v2 emergency configuration endpoints. Use these endpoints to update emergency-specific configuration for a server. ## Endpoints > [card] [Set Callouts](/cad/api-integration/api-endpoints-v2/emergency/configuration/set-callouts) > [card] [Get Pager Config](/cad/api-integration/api-endpoints-v2/emergency/configuration/get-pager-config) > [card] [Set Pager Config](/cad/api-integration/api-endpoints-v2/emergency/configuration/set-pager-config) > [card] [Set Stations](/cad/api-integration/api-endpoints-v2/emergency/configuration/set-stations) # Get Pager Config Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/configuration/get-pager-config Retrieve Inferno pager configuration for a server. `GET` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/pager-config` > **Rate limit:** `2 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve the normalized Inferno pager configuration for a server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getPagerConfigV2(1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getPagerConfigV2(1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getPagerConfigV2(1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getPagerConfigV2(1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getPagerConfigV2(1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Pager Config" > version: "1.0.0" > description: "Retrieve Inferno pager configuration for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/pager-config: > get: > summary: "Get Pager Config" > operationId: "getPagerConfig" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > natureWords: > Emergency: "Emergency" > NonEmergency: "Non-Emergency" > Administrative: "Administrative" > maxAddresses: 5 > maxBodyLength: 250 > nodes: null > perms: > roles: null > players: null > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/pager-config" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "natureWords": { "Emergency": "Emergency", "NonEmergency": "Non-Emergency", "Administrative": "Administrative" }, "maxAddresses": 5, "maxBodyLength": 250, "nodes": [], "perms": { "roles": [], "players": [] } } ``` # Set Callouts Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/configuration/set-callouts Replace available ERS callouts for a server. `PUT` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/callouts` > **Rate limit:** `2 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Replace the ERS callout configuration for a server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "callouts": [ { "id": "armed_suspect", "data": { "PedActionOnNoActionFound": "Flee", "PedActionMinimumTimeoutInMs": 2000, "PedChanceToFleeFromPlayer": 50, "PedChanceToObtainWeapons": 30, "CalloutName": "Armed Suspect", "CalloutDescriptions": ["Reports of an armed suspect in the area."], "PedChanceToAttackPlayer": 20, "PedActionMaximumTimeoutInMs": 10000, "Enabled": true, "CalloutLocations": [], "PedChanceToSurrender": 30, "PedWeaponData": ["WEAPON_PISTOL"], "CalloutUnitsRequired": { "towRequired": false, "fireRequired": false, "description": "Single suspect, use caution.", "policeRequired": true, "ambulanceRequired": false } } } ] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setAvailableCalloutsV2({ > // See the request body above for the full callout shape. > { id = 'armed_suspect', data = {} }, > }, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setAvailableCalloutsV2({ > // See the request body above for the full callout shape. > { id = 'armed_suspect', data = {} }, > }, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setAvailableCalloutsV2([ > // See the request body above for the full callout shape. > { id: 'armed_suspect', data: {} }, > ], 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setAvailableCalloutsV2([ > # See the request body above for the full callout shape. > { "id": 'armed_suspect', "data": {} }, > ], 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setAvailableCalloutsV2( > new[] > { > new AvailableCalloutV2 > { > Code = "10-70", > Label = "Structure Fire", > Priority = 1 > } > }, > 1 > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Callouts" > version: "1.0.0" > description: "Replace available ERS callouts for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/callouts: > put: > summary: "Set Callouts" > operationId: "setCallouts" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > serverId: 1 > callouts: 1 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > callouts: > - id: "armed_suspect" > data: > PedActionOnNoActionFound: "Flee" > PedActionMinimumTimeoutInMs: 2000 > PedChanceToFleeFromPlayer: 50 > PedChanceToObtainWeapons: 30 > CalloutName: "Armed Suspect" > CalloutDescriptions: > - "Reports of an armed suspect in the area." > PedChanceToAttackPlayer: 20 > PedActionMaximumTimeoutInMs: 10000 > Enabled: true > CalloutLocations: [] > PedChanceToSurrender: 30 > PedWeaponData: > - "WEAPON_PISTOL" > CalloutUnitsRequired: > towRequired: false > fireRequired: false > description: "Single suspect, use caution." > policeRequired: true > ambulanceRequired: false > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/callouts" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "callouts": [ > { > "id": "armed_suspect", > "data": { > "PedActionOnNoActionFound": "Flee", > "PedActionMinimumTimeoutInMs": 2000, > "PedChanceToFleeFromPlayer": 50, > "PedChanceToObtainWeapons": 30, > "CalloutName": "Armed Suspect", > "CalloutDescriptions": ["Reports of an armed suspect in the area."], > "PedChanceToAttackPlayer": 20, > "PedActionMaximumTimeoutInMs": 10000, > "Enabled": true, > "CalloutLocations": [], > "PedChanceToSurrender": 30, > "PedWeaponData": ["WEAPON_PISTOL"], > "CalloutUnitsRequired": { > "towRequired": false, > "fireRequired": false, > "description": "Single suspect, use caution.", > "policeRequired": true, > "ambulanceRequired": false > } > } > } > ] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "serverId": 1, "callouts": 1 } ``` # Set Pager Config Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/configuration/set-pager-config Replace Inferno pager configuration for a server. `PUT` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/pager-config` > **Rate limit:** `2 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Replace the Inferno pager configuration for a server. If `nodes` is omitted, Sonoran CAD preserves the existing node tree for that server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "natureWords": { "Emergency": "Emergency", "NonEmergency": "Non-Emergency", "Administrative": "Administrative" }, "maxAddresses": 5, "maxBodyLength": 250, "nodes": [ { "id": "root-1", "name": "Fire", "description": "Fire services", "permission": "fire", "address": "FIRE-01", "shortCode": "F1", "kind": "group", "children": [] } ] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setPagerConfigV2({ > serverId = 1, > natureWords = { > Emergency = 'Emergency', > NonEmergency = 'Non-Emergency', > Administrative = 'Administrative', > }, > maxAddresses = 5, > maxBodyLength = 250, > nodes = { > { > id = 'root-1', > name = 'Fire', > description = 'Fire services', > permission = 'fire', > address = 'FIRE-01', > shortCode = 'F1', > kind = 'group', > children = {}, > }, > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setPagerConfigV2({ > serverId = 1, > natureWords = { > Emergency = 'Emergency', > NonEmergency = 'Non-Emergency', > Administrative = 'Administrative', > }, > maxAddresses = 5, > maxBodyLength = 250, > nodes = { > { > id = 'root-1', > name = 'Fire', > description = 'Fire services', > permission = 'fire', > address = 'FIRE-01', > shortCode = 'F1', > kind = 'group', > children = {}, > }, > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setPagerConfigV2({ > serverId: 1, > natureWords: { > Emergency: 'Emergency', > NonEmergency: 'Non-Emergency', > Administrative: 'Administrative', > }, > maxAddresses: 5, > maxBodyLength: 250, > nodes: [ > { > id: 'root-1', > name: 'Fire', > description: 'Fire services', > permission: 'fire', > address: 'FIRE-01', > shortCode: 'F1', > kind: 'group', > children: [], > }, > ], > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setPagerConfigV2({ > "serverId": 1, > "natureWords": { > "Emergency": 'Emergency', > "NonEmergency": 'Non-Emergency', > "Administrative": 'Administrative', > }, > "maxAddresses": 5, > "maxBodyLength": 250, > "nodes": [ > { > "id": 'root-1', > "name": 'Fire', > "description": 'Fire services', > "permission": 'fire', > "address": 'FIRE-01', > "shortCode": 'F1', > "kind": 'group', > "children": [], > }, > ], > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setPagerConfigV2(new SetPagerConfigV2Request > { > ServerId = 1, > NatureWords = new Dictionary > { > ["Emergency"] = "Emergency", > ["NonEmergency"] = "Non-Emergency", > ["Administrative"] = "Administrative" > }, > MaxAddresses = 5, > MaxBodyLength = 250, > Nodes = new[] > { > new PagerNodeV2 > { > Id = "root-1", > Name = "Fire", > Description = "Fire services", > Permission = "fire", > Address = "FIRE-01", > ShortCode = "F1", > Kind = "group", > Children = [] > } > } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Pager Config" > version: "1.0.0" > description: "Replace Inferno pager configuration for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/pager-config: > put: > summary: "Set Pager Config" > operationId: "setPagerConfig" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > serverId: 1 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > natureWords: > Emergency: "Emergency" > NonEmergency: "Non-Emergency" > Administrative: "Administrative" > maxAddresses: 5 > maxBodyLength: 250 > nodes: > - > id: "root-1" > name: "Fire" > description: "Fire services" > permission: "fire" > address: "FIRE-01" > shortCode: "F1" > kind: "group" > children: [] > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/pager-config" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "natureWords": { > "Emergency": "Emergency", > "NonEmergency": "Non-Emergency", > "Administrative": "Administrative" > }, > "maxAddresses": 5, > "maxBodyLength": 250, > "nodes": [ > { > "id": "root-1", > "name": "Fire", > "description": "Fire services", > "permission": "fire", > "address": "FIRE-01", > "shortCode": "F1", > "kind": "group", > "children": [] > } > ] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "serverId": 1 } ``` # Set Stations Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/configuration/set-stations Replace station alert configuration for a server. `PUT` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/stations` > **Rate limit:** `2 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Replace the station alert configuration for a server. Send the station alert payload as a top-level JSON object. Provide `locations`, `tones`, and `unitColors` directly in the request body. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "locations": [ { "name": "Mission Row", "coordinates": { "x": 425.1, "y": -979.2, "z": 30.7, "w": 0.0 }, "doors": ["bay_1", "bay_2"], "icon": "fas fa-building" } ], "tones": ["tone_station_open.mp3"], "unitColors": ["#2563eb", "#ef4444"] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setStationsV2({ > // See the request body above for the full station config shape. > locations = {}, > tones = {}, > unitColors = {}, > }, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setStationsV2({ > // See the request body above for the full station config shape. > locations: [], > tones: [], > unitColors: [], > }, 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setStationsV2({ > # See the request body above for the full station config shape. > locations: [], > "tones": [], > "unitColors": [], > }, 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setStationsV2( > new StationConfigV2 > { > Locations = new[] > { > new StationLocationV2 > { > Name = "Mission Row", > Coordinates = new BlipCoordinatesV2 > { > X = 425.1, > Y = -979.2, > Z = 30.7, > W = 0.0 > }, > Doors = new[] { "bay_1", "bay_2" }, > Icon = "fas fa-building" > } > }, > Tones = new[] { "tone_station_open.mp3" }, > UnitColors = new[] { "#2563eb", "#ef4444" } > }, > 1 > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Stations" > version: "1.0.0" > description: "Replace station alert configuration for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/stations: > put: > summary: "Set Stations" > operationId: "setStations" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > serverId: 1 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > locations: > - name: "Mission Row" > coordinates: > x: 425.1 > y: -979.2 > z: 30.7 > w: 0.0 > doors: > - "bay_1" > - "bay_2" > icon: "fas fa-building" > tones: > - "tone_station_open.mp3" > unitColors: > - "#2563eb" > - "#ef4444" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/stations" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "locations": [ > { > "name": "Mission Row", > "coordinates": { > "x": 425.1, > "y": -979.2, > "z": 30.7, > "w": 0.0 > }, > "doors": ["bay_1", "bay_2"], > "icon": "fas fa-building" > } > ], > "tones": ["tone_station_open.mp3"], > "unitColors": ["#2563eb", "#ef4444"] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "serverId": 1 } ``` # Identifiers Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers v2 emergency identifier endpoints. Use these endpoints to inspect and manage account identifiers. ## Endpoints > [card] [Get Identifiers](/cad/api-integration/api-endpoints-v2/emergency/identifiers/get-identifiers) > [card] [Set Selected Identifier](/cad/api-integration/api-endpoints-v2/emergency/identifiers/set-selected-identifier) > [card] [Create Identifier](/cad/api-integration/api-endpoints-v2/emergency/identifiers/create-identifier) > [card] [Update Identifier](/cad/api-integration/api-endpoints-v2/emergency/identifiers/update-identifier) > [card] [Delete Identifier](/cad/api-integration/api-endpoints-v2/emergency/identifiers/delete-identifier) > [card] [Set Identifier Group](/cad/api-integration/api-endpoints-v2/emergency/identifiers/set-identifier-group) # Create Identifier Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers/create-identifier Create a new identifier for an account. `POST` `https://api.sonorancad.com/v2/emergency/accounts/{accountUuid}/identifiers` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Create a new identifier for an account. ## Path Parameters | Name | Type | Description | | - | - | - | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | ## Request Body All identifier properties are optional in the backend. If omitted, the server uses the defaults shown below. | Property | Type | Required | Default | Description | | - | - | - | - | - | | `status` | integer | No | `0` | Initial identifier status. See `UNIT_STATUS` below. | | `aop` | string | No | `""` | Optional area of patrol string. | | `unitNum` | string | No | `"NEW UNIT"` | Displayed unit number. | | `name` | string | No | `"NO NAME"` | Identifier display name. | | `district` | string | No | `"NOT SET"` | District name. | | `department` | string | No | `"NOT SET"` | Department name. | | `subdivision` | string | No | `"NOT SET"` | Subdivision name. | | `rank` | string | No | `"NOT SET"` | Rank label. | | `group` | string | No | `""` | Optional persistent group name. | | `page` | integer | No | `-1` | CAD page enum. See `UNIT_PAGE` below. | | `isDispatch` | boolean | No | `false` | Marks the identifier as a dispatcher. | ```json theme={null} { "status": 0, "aop": "Los Santos", "unitNum": "A-10", "name": "John Doe", "district": "Los Santos", "department": "LSPD", "subdivision": "Patrol", "rank": "Officer", "group": "CAR-51", "page": 0, "isDispatch": false } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:createIdentifierV2('00000000-0000-0000-0000-000000000000', { > status = 0, > unitNum = '1A-01', > name = 'John Doe', > department = 'Police', > subdivision = 'Patrol', > rank = 'Officer', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:createIdentifierV2('00000000-0000-0000-0000-000000000000', { > status = 0, > unitNum = '1A-01', > name = 'John Doe', > department = 'Police', > subdivision = 'Patrol', > rank = 'Officer', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createIdentifierV2('00000000-0000-0000-0000-000000000000', { > status: 0, > unitNum: '1A-01', > name: 'John Doe', > department: 'Police', > subdivision: 'Patrol', > rank: 'Officer', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createIdentifierV2('00000000-0000-0000-0000-000000000000', { > "status": 0, > "unitNum": '1A-01', > "name": 'John Doe', > "department": 'Police', > "subdivision": 'Patrol', > "rank": 'Officer', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createIdentifierV2( > "00000000-0000-0000-0000-000000000000", > new IdentifierV2Request > { > UnitNum = "1A-01", > Department = "Police", > Subdivision = "Patrol", > Callsign = "Adam 1", > Title = "Officer John Doe", > Type = "LEO", > IsPrimary = true > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Create Identifier" > version: "1.0.0" > description: "Create a new identifier for an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/accounts/{accountUuid}/identifiers: > post: > summary: "Create Identifier" > operationId: "createIdentifier" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > identId: 42 > parameters: > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > status: 0 > aop: "Los Santos" > unitNum: "A-10" > name: "John Doe" > district: "Los Santos" > department: "LSPD" > subdivision: "Patrol" > rank: "Officer" > group: "CAR-51" > page: 0 > isDispatch: false > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/accounts/00000000-0000-0000-0000-000000000000/identifiers" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "status": 0, > "aop": "Los Santos", > "unitNum": "A-10", > "name": "John Doe", > "district": "Los Santos", > "department": "LSPD", > "subdivision": "Patrol", > "rank": "Officer", > "group": "CAR-51", > "page": 0, > "isDispatch": false > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "identId": 42 } ``` ## Enumeration Values ### UNIT\_STATUS | Value | Description | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `ENROUTE` | | `4` | `ON_SCENE` | | `100` | `OFFLINE` | ### UNIT\_PAGE | Value | Description | | - | - | | `0` | `POLICE` | | `1` | `FIRE` | | `2` | `EMS` | | `3` | `DISPATCH` | | `-1` | `UNKNOWN` | # Delete Identifier Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers/delete-identifier Delete an identifier from an account. `DELETE` `https://api.sonorancad.com/v2/emergency/accounts/{accountUuid}/identifiers/{identId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Delete an identifier from an account. ## Path Parameters | Name | Type | Description | | - | - | - | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | | `identId` | integer | Identifier ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:deleteIdentifierV2('00000000-0000-0000-0000-000000000000', 12) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:deleteIdentifierV2('00000000-0000-0000-0000-000000000000', 12) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.deleteIdentifierV2('00000000-0000-0000-0000-000000000000', 12); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.deleteIdentifierV2('00000000-0000-0000-0000-000000000000', 12) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.deleteIdentifierV2("00000000-0000-0000-0000-000000000000", 12); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Delete Identifier" > version: "1.0.0" > description: "Delete an identifier from an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/accounts/{accountUuid}/identifiers/{identId}: > delete: > summary: "Delete Identifier" > operationId: "deleteIdentifier" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > identId: 12 > serverId: 1 > parameters: > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > - > description: "Identifier ID." > name: "identId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > --url "https://api.sonorancad.com/v2/emergency/accounts/00000000-0000-0000-0000-000000000000/identifiers/12" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "identId": 12, "serverId": 1 } ``` # Get Identifiers Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers/get-identifiers Retrieve identifiers for an account. `GET` `https://api.sonorancad.com/v2/emergency/accounts/{accountUuid}/identifiers` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve the selected identifier and all identifiers for an account. ## Path Parameters | Name | Type | Description | | - | - | - | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getIdentifiersV2('00000000-0000-0000-0000-000000000000') > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getIdentifiersV2('00000000-0000-0000-0000-000000000000') > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getIdentifiersV2('00000000-0000-0000-0000-000000000000'); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getIdentifiersV2('00000000-0000-0000-0000-000000000000') > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getIdentifiersV2("00000000-0000-0000-0000-000000000000"); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Identifiers" > version: "1.0.0" > description: "Retrieve identifiers for an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/accounts/{accountUuid}/identifiers: > get: > summary: "Get Identifiers" > operationId: "getIdentifiers" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > SelectedIdent: 12 > Identifiers: > id: 12 > accId: "00000000-0000-0000-0000-000000000000" > status: 3 > isPanic: false > location: "Mission Row PD" > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: "Los Santos" > data: > unitNum: "A-10" > name: "John Doe" > district: "Los Santos" > department: "LSPD" > subdivision: "Patrol" > rank: "Officer" > group: "CAR-51" > page: 0 > isDispatch: false > parameters: > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/accounts/00000000-0000-0000-0000-000000000000/identifiers" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "SelectedIdent": 12, "Identifiers": [ { "id": 12, "accId": "00000000-0000-0000-0000-000000000000", "status": 3, "isPanic": false, "location": "Mission Row PD", "coordinates": { "x": 123.45, "y": -456.78, "z": 32.1, "w": 180.0 }, "aop": "Los Santos", "data": { "unitNum": "A-10", "name": "John Doe", "district": "Los Santos", "department": "LSPD", "subdivision": "Patrol", "rank": "Officer", "group": "CAR-51", "page": 0 }, "isDispatch": false } ] } ``` ## Enumeration Values ### UNIT\_STATUS | Value | Description | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `ENROUTE` | | `4` | `ON_SCENE` | | `100` | `OFFLINE` | ### UNIT\_PAGE | Value | Description | | - | - | | `0` | `POLICE` | | `1` | `FIRE` | | `2` | `EMS` | | `3` | `DISPATCH` | | `-1` | `UNKNOWN` | # Set Identifier Group Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers/set-identifier-group Assign one or more identifiers to a group on a server. `PUT` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/identifier-groups/{groupName}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Assign one or more identifiers to a group by `communityUserId`, `communityUserIds`, `roblox`, `discord`, `accountUuid`, or `identIds`. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `groupName` | string | Identifier group name. | ## Request Body Use `communityUserId` or `communityUserIds` by default, or provide `roblox`, `discord`, `accountUuid`, or `identIds`. ```json theme={null} { "communityUserIds": ["player-1234"] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:addIdentifiersToGroupV2({ > serverId = 1, > groupName = 'CAR-51', > identIds = {12}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:addIdentifiersToGroupV2({ > serverId = 1, > groupName = 'CAR-51', > identIds = {12}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.addIdentifiersToGroupV2({ > serverId: 1, > groupName: 'CAR-51', > identIds: [12], > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.addIdentifiersToGroupV2({ > "serverId": 1, > "groupName": 'CAR-51', > "identIds": [12], > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.addIdentifiersToGroupV2(new AddIdentifiersToGroupV2Request > { > ServerId = 1, > GroupName = "CAR-51", > CommunityUserIds = new[] { "player-1234", "player-5678" } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Identifier Group" > version: "1.0.0" > description: "Assign one or more identifiers to a group on a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/identifier-groups/{groupName}: > put: > summary: "Set Identifier Group" > operationId: "setIdentifierGroup" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > ok: true > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Identifier group name." > name: "groupName" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserIds: "player-1234" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/identifier-groups/CAR-51" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserIds": ["player-1234"] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "ok": true } ``` # Set Selected Identifier Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers/set-selected-identifier Set the selected identifier for an account. `PUT` `https://api.sonorancad.com/v2/emergency/accounts/{accountUuid}/selected-identifier` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Set the selected identifier for an account. ## Path Parameters | Name | Type | Description | | - | - | - | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | ## Request Body ```json theme={null} { "identId": 15 } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:selectIdentifierV2('00000000-0000-0000-0000-000000000000', 12) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:selectIdentifierV2('00000000-0000-0000-0000-000000000000', 12) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.selectIdentifierV2('00000000-0000-0000-0000-000000000000', 12); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.selectIdentifierV2('00000000-0000-0000-0000-000000000000', 12) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.selectIdentifierV2("00000000-0000-0000-0000-000000000000", 12); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Selected Identifier" > version: "1.0.0" > description: "Set the selected identifier for an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/accounts/{accountUuid}/selected-identifier: > put: > summary: "Set Selected Identifier" > operationId: "setSelectedIdentifier" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > serverId: 1 > isDispatch: false > identifier: > id: 12 > accId: "00000000-0000-0000-0000-000000000000" > status: 3 > isPanic: false > location: "Mission Row PD" > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: "Los Santos" > data: > unitNum: "A-10" > name: "John Doe" > district: "Los Santos" > department: "LSPD" > subdivision: "Patrol" > rank: "Officer" > group: "CAR-51" > page: 0 > isDispatch: false > parameters: > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > identId: 15 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/emergency/accounts/00000000-0000-0000-0000-000000000000/selected-identifier" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "identId": 15 > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "serverId": 1, "isDispatch": false, "identifier": { "id": 12, "accId": "00000000-0000-0000-0000-000000000000", "status": 3, "isPanic": false, "location": "Mission Row PD", "coordinates": { "x": 123.45, "y": -456.78, "z": 32.1, "w": 180.0 }, "aop": "Los Santos", "data": { "unitNum": "A-10", "name": "John Doe", "district": "Los Santos", "department": "LSPD", "subdivision": "Patrol", "rank": "Officer", "group": "CAR-51", "page": 0 }, "isDispatch": false } } ``` # Update Identifier Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/identifiers/update-identifier Update an existing identifier for an account. `PATCH` `https://api.sonorancad.com/v2/emergency/accounts/{accountUuid}/identifiers/{identId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Update one or more editable fields on an identifier. ## Path Parameters | Name | Type | Description | | - | - | - | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | | `identId` | integer | Identifier ID. | ## Request Body Provide at least one property to change. The backend accepts partial updates and only overwrites the fields you send. | Property | Type | Required | Description | | - | - | - | - | | `status` | integer | No | New unit status. See `UNIT_STATUS` below. | | `aop` | string | No | New area of patrol string. | | `unitNum` | string | No | Updated unit number. | | `name` | string | No | Updated display name. | | `district` | string | No | Updated district name. | | `department` | string | No | Updated department name. | | `subdivision` | string | No | Updated subdivision name. | | `rank` | string | No | Updated rank label. | | `group` | string | No | Updated persistent group name. | | `page` | integer | No | New CAD page. See `UNIT_PAGE` below. | | `isDispatch` | boolean | No | Marks or unmarks the identifier as a dispatcher. | ```json theme={null} { "status": 2, "group": "SUPERVISOR-1", "page": 3 } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:updateIdentifierV2('00000000-0000-0000-0000-000000000000', 12, { > status = 2, > unitNum = '1A-01', > name = 'John Doe', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:updateIdentifierV2('00000000-0000-0000-0000-000000000000', 12, { > status = 2, > unitNum = '1A-01', > name = 'John Doe', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.updateIdentifierV2('00000000-0000-0000-0000-000000000000', 12, { > status: 2, > unitNum: '1A-01', > name: 'John Doe', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.updateIdentifierV2('00000000-0000-0000-0000-000000000000', 12, { > "status": 2, > "unitNum": '1A-01', > "name": 'John Doe', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.updateIdentifierV2( > "00000000-0000-0000-0000-000000000000", > 12, > new IdentifierV2Request > { > UnitNum = "1A-01", > Department = "Police", > Subdivision = "Patrol", > Callsign = "Adam 1", > Title = "Sergeant John Doe", > Type = "LEO", > IsPrimary = true > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Identifier" > version: "1.0.0" > description: "Update an existing identifier for an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/accounts/{accountUuid}/identifiers/{identId}: > patch: > summary: "Update Identifier" > operationId: "updateIdentifier" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > identId: 12 > serverId: 1 > identifier: > id: 12 > accId: "00000000-0000-0000-0000-000000000000" > status: 3 > isPanic: false > location: "Mission Row PD" > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: "Los Santos" > data: > unitNum: "A-10" > name: "John Doe" > district: "Los Santos" > department: "LSPD" > subdivision: "Patrol" > rank: "Officer" > group: "CAR-51" > page: 0 > isDispatch: false > parameters: > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > - > description: "Identifier ID." > name: "identId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > status: 2 > group: "SUPERVISOR-1" > page: 3 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/accounts/00000000-0000-0000-0000-000000000000/identifiers/12" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "status": 2, > "group": "SUPERVISOR-1", > "page": 3 > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "identId": 12, "serverId": 1, "identifier": { "id": 12, "accId": "00000000-0000-0000-0000-000000000000", "status": 3, "isPanic": false, "location": "Mission Row PD", "coordinates": { "x": 123.45, "y": -456.78, "z": 32.1, "w": 180.0 }, "aop": "Los Santos", "data": { "unitNum": "A-10", "name": "John Doe", "district": "Los Santos", "department": "LSPD", "subdivision": "Patrol", "rank": "Officer", "group": "CAR-51", "page": 0 }, "isDispatch": false } } ``` ## Enumeration Values ### UNIT\_STATUS | Value | Description | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `ENROUTE` | | `4` | `ON_SCENE` | | `100` | `OFFLINE` | ### UNIT\_PAGE | Value | Description | | - | - | | `0` | `POLICE` | | `1` | `FIRE` | | `2` | `EMS` | | `3` | `DISPATCH` | | `-1` | `UNKNOWN` | # Map Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/map v2 emergency map and blip endpoints. Use these endpoints to manage custom map blips. ## Endpoints > [card] [Get Blips](/cad/api-integration/api-endpoints-v2/emergency/map/get-blips) > [card] [Create Blip](/cad/api-integration/api-endpoints-v2/emergency/map/create-blip) > [card] [Update Blip](/cad/api-integration/api-endpoints-v2/emergency/map/update-blip) > [card] [Delete Blips](/cad/api-integration/api-endpoints-v2/emergency/map/delete-blips) # Create Blip Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/map/create-blip Create a custom blip. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/blips` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "coordinates": { "x": 441.2, "y": -981.9, "z": 0.0, "w": 0.0 }, "subType": "scene", "icon": "fa-solid fa-location-crosshairs", "color": "red", "tooltip": "Scene perimeter", "radius": 50.0, "data": [ { "title": "Units", "text": "2" } ] } ``` ## Example Request ### Interactive panel menu entries To embed a registered Integration Panel, add a `data` entry with `panelKey` and `instanceKey`: ```json theme={null} { "data": [ { "title": "Location", "text": "Vespucci Boulevard" }, { "panelKey": "smart-signs", "instanceKey": "sign-12", "title": "Edit street sign" } ] } ``` Include the required coordinates, subtype, icon, color, and tooltip from the request above when creating a blip. `panelKey` is the registered key, not the display name. `instanceKey` defaults to `default`; both keys must match the panel API's 2–80 character lowercase key format. The instance is resolved on this blip's server. If it is missing, the menu shows an unavailable message rather than another instance's data. `title` optionally overrides the panel heading. With `panelKey` present, that entry renders the panel instead of `text`. Lua, JavaScript, and Python accept these fields inside `data` with the existing `createBlipV2` helper. In Sonoran.Net, set `PanelKey` and `InstanceKey` on `BlipDisplayDataV2`. See the complete [Smart Signs editor](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs) for definition, state, and Save actions. > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:createBlipV2({ > serverId = 1, > coordinates = { x = 425.1, y = -979.2, z = 30.7, w = 0 }, > subType = 'radius', > icon = 'fire', > color = '#ff0000', > tooltip = 'Structure Fire', > radius = 25, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:createBlipV2({ > serverId = 1, > coordinates = { x = 425.1, y = -979.2, z = 30.7, w = 0 }, > subType = 'radius', > icon = 'fire', > color = '#ff0000', > tooltip = 'Structure Fire', > radius = 25, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createBlipV2({ > serverId: 1, > coordinates: { x: 425.1, y: -979.2, z: 30.7, w: 0 }, > subType: 'radius', > icon: 'fire', > color: '#ff0000', > tooltip: 'Structure Fire', > radius: 25, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createBlipV2({ > "serverId": 1, > "coordinates": { "x": 425.1, "y": -979.2, "z": 30.7, "w": 0 }, > "subType": 'radius', > "icon": 'fire', > "color": '#ff0000', > "tooltip": 'Structure Fire', > "radius": 25, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createBlipV2(new CreateBlipV2Request > { > ServerId = 1, > Coordinates = new BlipCoordinatesV2 > { > X = 420.1, > Y = -980.4, > Z = 30.8, > W = 0 > }, > SubType = "call", > Icon = "fire", > Color = "red", > Tooltip = "Structure Fire", > Data = > [ > new BlipDisplayDataV2 > { > Title = "Units", > Text = "2" > } > ], > Radius = 50 > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Create Blip" > version: "1.0.0" > description: "Create a custom blip." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/blips: > post: > summary: "Create Blip" > operationId: "createBlip" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > id: 32 > coordinates: > x: 425.5 > y: -979.8 > z: 0.0 > w: 0.0 > subType: "radius" > icon: "fa-location-dot" > color: "#ff0000" > tooltip: "Perimeter" > data: > - title: "Assigned Unit" > text: "A-10" > radius: 100.0 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > properties: > data: > type: array > items: > type: object > properties: > title: > type: string > text: > type: string > panelKey: > type: string > pattern: '^[a-z0-9][a-z0-9._-]{1,79}$' > description: Registered Integration Panel key. Renders the panel instead of text. > instanceKey: > type: string > pattern: '^[a-z0-9][a-z0-9._-]{1,79}$' > default: default > description: Exact instance on this server. > example: > coordinates: > x: 441.2 > y: -981.9 > z: 0.0 > w: 0.0 > subType: "scene" > icon: "fa-solid fa-location-crosshairs" > color: "red" > tooltip: "Scene perimeter" > radius: 50.0 > data: > - title: "Units" > text: "2" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/blips" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "coordinates": { > "x": 441.2, > "y": -981.9, > "z": 0.0, > "w": 0.0 > }, > "subType": "scene", > "icon": "fa-solid fa-location-crosshairs", > "color": "red", > "tooltip": "Scene perimeter", > "radius": 50.0, > "data": [ > { > "title": "Units", > "text": "2" > } > ] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "id": 32, "coordinates": { "x": 425.5, "y": -979.8, "z": 0.0, "w": 0.0 }, "subType": "radius", "icon": "fa-location-dot", "color": "#ff0000", "tooltip": "Perimeter", "data": [ { "title": "Assigned Unit", "text": "A-10" } ], "radius": 100.0 } ``` # Delete Blips Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/map/delete-blips Delete one or more custom blips. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/blips/delete` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "ids": [14, 15] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:deleteBlipsV2({32}, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:deleteBlipsV2({32}, 1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.deleteBlipsV2([32], 1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.deleteBlipsV2([32], 1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.deleteBlipsV2(new[] { 32 }, 1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Delete Blips" > version: "1.0.0" > description: "Delete one or more custom blips." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/blips/delete: > post: > summary: "Delete Blips" > operationId: "deleteBlips" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > ids: > - 32 > - 33 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > ids: > - 14 > - 15 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/blips/delete" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "ids": [14, 15] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "ids": [ 32, 33 ] } ``` # Get Blips Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/map/get-blips Retrieve custom blips for a server. Custom blip `data` entries may include `panelKey` and `instanceKey` references in addition to ordinary `title`/`text` content. These references are returned unchanged and select an Integration Panel instance on this server when the blip menu opens. An omitted `instanceKey` means `default`. See [Smart Signs: Live Map Editor](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs). `GET` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/blips` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve custom blips configured for a server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getBlipsV2(1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getBlipsV2(1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getBlipsV2(1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getBlipsV2(1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getBlipsV2(1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Blips" > version: "1.0.0" > description: "Retrieve custom blips for a server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/blips: > get: > summary: "Get Blips" > operationId: "getBlips" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "array" > items: > type: "object" > example: > - id: 32 > coordinates: > x: 425.5 > y: -979.8 > z: 0.0 > w: 0.0 > subType: "radius" > icon: "fa-location-dot" > color: "#ff0000" > tooltip: "Perimeter" > data: > - title: "Assigned Unit" > text: "A-10" > radius: 100.0 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/blips" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "id": 32, "coordinates": { "x": 425.5, "y": -979.8, "z": 0.0, "w": 0.0 }, "subType": "radius", "icon": "fa-location-dot", "color": "#ff0000", "tooltip": "Perimeter", "data": [ { "title": "Assigned Unit", "text": "A-10" } ], "radius": 100.0 } ] ``` # Update Blip Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/map/update-blip Update a custom blip. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/blips/{blipId}` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Update one or more editable fields on a custom blip. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `blipId` | integer | Blip ID. | ## Request Body `data` replaces the complete menu entry list. Each entry can contain `title`/`text` information or an Integration Panel reference using `panelKey` and `instanceKey` (default `default`). Panel keys are exact registered keys, not display names; the instance belongs to the selected server. Both keys use the panel API's 2–80 character lowercase key format. An optional `title` overrides the panel heading. A missing panel or instance displays an unavailable message. For example, send `{"data":[{"panelKey":"smart-signs","instanceKey":"sign-12"}]}` to attach the sign editor. Send `{"data":[]}` to clear menu content, or resend only the information entries to remove a panel while retaining them. Omitting `data` preserves the current menu. In Sonoran.Net use `BlipDisplayDataV2.PanelKey` and `.InstanceKey`; the other SDKs pass these fields through their existing `updateBlipV2` helper. See [Smart Signs: Live Map Editor](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs) for the complete workflow. Send only the fields you want to update. ```json theme={null} { "tooltip": "Updated perimeter", "color": "#00a3ff", "radius": 150 } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:updateBlipV2(32, { > serverId = 1, > tooltip = 'Updated marker', > color = '#ffaa00', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:updateBlipV2(32, { > serverId = 1, > tooltip = 'Updated marker', > color = '#ffaa00', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.updateBlipV2(32, { > serverId: 1, > tooltip: 'Updated marker', > color: '#ffaa00', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.updateBlipV2(32, { > "serverId": 1, > "tooltip": 'Updated marker', > "color": '#ffaa00', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.updateBlipV2( > 32, > new UpdateBlipV2Request > { > ServerId = 1, > Tooltip = "Perimeter Updated", > Color = "orange", > Data = > [ > new BlipDisplayDataV2 > { > Title = "Units", > Text = "3" > } > ], > Radius = 75 > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Blip" > version: "1.0.0" > description: "Update a custom blip." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/blips/{blipId}: > patch: > summary: "Update Blip" > operationId: "updateBlip" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > id: 32 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Blip ID." > name: "blipId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > properties: > data: > type: array > description: Replaces all menu entries. An empty array clears the menu. > items: > type: object > properties: > title: > type: string > text: > type: string > panelKey: > type: string > pattern: '^[a-z0-9][a-z0-9._-]{1,79}$' > description: Registered Integration Panel key. Renders the panel instead of text. > instanceKey: > type: string > pattern: '^[a-z0-9][a-z0-9._-]{1,79}$' > default: default > description: Exact instance on this server. > example: > tooltip: "Updated perimeter" > color: "#00a3ff" > radius: 150 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/blips/32" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "tooltip": "Updated perimeter", > "color": "#00a3ff", > "radius": 150 > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "id": 32 } ``` # Units Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units v2 emergency unit endpoints. Use these endpoints to read unit state and update live unit information. ## Endpoints > [card] [Get Active Units](/cad/api-integration/api-endpoints-v2/emergency/units/get-active-units) > [card] [Get Account Units](/cad/api-integration/api-endpoints-v2/emergency/units/get-account-units) > [card] [Update Unit Locations](/cad/api-integration/api-endpoints-v2/emergency/units/update-unit-locations) > [card] [Set Unit Panic](/cad/api-integration/api-endpoints-v2/emergency/units/set-unit-panic) > [card] [Set Unit Status](/cad/api-integration/api-endpoints-v2/emergency/units/set-unit-status) > [card] [Kick Unit](/cad/api-integration/api-endpoints-v2/emergency/units/kick-unit) # Get Account Units Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/get-account-units Retrieve units for a specific account on a configured server. `GET` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/accounts/{accountUuid}/units` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve units for a specific account on a configured server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | | `accountUuid` | string (uuid) | Sonoran CAD account UUID. | ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `onlyOnline` | boolean | `true` | Only returns online identifiers for the target account. | | `onlyUnits` | boolean | `true` | When `true`, hides dispatcher identifiers. | | `limit` | integer | `100` | Maximum number of rows returned. | | `offset` | integer | `0` | Number of rows to skip. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getAccountUnitsV2({ > serverId = 1, > accountUuid = '00000000-0000-0000-0000-000000000000', > onlyOnline = true, > onlyUnits = true, > limit = 100, > offset = 0, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getAccountUnitsV2({ > serverId = 1, > accountUuid = '00000000-0000-0000-0000-000000000000', > onlyOnline = true, > onlyUnits = true, > limit = 100, > offset = 0, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getAccountUnitsV2({ > serverId: 1, > accountUuid: '00000000-0000-0000-0000-000000000000', > onlyOnline: true, > onlyUnits: true, > limit: 100, > offset: 0, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getAccountUnitsV2({ > "serverId": 1, > "accountUuid": '00000000-0000-0000-0000-000000000000', > "onlyOnline": True, > "onlyUnits": True, > "limit": 100, > "offset": 0, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getAccountUnitsV2(new GetAccountUnitsV2Query > { > ServerId = 1, > AccountUuid = "00000000-0000-0000-0000-000000000000", > OnlyOnline = true > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Account Units" > version: "1.0.0" > description: "Retrieve units for a specific account on a configured server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/accounts/{accountUuid}/units: > get: > summary: "Get Account Units" > operationId: "getAccountUnits" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > Units: > id: 12 > accId: "00000000-0000-0000-0000-000000000000" > status: 3 > isPanic: false > location: "Mission Row PD" > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: "Los Santos" > data: > unitNum: "A-10" > name: "John Doe" > district: "Los Santos" > department: "LSPD" > subdivision: "Patrol" > rank: "Officer" > group: "CAR-51" > page: 0 > isDispatch: false > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Sonoran CAD account UUID." > name: "accountUuid" > in: "path" > schema: > type: "string" > required: true > - > description: "Only returns online identifiers for the target account." > name: "onlyOnline" > in: "query" > schema: > type: "boolean" > required: true > - > description: "When `true`, hides dispatcher identifiers." > name: "onlyUnits" > in: "query" > schema: > type: "boolean" > required: true > - > description: "Maximum number of rows returned." > name: "limit" > in: "query" > schema: > type: "integer" > required: true > - > description: "Number of rows to skip." > name: "offset" > in: "query" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/accounts/00000000-0000-0000-0000-000000000000/units?onlyOnline=true&onlyUnits=true&limit=100&offset=0" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "Units": [ { "id": 12, "accId": "00000000-0000-0000-0000-000000000000", "status": 3, "isPanic": false, "location": "Mission Row PD", "coordinates": { "x": 123.45, "y": -456.78, "z": 32.1, "w": 180.0 }, "aop": "Los Santos", "data": { "unitNum": "A-10", "name": "John Doe", "district": "Los Santos", "department": "LSPD", "subdivision": "Patrol", "rank": "Officer", "group": "CAR-51", "page": 0 }, "isDispatch": false } ] } ``` ## Enumeration Values ### UNIT\_STATUS | Value | Description | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `ENROUTE` | | `4` | `ON_SCENE` | | `100` | `OFFLINE` | ### UNIT\_PAGE | Value | Description | | - | - | | `0` | `POLICE` | | `1` | `FIRE` | | `2` | `EMS` | | `3` | `DISPATCH` | | `-1` | `UNKNOWN` | # Get Active Units Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/get-active-units Retrieve active emergency units for a configured server. `GET` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/units` > **Rate limit:** `3 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Retrieve active units for the specified CAD server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `includeOffline` | boolean | `false` | Include offline identifiers in the response. | | `onlyUnits` | boolean | `true` | When `true`, hides active dispatchers. | | `limit` | integer | `100` | Maximum number of rows returned. | | `offset` | integer | `0` | Number of rows to skip. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > For in-game resources that only need current active CAD units, use SonoranCADFiveM's [`GetUnitCache`](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#getunitcache) export instead of polling this endpoint. The export reads the local real-time unit cache, supports callback-style usage from other CFX runtimes, and is not limited by this endpoint's API rate limit. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = 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) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getUnitsV2({ > serverId: 1, > includeOffline: false, > onlyUnits: true, > limit: 100, > offset: 0, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getUnitsV2({ > "serverId": 1, > "includeOffline": False, > "onlyUnits": True, > "limit": 100, > "offset": 0, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getUnitsV2(new GetUnitsV2Query > { > ServerId = 1, > OnlyUnits = true, > IncludeOffline = false > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Active Units" > version: "1.0.0" > description: "Retrieve active emergency units for a configured server." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/units: > get: > summary: "Get Active Units" > operationId: "getActiveUnits" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > id: 12 > accId: "00000000-0000-0000-0000-000000000000" > status: 3 > isPanic: false > location: "Mission Row PD" > coordinates: > x: 123.45 > y: -456.78 > z: 32.1 > w: 180.0 > aop: "Los Santos" > data: > unitNum: "A-10" > name: "John Doe" > district: "Los Santos" > department: "LSPD" > subdivision: "Patrol" > rank: "Officer" > group: "CAR-51" > page: 0 > communityUserId: "license:abc123" > isDispatch: false > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > - > description: "Include offline identifiers in the response." > name: "includeOffline" > in: "query" > schema: > type: "boolean" > required: true > - > description: "When `true`, hides active dispatchers." > name: "onlyUnits" > in: "query" > schema: > type: "boolean" > required: true > - > description: "Maximum number of rows returned." > name: "limit" > in: "query" > schema: > type: "integer" > required: true > - > description: "Number of rows to skip." > name: "offset" > in: "query" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/units?includeOffline=false&onlyUnits=true&limit=100&offset=0" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "id": 12, "accId": "00000000-0000-0000-0000-000000000000", "status": 3, "isPanic": false, "location": "Mission Row PD", "coordinates": { "x": 123.45, "y": -456.78, "z": 32.1, "w": 180.0 }, "aop": "Los Santos", "data": { "unitNum": "A-10", "name": "John Doe", "district": "Los Santos", "department": "LSPD", "subdivision": "Patrol", "rank": "Officer", "group": "CAR-51", "page": 0, "communityUserId": "license:abc123" }, "isDispatch": false } ] ``` ## Enumeration Values ### UNIT\_STATUS | Value | Description | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `ENROUTE` | | `4` | `ON_SCENE` | | `100` | `OFFLINE` | ### UNIT\_PAGE | Value | Description | | - | - | | `0` | `POLICE` | | `1` | `FIRE` | | `2` | `EMS` | | `3` | `DISPATCH` | | `-1` | `UNKNOWN` | # Kick Unit Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/kick-unit Force a unit offline by community user ID, linked Roblox ID, or linked Discord ID. `POST` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/units/kick` Legacy compatibility is also available with `DELETE` on the same route, but `POST` is preferred for integrations that need to send a JSON body reliably. > **Rate limit:** `20 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Force the currently selected identifier for a community user ID, linked Roblox ID, or linked Discord ID offline. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body Use `communityUserId` by default, or provide `roblox` or `discord` to target the unit through a linked external account. This route accepts either a single kick request object or an array of kick request objects. SDK helpers currently send a single object over `POST`. Raw HTTP integrations may batch multiple kick requests in one call. ```json theme={null} { "communityUserId": "player-1234", "reason": "Connection reset by integration" } ``` ```json theme={null} [ { "communityUserId": "player-1234", "reason": "Connection reset by integration" }, { "communityUserId": "player-5678", "reason": "Server restart" } ] ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:kickUnitV2({ > serverId = 1, > communityUserId = 'player-1234', > reason = 'Inactive or unresponsive.', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.kickUnitV2({ > serverId: 1, > communityUserId: 'player-1234', > reason: 'Inactive or unresponsive.', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.kickUnitV2({ > "serverId": 1, > "communityUserId": 'player-1234', > "reason": 'Inactive or unresponsive.', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.kickUnitV2(new KickUnitV2Request > { > ServerId = 1, > CommunityUserId = "player-1234", > Reason = "Disconnected by CAD administrator" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Kick Unit" > version: "1.0.0" > description: "Force a unit offline by community user ID, linked Roblox ID, or linked Discord ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/units/kick: > post: > summary: "Kick Unit" > operationId: "kickUnit" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > identId: 12 > reason: "Restarting server." > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > oneOf: > - > type: "object" > required: > - "communityUserId" > - "reason" > properties: > communityUserId: > type: "string" > roblox: > type: "integer" > reason: > type: "string" > - > type: "array" > items: > type: "object" > required: > - "communityUserId" > - "reason" > properties: > communityUserId: > type: "string" > roblox: > type: "integer" > reason: > type: "string" > example: > - communityUserId: "player-1234" > reason: "Connection reset by integration" > - communityUserId: "player-5678" > reason: "Server restart" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/units/kick" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '[ > { > "communityUserId": "player-1234", > "reason": "Connection reset by integration" > }, > { > "communityUserId": "player-5678", > "reason": "Server restart" > } > ]' > ``` ## Response Successful requests return `application/json`. Single-object requests keep the original response shape: ```json theme={null} { "identId": 12, "reason": "Restarting server." } ``` Array requests return the count plus each kicked target: ```json theme={null} { "count": 2, "kicked": [ { "identId": 12, "communityUserId": "player-1234", "reason": "Connection reset by integration" }, { "identId": 34, "communityUserId": "player-5678", "reason": "Server restart" } ] } ``` # Set Unit Panic Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/set-unit-panic Set panic state for one or more identifiers. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/units/panic` > **Rate limit:** `20 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Set the panic state for one or more identifiers resolved by `communityUserId`, `communityUserIds`, `roblox`, `discord`, `accountUuid`, or `identIds`. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body Use `communityUserId` or `communityUserIds` by default, or provide `roblox`, `discord`, `accountUuid`, or `identIds`. ```json theme={null} { "communityUserIds": ["player-1234"], "isPanic": true } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setUnitPanicV2({ > serverId = 1, > communityUserId = 'player-1234', > isPanic = true, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setUnitPanicV2({ > serverId = 1, > apiId = '1234567890', > isPanic = true, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setUnitPanicV2({ > serverId: 1, > communityUserId: 'player-1234', > isPanic: true, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setUnitPanicV2({ > "serverId": 1, > "communityUserId": 'player-1234', > "isPanic": True, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setUnitPanicV2(new SetUnitPanicV2Request > { > ServerId = 1, > CommunityUserId = "player-1234", > IsPanic = true > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Unit Panic" > version: "1.0.0" > description: "Set panic state for one or more identifiers." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/units/panic: > patch: > summary: "Set Unit Panic" > operationId: "setUnitPanic" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > updated: 1 > isPanic: true > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserIds: "player-1234" > isPanic: true > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/units/panic" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserIds": ["player-1234"], > "isPanic": true > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updated": 1, "isPanic": true } ``` # Set Unit Status Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/set-unit-status Set status for one or more identifiers. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/units/status` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Set a new unit status for one or more identifiers resolved by `communityUserId`, `communityUserIds`, `roblox`, `discord`, `accountUuid`, or `identIds`. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body Use `communityUserId` or `communityUserIds` by default, or provide `roblox`, `discord`, `accountUuid`, or `identIds`. | Property | Type | Required | Description | | - | - | - | - | | `communityUserId` | string | No | Updates all active identifiers for one linked community user. | | `communityUserIds` | array of strings | No | Updates all active identifiers for multiple linked community users. | | `roblox` | integer | No | Updates all active identifiers for the account linked to the Roblox user ID. | | `discord` | string | No | Updates all active identifiers for the account linked to the Discord user ID. | | `accountUuid` | string (uuid) | No | Updates all active identifiers for the target account. | | `identIds` | array of integers | No | Directly target one or more identifier IDs. | | `status` | integer | Yes | Unit status enum. See `UNIT_STATUS` below. | ```json theme={null} { "communityUserIds": ["player-1234"], "status": 3 } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setUnitStatusV2({ > serverId = 1, > communityUserId = 'player-1234', > status = 2, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setUnitStatusV2({ > serverId = 1, > apiId = '1234567890', > status = 2, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setUnitStatusV2({ > serverId: 1, > communityUserId: 'player-1234', > status: 2, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setUnitStatusV2({ > "serverId": 1, > "communityUserId": 'player-1234', > "status": 2, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setUnitStatusV2(new SetUnitStatusV2Request > { > ServerId = 1, > CommunityUserId = "player-1234", > Status = 3 > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Unit Status" > version: "1.0.0" > description: "Set status for one or more identifiers." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/units/status: > patch: > summary: "Set Unit Status" > operationId: "setUnitStatus" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > updated: 1 > status: "ENROUTE" > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserIds: "player-1234" > status: 3 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/units/status" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserIds": ["player-1234"], > "status": 3 > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updated": 1, "status": "ENROUTE" } ``` ## Enumeration Values ### UNIT\_STATUS | Value | Description | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `ENROUTE` | | `4` | `ON_SCENE` | | `100` | `OFFLINE` | # Update Unit Locations Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/update-unit-locations Update live map location data for one or more units. `PATCH` `https://api.sonorancad.com/v2/emergency/servers/{serverId}/unit-locations` > **Rate limit:** `12 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. > > For frequent live-map streaming, prefer the [websocket `unitLocation` method](/cad/api-integration/websocket-api/unit-locations), which supports updates every `200ms` minimum after a single websocket authentication. Queue and broadcast one or more unit location updates. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body Each update can target a unit with `communityUserId` by default, or with `roblox` or `discord` as alternatives. For Sonoran.lua, use `updateUnitLocationsV2(...)` for the HTTP v2 endpoint. ```json theme={null} { "updates": [ { "communityUserId": "player-1234", "location": "Mission Row", "coordinates": { "x": 441.2, "y": -981.9, "z": 30.7, "w": 90.0 }, "peerId": "peer-1", "vehicle": { "model": "police3", "headingOffset": 0 } } ] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:updateUnitLocationsV2({ > serverId = 1, > updates = { > { > communityUserId = 'player-1234', > location = 'Mission Row', > coordinates = { x = 425.1, y = -979.2, z = 30.7, w = 0 }, > }, > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:updateUnitLocationsV2({ > serverId = 1, > updates = { > { > communityUserId = 'player-1234', > location = 'Mission Row', > coordinates = { x = 425.1, y = -979.2, z = 30.7, w = 0 }, > }, > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.updateUnitLocationsV2({ > serverId: 1, > updates: [ > { > communityUserId: 'player-1234', > location: 'Mission Row', > coordinates: { x: 425.1, y: -979.2, z: 30.7, w: 0 }, > }, > ], > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.updateUnitLocationsV2({ > "serverId": 1, > "updates": [ > { > "communityUserId": 'player-1234', > "location": 'Mission Row', > "coordinates": { "x": 425.1, "y": -979.2, "z": 30.7, "w": 0 }, > }, > ], > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.updateUnitLocationsV2(new UpdateUnitLocationsV2Request > { > ServerId = 1, > Updates = new[] > { > new UnitLocationUpdateV2 > { > CommunityUserId = "player-1234", > Location = "Mission Row PD", > X = 425.1, > Y = -979.2, > Z = 30.7, > Heading = 180f > } > } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Unit Locations" > version: "1.0.0" > description: "Update live map location data for one or more units." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/emergency/servers/{serverId}/unit-locations: > patch: > summary: "Update Unit Locations" > operationId: "updateUnitLocations" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > updated: 1 > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > updates: > - communityUserId: "player-1234" > location: "Mission Row" > coordinates: > x: 441.2 > y: -981.9 > z: 30.7 > w: 90.0 > peerId: "peer-1" > vehicle: > model: "police3" > headingOffset: 0 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/emergency/servers/1/unit-locations" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "updates": [ > { > "communityUserId": "player-1234", > "location": "Mission Row", > "coordinates": { > "x": 441.2, > "y": -981.9, > "z": 30.7, > "w": 90.0 > }, > "peerId": "peer-1", > "vehicle": { > "model": "police3", > "headingOffset": 0 > } > } > ] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updated": 1 } ``` # General Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general v2 general endpoints for account actions, records, lookups, and community configuration. Use the v2 general endpoints for account management, custom records, lookup workflows, and community-level configuration. ## Sections > [card] [accounts](/cad/api-integration/api-endpoints-v2/general/accounts) > [card] [records](/cad/api-integration/api-endpoints-v2/general/records) > [card] [lookups](/cad/api-integration/api-endpoints-v2/general/lookups) > [card] [configuration](/cad/api-integration/api-endpoints-v2/general/configuration) # Accounts Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts v2 general account and identity endpoints. The v2 general account endpoints handle account lookup, permissions, secrets, account links, and account-targeted actions. ## Endpoints > [card] [Apply Permission Key](/cad/api-integration/api-endpoints-v2/general/accounts/apply-permission-key) > [card] [Kick Or Ban User](/cad/api-integration/api-endpoints-v2/general/accounts/ban-user) > [card] [Create Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/create-community-link) > [card] [Check Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/check-community-link) > [card] [Set Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/set-community-link) > [card] [Get Account](/cad/api-integration/api-endpoints-v2/general/accounts/get-account) > [card] [Get Accounts](/cad/api-integration/api-endpoints-v2/general/accounts/get-accounts) > [card] [Get Permission Catalog](/cad/api-integration/api-endpoints-v2/general/accounts/get-permission-catalog) > [card] [Get Account Permissions](/cad/api-integration/api-endpoints-v2/general/accounts/get-account-permissions) > [card] [Replace Account Permissions](/cad/api-integration/api-endpoints-v2/general/accounts/replace-account-permissions) > [card] [Verify Secret](/cad/api-integration/api-endpoints-v2/general/accounts/verify-secret) > [card] [Send Photo](/cad/api-integration/api-endpoints-v2/general/accounts/send-photo) # Account Object Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/account-object The Account Object represents a single community member's Sonoran CAD account. The Account Object is returned by the following endpoints: * [Get Account](/cad/api-integration/api-endpoints-v2/general/accounts/get-account) — returns a single Account Object * [Get Accounts](/cad/api-integration/api-endpoints-v2/general/accounts/get-accounts) — returns an array of Account Objects under the `accounts` field ## Schema | Field | Type | | - | - | | `uuid` | string (uuid) | | `username` | string | | `communityUserId` | string | | `status` | integer | | `joined` | string (ISO 8601) | | `lastLogin` | string (ISO 8601) | | `permissions` | object | ## Example ```json theme={null} { "uuid": "00000000-0000-0000-0000-000000000000", "username": "ExampleUser", "communityUserId": "player-1234", "status": 1, "joined": "2026-01-14T18:22:00Z", "lastLogin": "2026-04-08T20:55:00Z", "permissions": { "police": true, "admin": false, // Rest of the permissions, see below } } ``` ## Enumeration Values ### ACCOUNT\_STATUS | Value | Description | | - | - | | `0` | `PENDING` | | `1` | `VALIDATED` | | `2` | `EXPIRED` | | `3` | `REMOVED` | | `4` | `BANNED` | ## Permissions | Field | Type | | - | - | | `admin` | boolean | | `adminAccounts` | boolean | | `adminCustomization` | boolean | | `adminDepartments` | boolean | | `adminDiscordIntegration` | boolean | | `adminInGameIntegration` | boolean | | `adminLimits` | boolean | | `adminLogs` | boolean | | `adminPenalCodes` | boolean | | `adminPermissionKeys` | boolean | | `adminTenCodes` | boolean | | `civilian` | boolean | | `dispatch` | boolean | | `dmv` | boolean | | `dmvRecAdd` | boolean | | `dmvRecEdit` | boolean | | `dmvRecRemove` | boolean | | `dmvSuper` | boolean | | `ems` | boolean | | `fire` | boolean | | `fireRecAdd` | boolean | | `fireRecEdit` | boolean | | `fireRecRemove` | boolean | | `fireSuper` | boolean | | `lawRecAdd` | boolean | | `lawRecEdit` | boolean | | `lawRecRemove` | boolean | | `lawSuper` | boolean | | `lawyer` | boolean | | `liveMap` | boolean | | `medRecAdd` | boolean | | `medRecEdit` | boolean | | `medRecRemove` | boolean | | `medSuper` | boolean | | `police` | boolean | | `polEditOtherUnit` | boolean | | `polEditUnit` | boolean | | `polRecAdd` | boolean | | `polRecEdit` | boolean | | `polRecRemove` | boolean | | `polSuper` | boolean | | `selfDispatch` | boolean | # Apply Permission Key Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/apply-permission-key Apply a permission key to an account resolved by community user ID, linked Roblox ID, or linked Discord ID. `POST` `https://api.sonorancad.com/v2/general/permission-keys/applications` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Apply a Sonoran CAD permission key to the account linked to a community user ID, linked Roblox ID, or linked Discord ID. ## Request Body Use `communityUserId` by default, or provide `roblox` or `discord` to target the account linked to that external account ID. ```json theme={null} { "communityUserId": "player-1234", "permissionKey": "YOUR_PERMISSION_KEY" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:applyPermissionKeyV2({ > communityUserId = 'player-1234', > permissionKey = 'DISPATCH', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:applyPermissionKeyV2({ > apiId = '1234567890', > permissionKey = 'DISPATCH', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.applyPermissionKeyV2({ > communityUserId: 'player-1234', > permissionKey: 'DISPATCH', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.applyPermissionKeyV2({ > "communityUserId": 'player-1234', > "permissionKey": 'DISPATCH', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.applyPermissionKeyV2(new ApplyPermissionKeyV2Request > { > CommunityUserId = "player-1234", > PermissionKey = "COMMAND_STAFF" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Apply Permission Key" > version: "1.0.0" > description: "Apply a permission key to an account resolved by community user ID, linked Roblox ID, or linked Discord ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/permission-keys/applications: > post: > summary: "Apply Permission Key" > operationId: "applyPermissionKey" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > accountUuid: "00000000-0000-0000-0000-000000000000" > username: "ExampleUser" > message: "Permission key applied." > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > roblox: 123456789 > discord: "123456789012345678" > permissionKey: "YOUR_PERMISSION_KEY" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/permission-keys/applications" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234", > "permissionKey": "YOUR_PERMISSION_KEY" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "accountUuid": "00000000-0000-0000-0000-000000000000", "username": "ExampleUser", "message": "Permission key applied.", "permissions": { "police": true, "dispatch": true, "liveMap": true, "adminInGameIntegration": true } } ``` # Kick Or Ban User Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/ban-user Kick or ban an account in the authenticated community. `POST` `https://api.sonorancad.com/v2/general/account-bans` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Kick an account from the community or apply a community ban. ## Request Body Use `communityUserId` by default. You can also provide exactly one of `accountUuid`, `roblox`, or `discord`. ```json theme={null} { "communityUserId": "player-1234", "isBan": true } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:banUserV2({ > communityUserId = 'player-1234', > isBan = true, > isKick = true, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:banUserV2({ > accountUuid = '00000000-0000-0000-0000-000000000000', > isBan = true, > isKick = true, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.banUserV2({ > communityUserId: 'player-1234', > isBan: true, > isKick: true, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.banUserV2({ > "communityUserId": 'player-1234', > "isBan": True, > "isKick": True, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.banUserV2(new BanUserV2Request > { > CommunityUserId = "player-1234", > IsBan = true, > IsKick = false > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Kick Or Ban User" > version: "1.0.0" > description: "Kick or ban an account in the authenticated community." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/account-bans: > post: > summary: "Kick Or Ban User" > operationId: "kickOrBanUser" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > accountUuid: "00000000-0000-0000-0000-000000000000" > action: "ban" > message: "Account was banned." > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > roblox: 123456789 > isBan: true > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/account-bans" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234", > "isBan": true > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "accountUuid": "00000000-0000-0000-0000-000000000000", "action": "ban", "message": "Account was banned." } ``` # Check Community Link Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/check-community-link Check whether a community user ID is linked to an account. `POST` `https://api.sonorancad.com/v2/general/links/check` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Resolve a `communityUserId` to the linked Sonoran CAD account UUID inside the authenticated community. ## Request Body ```json theme={null} { "communityUserId": "player_12345" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:checkCommunityLinkV2({ > communityUserId = 'player_12345', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:checkCommunityLinkV2({ > communityUserId = 'player_12345', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.checkCommunityLinkV2({ > communityUserId: 'player_12345', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.checkCommunityLinkV2({ > "communityUserId": 'player_12345', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.checkCommunityLinkV2(new CommunityLinkV2Request > { > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Check Community Link" > version: "1.0.0" > description: "Check whether a community user ID is linked to an account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/links/check: > post: > summary: "Check Community Link" > operationId: "checkCommunityLink" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player_12345" > linked: true > accountUuid: "00000000-0000-0000-0000-000000000000" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player_12345" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/links/check" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player_12345" > }' > ``` ## Response Successful requests return `application/json`. Linked: ```json theme={null} { "communityUserId": "player_12345", "linked": true, "accountUuid": "00000000-0000-0000-0000-000000000000" } ``` Not linked: ```json theme={null} { "communityUserId": "player_12345", "linked": false, "accountUuid": null } ``` If you want to avoid polling after creating a link code, listen for the [Community Link Verified](/cad/api-integration/push-events/community-link-verified) push event instead. # Create Community Link Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/create-community-link Create a short-lived community user link code. `POST` `https://api.sonorancad.com/v2/general/links` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Create a 4-character code for a `communityUserId`. The code is scoped to the authenticated community and expires after 10 minutes. ## Request Body ```json theme={null} { "communityUserId": "player_12345" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:createCommunityLinkV2({ > communityUserId = 'player_12345', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:createCommunityLinkV2({ > communityUserId = 'player_12345', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createCommunityLinkV2({ > communityUserId: 'player_12345', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createCommunityLinkV2({ > "communityUserId": 'player_12345', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createCommunityLinkV2(new CommunityLinkV2Request > { > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Create Community Link" > version: "1.0.0" > description: "Create a short-lived community user link code." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/links: > post: > summary: "Create Community Link" > operationId: "createCommunityLink" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > code: "A7K2" > communityUserId: "player_12345" > communityUuid: "00000000-0000-0000-0000-000000000000" > expiresAt: "2026-04-09T19:25:00Z" > expiresInSeconds: 600 > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player_12345" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/links" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player_12345" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "code": "A7K2", "communityUserId": "player_12345", "communityUuid": "00000000-0000-0000-0000-000000000000", "expiresAt": "2026-04-09T19:25:00Z", "expiresInSeconds": 600 } ``` ## Linking Account Once a link code is created, direct the user to `sonorancad.com/id?code=ENTERCODEHERE`. If the user is not logged in, they will be automatically redirected. The 4-digit code will be automatically entered into the ID page, processed, and the user's `communityUserId` will be linked to the community account. Once linked, the `communityUserId` parameter can be used with any applicable v2 API endpoint. To detect that link completion immediately, listen for the [Community Link Verified](/cad/api-integration/push-events/community-link-verified) push event or poll [Check Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/check-community-link) when needed. ![](https://docs-assets.sonoransoftware.com/sha256/27/27de8bdae296fa85cd7b244d154c7316db05be5b2697e427963a9e8906e25279.png) ![](https://docs-assets.sonoransoftware.com/sha256/65/6559dce2197c91642552d085a512d209e44296a95f2ca8516a8d81d20ee54165.png) # Get Account Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/get-account Retrieve a single community account by community user ID, linked Roblox ID, linked Discord ID, account UUID, or username. `GET` `https://api.sonorancad.com/v2/general/accounts/account` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return a single community account record. ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `communityUserId` | string | Optional | Default target option for the in-game community user ID. Provide exactly one identifier. | | `roblox` | integer | Optional | Target the account linked to a Roblox user ID. Provide exactly one identifier. | | `discord` | string | Optional | Target the account linked to a Discord user ID. Provide exactly one identifier. | | `accountUuid` | string (uuid) | Optional | Target account UUID. Provide exactly one identifier. | | `username` | string | Optional | Target username. Provide exactly one identifier. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getAccountV2({ > communityUserId = 'player-1234', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getAccountV2({ > accountUuid = '00000000-0000-0000-0000-000000000000', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getAccountV2({ > communityUserId: 'player-1234', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getAccountV2({ > "communityUserId": 'player-1234', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getAccountV2(new GetAccountV2Query > { > CommunityUserId = "player-1234" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Account" > version: "1.0.0" > description: "Retrieve a single community account by community user ID, linked Roblox ID, linked Discord ID, account UUID, or username." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/accounts/account: > get: > summary: "Get Account" > operationId: "getAccount" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > uuid: "00000000-0000-0000-0000-000000000000" > username: "ExampleUser" > communityUserId: "player-1234" > status: 1 > joined: "2026-01-14T18:22:00Z" > lastLogin: "2026-04-08T20:55:00Z" > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > parameters: > - > description: "Default target option for the in-game community user ID. Provide exactly one identifier." > name: "communityUserId" > in: "query" > schema: > type: "string" > required: false > - > description: "Target the account linked to a Roblox user ID. Provide exactly one identifier." > name: "roblox" > in: "query" > schema: > type: "integer" > required: false > - > description: "Target account UUID. Provide exactly one identifier." > name: "accountUuid" > in: "query" > schema: > type: "string" > required: false > - > description: "Target username. Provide exactly one identifier." > name: "username" > in: "query" > schema: > type: "string" > required: false > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/accounts/account?communityUserId=player-1234" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json` containing a single [Account Object](/cad/api-integration/api-endpoints-v2/general/accounts/account-object). # Get Account Permissions Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/get-account-permissions Get Account Permissions using the granular CAD v2 permissions API. `GET` `https://api.sonorancad.com/v2/general/permissions/accounts/{accountId}` Authenticate with your community API key using `Authorization: Bearer YOUR_API_KEY`. All SDK examples use the existing authenticated request and rate-limit handling. Read an account's permission snapshot in the authenticated community. `accountId` is the account UUID, not its community user ID, Discord ID, or Roblox ID. Resolve the UUID using [Get Account](/cad/api-integration/api-endpoints-v2/general/accounts/get-account) when necessary. The response includes `permissions.version`, `permissions.grants`, `owner`, `migrated`, and membership `status` (`0` pending, `1` active; other statuses are not editable). Owner snapshots contain all catalog grants. `migrated` indicates the community's v2 permission storage is available; it does not indicate whether this individual account has been explicitly edited. Legacy-derived reads can also include `permissions.legacy` and `permissions.legacyTemplates` metadata. A missing account returns HTTP `404`. A failed read must never be treated as an empty grant list. Check the SDK response's `success` before using `data` or computing an update. See [Replace Account Permissions](/cad/api-integration/api-endpoints-v2/general/accounts/replace-account-permissions) to save a complete grant list. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getAccountPermissionsV2("00000000-0000-0000-0000-000000000000") > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getAccountPermissionsV2("00000000-0000-0000-0000-000000000000") > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > > After getting the JavaScript export client: > > ```javascript theme={null} > const response = await cad.getAccountPermissionsV2("00000000-0000-0000-0000-000000000000"); > console.log(response); > ``` > > After constructing the .NET client from protected convars: > > ```csharp theme={null} > var response = await sonoran.Cad.getAccountPermissionsV2("00000000-0000-0000-0000-000000000000"); > Console.WriteLine(response.success); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getAccountPermissionsV2("00000000-0000-0000-0000-000000000000"); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getAccountPermissionsV2("00000000-0000-0000-0000-000000000000") > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getAccountPermissionsV2("00000000-0000-0000-0000-000000000000"); > > Console.WriteLine(response.success); > var result = response.success ? response.data?.ToObject() : null; > Console.WriteLine(result); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: Sonoran CAD v2 - Get Account Permissions > version: 1.0.0 > servers: > - url: https://api.sonorancad.com > paths: > /v2/general/permissions/accounts/{accountId}: > get: > summary: Get Account Permissions > operationId: getAccountPermissionsV2 > security: > - bearerAuth: [] > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > properties: > permissions: > type: object > properties: > version: > type: integer > enum: > - 2 > grants: > type: array > items: > type: string > owner: > type: boolean > migrated: > type: boolean > status: > type: integer > example: > permissions: > version: 2 > grants: > - global.police > owner: false > migrated: true > status: 1 > '400': > description: Invalid request or account cannot be edited > '401': > description: Missing or invalid API key > '429': > description: Rate limited; follow Retry-After before retrying > '404': > description: Account not found in this community > parameters: > - name: accountId > in: path > required: true > schema: > type: string > format: uuid > example: 00000000-0000-0000-0000-000000000000 > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > bearerFormat: JWT > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/permissions/accounts/00000000-0000-0000-0000-000000000000" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response ```json theme={null} { "permissions": { "version": 2, "grants": [ "global.police" ] }, "owner": false, "migrated": true, "status": 1 } ``` # Get Accounts Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/get-accounts Retrieve paginated community accounts. `GET` `https://api.sonorancad.com/v2/general/accounts` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return paginated community accounts. ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `limit` | integer | `100` | Maximum number of accounts returned. The backend enforces 1-100. | | `offset` | integer | `0` | Number of accounts to skip. | | `status` | integer | `1` | Filter by account status. See `ACCOUNT_STATUS` below. | | `username` | string | Optional | Case-insensitive username filter. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getAccountsV2({ > limit = 25, > offset = 0, > username = 'john', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getAccountsV2({ > limit = 25, > offset = 0, > username = 'john', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getAccountsV2({ > limit: 25, > offset: 0, > username: 'john', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getAccountsV2({ > "limit": 25, > "offset": 0, > "username": 'john', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getAccountsV2(new GetAccountsV2Query > { > Limit = 25, > Offset = 0, > Status = "ACTIVE" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Accounts" > version: "1.0.0" > description: "Retrieve paginated community accounts." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/accounts: > get: > summary: "Get Accounts" > operationId: "getAccounts" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > pagination: > limit: 25 > offset: 0 > total: 1 > accounts: > uuid: "00000000-0000-0000-0000-000000000000" > username: "ExampleUser" > status: 1 > joined: "2026-01-14T18:22:00Z" > lastLogin: "2026-04-08T20:55:00Z" > permissions: > police: true > dispatch: true > liveMap: true > adminInGameIntegration: true > parameters: > - > description: "Maximum number of accounts returned. The backend enforces 1-100." > name: "limit" > in: "query" > schema: > type: "integer" > required: true > - > description: "Number of accounts to skip." > name: "offset" > in: "query" > schema: > type: "integer" > required: true > - > description: "Filter by account status. See `ACCOUNT_STATUS` below." > name: "status" > in: "query" > schema: > type: "integer" > required: true > - > description: "Case-insensitive username filter." > name: "username" > in: "query" > schema: > type: "string" > required: false > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/accounts?limit=25&offset=0&status=1" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "pagination": { "limit": 25, "offset": 0, "total": 1 }, "accounts": [ // Array of Account Objects — see Account Object page for field descriptions. ] } ``` # Get Permission Catalog Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/get-permission-catalog Get Permission Catalog using the granular CAD v2 permissions API. `GET` `https://api.sonorancad.com/v2/general/permissions/catalog` Authenticate with your community API key using `Authorization: Bearer YOUR_API_KEY`. All SDK examples use the existing authenticated request and rate-limit handling. Return the community-specific catalog of available, case-sensitive grant IDs and the legacy flag conversion map. Fetch this catalog before assigning permissions and refresh it when record templates change. Global permissions use `global.`. Record permissions use `record..`, with actions `read`, `create`, `edit.own`, `edit.any`, `delete.own`, `delete.any`, `supervise`, and, on backends supporting limited editing, `edit.selected`. Template IDs belong to the current community; do not copy them from another community or hardcode the sample ID below. `legacyGrants` maps uppercase legacy flags (such as `POLICE`) to the grant arrays produced by CAD's migration rules. The example response is an excerpt; actual catalogs and mappings contain all applicable entries. Use this map to migrate an existing role configuration, then manage explicit grant lists with [Replace Account Permissions](/cad/api-integration/api-endpoints-v2/general/accounts/replace-account-permissions). ## Editing grant discovery Use `record..edit.selected` only when returned by this community's catalog. The grant permits editing opted-in fields (`editableByOthers: true`) on other accounts' records; it does not grant own-record editing. `edit.any` permits full editing, including owned records, without field opt-in on this backend version. `edit.own` permits full editing of owned records. Supervisor-only fields additionally require `supervise`, and read-only fields remain locked for account editing. There is no permission-document version or endpoint change: `version` remains `2`. Existing grants remain unchanged and the new grant is not automatically assigned. The SDKs use string grant IDs and do not need new methods. Refresh the catalog when permission capabilities or templates change. Community API-key record operations retain their existing service authority; account grant changes do not narrow those credentials. See [the account permission guide](/cad/tutorials/getting-started/permissions#record-editing-permissions) for rollout availability and examples. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getPermissionCatalogV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getPermissionCatalogV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > > After getting the JavaScript export client: > > ```javascript theme={null} > const response = await cad.getPermissionCatalogV2(); > console.log(response); > ``` > > After constructing the .NET client from protected convars: > > ```csharp theme={null} > var response = await sonoran.Cad.getPermissionCatalogV2(); > Console.WriteLine(response.success); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getPermissionCatalogV2(); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getPermissionCatalogV2() > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getPermissionCatalogV2(); > > Console.WriteLine(response.success); > var result = response.success ? response.data?.ToObject() : null; > Console.WriteLine(result); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: Sonoran CAD v2 - Get Permission Catalog > version: 1.0.0 > servers: > - url: https://api.sonorancad.com > paths: > /v2/general/permissions/catalog: > get: > summary: Get Permission Catalog > operationId: getPermissionCatalogV2 > security: > - bearerAuth: [] > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > properties: > version: > type: integer > enum: > - 2 > communityUuid: > type: string > format: uuid > permissions: > type: array > items: > type: object > properties: > id: > type: string > label: > type: string > templateId: > type: integer > nullable: true > templateName: > type: string > nullable: true > action: > type: string > legacyGrants: > type: object > additionalProperties: > type: array > items: > type: string > example: > version: 2 > communityUuid: 00000000-0000-0000-0000-000000000000 > permissions: > - id: global.police > label: police > templateId: null > templateName: null > action: police > - id: record.4.read > label: read > templateId: 4 > templateName: Example record template > action: read > legacyGrants: > POLICE: > - global.police > - record.4.read > '400': > description: Invalid request or account cannot be edited > '401': > description: Missing or invalid API key > '429': > description: Rate limited; follow Retry-After before retrying > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > bearerFormat: JWT > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/permissions/catalog" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response ```json theme={null} { "version": 2, "communityUuid": "00000000-0000-0000-0000-000000000000", "permissions": [ { "id": "global.police", "label": "police", "templateId": null, "templateName": null, "action": "police" }, { "id": "record.4.read", "label": "read", "templateId": 4, "templateName": "Example record template", "action": "read" } ], "legacyGrants": { "POLICE": [ "global.police", "record.4.read" ] } } ``` # Replace Account Permissions Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/replace-account-permissions Replace Account Permissions using the granular CAD v2 permissions API. `PUT` `https://api.sonorancad.com/v2/general/permissions/accounts/{accountId}` Authenticate with your community API key using `Authorization: Bearer YOUR_API_KEY`. All SDK examples use the existing authenticated request and rate-limit handling. Replace the account's complete explicit grant list in the authenticated community. `accountId` is the account UUID, not a community user ID. This operation does not add to the existing list: omitted grants are removed. The request must contain `grants`; `version` is `2` (the server also defaults an omitted version to `2`). Use exact, case-sensitive grant IDs from [Get Permission Catalog](/cad/api-integration/api-endpoints-v2/general/accounts/get-permission-catalog). To retain existing permissions, first [read the account](/cad/api-integration/api-endpoints-v2/general/accounts/get-account-permissions), check that the read succeeded, and build the complete desired list. Concurrent replacements can overwrite each other; coordinate writers. Only pending or active non-owner memberships can be edited. Nonempty grants activate pending memberships, subject to the community member limit. An empty array clears grants and makes an active membership pending. This endpoint does not ban, unban, restore removed memberships, or reactivate expired memberships. Unknown grants, owner edits, missing/noneditable accounts, and membership-limit failures return HTTP `400`. A granular replacement ends legacy category inheritance for future record templates. Refresh the catalog and explicitly grant access to new templates when needed. Existing legacy integrations remain supported, but new integrations should use this endpoint. ## Selecting limited editing After the catalog exposes `record..edit.selected`, include that grant to permit only fields marked **Allow limited editing** on another account's records. Include `read` and required page access separately. Retain or add `edit.own` only if own-record editing is also intended. Remove that template's `edit.any` grant when limiting access: full editing takes precedence, regardless of field opt-in. Preserve every unrelated grant when building the replacement list. `supervise` remains an additional requirement for supervisor-only fields, including opted-in fields. It does not expand a selected-field user's editable field list. Existing records and field flags need no migration. Existing Edit any grants are retained and mean full editing on the updated backend. Do not send this new grant to a server whose catalog does not include it. ## Request Body ```json theme={null} {"version": 2, "grants": ["global.police"]} ``` To clear all permissions, explicitly send: ```json theme={null} {"version": 2, "grants": []} ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", { "global.police" }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", { "global.police" }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > > After getting the JavaScript export client: > > ```javascript theme={null} > const response = await cad.replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", ["global.police"]); > console.log(response); > ``` > > After constructing the .NET client from protected convars: > > ```csharp theme={null} > var response = await sonoran.Cad.replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", new[] { "global.police" }); > Console.WriteLine(response.success); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", ["global.police"]); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", ["global.police"]) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.replaceAccountPermissionsV2("00000000-0000-0000-0000-000000000000", new[] { "global.police" }); > > Console.WriteLine(response.success); > var result = response.success ? response.data?.ToObject() : null; > Console.WriteLine(result); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: Sonoran CAD v2 - Replace Account Permissions > version: 1.0.0 > servers: > - url: https://api.sonorancad.com > paths: > /v2/general/permissions/accounts/{accountId}: > put: > summary: Replace Account Permissions > operationId: replaceAccountPermissionsV2 > security: > - bearerAuth: [] > responses: > '200': > description: Successful response > content: > application/json: > schema: > type: object > properties: > accountUuid: > type: string > format: uuid > permissions: > type: object > properties: > version: > type: integer > enum: > - 2 > grants: > type: array > items: > type: string > example: > accountUuid: 00000000-0000-0000-0000-000000000000 > permissions: > version: 2 > grants: > - global.police > '400': > description: Invalid request or account cannot be edited > '401': > description: Missing or invalid API key > '429': > description: Rate limited; follow Retry-After before retrying > parameters: > - name: accountId > in: path > required: true > schema: > type: string > format: uuid > example: 00000000-0000-0000-0000-000000000000 > requestBody: > required: true > content: > application/json: > schema: > type: object > required: > - grants > properties: > version: > type: integer > enum: > - 2 > default: 2 > grants: > type: array > uniqueItems: true > items: > type: string > example: > version: 2 > grants: > - global.police > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > bearerFormat: JWT > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/general/permissions/accounts/00000000-0000-0000-0000-000000000000" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{"version": 2, "grants": ["global.police"]}' > ``` ## Response ```json theme={null} { "accountUuid": "00000000-0000-0000-0000-000000000000", "permissions": { "version": 2, "grants": [ "global.police" ] } } ``` # Send Photo Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/send-photo Send an image link to a connected user's Recent photos in CAD. `POST` `https://api.sonorancad.com/v2/general/photos` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Send a photo to a user in your CAD community. ## View and attach photos in CAD Photos sent through this endpoint appear in **Recent photos**, where users can view them or attach them to a custom record. > [tab] View photos > > 1. Click the folder icon at the left of the CAD toolbar. > > ![CAD toolbar with the Recent photos folder icon](https://docs-assets.sonoransoftware.com/cad-recent-photos-toolbar-and-field-20261107.png) > > 2. Select a photo to view it. > > ![Recent photos open in CAD](https://docs-assets.sonoransoftware.com/cad-recent-photos-gallery-20261107.png) > [tab] Attach to a record > > 1. Open a custom record and click the folder icon in its **Image** field. > > ![Custom record with the folder button at the top right of the empty Image field](https://docs-assets.sonoransoftware.com/cad-recent-photos-toolbar-and-field-20261107.png) > > 2. Select a photo and click **Use photo** (or **Replace photo** for an existing image). > > ![Select a recent photo and click Use photo](https://docs-assets.sonoransoftware.com/cad-recent-photos-record-picker-20261107.png) > > 3. The photo appears in the record. Save the record to keep it. > > ![Photo attached to the record's Image field](https://docs-assets.sonoransoftware.com/cad-recent-photos-attached-record-20261107.png) ## Request Body * `communityUserId` is the recipient's community user ID. * `url` is an absolute HTTPS link to an image the recipient's CAD client can load. Use a link without embedded credentials. ```json theme={null} { "communityUserId": "player-1234", "url": "https://cdn.example.com/mugshots/example.png" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:sendPhotoV2({ > communityUserId = 'player-1234', > url = 'https://example.com/mugshot.png', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:sendPhotoV2({ > communityUserId = 'player-1234', > url = 'https://example.com/mugshot.png', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.sendPhotoV2({ > communityUserId: 'player-1234', > url: 'https://example.com/mugshot.png', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.sendPhotoV2({ > "communityUserId": 'player-1234', > "url": 'https://example.com/mugshot.png', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.sendPhotoV2(new SendPhotoV2Request > { > CommunityUserId = "player-1234", > Url = "https://example.com/mugshot.jpg" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Send Photo" > version: "1.0.0" > description: "Send an HTTPS image link to the recipient's CAD connections in the authenticated community." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/photos: > post: > summary: "Send Photo" > operationId: "sendPhoto" > responses: > "200": > description: "The photo link was routed to the listed number of CAD connections." > content: > application/json: > schema: > type: "object" > properties: > communityUserId: > type: "string" > delivered: > type: "integer" > description: "Number of CAD connections the link was routed to." > example: > communityUserId: "player-1234" > delivered: 1 > "400": > description: "The request is missing a required value or the image URL is invalid." > "404": > description: "No eligible CAD connection was found for the recipient in this community." > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > required: [communityUserId, url] > properties: > communityUserId: > type: "string" > description: "Recipient's community user ID." > url: > type: "string" > format: "uri" > description: "Absolute HTTPS image URL without embedded credentials." > example: > communityUserId: "player-1234" > url: "https://cdn.example.com/mugshots/example.png" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/photos" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234", > "url": "https://cdn.example.com/mugshots/example.png" > }' > ``` ## Response Successful requests return `application/json`. The `delivered` value counts the CAD connections the link was routed to. ```json theme={null} { "communityUserId": "player-1234", "delivered": 1 } ``` The endpoint returns `400 Bad Request` for missing or invalid inputs and `404 Not Found` when the recipient has no eligible CAD connection in the authenticated community. # Set Community Link Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/set-community-link Directly link an authenticated community account to an in-game user ID. `POST` `https://api.sonorancad.com/v2/general/links/set` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Directly assign a `communityUserId` to an account in the authenticated community. The account UUID and its community-specific secret UUID must match. If the in-game ID is already linked to another account, the link is reassigned atomically. This endpoint is intended for trusted server-side integrations such as the SonoranCADFiveM resource. Do not expose the community API key or forward account credentials from an untrusted client directly to this endpoint. ## CAD Frontend Iframe Event When the Sonoran CAD frontend is running inside an iframe, it sends the following message to its parent after every successful community login, re-login, or reconnect: ```javascript theme={null} window.parent.postMessage({ type: 'scad:account-link', accountUuid: '11111111-1111-1111-1111-111111111111', secretUuid: '22222222-2222-2222-2222-222222222222', }, '*'); ``` The event is not emitted in a top-level browser window or when either UUID is unavailable. It does not contain `communityUserId`; the parent integration must derive that value from the current in-game player and send all three values from its trusted server process to this endpoint. The parent page should verify both `event.source` and `event.origin` before accepting the credentials: ```javascript theme={null} const cadFrame = document.getElementById('cadFrame'); const cadOrigin = new URL(cadFrame.src).origin; window.addEventListener('message', (event) => { if (event.source !== cadFrame.contentWindow || event.origin !== cadOrigin) return; if (event.data?.type !== 'scad:account-link') return; const { accountUuid, secretUuid } = event.data; // Forward these values to the trusted game server. The server derives the // player's communityUserId and calls POST /v2/general/links/set. }); ``` Treat `secretUuid` as sensitive. Do not log it, persist it in browser storage, or expose the community API key to the iframe or game client. ## Request Body ```json theme={null} { "accountUuid": "11111111-1111-1111-1111-111111111111", "secretUuid": "22222222-2222-2222-2222-222222222222", "communityUserId": "fivem:12345" } ``` All three properties are required. `communityUserId` may contain up to 255 characters. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:setCommunityLinkV2({ > accountUuid = "11111111-1111-1111-1111-111111111111", > secretUuid = "22222222-2222-2222-2222-222222222222", > communityUserId = "fivem:12345" > }) > > print(response.success) > ``` > [tab] SonoranCADFiveM > > Call this endpoint from the server side of a FiveM resource. Lua and JavaScript resources can use the CAD client exported by `sonorancad`: > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > > local response = cad:setCommunityLinkV2({ > accountUuid = "11111111-1111-1111-1111-111111111111", > secretUuid = "22222222-2222-2222-2222-222222222222", > communityUserId = "fivem:12345" > }) > > print(response.success) > ``` > > ```javascript theme={null} > const cad = exports.sonorancad.getCadClient(); > > const response = await cad.setCommunityLinkV2({ > accountUuid: '11111111-1111-1111-1111-111111111111', > secretUuid: '22222222-2222-2222-2222-222222222222', > communityUserId: 'fivem:12345', > }); > ``` > > FiveM exports do not return a .NET client. A server-side .NET resource should read the protected `sonoran_communityID`, `sonoran_apiKey`, and `sonoran_serverId` convars and construct a `SonoranClient`. FiveM does not run Python resources; use `Sonoran.py` only for external integrations. > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setCommunityLinkV2({ > accountUuid: '11111111-1111-1111-1111-111111111111', > secretUuid: '22222222-2222-2222-2222-222222222222', > communityUserId: 'fivem:12345', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setCommunityLinkV2({ > "accountUuid": "11111111-1111-1111-1111-111111111111", > "secretUuid": "22222222-2222-2222-2222-222222222222", > "communityUserId": "fivem:12345", > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setCommunityLinkV2(new SetCommunityLinkV2Request > { > AccountUuid = "11111111-1111-1111-1111-111111111111", > SecretUuid = "22222222-2222-2222-2222-222222222222", > CommunityUserId = "fivem:12345" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Community Link" > version: "1.0.0" > description: "Directly link an authenticated community account to an in-game user ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/links/set: > post: > summary: "Set Community Link" > operationId: "setCommunityLink" > security: > - > bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: "object" > required: > - "accountUuid" > - "secretUuid" > - "communityUserId" > properties: > accountUuid: > type: "string" > format: "uuid" > secretUuid: > type: "string" > format: "uuid" > communityUserId: > type: "string" > maxLength: 255 > example: > accountUuid: "11111111-1111-1111-1111-111111111111" > secretUuid: "22222222-2222-2222-2222-222222222222" > communityUserId: "fivem:12345" > responses: > "200": > description: "The account link was set successfully." > content: > application/json: > schema: > type: "object" > example: > linked: true > accountUuid: "11111111-1111-1111-1111-111111111111" > communityUserId: "fivem:12345" > "400": > description: "The request body is invalid." > "403": > description: "The account UUID and secret UUID do not match an account in the authenticated community." > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/links/set" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "accountUuid": "11111111-1111-1111-1111-111111111111", > "secretUuid": "22222222-2222-2222-2222-222222222222", > "communityUserId": "fivem:12345" > }' > ``` ## Response ```json theme={null} { "linked": true, "accountUuid": "11111111-1111-1111-1111-111111111111", "communityUserId": "fivem:12345" } ``` A `403` response intentionally does not reveal whether the account UUID or secret UUID was incorrect. # Verify Secret Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/accounts/verify-secret Resolve an account from a Sonoran CAD account secret. `POST` `https://api.sonorancad.com/v2/general/secrets/verify` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Verify an account secret and return the matched account UUID. ## Request Body ```json theme={null} { "secret": "00000000-0000-0000-0000-000000000000" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:verifySecretV2('00000000-0000-0000-0000-000000000000') > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:verifySecretV2('00000000-0000-0000-0000-000000000000') > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.verifySecretV2('00000000-0000-0000-0000-000000000000'); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.verifySecretV2('00000000-0000-0000-0000-000000000000') > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.verifySecretV2("YOUR_COMMUNITY_SECRET"); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Verify Secret" > version: "1.0.0" > description: "Resolve an account from a Sonoran CAD account secret." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/secrets/verify: > post: > summary: "Verify Secret" > operationId: "verifySecret" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > 00000000-0000-0000-0000-000000000000: "11111111-2222-3333-4444-555555555555" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > secret: "00000000-0000-0000-0000-000000000000" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/secrets/verify" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "secret": "00000000-0000-0000-0000-000000000000" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "00000000-0000-0000-0000-000000000000": "11111111-2222-3333-4444-555555555555" } ``` # Configuration Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration v2 general configuration and utility endpoints. The v2 general configuration endpoints manage penal codes, servers, postal data, utility actions, and community metadata. ## Endpoints > [card] [Get Database Sync Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/get-database-sync-configuration) > [card] [Get Penal Codes](/cad/api-integration/api-endpoints-v2/general/configuration/get-penal-codes) > [card] [Set Penal Codes](/cad/api-integration/api-endpoints-v2/general/configuration/set-penal-codes) > [card] [Heartbeat](/cad/api-integration/api-endpoints-v2/general/configuration/heartbeat) > [card] [Get Version](/cad/api-integration/api-endpoints-v2/general/configuration/get-version) > [card] [Get Turn Credentials](/cad/api-integration/api-endpoints-v2/general/configuration/get-turn-credentials) > [card] [Upload Bodycam Recording](/cad/api-integration/api-endpoints-v2/general/configuration/upload-bodycam-recording) > [card] [Get Servers](/cad/api-integration/api-endpoints-v2/general/configuration/get-servers) > [card] [Set Servers](/cad/api-integration/api-endpoints-v2/general/configuration/set-servers) > [card] [Set Postal Config](/cad/api-integration/api-endpoints-v2/general/configuration/set-postal-config) > [card] [Get Info](/cad/api-integration/api-endpoints-v2/general/configuration/get-info) > [card] [Get Login Page](/cad/api-integration/api-endpoints-v2/general/configuration/get-login-page) > [card] [Get FiveM Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration) > [card] [Migrate FiveM Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/migrate-fivem-configuration) # FiveM Configuration Acknowledgement (Earlier Draft) Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/acknowledge-fivem-configuration Migration information for the earlier FiveM configuration API draft. The current configuration flow uses [Migrate FiveM Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/migrate-fivem-configuration) and [Get FiveM Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration). ## Authentication and parameters The earlier draft used an acknowledgement route with a revision parameter. The current resource flow has no acknowledgement step. ## Example request Use the [startup fetch request](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration#example-request) for the current configuration flow. ## Response See the [startup fetch response](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration#response). # Get Database Sync Configuration Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-database-sync-configuration Retrieve the enabled state of community database sync and its supported record mappings. `GET` `https://api.sonorancad.com/v2/general/database-sync` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return whether database sync is enabled for the authenticated community and whether character, license, and vehicle registration mappings are enabled. Connection credentials and mapping details are never returned. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getDatabaseSyncConfigurationV2() > > if response.success then > print("Database sync enabled:", response.data.enabled) > print("Character mapping enabled:", response.data.character) > print("License mapping enabled:", response.data.licenses) > print("Vehicle registration mapping enabled:", response.data.vehicleRegistrations) > else > print(response.reason) > end > ``` > [tab] SonoranCADFiveM > > Use this tab when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the configured CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client, so read the protected Sonoran CAD convars and create a client. > * **Sonoran.py:** FiveM does not run Python resources; use the Sonoran.py tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. Grant an authorized server resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:getDatabaseSyncConfigurationV2() > > if response.success then > print("Database sync enabled:", response.data.enabled) > else > print(response.reason) > end > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.getDatabaseSyncConfigurationV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core; > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.getDatabaseSyncConfigurationV2(); > var configuration = response.data?.ToObject(); > > if (response.success && configuration is not null) > { > Debug.WriteLine($"Database sync enabled: {configuration.Enabled}"); > } > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getDatabaseSyncConfigurationV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getDatabaseSyncConfigurationV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getDatabaseSyncConfigurationV2(); > var configuration = response.data?.ToObject(); > > if (response.success && configuration is not null) > { > Console.WriteLine($"Database sync enabled: {configuration.Enabled}"); > Console.WriteLine($"Character mapping enabled: {configuration.Character}"); > Console.WriteLine($"License mapping enabled: {configuration.Licenses}"); > Console.WriteLine($"Vehicle registration mapping enabled: {configuration.VehicleRegistrations}"); > } > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Database Sync Configuration" > version: "1.0.0" > description: "Retrieve database sync enabled states for the authenticated community." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/database-sync: > get: > summary: "Get Database Sync Configuration" > operationId: "getDatabaseSyncConfiguration" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > $ref: "#/components/schemas/DatabaseSyncConfiguration" > example: > enabled: true > character: true > licenses: false > vehicleRegistrations: true > security: > - > bearerAuth: > components: > schemas: > DatabaseSyncConfiguration: > type: "object" > required: > - "enabled" > - "character" > - "licenses" > - "vehicleRegistrations" > properties: > enabled: > type: "boolean" > character: > type: "boolean" > licenses: > type: "boolean" > vehicleRegistrations: > type: "boolean" > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/database-sync" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json` with only the overall database sync state and the three supported mapping states. ```json theme={null} { "enabled": true, "character": true, "licenses": false, "vehicleRegistrations": true } ``` # Get FiveM Configuration Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration Fetch the configuration for a FiveM server at resource startup. `GET` `https://api.sonorancad.com/v2/fivem/servers/{serverId}/configuration` Fetch the full configuration for one server when the FiveM resource starts. Each server in a CAD community has its own settings. In CAD, open **Admin > Integrations > In-Game Integration > Manage Your Game Setup**, select the server, and save your changes. The resource reads the saved settings on its next start. This reference applies to versions of CAD and the FiveM resource that support CAD-managed configuration. ## Authentication and parameters Send `Authorization: Bearer YOUR_API_KEY`. Replace `serverId` with the positive numeric ID of a server registered in the API key's CAD community. The request has no body. ## Example request ```bash theme={null} curl "https://api.sonorancad.com/v2/fivem/servers/1/configuration" \ -H "Authorization: Bearer YOUR_API_KEY" ``` ## Response A `200 OK` response contains a single JSON object with `core` and each plugin as top-level sections. This abbreviated example shows the shape: ```json theme={null} { "core": { "notificationSystem": "auto" }, "bodycam": { "enabled": true } } ``` The full response includes default values for missing settings. New communities can fetch the stock configuration immediately. The resource keeps `communityID`, `apiKey`, `serverId`, and `mode` in its local bootstrap settings. | Status | Meaning | | - | - | | `200` | Configuration is ready. | | `401` | The API key is missing or invalid. | | `404` | The server is unknown to the authenticated community or is waiting for its [migration upload](/cad/api-integration/api-endpoints-v2/general/configuration/migrate-fivem-configuration). The error title identifies which case occurred. | # Get Info Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-info Retrieve authenticated community metadata and shared codes. `GET` `https://api.sonorancad.com/v2/general/info` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return the authenticated community UUID, community metadata, and shared code lists. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getInfoV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getInfoV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getInfoV2(); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getInfoV2() > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getInfoV2(); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Info" > version: "1.0.0" > description: "Retrieve authenticated community metadata and shared codes." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/info: > get: > summary: "Get Info" > operationId: "getInfo" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > uuid: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" > community: > comId: "examplecad" > name: "Example CAD" > timezone: "America/Phoenix" > customLoginUrl: "https://portal.examplecad.com/login" > codes: > - "10-8" > - "10-23" > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/info" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "uuid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "community": { "comId": "examplecad", "name": "Example CAD", "timezone": "America/Phoenix", "customLoginUrl": "https://portal.examplecad.com/login" }, "codes": [ "10-8", "10-23" ] } ``` # Get Login Page Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-login-page Retrieve public login-page community details by custom URL or community ID. `GET` `https://api.sonorancad.com/v2/general/login-page` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return public login-page details for a community. This endpoint does not require bearer authentication. ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `communityId` | string | Optional | Use the community ID instead of `url`. Provide exactly one. | | `url` | string | Optional | Use the community website or login URL instead of `communityId`. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getLoginPageV2({ > communityId = 'YOUR_COMMUNITY_ID', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getLoginPageV2({ > communityId = 'YOUR_COMMUNITY_ID', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getLoginPageV2({ > communityId: 'YOUR_COMMUNITY_ID', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getLoginPageV2({ > "communityId": 'YOUR_COMMUNITY_ID', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getLoginPageV2(new GetLoginPageV2Query > { > CommunityId = "YOUR_COMMUNITY_ID" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Login Page" > version: "1.0.0" > description: "Retrieve public login-page community details by custom URL or community ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/login-page: > get: > summary: "Get Login Page" > operationId: "getLoginPage" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > comId: "examplecad" > name: "Example CAD" > timezone: "America/Phoenix" > customLoginUrl: "https://portal.examplecad.com/login" > parameters: > - > description: "Use the community ID instead of `url`. Provide exactly one." > name: "communityId" > in: "query" > schema: > type: "string" > required: false > - > description: "Use the community website or login URL instead of `communityId`." > name: "url" > in: "query" > schema: > type: "string" > required: false > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/login-page?communityId=examplecad" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "comId": "examplecad", "name": "Example CAD", "timezone": "America/Phoenix", "customLoginUrl": "https://portal.examplecad.com/login" } ``` # Get Penal Codes Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-penal-codes Retrieve the community penal code configuration. `GET` `https://api.sonorancad.com/v2/general/penal-codes` > **Rate limit:** `4 requests per minute` Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return the configured penal codes for the authenticated community. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getPenalCodesV2() > > if response.success then > print(("Found %d penal codes"):format(#response.data)) > else > print(response.reason) > end > ``` > [tab] SonoranCADFiveM > > Use this tab when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the configured CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client, so read the Sonoran CAD convars and create a client. > * **Sonoran.py:** FiveM does not run Python resources; use the Sonoran.py tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. After `add_convar_permission` is configured, only explicitly permitted resources can read it. Grant access with `add_convar_permission your-resource-name read sonoran_apiKey`. If the API key changes in `config.json`, fully restart the `sonorancad` resource before reading the updated value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:getPenalCodesV2() > > if response.success then > print(("Found %d penal codes"):format(#response.data)) > else > print(response.reason) > end > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.getPenalCodesV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using CitizenFX.Core; > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.getPenalCodesV2(); > var penalCodes = response.data?.ToObject>() ?? new(); > > foreach (var penalCode in penalCodes) > { > Debug.WriteLine($"{penalCode.Code}: {penalCode.Title}"); > } > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getPenalCodesV2(); > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getPenalCodesV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getPenalCodesV2(); > var penalCodes = response.data?.ToObject>() ?? new(); > > foreach (var penalCode in penalCodes) > { > Console.WriteLine($"{penalCode.Code}: {penalCode.Title}"); > } > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Penal Codes" > version: "1.0.0" > description: "Retrieve the community penal code configuration." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/penal-codes: > get: > summary: "Get Penal Codes" > operationId: "getPenalCodes" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "array" > items: > $ref: "#/components/schemas/PenalCode" > example: > - > title: "Unsafe Lane Change" > code: "22107" > type: "INFRACTION" > bondType: "NONE" > bondAmount: 0 > jailTime: "0" > security: > - > bearerAuth: > components: > schemas: > PenalCode: > type: "object" > properties: > title: > type: "string" > code: > type: "string" > type: > type: "string" > bondType: > type: "string" > bondAmount: > type: "integer" > jailTime: > type: "string" > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/penal-codes" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "title": "Unsafe Lane Change", "code": "22107", "type": "INFRACTION", "bondType": "NONE", "bondAmount": 0, "jailTime": "0" } ] ``` # Get Servers Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-servers Retrieve configured community servers. `GET` `https://api.sonorancad.com/v2/general/servers` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return the configured server list for the authenticated community. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getServersV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getServersV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getServersV2(); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getServersV2() > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getServersV2(); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Servers" > version: "1.0.0" > description: "Retrieve configured community servers." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/servers: > get: > summary: "Get Servers" > operationId: "getServers" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > servers: > id: 1 > name: "Main Server" > description: "Primary patrol server" > signal: "100" > mapUrl: "https://example.com/tiles/{z}/{x}/{y}.png" > mapIp: "203.0.113.10" > listenerPort: "30120" > differingOutbound: false > outboundIp: "" > enableMap: true > mapType: "NORMAL" > isStatic: false > liveMapFormat: 0 > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/servers" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "servers": [ { "id": 1, "name": "Main Server", "description": "Primary patrol server", "signal": "100", "mapUrl": "https://example.com/tiles/{z}/{x}/{y}.png", "mapIp": "203.0.113.10", "listenerPort": "30120", "differingOutbound": false, "outboundIp": "", "enableMap": true, "mapType": "NORMAL", "isStatic": false, "liveMapFormat": 0 } ] } ``` # Get Turn Credentials Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-turn-credentials Generate temporary TURN credentials for WebRTC clients using the authenticated community API key. `GET` `https://api.sonorancad.com/v2/general/turn` > **Rate limit:** `20 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Generate temporary TURN credentials for Sonoran CAD WebRTC clients. This route uses normal v2 API authentication and does not require a paid plan. ## Query Parameters | Name | Type | Required | Description | | - | - | - | - | | `userId` | string | No | Optional user identifier appended to the generated TURN username. Colons are normalized to underscores. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getTurnCredentialsV2({ > userId = "unit-1" > }) > > print(response.success) > print(response.data and response.data.ttl) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getTurnCredentialsV2({ > userId: 'unit-1', > }); > > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getTurnCredentialsV2({ > "userId": "unit-1", > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getTurnCredentialsV2(new GetTurnCredentialsV2Query > { > UserId = "unit-1" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Turn Credentials" > version: "1.0.0" > description: "Generate temporary TURN credentials for WebRTC clients using the authenticated community API key." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/turn: > get: > summary: "Get Turn Credentials" > operationId: "getTurnCredentials" > parameters: > - > in: "query" > name: "userId" > required: false > schema: > type: "string" > description: "Optional user identifier appended to the generated TURN username." > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > iceServers: > - urls: > - "turn:coturn.sonorancad.com:3478?transport=udp" > - "turn:coturn.sonorancad.com:3478?transport=tcp" > - "stun:coturn.sonorancad.com:3478" > username: "1735689600:unit-1" > credential: "base64-turn-credential" > ttl: 600 > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/turn?userId=unit-1" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "iceServers": [ { "urls": [ "turn:coturn.sonorancad.com:3478?transport=udp", "turn:coturn.sonorancad.com:3478?transport=tcp", "stun:coturn.sonorancad.com:3478" ], "username": "1735689600:unit-1", "credential": "base64-turn-credential" } ], "ttl": 600 } ``` # Get Version Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/get-version Retrieve the stored community plan version metadata associated with the authenticated API key. `GET` `https://api.sonorancad.com/v2/general/version` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return the stored plan version metadata resolved during API authentication. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getVersionV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getVersionV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getVersionV2(); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getVersionV2() > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getVersionV2(); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Version" > version: "1.0.0" > description: "Retrieve the stored community plan version metadata associated with the authenticated API key." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/version: > get: > summary: "Get Version" > operationId: "getVersion" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > version: 2 > name: "PLUS" > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/version" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "version": 2, "name": "PLUS" } ``` # Heartbeat Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/heartbeat Publish a server heartbeat with current player count. `POST` `https://api.sonorancad.com/v2/general/servers/{serverId}/heartbeat` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Publish a heartbeat for a configured server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured Sonoran CAD server ID. | ## Request Body ```json theme={null} { "playerCount": 42 } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:heartbeatV2(1, 64) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:heartbeatV2(1, 64) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.heartbeatV2(1, 64); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.heartbeatV2(1, 64) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.heartbeatV2(1, 64); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Heartbeat" > version: "1.0.0" > description: "Publish a server heartbeat with current player count." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/servers/{serverId}/heartbeat: > post: > summary: "Heartbeat" > operationId: "heartbeat" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > serverId: 1 > playerCount: 32 > receivedAtUtc: "2026-04-08T21:35:00Z" > parameters: > - > description: "Configured Sonoran CAD server ID." > name: "serverId" > in: "path" > schema: > type: "integer" > example: 1 > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > playerCount: 42 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/servers/1/heartbeat" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "playerCount": 42 > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "serverId": 1, "playerCount": 32, "receivedAtUtc": "2026-04-08T21:35:00Z" } ``` # Migrate FiveM Configuration Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/migrate-fivem-configuration Upload a FiveM server's existing settings to CAD. `POST` `https://api.sonorancad.com/v2/fivem/servers/{serverId}/configuration/migrate` Upload the server's existing settings when its startup [configuration request](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration) reports that migration is pending. CAD saves the configuration for that server and makes it available to fetch. ## Authentication and parameters Send `Authorization: Bearer YOUR_API_KEY` and `Content-Type: application/json`. The URL must identify a server registered in the API key's CAD community. | Body field | Value | | - | - | | `serverId` | Positive integer matching the server ID in the URL. | | `config` | The exported JSON object, with a `core` object and plugin objects at the top level. Send the contents as JSON. | If the export includes `core.serverId`, it must match the same ID. Keep local bootstrap settings out of new exports. CAD strips `communityID`, `apiKey`, `serverId`, and `mode` from the uploaded core settings before saving. ## Example request Create a request body like the one below. The example is abbreviated. Use the server's exported configuration as the value of `config`. ```json theme={null} { "serverId": 1, "config": { "core": { "notificationSystem": "auto" }, "bodycam": { "enabled": true } } } ``` ```bash theme={null} curl --request POST "https://api.sonorancad.com/v2/fivem/servers/1/configuration/migrate" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @migration.json ``` ## Response ```json theme={null} { "serverId": 1, "status": "saved" } ``` A `200 OK` with status `saved` means the upload succeeded. Status `alreadyMigrated` means this server has a saved configuration. A repeated upload preserves any subsequent edits in CAD. Fetch the configuration after either result. | Status | Meaning | | - | - | | `400` | The server ID does not match, or the configuration is missing, malformed, or fails validation. | | `401` | The API key is missing or invalid. | | `404` | The server is not registered in the authenticated community. | | `413` | The request exceeds the upload limit. The configuration object is limited to 1 MiB. | # Register External Bodycam Recording Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/register-external-bodycam-recording Add a third-party video URL to an account's bodycam clips without uploading the file. `POST` `https://api.sonorancad.com/v2/general/bodycam-recordings/external` > **Rate limit:** `30 requests per minute` per API key, shared with bodycam uploads. Register a hosted video URL under a community member's bodycam recordings. The clip can then be [selected in a custom record](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#attach-clips-to-custom-records). Sonoran CAD saves the URL, without downloading the video. External clip entries do not expire or use your daily recording allowance. The video must remain available at that URL; attaching it to a record does not preserve the file. [Clips uploaded to Sonoran CAD](/cad/api-integration/api-endpoints-v2/general/configuration/upload-bodycam-recording) still expire after 24 hours. ## Request Send `application/json` with `Authorization: Bearer YOUR_API_KEY`. The API key determines the community. | Field | Type | Required | Description | | - | - | - | - | | `fileUrl` | string | Yes | Absolute HTTPS URL to a playable video file, not a webpage. Maximum 8,192 characters; embedded credentials are not allowed. | | `accountUuid` | string (UUID) | One target | Recording owner's account UUID. | | `communityUserId` | string | One target | Recording owner's community user ID. | | `roblox` | string | One target | Roblox user ID linked to the recording owner's account. | | `discord` | string | One target | Discord user ID linked to the recording owner's account. | | `durationMs` | integer | No | Nonnegative duration in milliseconds. Defaults to `0` (unknown). | | `identId` | integer | No | Nonnegative identifier ID owned by the target account. Defaults to its selected identifier, when available. | | `unitNumber` | string | No | Unit number; defaults to the resolved identifier's unit number. Maximum 255 characters. | | `unitLocation` | string | No | Recording location. Maximum 2,000 characters. | | `originalFileName` | string | No | Filename saved with the clip; defaults to the URL's filename. Maximum 255 characters. | | `mimeType` | string | No | Video MIME type, such as `video/mp4`. Inferred from recognized URL extensions when omitted. Maximum 100 characters. | Provide **exactly one** of `accountUuid`, `communityUserId`, `roblox`, or `discord`. The target must already belong to the community. Use a stable URL that viewers can access without additional sign-in. ## Example Request The SDKs do not yet include a helper for this endpoint. These examples send JSON directly over HTTP. > [tab] Sonoran.lua > > ```lua theme={null} > -- Standalone Lua: luarocks install luasec; luarocks install lua-cjson > local https = require("ssl.https") > local ltn12 = require("ltn12") > local json = require("cjson") > > local body = json.encode({ > accountUuid = "USER_ACCOUNT_UUID", > fileUrl = "https://clips.example.com/chase.mp4", > durationMs = 90000 > }) > local response = {} > local _, status = https.request({ > url = "https://api.sonorancad.com/v2/general/bodycam-recordings/external", > method = "POST", > headers = { > ["Authorization"] = "Bearer YOUR_API_KEY", > ["Content-Type"] = "application/json", > ["Content-Length"] = tostring(#body) > }, > source = ltn12.source.string(body), > sink = ltn12.sink.table(response) > }) > print(status, table.concat(response)) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // Node.js 18+; uses the built-in fetch API. > const response = await fetch( > 'https://api.sonorancad.com/v2/general/bodycam-recordings/external', > { > method: 'POST', > headers: { > Authorization: 'Bearer YOUR_API_KEY', > 'Content-Type': 'application/json' > }, > body: JSON.stringify({ > accountUuid: 'USER_ACCOUNT_UUID', > fileUrl: 'https://clips.example.com/chase.mp4', > durationMs: 90000 > }) > } > ); > console.log(response.status, await response.json()); > ``` > [tab] Sonoran.py > > ```python theme={null} > import json > import urllib.request > > request = urllib.request.Request( > "https://api.sonorancad.com/v2/general/bodycam-recordings/external", > method="POST", > headers={ > "Authorization": "Bearer YOUR_API_KEY", > "Content-Type": "application/json", > }, > data=json.dumps({ > "accountUuid": "USER_ACCOUNT_UUID", > "fileUrl": "https://clips.example.com/chase.mp4", > "durationMs": 90000, > }).encode("utf-8"), > ) > with urllib.request.urlopen(request) as response: > print(response.status, json.load(response)) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // .NET 6+; uses HttpClient. > using System; > using System.Net.Http; > using System.Net.Http.Headers; > using System.Net.Http.Json; > > using var client = new HttpClient(); > client.DefaultRequestHeaders.Authorization = > new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY"); > using var response = await client.PostAsJsonAsync( > "https://api.sonorancad.com/v2/general/bodycam-recordings/external", > new > { > accountUuid = "USER_ACCOUNT_UUID", > fileUrl = "https://clips.example.com/chase.mp4", > durationMs = 90000 > }); > Console.WriteLine((int)response.StatusCode); > Console.WriteLine(await response.Content.ReadAsStringAsync()); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import → Raw text**. > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran CAD v2 - Register External Bodycam Recording > version: 1.0.0 > servers: > - url: https://api.sonorancad.com > paths: > /v2/general/bodycam-recordings/external: > post: > summary: Register External Bodycam Recording > operationId: registerExternalBodycamRecording > security: > - bearerAuth: [] > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [fileUrl] > oneOf: > - required: [accountUuid] > - required: [communityUserId] > - required: [roblox] > - required: [discord] > properties: > fileUrl: > type: string > format: uri > pattern: '^https://' > maxLength: 8192 > accountUuid: > type: string > format: uuid > communityUserId: > type: string > roblox: > type: string > discord: > type: string > durationMs: > type: integer > format: int64 > minimum: 0 > default: 0 > identId: > type: integer > minimum: 0 > maximum: 2147483647 > unitNumber: > type: string > maxLength: 255 > unitLocation: > type: string > maxLength: 2000 > originalFileName: > type: string > maxLength: 255 > mimeType: > type: string > pattern: '^video/[a-zA-Z0-9.+-]+$' > maxLength: 100 > example: > accountUuid: 00000000-0000-4000-8000-000000000001 > fileUrl: https://clips.example.com/chase.mp4 > durationMs: 90000 > responses: > '201': > description: Recording metadata created; expiresAt is null. > content: > application/json: > schema: > type: object > properties: > id: > type: string > format: uuid > fileUrl: > type: string > format: uri > source: > type: string > enum: [external] > expiresAt: > type: string > format: date-time > nullable: true > '400': > description: Invalid URL, target identifiers, identifier ownership, or metadata. > '401': > description: Missing or invalid API key. > '404': > description: Target account not found or not a member of this community. > '429': > description: Rate limit exceeded. > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sonorancad.com/v2/general/bodycam-recordings/external' \ > --header 'Authorization: Bearer YOUR_API_KEY' \ > --header 'Content-Type: application/json' \ > --data '{ > "accountUuid": "USER_ACCOUNT_UUID", > "fileUrl": "https://clips.example.com/chase.mp4", > "durationMs": 90000 > }' > ``` ## Response Returns `201 Created` with the recording metadata: ```json theme={null} { "id": "00000000-0000-4000-8000-000000000002", "communityUuid": "00000000-0000-4000-8000-000000000003", "accountUuid": "00000000-0000-4000-8000-000000000001", "username": "OfficerExample", "identId": 123, "unitNumber": "1A-12", "unitLocation": "", "originalFileName": "chase.mp4", "mimeType": "video/mp4", "fileSizeBytes": 0, "durationMs": 90000, "fileUrl": "https://clips.example.com/chase.mp4", "s3Key": "", "createdAt": "2026-10-30T12:00:00Z", "expiresAt": null, "source": "external" } ``` ## Errors | Status | Cause | | - | - | | `400` | Invalid HTTPS URL, missing or multiple target identifiers, invalid metadata, or an identifier belonging to another account. | | `401` | Missing or invalid API key. | | `404` | Target account not found or not a member of this community. | | `429` | Rate limit exceeded. | # Set Penal Codes Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/set-penal-codes Replace the community penal code configuration. `PUT` `https://api.sonorancad.com/v2/general/penal-codes` > **Rate limit:** `4 requests per minute` Authenticated v2 endpoints are rate limited per API key rather than per IP address. Replace the community penal code configuration. ## Request Body ```json theme={null} { "codes": [ { "title": "Unsafe Lane Change", "code": "22107", "type": "INFRACTION", "bondType": "NONE", "bondAmount": 0, "jailTime": "0" } ] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setPenalCodesV2({ > { > title = "Unsafe Lane Change", > code = "22107", > type = "INFRACTION", > bondType = "NONE", > bondAmount = 0, > jailTime = "0" > } > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:setPenalCodesV2({ > { > title = "Unsafe Lane Change", > code = "22107", > type = "INFRACTION", > bondType = "NONE", > bondAmount = 0, > jailTime = "0" > } > }) > > print(response.success) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.setPenalCodesV2([ > { > title: 'Unsafe Lane Change', > code: '22107', > type: 'INFRACTION', > bondType: 'NONE', > bondAmount: 0, > jailTime: '0', > }, > ]); > > console.log(response); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core; > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.setPenalCodesV2(new[] > { > new PenalCodeV2 > { > Title = "Unsafe Lane Change", > Code = "22107", > Type = "INFRACTION", > BondType = "NONE", > BondAmount = 0, > JailTime = "0" > } > }); > > Debug.WriteLine($"Penal codes updated: {response.success}"); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setPenalCodesV2([ > { > title: 'Unsafe Lane Change', > code: '22107', > type: 'INFRACTION', > bondType: 'NONE', > bondAmount: 0, > jailTime: '0', > }, > ]); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setPenalCodesV2([ > { > "title": "Unsafe Lane Change", > "code": "22107", > "type": "INFRACTION", > "bondType": "NONE", > "bondAmount": 0, > "jailTime": "0", > } > ]) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setPenalCodesV2(new[] > { > new PenalCodeV2 > { > Code = "22107", > Type = "INFRACTION", > Title = "Unsafe Lane Change", > BondType = "NONE", > BondAmount = 0, > JailTime = "0" > } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Penal Codes" > version: "1.0.0" > description: "Replace the community penal code configuration." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/penal-codes: > put: > summary: "Set Penal Codes" > operationId: "setPenalCodes" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > required: > - "updated" > properties: > updated: > type: "integer" > example: > updated: 1 > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > required: > - "codes" > properties: > codes: > type: "array" > items: > $ref: "#/components/schemas/PenalCode" > example: > codes: > - > title: "Unsafe Lane Change" > code: "22107" > type: "INFRACTION" > bondType: "NONE" > bondAmount: 0 > jailTime: "0" > components: > schemas: > PenalCode: > type: "object" > properties: > title: > type: "string" > code: > type: "string" > type: > type: "string" > bondType: > type: "string" > bondAmount: > type: "integer" > jailTime: > type: "string" > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/general/penal-codes" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "codes": [ > { > "title": "Unsafe Lane Change", > "code": "22107", > "type": "INFRACTION", > "bondType": "NONE", > "bondAmount": 0, > "jailTime": "0" > } > ] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updated": 1 } ``` # Set Postal Config Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/set-postal-config Replace the community postal configuration. `PUT` `https://api.sonorancad.com/v2/general/postals` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Replace the configured postal data for the authenticated community. ## Request Body ```json theme={null} { "postals": [] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setPostalsV2({ > { code = '100', x = 425.1, y = -979.2 }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setPostalsV2({ > { code = '100', x = 425.1, y = -979.2 }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setPostalsV2([ > { code: '100', x: 425.1, y: -979.2 }, > ]); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setPostalsV2([ > { "code": '100', "x": 425.1, "y": -979.2 }, > ]) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setPostalsV2(new[] > { > new PostalV2 > { > Postal = "9001", > X = 425.1, > Y = -979.2 > } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Postal Config" > version: "1.0.0" > description: "Replace the community postal configuration." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/postals: > put: > summary: "Set Postal Config" > operationId: "setPostalConfig" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > updated: 2 > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > postals: null > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/general/postals" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "postals": [] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updated": 2 } ``` # Set Servers Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/set-servers Replace configured community servers. `PUT` `https://api.sonorancad.com/v2/general/servers` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Replace the configured server list for the authenticated community. ## Request Body Each `servers[]` item can include `id`, `name`, `description`, `signal`, `mapUrl`, `mapIp`, `listenerPort`, `differingOutbound`, `outboundIp`, `enableMap`, `mapType`, `isStatic`, and `liveMapFormat`. ```json theme={null} { "deployMap": true, "servers": [ { "id": 1, "name": "Main Server", "description": "Primary patrol server", "signal": "100", "mapUrl": "https://example.com/tiles/{z}/{x}/{y}.png", "mapIp": "203.0.113.10", "listenerPort": "30120", "differingOutbound": false, "outboundIp": "", "enableMap": true, "mapType": "NORMAL", "isStatic": false, "liveMapFormat": 0 } ] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:setServersV2({ > // See the request body above for the full server config shape. > { id = 1, name = 'Main Server' }, > }, true) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:setServersV2({ > // See the request body above for the full server config shape. > { id = 1, name = 'Main Server' }, > }, true) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.setServersV2([ > // See the request body above for the full server config shape. > { id: 1, name: 'Main Server' }, > ], true); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.setServersV2([ > # See the request body above for the full server config shape. > { "id": 1, "name": 'Main Server' }, > ], True) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.setServersV2( > new[] > { > new CadServerV2 > { > Id = 1, > Config = new Dictionary > { > ["name"] = "Main Server", > ["enableMap"] = true > } > } > }, > true > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Servers" > version: "1.0.0" > description: "Replace configured community servers." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/servers: > put: > summary: "Set Servers" > operationId: "setServers" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > servers: > id: 1 > name: "Main Server" > description: "Primary patrol server" > signal: "100" > mapUrl: "https://example.com/tiles/{z}/{x}/{y}.png" > mapIp: "203.0.113.10" > listenerPort: "30120" > differingOutbound: false > outboundIp: "" > enableMap: true > mapType: "NORMAL" > isStatic: false > liveMapFormat: 0 > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > deployMap: true > servers: > id: 1 > name: "Main Server" > description: "Primary patrol server" > signal: "100" > mapUrl: "https://example.com/tiles/{z}/{x}/{y}.png" > mapIp: "203.0.113.10" > listenerPort: "30120" > differingOutbound: false > outboundIp: "" > enableMap: true > mapType: "NORMAL" > isStatic: false > liveMapFormat: 0 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/general/servers" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "deployMap": true, > "servers": [ > { > "id": 1, > "name": "Main Server", > "description": "Primary patrol server", > "signal": "100", > "mapUrl": "https://example.com/tiles/{z}/{x}/{y}.png", > "mapIp": "203.0.113.10", > "listenerPort": "30120", > "differingOutbound": false, > "outboundIp": "", > "enableMap": true, > "mapType": "NORMAL", > "isStatic": false, > "liveMapFormat": 0 > } > ] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "servers": [ { "id": 1, "name": "Main Server", "description": "Primary patrol server", "signal": "100", "mapUrl": "https://example.com/tiles/{z}/{x}/{y}.png", "mapIp": "203.0.113.10", "listenerPort": "30120", "differingOutbound": false, "outboundIp": "", "enableMap": true, "mapType": "NORMAL", "isStatic": false, "liveMapFormat": 0 } ] } ``` ## Enumeration Values ### LIVE\_MAP\_FORMAT | Value | Description | | - | - | | `0` | `GTA_V` | | `1` | `ROBLOX` | # Upload Bodycam Recording Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/configuration/upload-bodycam-recording Upload a bodycam recording clip to Sonoran CAD through the dedicated v2 bodycam endpoint. > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Upload a single bodycam clip into Sonoran CAD's bodycam recordings system through a dedicated v2 endpoint. Uploaded clips expire after 24 hours. To keep a video hosted elsewhere, [register its URL](/cad/api-integration/api-endpoints-v2/general/configuration/register-external-bodycam-recording) instead. > [!NOTE] > > This API endpoint is available on **Free** and higher Sonoran CAD plans. The rolling `24` hour upload allowance depends on your plan. For more information, see our [pricing](/cad/pricing/faq). ## Endpoint `POST` `https://api.sonorancad.com/v2/general/bodycam-recordings` #### Request Type `multipart/form-data` #### Authentication Use standard v2 bearer authentication: | Header | Value | Description | | - | - | - | | `Authorization` | `Bearer YOUR_API_KEY` | Authenticates the request. | #### Form Fields | Name | Type | Required | Description | | - | - | - | - | | `file` | file | Yes | A single `.webm` clip to upload. | | `accountUuid` | string | Conditionally | Account UUID that owns the recording. Provide exactly one of `accountUuid`, `communityUserId`, `roblox`, or `discord`. | | `communityUserId` | string | Conditionally | Community user ID that owns the recording. Provide exactly one of `accountUuid`, `communityUserId`, `roblox`, or `discord`. | | `roblox` | integer | Conditionally | Roblox user ID linked to the account that owns the recording. Provide exactly one target identifier. | | `discord` | string | Conditionally | Discord user ID linked to the account that owns the recording. Provide exactly one target identifier. | | `durationMs` | number | Yes | Clip duration in milliseconds. Must be between `1` and `120000`. | | `identId` | number | No | Identifier ID associated with the clip. | | `unitNumber` | string | No | Unit number to store with the recording metadata. | | `unitLocation` | string | No | Unit location to store with the recording metadata. | The authenticated API key determines the community. You do **not** need to send `community`, `sessionId`, `username`, or `type=bodycam`. ## Upload Limits | Limit | Value | | - | - | | Max files per request | `1` | | Allowed file type | `.webm` | | Max file size | `6000000` bytes (`6 MB`) | | Max clip duration | `120000` ms (`120` seconds) | Bodycam uploads are also limited by your community's rolling `24` hour plan allowance: | Plan | Max uploaded bodycam minutes per 24 hours | | - | - | | Free | `10` | | Standard | `100` | | Pro | `1000` | ## Frontend Video Target The backend validates the file type, file size, and duration. It does **not** directly reject uploads by resolution or frame rate. To match the built-in Sonoran CAD frontend bodycam flow and stay within the `6 MB` upload limit, send clips using these target settings: | Setting | Target | | - | - | | Resolution | `960x540` | | Frame rate | `10 FPS` | | Format | `webm` | The built-in frontend bodycam capture requests `960x540` at `10 FPS`, and the recording uploader encodes clips as WebM with a `300000` bps video bitrate and `64000` bps audio bitrate. Third-party integrations should match those settings as closely as possible. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CAD, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID" > }) > > local file = assert(io.open("bodycam-clip.webm", "rb")) > local file_content = file:read("*a") > file:close() > > local response = sonoran.cad:uploadBodycamRecordingV2({ > accountUuid = "USER_ACCOUNT_UUID", > durationMs = 90000, > identId = 123, > unitNumber = "1A-12", > unitLocation = "Senora Fwy / Route 68", > fileName = "bodycam-clip.webm", > fileContent = file_content, > contentType = "video/webm" > }) > > print(response.success) > print(response.reason or "") > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const fs = require('fs'); > const Sonoran = require('sonoran.js'); > > const sonoran = Sonoran.instance({ > product: Sonoran.productEnums.CAD, > apiKey: 'YOUR_API_KEY', > communityId: 'YOUR_COMMUNITY_ID' > }); > > const response = await sonoran.cad.uploadBodycamRecordingV2({ > accountUuid: 'USER_ACCOUNT_UUID', > durationMs: 90000, > identId: 123, > unitNumber: '1A-12', > unitLocation: 'Senora Fwy / Route 68', > fileName: 'bodycam-clip.webm', > fileContent: fs.readFileSync('./bodycam-clip.webm'), > contentType: 'video/webm' > }); > > console.log(response); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > ) > > with open("bodycam-clip.webm", "rb") as clip: > response = instance.cad.uploadBodycamRecordingV2( > { > "accountUuid": "USER_ACCOUNT_UUID", > "durationMs": 90000, > "identId": 123, > "unitNumber": "1A-12", > "unitLocation": "Senora Fwy / Route 68", > "fileName": "bodycam-clip.webm", > "fileContent": clip.read(), > "contentType": "video/webm", > } > ) > > print(response) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID" > }); > > SonoranResponse response = await sonoran.Cad.uploadBodycamRecordingV2(new UploadBodycamRecordingV2Request > { > AccountUuid = "USER_ACCOUNT_UUID", > DurationMs = 90000, > IdentId = 123, > UnitNumber = "1A-12", > UnitLocation = "Senora Fwy / Route 68", > FileName = "bodycam-clip.webm", > FileContent = await File.ReadAllBytesAsync("bodycam-clip.webm"), > ContentType = "video/webm" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Upload Bodycam Recording" > version: "1.0.0" > description: "Upload a bodycam recording clip through the dedicated v2 bodycam endpoint." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/bodycam-recordings: > post: > summary: "Upload Bodycam Recording" > operationId: "uploadBodycamRecording" > requestBody: > required: true > content: > multipart/form-data: > schema: > type: "object" > required: > - "file" > - "durationMs" > properties: > file: > type: "string" > format: "binary" > accountUuid: > type: "string" > format: "uuid" > communityUserId: > type: "string" > durationMs: > type: "integer" > minimum: 1 > maximum: 120000 > identId: > type: "integer" > unitNumber: > type: "string" > unitLocation: > type: "string" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "array" > items: > type: "string" > example: > - "https://files.example.com/bodycam/community/unit/clip.webm" > 400: > description: "Validation or upload error" > content: > application/problem+json: > schema: > type: "object" > example: > title: "Unable to upload bodycam recording" > status: 400 > detail: "Bodycam uploads must be webm files." > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/bodycam-recordings" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --form "file=@bodycam-clip.webm;type=video/webm" \ > --form "accountUuid=USER_ACCOUNT_UUID" \ > --form "durationMs=90000" \ > --form "identId=123" \ > --form "unitNumber=1A-12" \ > --form "unitLocation=Senora Fwy / Route 68" > ``` ## Response Successful requests return the uploaded file URL list. ```json theme={null} [ "https://files.example.com/bodycam/community/unit/clip.webm" ] ``` ## Common Errors ```http theme={null} Provide exactly one of `accountUuid`, `communityUserId`, `roblox`, or `discord`. Account USER_ACCOUNT_UUID was not found in this community. File exceeds 6000000 bytes. Bodycam uploads must be webm files. Bodycam uploads are limited to 10 minutes per 24 hours for the FREE plan. Uploaded bodycam clip but failed to save recording metadata. ``` # Lookups Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/lookups v2 general lookup endpoints. The v2 general lookup endpoints search records by name, plate, typed values, and custom mapped fields. Lookup endpoints are rate limited to `30 requests per minute` per API key. ## Endpoints > [card] [Lookup Name Or Plate](/cad/api-integration/api-endpoints-v2/general/lookups/lookup-name-or-plate) > [card] [Lookup By Value](/cad/api-integration/api-endpoints-v2/general/lookups/lookup-by-value) > [card] [Lookup By Custom Search](/cad/api-integration/api-endpoints-v2/general/lookups/lookup-by-custom) # Lookup By Custom Search Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/lookups/lookup-by-custom Search records by a custom mapped field. `POST` `https://api.sonorancad.com/v2/general/lookups/custom` > **Rate limit:** `30 requests per minute` Authenticated v2 endpoints are rate limited per API key rather than per IP address. Search records by a custom lookup mapping. ## Request Body ```json theme={null} { "map": "drivers_license", "value": "D1234567", "types": [7], "partial": false } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:lookupCustomV2({ > map = 'vehicle', > value = 'ABC123', > types = {1}, > partial = true, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Call from a server-side FiveM resource using the exported CAD client: > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:lookupCustomV2({ > map = "vehicle", > value = "ABC123", > types = { 1 }, > partial = true > }) > print(response.success) > ``` > > JavaScript resources can use `exports.sonorancad.getCadClient()`. For .NET, construct a client from the protected CAD convars. Python is for external integrations, not FiveM resources. > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.lookupCustomV2({ > map: 'vehicle', > value: 'ABC123', > types: [1], > partial: true, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.lookupCustomV2({ > "map": 'vehicle', > "value": 'ABC123', > "types": [1], > "partial": True, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.lookupCustomV2(new LookupCustomV2Request > { > Map = "license_number", > Value = "DL-12345", > Types = new[] { 7 }, > Partial = true > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Lookup By Custom Search" > version: "1.0.0" > description: "Search records by a custom mapped field." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/lookups/custom: > post: > summary: "Lookup By Custom Search" > operationId: "lookupByCustomSearch" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 7 > id: 2451 > syncId: "citizen:1234" > name: "John Doe" > type: 7 > sections: > category: 0 > label: "Civilian Info" > fields: > label: "First Name" > value: "John" > uid: "first_name" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > map: "drivers_license" > value: "D1234567" > types: 7 > partial: false > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/lookups/custom" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "map": "drivers_license", > "value": "D1234567", > "types": [7], > "partial": false > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "recordTypeId": 7, "id": 2451, "syncId": "citizen:1234", "name": "John Doe", "type": 7, "sections": [ { "category": 0, "label": "Civilian Info", "fields": [ { "label": "First Name", "value": "John", "uid": "first_name" } ] } ] } ] ``` # Lookup By Value Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/lookups/lookup-by-value Search records by numeric, account-backed, or secret-backed values. `POST` `https://api.sonorancad.com/v2/general/lookups/by-value` > **Rate limit:** `30 requests per minute` Authenticated v2 endpoints are rate limited per API key rather than per IP address. Search records by a typed lookup value. ## Request Body Optional notification routing supports `notifyCommunityUserId` by default, or `notifyRoblox`, `notifyDiscord`, or `notifyAccountUuid`. ```json theme={null} { "searchType": "NUMBER", "value": "451", "notifyCommunityUserId": "player-1234", "types": [12] } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:lookupByValueV2({ > searchType = 'plate', > value = 'ABC123', > types = {1}, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Call from a server-side FiveM resource using the exported CAD client: > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:lookupByValueV2({ > searchType = "plate", > value = "ABC123", > types = { 1 } > }) > print(response.success) > ``` > > JavaScript resources can use `exports.sonorancad.getCadClient()`. For .NET, construct a client from the protected CAD convars. Python is for external integrations, not FiveM resources. > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.lookupByValueV2({ > searchType: 'plate', > value: 'ABC123', > types: [1], > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.lookupByValueV2({ > "searchType": 'plate', > "value": 'ABC123', > "types": [1], > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.lookupByValueV2(new LookupByValueV2Request > { > SearchType = "plate", > Value = "ABC123", > Types = new[] { 1 }, > Partial = true > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Lookup By Value" > version: "1.0.0" > description: "Search records by numeric, account-backed, or secret-backed values." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/lookups/by-value: > post: > summary: "Lookup By Value" > operationId: "lookupByValue" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 7 > id: 2451 > syncId: "citizen:1234" > name: "John Doe" > type: 7 > sections: > category: 0 > label: "Civilian Info" > fields: > label: "First Name" > value: "John" > uid: "first_name" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > searchType: "NUMBER" > value: "451" > notifyCommunityUserId: "player-1234" > types: 12 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/lookups/by-value" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "searchType": "NUMBER", > "value": "451", > "notifyCommunityUserId": "player-1234", > "types": [12] > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "recordTypeId": 7, "id": 2451, "syncId": "citizen:1234", "name": "John Doe", "type": 7, "sections": [ { "category": 0, "label": "Civilian Info", "fields": [ { "label": "First Name", "value": "John", "uid": "first_name" } ] } ] } ] ``` # Lookup Name Or Plate Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/lookups/lookup-name-or-plate Search records by name or plate values. `POST` `https://api.sonorancad.com/v2/general/lookups` > **Rate limit:** `30 requests per minute` Authenticated v2 endpoints are rate limited per API key rather than per IP address. Search records by name and plate values. ## Request Body Optional notification routing supports `notifyCommunityUserId` by default, or `notifyRoblox`, `notifyDiscord`, or `notifyAccountUuid`. Send either a name search using `first`, `last`, and optional `mi`, or send a `plate` search. Unused fields may be omitted or left blank, but at least one name or plate value must be provided. ```json theme={null} { "first": "John", "last": "Doe", "mi": "", "plate": "", "notifyCommunityUserId": "player-1234", "types": [7, 12], "partial": true } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:lookupV2({ > first = 'John', > last = 'Doe', > mi = 'A', > plate = 'ABC123', > types = {1}, > partial = true, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Call from a server-side FiveM resource using the exported CAD client: > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:lookupV2({ > first = "John", > last = "Doe", > plate = "ABC123", > types = { 1 }, > partial = true > }) > print(response.success) > ``` > > JavaScript resources can use `exports.sonorancad.getCadClient()`. For .NET, construct a client from the protected CAD convars. Python is for external integrations, not FiveM resources. > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.lookupV2({ > first: 'John', > last: 'Doe', > mi: 'A', > plate: 'ABC123', > types: [1], > partial: true, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.lookupV2({ > "first": 'John', > "last": 'Doe', > "mi": 'A', > "plate": 'ABC123', > "types": [1], > "partial": True, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.lookupV2(new LookupV2Request > { > First = "John", > Last = "Doe", > Mi = "A", > Plate = "ABC123", > Types = new[] { 1 }, > Partial = true > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Lookup Name Or Plate" > version: "1.0.0" > description: "Search records by name or plate values." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/lookups: > post: > summary: "Lookup Name Or Plate" > operationId: "lookupNameOrPlate" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "array" > items: > type: "object" > example: > - > recordTypeId: 7 > id: 2451 > syncId: "citizen:1234" > name: "John Doe" > type: 7 > sections: > category: 0 > label: "Civilian Info" > fields: > label: "First Name" > value: "John" > uid: "first_name" > - > recordTypeId: 12 > id: 451 > name: "Incident Report" > type: 9 > sections: > category: 0 > label: "Report Details" > fields: > label: "Case Number" > value: "SC-2026-001" > uid: "case_number" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > first: "John" > last: "Doe" > mi: "" > plate: "" > notifyCommunityUserId: "player-1234" > types: > - 7 > - 12 > partial: true > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/lookups" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "first": "John", > "last": "Doe", > "mi": "", > "plate": "", > "notifyCommunityUserId": "player-1234", > "types": [7, 12], > "partial": true > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "recordTypeId": 7, "id": 2451, "syncId": "citizen:1234", "name": "John Doe", "type": 7, "sections": [ { "category": 0, "label": "Civilian Info", "fields": [ { "label": "First Name", "value": "John", "uid": "first_name" } ] } ] }, { "recordTypeId": 12, "id": 451, "name": "Incident Report", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "label": "Case Number", "value": "SC-2026-001", "uid": "case_number" } ] } ] } ] ``` # Records Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records v2 record endpoints and custom record payload reference. The v2 record API returns the same custom record structure used by the CAD. For most create, update, and draft requests, use a template with `useDictionary: true` and send `replaceValues` keyed by field `uid`. Send the full structure only when an integration must control sections or data that dictionary replacement does not support. ## Endpoints > [card] [Get Templates](/cad/api-integration/api-endpoints-v2/general/records/get-templates) > [card] [Get Template](/cad/api-integration/api-endpoints-v2/general/records/get-template) > [card] [Create Record](/cad/api-integration/api-endpoints-v2/general/records/create-record) > [card] [Update Record](/cad/api-integration/api-endpoints-v2/general/records/update-record) > [card] [Delete Record](/cad/api-integration/api-endpoints-v2/general/records/delete-record) > [card] [Send Draft](/cad/api-integration/api-endpoints-v2/general/records/send-draft) ## Record Structure ```json theme={null} { "recordTypeId": 120, "id": 451, "syncUniqueId": "", "syncId": "", "name": "Incident Report", "img": "", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "type": "text", "label": "Case Number", "value": "SC-2026-001", "size": 6, "data": {}, "options": [], "isPreviewed": true, "isSupervisor": false, "isRequired": true, "unique": false, "readOnly": false, "mask": "", "maskReverse": false, "dbMap": false, "isFromSync": false, "uid": "case_number", "dependency": { "type": "", "fid": "", "acceptableValues": [] }, "placeholder": "" } ], "searchCiv": false, "searchVeh": false, "enableDuplicate": false, "isDuplicate": false, "dependency": { "type": "", "fid": "", "acceptableValues": [] } } ], "previewFields": [] } ``` ### Record Properties | Property | Type | Description | | - | - | - | | `recordTypeId` | integer | Community template ID. Fixed built-in templates use their `type` value; custom templates use the ID returned by the templates endpoint. | | `id` | integer | Individual stored record ID. A template has no stored record ID. | | `syncUniqueId` | string | Database Sync primary/unique identifier, when configured. | | `syncId` | string | Database Sync identifier, when configured. | | `name` | string | Display name of the record or template. | | `img` | string | Record image URL. | | `type` | integer | Record family enum. See below. | | `sections` | array | Ordered section objects. Full records and templates contain these. | | `previewFields` | array | Lightweight lookup values. Lookup responses may return these with `sections: []`. | ### Record Type Enum These are the live record families accepted by the record system. Values omitted from this table are removed or internal-only. | Value | Name | Template ID | | -: | - | - | | `2` | Warrant | `2` | | `3` | BOLO | `3` | | `4` | License | `4` | | `5` | Vehicle Registration | `5` | | `7` | Character | `7` | | `8` | Police Record | Community-specific | | `9` | Police Report | Community-specific | | `10` | Medical Record | Community-specific | | `11` | Medical Report | Community-specific | | `12` | Fire Record | Community-specific | | `13` | Fire Report | Community-specific | | `14` | DMV Record | Community-specific | | `15` | Lawyer Record | Community-specific | | `16` | Lawyer Report | Community-specific | ## Section Structure | Property | Type | Description | | - | - | - | | `category` | integer | Section category enum. | | `label` | string | Section heading. | | `fields` | array | Ordered fields. Premade sections store their payload in `fields[0].data`. | | `searchCiv` | boolean | Shows the civilian search control on a custom section. | | `searchVeh` | boolean | Shows the vehicle search control on a custom section. | | `enableDuplicate` | boolean | Allows users to duplicate the section while editing a record. | | `isDuplicate` | boolean | Marks a duplicated section that the user may remove. | | `dependency` | object | Optional visibility rule. | ### Section Category Enum The following categories are authored by the current custom record editor. | Value | Name | `fields[0].data` | | -: | - | - | | `0` | Custom | Each field uses its own `value` or `data`. | | `1` | Flags | `{ "flags": ["FLAG NAME"] }` | | `5` | Speed | Speed detail object shown below. | | `6` | Charges | `{ "charges": [...] }` | | `9` | Record Link | `{ "records": [...] }` | | `10` | Diagram | `{ "diagram": {...}, "img": "..." }` | The editor's **Civilian** and **Vehicle** actions copy sections from the current character or vehicle template. They do not create separate section categories in new templates. Older agency, civilian, vehicle, and status category payloads remain readable for compatibility but should not be authored by new integrations. ### Premade Section Data Flags: ```json theme={null} { "flags": ["ARMED", "VIOLENT"] } ``` Speed: ```json theme={null} { "vehicleSpeed": "75", "speedLimit": "55", "paceType": "RADAR", "date": "2026/08/31", "time": "14:30", "fine": 250 } ``` Charges: ```json theme={null} { "charges": [ { "arrestCharge": "Reckless Driving", "arrestChargeType": "Misdemeanor", "arrestChargeCounts": 1, "arrestChargeCode": "TRF-101", "arrestBondType": "Cash", "arrestBondAmount": 500, "jailTime": "0" } ] } ``` Record links: ```json theme={null} { "records": [ { "link": 451, "type": 9, "label": "Incident Report #451" } ] } ``` `link` is the linked record's `syncUniqueId` when present, otherwise its numeric `id`. Diagram data contains the CAD diagram builder's Fabric canvas JSON in `diagram` and an optional rendered image URL in `img`; copy this object from a template or existing record instead of constructing Fabric objects manually. ## Field Structure | Property | Type | Description | | - | - | - | | `type` | string | Field type enum. Values are case-sensitive in the editor; use the spelling shown below. | | `label` | string | Display label. | | `value` | string | Field value for normal fields. | | `size` | integer | Grid width from `1` through `12`. | | `data` | object | Structured value for checkboxes, labels, and premade sections. | | `options` | string\[] | Options for `select` and `checkboxes`. | | `isPreviewed` | boolean | Includes the field in lightweight lookup previews. | | `isSupervisor` | boolean | Requires the applicable supervisor permission to edit in the CAD. | | `isRequired` | boolean | Requires a value before the CAD submits the record. | | `unique` | boolean | Enforces uniqueness for supported text and unit fields in custom sections. | | `readOnly` | boolean | Prevents editing in the CAD. Useful for generated and auto-filled fields. | | `mask` | string | Input mask for `text`/`random`, or `YYYY/MM/DD`, `DD/MM/YYYY`, or `MM/DD/YYYY` for `date`. | | `maskReverse` | boolean | Applies a text mask from the end of the value. | | `dbMap` | boolean | Allows Database Sync mapping where that record family supports it. | | `isFromSync` | boolean | Indicates that Database Sync supplied the current value. | | `uid` | string | Stable field key used by `replaceValues`, dependencies, DB mapping, and merge logic. Do not include `'`, `#`, or `-`. | | `dependency` | object | Optional visibility rule. | | `placeholder` | string | Placeholder for input-backed field types. | ### Field Type Enum | Value | Value storage | Behavior | | - | - | - | | `text` | `value` | Single-line text input. | | `textarea` | `value` | Multi-line text input. | | `address` | `value` | Address input with CAD address search support. | | `select` | `value` | One value from `options`. | | `checkboxes` | `data.flags` | Zero or more values from `options`. | | `date` | `value` | Date input using `mask`. | | `time` | `value` | Time input. | | `image` | `value` | Image URL. | | `status` | `value` | Built-in record status selector. | | `label` | `data` | Display-only label; `data.color` is a color string and `data.size` is `5` through `50`. | | `id` | `value` | Read-only stored record ID. | | `random` | `value` | Generates a value from `mask` in the CAD. | | `UNIT_NUMBER` | `value` | Auto-fills the active unit number in the CAD. | | `UNIT_NAME` | `value` | Auto-fills the active unit name. | | `UNIT_RANK` | `value` | Auto-fills the active unit rank. | | `UNIT_AGENCY` | `value` | Auto-fills the active unit agency/district. | | `UNIT_DEPARTMENT` | `value` | Auto-fills the active unit department. | | `UNIT_SUBDIVISION` | `value` | Auto-fills the active unit subdivision. | | `UNIT_AGENCY_LOCATION` | `value` | Auto-fills the active agency location. | | `UNIT_AGENCY_ZIP` | `value` | Auto-fills the active agency ZIP/postal code. | | `UNIT_LOCATION` | `value` | Auto-fills the active unit location. | For `checkboxes`, use this field shape: ```json theme={null} { "type": "checkboxes", "options": ["OPTION A", "OPTION B"], "data": { "flags": ["OPTION A"] } } ``` The `status` field stores string enum values: | Record family | `"0"` | `"1"` | `"2"` | | - | - | - | - | | Warrant and other records | Active/Open | Closed | — | | License, Vehicle Registration, DMV | Pending | Approved | Rejected | ## Dependencies Sections and fields use the same dependency object: ```json theme={null} { "type": "EQUAL", "fid": "status", "acceptableValues": ["1"] } ``` | `type` | Visible when the field identified by `fid`... | | - | - | | `EQUAL` | Exactly matches an acceptable value. For checkboxes, exactly one selected value must match. | | `NOTEQUAL` | Does not match the acceptable values. | | `CONTAINS` | Contains an acceptable value. For checkboxes, at least one selected value must match. | | empty string | Uses `CONTAINS` behavior. | Use an empty `fid` and empty `acceptableValues` when no dependency is required. ## Dictionary Replacement `replaceValues` keys must match field `uid` values from the selected template. ```json theme={null} { "useDictionary": true, "recordTypeId": 120, "replaceValues": { "case_number": "SC-2026-001", "summary": "Vehicle stopped after a traffic violation.", "risk_flags": { "flags": ["ARMED"] } } } ``` For custom-section fields, normal values populate `value`; a `checkboxes` replacement must be an object containing `flags`. For Flags, Speed, Charges, and Record Link sections, use the first field's `uid` and provide the complete section data object shown above. Diagram data is not replaced by dictionary mode; submit a full `record` object when it must be changed. ## Preview Fields Lightweight lookup responses may omit full sections and return: ```json theme={null} { "previewFields": [ { "uid": "case_number", "label": "Case Number", "type": "text", "value": "SC-2026-001", "category": 0 } ], "sections": [] } ``` `previewFields` contains fields marked `isPreviewed`, plus flags, charges, and the character date-of-birth field used by lookup results. # Create Record Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records/create-record Create a new custom record using template replacement values. `POST` `https://api.sonorancad.com/v2/general/records` > **Rate limit:** `30 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Create a custom record for a target account. ## Request Body Use `communityUserId` by default, or provide exactly one of `roblox`, `discord`, or `accountUuid` as the target user. The recommended path is to set `useDictionary` to `true`, provide the target `recordTypeId`, and pass `replaceValues` keyed by the template field placeholders. This avoids building the full record section and field structure yourself. Advanced integrations may provide a full `record` object instead of `useDictionary`, `recordTypeId`, and `replaceValues`, but this is not recommended unless you need full control over the raw record payload. This endpoint is also used to create civilian characters. The key difference is which template `recordTypeId` you submit. ## Choosing a `recordTypeId` Use `GET /v2/general/templates` first if you need to inspect the templates available in your community. Some built-in template families use fixed IDs from the backend, while custom templates keep the community-specific `recordTypeId` shown by the templates endpoint. | Record kind | `type` | `recordTypeId` to use | Notes | | - | - | - | - | | Character | `7` | `7` | Creates a civilian character for the target account. | | Warrant | `2` | `2` | Built-in required type. | | BOLO | `3` | `3` | Built-in required type. | | License | `4` | `4` | Built-in required type. | | Vehicle Registration | `5` | `5` | Built-in required type. | | Custom Police Record | `8` | Community template ID | Check `GET /v2/general/templates`. | | Custom Police Report | `9` | Community template ID | Check `GET /v2/general/templates`. | | Custom Medical Record | `10` | Community template ID | Check `GET /v2/general/templates`. | | Custom Medical Report | `11` | Community template ID | Check `GET /v2/general/templates`. | | Custom Fire Record | `12` | Community template ID | Check `GET /v2/general/templates`. | | Custom Fire Report | `13` | Community template ID | Check `GET /v2/general/templates`. | | Custom DMV Record | `14` | Community template ID | Check `GET /v2/general/templates`. | | Custom Lawyer Record | `15` | Community template ID | Check `GET /v2/general/templates`. | | Custom Lawyer Report | `16` | Community template ID | Check `GET /v2/general/templates`. | If you are creating a character, send the character template ID (`7`) or the raw character record payload with `type: 7`. For anything else, use the template ID returned by the templates endpoint for that record. ## Character Example This example creates a civilian character for the target user by selecting the built-in character template: ```json theme={null} { "communityUserId": "player-1234", "useDictionary": true, "recordTypeId": 7, "replaceValues": { "first": "John", "last": "Doe", "dob": "01/01/1995" } } ``` For a non-character custom record, the same endpoint looks like this: ```json theme={null} { "communityUserId": "player-1234", "useDictionary": true, "recordTypeId": 12, "replaceValues": { "plate": "ABC123" } } ``` If you need to submit a fully assembled record, you can provide `record` instead. This is an advanced option and is not recommended for most integrations: ```json theme={null} { "communityUserId": "player-1234", "record": { "type": 9, "name": "Incident Report", "sections": [] } } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:createRecordV2({ > communityUserId = 'player-1234', > useDictionary = true, > recordTypeId = 12, > replaceValues = { > ["case_number"] = "SC-2026-001" > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:createRecordV2({ > communityUserId = 'player-1234', > useDictionary = true, > recordTypeId = 5, > replaceValues = { > ["plate"] = "ABC123" > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.createRecordV2({ > communityUserId: 'player-1234', > useDictionary: true, > recordTypeId: 12, > replaceValues: { > 'case_number': 'SC-2026-001', > }, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.createRecordV2({ > "communityUserId": 'player-1234', > "useDictionary": True, > "recordTypeId": 12, > "replaceValues": { > "case_number": "SC-2026-001" > }, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.createRecordV2(new CreateRecordV2Request > { > AccountUuid = "00000000-0000-0000-0000-000000000000", > UseDictionary = true, > RecordTypeId = 12, > ReplaceValues = new Dictionary > { > ["case_number"] = "SC-2026-001" > } > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Create Record" > version: "1.0.0" > description: "Create a new custom record using template replacement values." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/records: > post: > summary: "Create Record" > operationId: "createRecord" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 12 > id: 451 > name: "Incident Report" > type: 9 > sections: > category: 0 > label: "Report Details" > fields: > label: "Case Number" > value: "SC-2026-001" > uid: "case_number" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > roblox: 123456789 > useDictionary: true > recordTypeId: 12 > replaceValues: > plate: "ABC123" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/records" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234", > "useDictionary": true, > "recordTypeId": 12, > "replaceValues": { > "plate": "ABC123" > } > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "recordTypeId": 12, "id": 451, "name": "Incident Report", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "label": "Case Number", "value": "SC-2026-001", "uid": "case_number" } ] } ] } ``` # Delete Record Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records/delete-record Remove a custom record by record ID. `DELETE` `https://api.sonorancad.com/v2/general/records/{recordId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Delete a custom record by its record ID. ## Path Parameters | Name | Type | Description | | - | - | - | | `recordId` | integer | Record ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:removeRecordV2(501) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:removeRecordV2(501) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.removeRecordV2(501); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.removeRecordV2(501) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.removeRecordV2(451); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Delete Record" > version: "1.0.0" > description: "Remove a custom record by record ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/records/{recordId}: > delete: > summary: "Delete Record" > operationId: "deleteRecord" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordId: 451 > parameters: > - > description: "Record ID." > name: "recordId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > --url "https://api.sonorancad.com/v2/general/records/451" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "recordId": 451 } ``` # Get Template Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records/get-template Retrieve a single record template by record type ID. `GET` `https://api.sonorancad.com/v2/general/templates/{recordTypeId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return one record template by its record type ID. ## Path Parameters | Name | Type | Description | | - | - | - | | `recordTypeId` | integer | Custom record template ID. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getTemplatesV2(1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getTemplatesV2(1) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getTemplatesV2(1); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getTemplatesV2(1) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getTemplatesV2(1); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Template" > version: "1.0.0" > description: "Retrieve a single record template by record type ID." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/templates/{recordTypeId}: > get: > summary: "Get Template" > operationId: "getTemplate" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 12 > id: 0 > name: "Incident Report" > type: 9 > sections: > category: 0 > label: "Report Details" > fields: > label: "Case Number" > value: "" > uid: "case_number" > parameters: > - > description: "Custom record template ID." > name: "recordTypeId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/templates/12" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "recordTypeId": 12, "id": 0, "name": "Incident Report", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "label": "Case Number", "value": "", "uid": "case_number" } ] } ] } ``` # Get Templates Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records/get-templates Retrieve all record templates for the authenticated community. `GET` `https://api.sonorancad.com/v2/general/templates` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Return every record template configured for the authenticated community. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:getTemplatesV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:getTemplatesV2() > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getTemplatesV2(); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getTemplatesV2() > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getTemplatesV2(); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Templates" > version: "1.0.0" > description: "Retrieve all record templates for the authenticated community." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/templates: > get: > summary: "Get Templates" > operationId: "getTemplates" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 12 > id: 0 > name: "Incident Report" > type: 9 > sections: > category: 0 > label: "Report Details" > fields: > label: "Case Number" > value: "" > uid: "case_number" > security: > - > bearerAuth: > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/general/templates" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json`. ```json theme={null} [ { "recordTypeId": 12, "id": 0, "name": "Incident Report", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "label": "Case Number", "value": "", "uid": "case_number" } ] } ] } ] ``` # Send Draft Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records/send-draft Build a draft record from a template and optionally send it to an active account. `POST` `https://api.sonorancad.com/v2/general/record-drafts` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Build a draft record from a template and, when a target account is provided, send it to the user over the active websocket session. ## Request Body You can optionally route the draft to a connected user with `communityUserId` by default, or with `roblox`, `discord`, or `accountUuid`. ```json theme={null} { "recordTypeId": 12, "replaceValues": { "{{plate}}": "ABC123" }, "communityUserId": "player-1234" } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:sendRecordDraftV2({ > recordTypeId = 1, > replaceValues = { firstName = 'John', lastName = 'Doe' }, > communityUserId = 'player-1234', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:sendRecordDraftV2({ > recordTypeId = 1, > replaceValues = { firstName = 'John', lastName = 'Doe' }, > apiId = '1234567890', > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.sendRecordDraftV2({ > recordTypeId: 1, > replaceValues: { firstName: 'John', lastName: 'Doe' }, > communityUserId: 'player-1234', > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.sendRecordDraftV2({ > "recordTypeId": 1, > "replaceValues": { "firstName": 'John', "lastName": 'Doe' }, > "communityUserId": 'player-1234', > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.sendRecordDraftV2(new SendRecordDraftV2Request > { > RecordTypeId = 12, > ReplaceValues = new Dictionary > { > ["case_number"] = "SC-2026-001" > }, > AccountUuid = "00000000-0000-0000-0000-000000000000" > }); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Send Draft" > version: "1.0.0" > description: "Build a draft record from a template and optionally send it to an active account." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/record-drafts: > post: > summary: "Send Draft" > operationId: "sendDraft" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 12 > id: 0 > name: "Incident Report" > type: 9 > sections: > category: 0 > label: "Report Details" > fields: > label: "Case Number" > value: "" > uid: "case_number" > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 12 > replaceValues: > {{plate}}: "ABC123" > communityUserId: "player-1234" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/general/record-drafts" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "recordTypeId": 12, > "replaceValues": { > "{{plate}}": "ABC123" > }, > "communityUserId": "player-1234" > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "recordTypeId": 12, "id": 0, "name": "Incident Report", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "label": "Case Number", "value": "", "uid": "case_number" } ] } ] } ``` # Update Record Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/general/records/update-record Update an existing custom record by record ID using template replacement values. `PATCH` `https://api.sonorancad.com/v2/general/records/{recordId}` > **Rate limit:** `10 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Update a custom record using template replacement values. ## Path Parameters | Name | Type | Description | | - | - | - | | `recordId` | integer | Record ID. | ## Request Body The recommended path is to set `useDictionary` to `true`, provide the target `templateId`, and pass `replaceValues` keyed by the template field placeholders. This avoids rebuilding the full record section and field structure. Advanced integrations may provide a full `record` object instead of `useDictionary`, `templateId`, and `replaceValues`, but this is not recommended unless you need full control over the raw record payload. When an account target is needed for the update flow, use `communityUserId` by default, or provide `roblox`, `discord`, or `accountUuid`. ```json theme={null} { "communityUserId": "player-1234", "useDictionary": true, "templateId": 12, "replaceValues": { "plate": "XYZ987" } } ``` If you need to submit a fully assembled record, you can provide `record` instead. This is an advanced option and is not recommended for most integrations: ```json theme={null} { "communityUserId": "player-1234", "record": { "type": 9, "name": "Incident Report", "sections": [] } } ``` ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- 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:updateRecordV2(501, { > communityUserId = 'player-1234', > useDictionary = true, > templateId = 12, > replaceValues = { > ["plate"] = "XYZ987" > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab only when calling the v2 API from the server side of an in-game FiveM resource. > > * **Sonoran.lua** and **Sonoran.js:** use the `sonorancad` export to get the ready CAD client. > * **Sonoran.Net:** FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client. > * **Sonoran.py:** FiveM does not run Python resources; use the Python tab for external integrations. > > The API key is stored in `sonoran_apiKey` as a protected FiveM convar. FiveM restricts a convar after `add_convar_permission` is configured, so only explicitly permitted resources can read it. Grant another resource access with `add_convar_permission your-resource-name read sonoran_apiKey`. If you change the API key in `config.json`, fully restart the `sonorancad` resource before reading the updated convar value. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > ``` > > **Sonoran.js** > > ```javascript theme={null} > const cad = exports["sonorancad"].getCadClient(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverIdRaw = API.GetConvar("sonoran_serverId", "1"); > var serverId = int.TryParse(serverIdRaw, out var parsedServerId) ? parsedServerId : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > ``` > > After getting the Lua export client: > > ```lua theme={null} > local response = cad:updateRecordV2(501, { > communityUserId = 'player-1234', > useDictionary = true, > templateId = 12, > replaceValues = { > ["plate"] = "XYZ987" > }, > }) > > -- Inspect response.success, response.data, or response.reason as needed. > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab for the export-based client. > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.updateRecordV2(501, { > communityUserId: 'player-1234', > useDictionary: true, > templateId: 12, > replaceValues: { > 'plate': 'XYZ987', > }, > }); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > # Sonoran.py is for external Python integrations; FiveM resources should use the SonoranCADFiveM tab. > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.updateRecordV2(501, { > "communityUserId": 'player-1234', > "useDictionary": True, > "templateId": 12, > "replaceValues": { > "plate": "XYZ987" > }, > }) > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > // For SonoranCADFiveM in-game usage, see the SonoranCADFiveM tab; .NET creates a fresh client from convars. > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.updateRecordV2( > 451, > new UpdateRecordV2Request > { > AccountUuid = "00000000-0000-0000-0000-000000000000", > UseDictionary = true, > RecordTypeId = 12, > ReplaceValues = new Dictionary > { > ["case_number"] = "SC-2026-002" > } > } > ); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text** to create a single-endpoint request collection for this route. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Update Record" > version: "1.0.0" > description: "Update an existing custom record by record ID using template replacement values." > servers: > - > url: "https://api.sonorancad.com" > paths: > /v2/general/records/{recordId}: > patch: > summary: "Update Record" > operationId: "updateRecord" > responses: > 200: > description: "Successful response" > content: > application/json: > schema: > type: "object" > example: > recordTypeId: 12 > id: 451 > name: "Incident Report" > type: 9 > sections: > category: 0 > label: "Report Details" > fields: > label: "Case Number" > value: "SC-2026-001" > uid: "case_number" > parameters: > - > description: "Record ID." > name: "recordId" > in: "path" > schema: > type: "integer" > required: true > security: > - > bearerAuth: > requestBody: > required: true > content: > application/json: > schema: > type: "object" > example: > communityUserId: "player-1234" > useDictionary: true > templateId: 12 > replaceValues: > plate: "XYZ987" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > --url "https://api.sonorancad.com/v2/general/records/451" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "communityUserId": "player-1234", > "useDictionary": true, > "templateId": 12, > "replaceValues": { > "plate": "XYZ987" > } > }' > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "recordTypeId": 12, "id": 451, "name": "Incident Report", "type": 9, "sections": [ { "category": 0, "label": "Report Details", "fields": [ { "label": "Case Number", "value": "SC-2026-001", "uid": "case_number" } ] } ] } ``` # Iframe API Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/iframe-endpoints Exchange local data and commands with an embedded Sonoran CAD frontend. The iframe API uses the browser [`window.postMessage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage) interface to exchange messages between Sonoran CAD and the page embedding it. These messages stay on the local client; they are not HTTP API requests and do not require a community API key. The following iframe integrations are available: * [Notepad Sync](/cad/api-integration/api-endpoints-v2/iframe-endpoints/notepad-sync) provides bidirectional synchronization of the user's locally stored CAD notes and runs name or plate searches from external text selections. * [Screenshot Capture](/cad/api-integration/api-endpoints-v2/iframe-endpoints/screenshot-capture) requests a PNG capture of the current CAD viewport. * [Set Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/set-community-link#cad-frontend-iframe-event) documents the account-link event emitted after a successful CAD login. ## Message Security Sonoran CAD only accepts iframe API requests from its direct parent window. The parent must also validate messages received from CAD: ```javascript theme={null} const cadFrame = document.getElementById('cadFrame'); const cadOrigin = new URL(cadFrame.src).origin; window.addEventListener('message', (event) => { if (event.source !== cadFrame.contentWindow || event.origin !== cadOrigin) return; // Handle supported event.data.type values here. }); ``` Send requests to the exact CAD origin whenever the iframe has a standard HTTP or HTTPS URL: ```javascript theme={null} cadFrame.contentWindow.postMessage(message, cadOrigin); ``` FiveM NUI pages can have an opaque origin. Sonoran CAD accepts messages from its direct parent in that environment and replies directly to the verified sender. Keep the iframe and its parent under trusted control. ## Common Fields Iframe API messages are plain objects with a namespaced `type`. A request may include an opaque string or number in `requestId`; the corresponding response echoes it so callers can match concurrent operations. # Notepad Sync Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/iframe-endpoints/notepad-sync Bidirectionally synchronize locally stored CAD notepad entries with an iframe parent. The notepad iframe API keeps an in-game notepad synchronized with the notepad inside an embedded Sonoran CAD frontend. Notes remain in the CAD frontend's local browser storage and are not sent to the Sonoran CAD backend. Each note has the following shape: ```json theme={null} { "id": "734c8df5-af36-4607-bb01-65e4d8ee64b0", "title": "Traffic Stop", "notes": "Blue Sultan, plate 4QXR128", "metadata": { "lookups": [ { "start": 19, "end": 26, "text": "4QXR128", "type": "PLATE", "search": { "first": "", "last": "", "mi": "", "plate": "4QXR128" }, "result": { "version": 2, "title": "State Return", "header": null, "sections": [] } } ] } } ``` `id` is a stable identifier. `metadata` is an optional JSON object for integration-specific data and linked lookup annotations. CAD automatically adds an ID and empty metadata object to older notes that do not have them. When a CAD user highlights text and runs a name or plate lookup, CAD stores the linked text range, search object, and latest NCIC state-return snapshot in `metadata.lookups`. Preserve `metadata` when syncing notes from the iframe so users can preview the results or click the linked text to repeat the lookup. `result` is added after the lookup completes and uses the same state-return structure displayed in CAD call notes. ## Get Notes Request the full note list after the iframe loads: ```javascript theme={null} cadFrame.contentWindow.postMessage({ type: 'scad:notepad:get', requestId: 'initial-sync', }, cadOrigin); ``` CAD responds with: ```json theme={null} { "type": "scad:notepad:state", "requestId": "initial-sync", "notes": [] } ``` ## Set Notes Send the complete note list whenever the in-game notepad adds, edits, or deletes a note: ```javascript theme={null} cadFrame.contentWindow.postMessage({ type: 'scad:notepad:set', requestId: 'save-notes', notes: [ { id: '734c8df5-af36-4607-bb01-65e4d8ee64b0', title: 'Traffic Stop', notes: 'Blue Sultan, plate 4QXR128', metadata: {}, }, ], }, cadOrigin); ``` CAD stores the list locally, updates an open CAD notepad, and responds with the canonical list in `scad:notepad:changed`. If a note does not include `id` or `metadata`, CAD adds them in the response. ## Listen for CAD Changes CAD emits the full note list whenever notes are changed in CAD and after applying `scad:notepad:set`: ```json theme={null} { "type": "scad:notepad:changed", "requestId": "save-notes", "notes": [ { "id": "734c8df5-af36-4607-bb01-65e4d8ee64b0", "title": "Traffic Stop", "notes": "Blue Sultan, plate 4QXR128", "metadata": {} } ] } ``` Changes made directly in CAD do not include `requestId`. Replace the in-game note list with the received `notes` array to keep both sides synchronized. If `scad:notepad:set` does not contain a `notes` array, CAD responds with `scad:notepad:error` and `error: "invalid_notes"`. ## Search an External Selection Send `scad:notepad:lookup` when a user highlights a name or plate in your external notepad and clicks your search button. CAD runs its normal lookup, opens the lookup tab, adds a link to the selected note text, and synchronizes the NCIC state-return snapshot through `scad:notepad:changed`. The CAD notepad does not need to be open. The user must be logged in on the Police, Dispatch, EMS, or Fire page with a connected CAD session. Searches use that session's existing permissions and record filters; this event does not grant additional access. First synchronize the note using `scad:notepad:set` and wait for its `scad:notepad:changed` response. Use the canonical note ID returned by CAD. Then send: ```javascript theme={null} cadFrame.contentWindow.postMessage({ type: 'scad:notepad:lookup', requestId: 'search-plate-1', noteId: '734c8df5-af36-4607-bb01-65e4d8ee64b0', lookupType: 'PLATE', start: 19, end: 26, text: '4QXR128', }, cadOrigin); ``` This example selects the plate in `Blue Sultan, plate 4QXR128`. `start` is inclusive and `end` is exclusive, using JavaScript string offsets (UTF-16 code units), like a textarea's `selectionStart` and `selectionEnd`. `text` must exactly match `note.notes.slice(start, end)`, be nonempty, and have no leading or trailing whitespace. Trim the selected range and adjust its offsets before sending if necessary. Use `lookupType: 'NAME'` for names. CAD accepts one to three whitespace-separated name parts: `John` searches the first name, `John Smith` searches first and last names, and `John Michael Smith` also searches middle initial `M`. `PLATE` searches the selected text as the plate. You do not need to construct the search object or NCIC result metadata yourself. For an external textarea: ```javascript theme={null} function searchSelection(editor, noteId, lookupType) { const selected = editor.value.slice(editor.selectionStart, editor.selectionEnd); const text = selected.trim(); if (!text) return; const start = editor.selectionStart + selected.indexOf(text); cadFrame.contentWindow.postMessage({ type: 'scad:notepad:lookup', requestId: crypto.randomUUID(), noteId, lookupType, start, end: start + text.length, text, }, cadOrigin); } ``` ### Responses and Synchronization CAD sends `scad:notepad:changed` with the request ID when it adds the link, and again when it stores the result. Preserve the complete metadata, including CAD-generated lookup IDs, when editing or syncing notes. Overlapping lookup links are replaced; other links and integration metadata are preserved. After the search completes, CAD also sends: ```javascript theme={null} { type: 'scad:notepad:lookup:result', requestId: 'search-plate-1', noteId: '734c8df5-af36-4607-bb01-65e4d8ee64b0', lookup: { id: 'cad-generated-lookup-id', start: 19, end: 26, text: '4QXR128', type: 'PLATE', search: { first: '', last: '', mi: '', plate: '4QXR128' }, result: { /* CAD-generated NCIC state-return snapshot */ }, }, noteUpdated: true, } ``` `noteUpdated` is false if the note or link was deleted or the linked text changed while the search ran. CAD still returns the search result but does not recreate the removed note or overwrite the changed selection. Unrelated edits are preserved. After completion, click the synced link in CAD to repeat the search, or send another lookup request from the external script. Treat received `scad:notepad:changed` messages as state updates; do not echo them back as `scad:notepad:set` or automatically trigger another lookup. Metadata alone never starts a search. Changes made through the CAD notepad continue to use the existing change events without a request ID. ### Errors Errors use `scad:notepad:error` with the original `requestId` and one of these `error` values: | Error | Meaning | | - | - | | `note_not_found` | The note ID is not in the synchronized list. | | `invalid_lookup_type` | Use `NAME` or `PLATE`. | | `invalid_selection` | The range or text is invalid or no longer matches the stored note. Resync before retrying. | | `invalid_name` | The selected name contains more than three parts. | | `lookup_unavailable` | CAD is not connected on a supported emergency role page. | | `lookup_in_progress` | Another iframe lookup is pending. Wait for its result or error before sending another. | | `lookup_timeout` | No result arrived within 30 seconds, for example after navigating away or closing the lookup. | | `lookup_failed` | CAD could not start the lookup. | Only one iframe lookup can be pending at a time. A timeout or failure can leave the linked annotation without a result; the user can click it in CAD or explicitly retry the request. # Screenshot Capture Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/iframe-endpoints/screenshot-capture Capture the current embedded CAD viewport as a PNG data URL. Send `scad:screenshot:request` to capture the visible CAD viewport: ```javascript theme={null} cadFrame.contentWindow.postMessage({ type: 'scad:screenshot:request', requestId: 'capture-1', options: { maxWidth: 1920, maxHeight: 1080, scale: window.devicePixelRatio, }, }, cadOrigin); ``` All options are optional. The default maximum output size is 1920 by 1080 pixels. `scale` controls the requested pixel ratio, but the result is reduced as needed to remain within `maxWidth` and `maxHeight`. CAD responds with a PNG data URL and its pixel dimensions: ```json theme={null} { "type": "scad:screenshot:response", "requestId": "capture-1", "image": "data:image/png;base64,...", "width": 1920, "height": 1080 } ``` Only one capture can run at a time. Failures return `scad:screenshot:error`: ```json theme={null} { "type": "scad:screenshot:error", "requestId": "capture-1", "error": "capture_in_progress" } ``` # Integration Panels Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels Build live, interactive CAD panels for third-party systems and in-game scripts. > [!NOTE] > > Embed a panel instance in a custom live-map blip menu in CAD 3.44.1. See [Smart Signs: Live Map Editor](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs) for the complete schema, three-row Save form, and API setup. Integration Panels put live data and controls from an existing game script or external service directly inside Sonoran CAD. Instead of building and maintaining a custom CAD frontend for every integration, define the panel once with JSON and connect it to your system through the v2 API. Your integration remains the source of truth. It publishes the latest state to CAD, where authorized users can monitor and interact with it. Their button, toggle, select, and input actions are sent back to your integration to process. State changes made in-game or in CAD stay synchronized for every connected CAD user. Use an Integration Panel when dispatchers or responders need to see or control part of another system without leaving CAD—for example, active fire alarms, facility door locks, tow requests, or fleet condition. > [!NOTE] > > Start with the [visual panel builder](https://sonorancad.com/integration-panel-builder). For the fastest implementation, use the Claude and Codex plugins or MCP tools at [sonoransoftware.com/developers](https://sonoransoftware.com/developers) to generate and refine your manifest and integration code. ## Examples Start with a complete example, then replace its definition, state, and actions with data from your resource. | [Fire Alarm](/cad/api-integration/api-endpoints-v2/integration-panels/examples/fire-alarm) | [Door Locks](/cad/api-integration/api-endpoints-v2/integration-panels/examples/door-locks) | | - | - | | [![Fire Alarm integration panel](https://docs-assets.sonoransoftware.com/sha256/93/93ddfae88237f33df789cdabb8bb48c83f589a2678f895611b319245f230bb24.png)](examples/fire-alarm.md) | [![Door Locks integration panel](https://docs-assets.sonoransoftware.com/sha256/e0/e0ef2e7381a1b26d357b3f1ef2a7cd36388bc80bf7d3c823ba9165b3c4b16b48.png)](examples/door-locks.md) | | Sync active alarms, play an alert sound, and control alarm state. | Monitor police and jail doors, then lock or unlock them from CAD. | | [Tow and Impound](/cad/api-integration/api-endpoints-v2/integration-panels/examples/tow-impound) | [Fleet Management](/cad/api-integration/api-endpoints-v2/integration-panels/examples/fleet-management) | | - | - | | [![Tow and Impound integration panel](https://docs-assets.sonoransoftware.com/sha256/88/88385540c0c7c328a76f320050780c8e9b0c34e4cf929dc9b2cefe935b31e1c2.png)](examples/tow-impound.md) | [![Fleet Management integration panel](https://docs-assets.sonoransoftware.com/sha256/2b/2b4ed394fb74e7e60f3b8225fdeed1a630ab7582290a7d03ecf63d7b8bbdf1c6.png)](examples/fleet-management.md) | | Show incoming tow requests and move each request through its workflow. | Group fleet vehicles, monitor their condition, and request repairs. | [View all examples](/cad/api-integration/api-endpoints-v2/integration-panels/examples) ## How It Works 1. **Define:** Create or replace a reusable panel definition for the community. The definition controls layout, components, bindings, search, sorting, styling, sounds, and available actions. 2. **Publish:** Send the complete current state whenever the game script or external system changes. Connected CAD clients update live. 3. **Act:** A CAD user changes a control or presses a button. CAD queues the action, then immediately pushes it to the configured game server. 4. **Process:** Your server-side integration receives the push, applies the change, acknowledges the result, and publishes the resulting state. Slow polling recovers missed pushes. Keep API calls and credentials on the server. A FiveM client script should send changes to its server-side resource, which then communicates with the CAD API. Use a stable `panelKey` for the integration and an `instanceKey` for each independent dataset, location, or controller. For example, a door integration could use `doors` as the panel key and `mission-row` as the instance key. ## Action Push Events Use push events as the primary delivery mechanism. CAD sends each queued action over the existing authenticated API WebSocket, with the existing configured HTTP listener as a legacy fallback. The event type is `EVENT_PANEL_` followed by the **uppercase panel key**, not its display name. Punctuation is preserved: `smart-signs` uses `EVENT_PANEL_SMART-SIGNS`; `example.fire-alarms` uses `EVENT_PANEL_EXAMPLE.FIRE-ALARMS`. The push envelope uses the standard `key`, `type`, and `data` fields. `data` is the same action object returned by [backup polling](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions): `id`, `cursor`, `panelKey`, `serverId`, `instanceKey`, `actionId`, `actorUuid`, `actorName`, `values`, `createdAt`, and `expiresAt`. Only the configured server for the action receives the push. The current SonoranCADFiveM resource already supports these custom events. In your server-side integration, receive the action through its existing event hook: ```lua theme={null} AddEventHandler("SonoranCAD::pushevents:OtherEvent", function(eventType, action) if eventType == "EVENT_PANEL_SMART-SIGNS" then enqueuePanelAction(action) -- Your resource's shared push/poll processing queue. end end) ``` Alternatively, register a custom handler with `TriggerEvent("SonoranCAD::RegisterPushEvent", "EVENT_PANEL_SMART-SIGNS", handler)`. That handler receives the complete envelope; the action is `body.data`. Register again if `sonorancad` restarts. Use one receiving method to avoid processing the same push through both hooks. Push delivery does not acknowledge or remove an action. After processing, call [Acknowledge Action](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) with the action's `id`, then publish the authoritative state after a successful edit. Feed pushes and polled events into the same serial processing queue. Deduplicate by `id`, including actions already in flight; retain completed results until expiry so an acknowledgement can be retried without repeating the game-side effect. Check `expiresAt` before applying an action, and validate `actionId`, `instanceKey`, and values against your resource's rules. Use [Poll Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions) only for recovery, budgeting **three requests per minute per API key across all panels and servers**. For one panel, poll about every 20 seconds. Multiple panels must share that total budget. A startup or reconnect poll also consumes it. Respect `Retry-After` on `429`, and stagger recovery calls rather than starting simultaneous loops. Keep the polling cursor separate from push delivery. A later pushed action must not advance the polling cursor past an earlier missed action. Advance the recovery cursor only after every action returned by a poll has been processed and acknowledged. Events remain recoverable for their existing 60-second lifetime; polling is not an unlimited offline backlog. With multiple panel queues, schedule within that lifetime where possible; push remains the primary path. For controls that replace state, such as sign text, track the last successfully applied `cursor` for each instance. If recovery returns an older action after a newer edit was applied, acknowledge it as superseded instead of overwriting the newer state. Use this rule only where your integration's action semantics permit it. ## SDK Helpers Sonoran.lua, Sonoran.js, Sonoran.py, and Sonoran.Net expose the same helper names. Lua calls them with `:`; the other libraries use `.`. | Task | Helper | | - | - | | List panels | `getIntegrationPanelsV2` | | Get one panel | `getIntegrationPanelV2` | | Create or replace a definition | `setIntegrationPanelV2` | | Delete a panel | `deleteIntegrationPanelV2` | | Replace live state | `setIntegrationPanelStateV2` | | Recover missed CAD actions | `getIntegrationPanelActionsV2` | | Acknowledge an action | `acknowledgeIntegrationPanelActionV2` | ## Capabilities * Responsive rows, columns, grids, sections, and repeated state collections * Text, icons, badges, alerts, inputs, selects, SVG icon pickers, toggles, checkboxes, and buttons * State, repeated-item, input, and current-control bindings * Item-scoped full-form and partial-change action values. See [Saving one repeated item](/cad/api-integration/api-endpoints-v2/integration-panels/manifest-reference#saving-one-repeated-item). * Search, named sort choices, conditions, confirmation prompts, and theme-safe styling * Built-in pulse animations and state- or action-triggered sound effects * Live API-to-CAD state updates and CAD-to-integration action events * Interactive panels embedded in custom live-map blip menus, bound to an exact panel instance. See [Smart Signs](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs). ## Limits | Resource | Limit | | - | - | | Active panels per community | 50 | | Instances per panel and server | 100 | | Definition | 128 KiB; 200 root body nodes | | State per instance | 512 KiB | | Action result | 32 KiB | | Sounds per definition | 20 | | Panel name | 80 characters | | Panel and instance keys | 2-80 lowercase letters, numbers, dots, underscores, or hyphens | | Pending action lifetime | 60 seconds | Rate limits are fixed one-minute windows per API key. A `429` response includes `Retry-After`. | Operation group | Requests per minute | | - | -: | | List or get definitions | 120 | | Create, replace, or delete definitions | 30 | | Replace state | 300 | | Backup poll actions | 3 | | Acknowledge actions | 240 | ## Common Errors | Status | Cause | | -: | - | | `400` | Invalid key, definition, query, or action result | | `401` | Missing or invalid bearer API key | | `404` | Server, panel, or action was not found | | `409` | Panel or instance limit reached, or state sent before its panel exists | | `413` | Definition, state, or action result exceeds its size cap | | `429` | Per-API-key rate limit exceeded | ## Reference > [card] [Manifest Reference](/cad/api-integration/api-endpoints-v2/integration-panels/manifest-reference) > [card] [examples](/cad/api-integration/api-endpoints-v2/integration-panels/examples) ## Endpoints > [card] [List Integration Panels](/cad/api-integration/api-endpoints-v2/integration-panels/list-panels) > [card] [Get Integration Panel](/cad/api-integration/api-endpoints-v2/integration-panels/get-panel) > [card] [Set Integration Panel](/cad/api-integration/api-endpoints-v2/integration-panels/set-panel) > [card] [Delete Integration Panel](/cad/api-integration/api-endpoints-v2/integration-panels/delete-panel) > [card] [Set Integration Panel State](/cad/api-integration/api-endpoints-v2/integration-panels/set-state) > [card] [Poll Integration Panel Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions) > [card] [Acknowledge Integration Panel Action](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) # Acknowledge Integration Panel Action Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action Acknowledge a processed Integration Panel action and notify the CAD user. `POST` `https://api.sonorancad.com/v2/integration-panels/servers/{serverId}/panels/{panelKey}/actions/{eventId}/ack` > **Rate limit:** `240 requests per minute` per API key. Acknowledge an action after the third-party system finishes processing it. The result is pushed live to connected CAD clients. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured CAD server ID allowed by the API key. | | `panelKey` | string | Stable panel key. | | `eventId` | UUID | Action `id` received by push or backup polling. | ## Request Body | Property | Type | Required | Description | | - | - | - | - | | `success` | boolean | Yes | Whether the third-party action succeeded. | | `message` | string | No | User-facing result message; maximum 500 characters. | | `result` | object | No | Structured result data; maximum 32 KiB. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:acknowledgeIntegrationPanelActionV2( > "example.fire-alarms", > "11111111-1111-1111-1111-111111111111", > { > serverId = 1, > success = true, > message = "Alarm disabled", > result = { alarmId = "mrpd-lobby", active = false } > } > ) > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:acknowledgeIntegrationPanelActionV2( > "example.fire-alarms", > event.id, > { > success = true, > message = "Alarm disabled", > result = { alarmId = "mrpd-lobby", active = false } > } > ) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.acknowledgeIntegrationPanelActionV2( > 'example.fire-alarms', > event.id, > { > success: true, > message: 'Alarm disabled', > result: { alarmId: 'mrpd-lobby', active: false }, > } > ); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using System.Collections.Generic; > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.acknowledgeIntegrationPanelActionV2( > "example.fire-alarms", > eventId, > new AcknowledgeIntegrationPanelActionV2Request > { > Success = true, > Message = "Alarm disabled", > Result = new Dictionary > { > ["alarmId"] = "mrpd-lobby", > ["active"] = false > } > } > ); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.acknowledgeIntegrationPanelActionV2( > 'example.fire-alarms', > '11111111-1111-1111-1111-111111111111', > { > serverId: 1, > success: true, > message: 'Alarm disabled', > result: { alarmId: 'mrpd-lobby', active: false }, > } > ); > > console.log(response.success ? response.data : response.reason); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.acknowledgeIntegrationPanelActionV2( > "example.fire-alarms", > "11111111-1111-1111-1111-111111111111", > { > "serverId": 1, > "success": True, > "message": "Alarm disabled", > "result": {"alarmId": "mrpd-lobby", "active": False}, > }, > ) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.acknowledgeIntegrationPanelActionV2( > "example.fire-alarms", > "11111111-1111-1111-1111-111111111111", > new AcknowledgeIntegrationPanelActionV2Request > { > ServerId = 1, > Success = true, > Message = "Alarm disabled", > Result = new Dictionary > { > ["alarmId"] = "mrpd-lobby", > ["active"] = false > } > } > ); > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Acknowledge Integration Panel Action" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels/servers/{serverId}/panels/{panelKey}/actions/{eventId}/ack: > post: > summary: "Acknowledge Integration Panel Action" > operationId: "acknowledgeIntegrationPanelAction" > security: > - bearerAuth: > parameters: > - name: "serverId" > in: "path" > required: true > schema: > type: "integer" > example: 1 > - name: "panelKey" > in: "path" > required: true > schema: > type: "string" > example: "example.fire-alarms" > - name: "eventId" > in: "path" > required: true > schema: > type: "string" > format: "uuid" > example: "11111111-1111-1111-1111-111111111111" > requestBody: > required: true > content: > application/json: > schema: > type: "object" > required: > - "success" > properties: > success: > type: "boolean" > message: > type: "string" > maxLength: 500 > result: > type: "object" > additionalProperties: true > example: > success: true > message: "Alarm disabled" > result: > alarmId: "mrpd-lobby" > active: false > responses: > 200: > description: "Acknowledged action" > content: > application/json: > schema: > type: "object" > example: > panelKey: "example.fire-alarms" > serverId: 1 > eventId: "11111111-1111-1111-1111-111111111111" > success: true > message: "Alarm disabled" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > --url "https://api.sonorancad.com/v2/integration-panels/servers/1/panels/example.fire-alarms/actions/11111111-1111-1111-1111-111111111111/ack" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "success": true, > "message": "Alarm disabled", > "result": { > "alarmId": "mrpd-lobby", > "active": false > } > }' > ``` ## Response ```json theme={null} { "panelKey": "example.fire-alarms", "serverId": 1, "eventId": "11111111-1111-1111-1111-111111111111", "success": true, "message": "Alarm disabled" } ``` # Delete Integration Panel Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/delete-panel Disable an active integration panel. Its stored definition and runtime data are retained. `DELETE` `https://api.sonorancad.com/v2/integration-panels/{panelKey}` > **Rate limit:** `30 requests per minute` per API key. Disable an active integration panel. Its stored definition and runtime data are retained. ## Path Parameters | Name | Type | Description | | - | - | - | | `panelKey` | string | Stable panel key. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:deleteIntegrationPanelV2("example.fire-alarms") > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:deleteIntegrationPanelV2("example.fire-alarms") > print(response.success) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.deleteIntegrationPanelV2('example.fire-alarms'); > console.log(response.success ? response.data : response.reason); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.deleteIntegrationPanelV2("example.fire-alarms"); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.deleteIntegrationPanelV2('example.fire-alarms'); > console.log(response.success ? response.data : response.reason); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.deleteIntegrationPanelV2("example.fire-alarms") > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.deleteIntegrationPanelV2("example.fire-alarms"); > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Delete Integration Panel" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels/{panelKey}: > delete: > summary: "Delete Integration Panel" > operationId: "deleteIntegrationPanel" > security: > - bearerAuth: > parameters: > - name: "panelKey" > in: "path" > required: true > schema: > type: "string" > example: "example.fire-alarms" > responses: > 200: > description: "Panel disabled" > content: > application/json: > schema: > type: "object" > example: > key: "example.fire-alarms" > enabled: false > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \\ > --url "https://api.sonorancad.com/v2/integration-panels/example.fire-alarms" \\ > --header "Authorization: Bearer YOUR_API_KEY" \\ > --header "Accept: application/json" > ``` ## Response ```json theme={null} { "key": "example.fire-alarms", "enabled": false } ``` # Examples Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/examples Copy complete Integration Panel examples for common FiveM and third-party systems. These examples show how an existing FiveM resource or third-party system can expose its live data and controls inside CAD. Each one includes a rendered panel, complete definition, sample state, action IDs, and a short server-side integration outline. The same two-way pattern applies to every example: 1. Your resource publishes its current state to CAD. 2. Connected CAD users see the update immediately. 3. A CAD interaction creates an action for your resource. 4. Your resource receives the action by push, applies it, acknowledges it, then publishes the updated state. Slow polling is a backup for missed events; see [Action Push Events](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events). > [!NOTE] > > Use the AI plugins and MCP tools at [sonoransoftware.com/developers](https://sonoransoftware.com/developers) to adapt an example to your script, then verify it in the [visual panel builder](https://sonorancad.com/integration-panel-builder). For an editor attached to a map marker, see [Smart Signs: Live Map Editor](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs). It includes a reusable three-row sign editor, per-sign state, a blip reference, and the Save action workflow. ## Fire Alarm Connect an in-game fire alarm resource so dispatchers can see every alarm and its current state. An alarm triggered in-game appears and pulses in CAD; a dispatcher can also change its state from the panel, and the resource applies that change in-game. > [card] [Fire Alarm](/cad/api-integration/api-endpoints-v2/integration-panels/examples/fire-alarm) ## Door Locks Connect a door lock resource to show police station, jail, and prison doors by facility. Changes made at an in-game door update CAD, while CAD users can lock one door, unlock one door, or request a lock-all action. > [card] [Door Locks](/cad/api-integration/api-endpoints-v2/integration-panels/examples/door-locks) ## Tow and Impound Connect a tow resource so new in-game requests appear for dispatchers with vehicle and location details. CAD users can accept or complete a request, and the resource updates the job for in-game tow operators. > [card] [Tow and Impound](/cad/api-integration/api-endpoints-v2/integration-panels/examples/tow-impound) ## Fleet Management Connect a garage or fleet resource to group police, fire, and EMS vehicles and show fuel, health, and service state. Vehicle changes made in-game update the panel, while repair requests from CAD are sent back to the resource. > [card] [Fleet Management](/cad/api-integration/api-endpoints-v2/integration-panels/examples/fleet-management) # Door Locks Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/examples/door-locks Monitor police, jail, and prison doors; search by facility; change one lock; or request a lock-all action. This example connects an existing door lock resource to CAD. Dispatchers can search doors across police stations, jails, and prisons, see whether each controller is online, and view the current lock state. A door used in-game updates CAD, while a CAD user can lock or unlock an online door without entering the game. ![Door Locks custom integration panel](https://docs-assets.sonoransoftware.com/sha256/e0/e0ef2e7381a1b26d357b3f1ef2a7cd36388bc80bf7d3c823ba9165b3c4b16b48.png) ## How It Connects 1. Install or update the panel definition when the resource is configured. 2. On resource start, read every configured door and publish the complete panel state. 3. When a player or another script changes a door in-game, publish the new state to CAD. 4. Receive pushes for `door.set-locked` and `doors.lock-all` actions. Apply them through the door resource, acknowledge them, then republish the authoritative lock state. ## Game-Side Outline Push is the primary delivery path. The scheduling and `processPanelActionOnce` functions below are pseudocode supplied by your integration; they are not SDK helpers. `processPanelActionOnce` records the completed result, acknowledges it, retries failed acknowledgements without repeating the effect, and returns true only after acknowledgement succeeds. Use one serial queue for both paths and keep the backup polling cursor separate from pushed actions. See [Action Push Events](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events) for routing, deduplication, acknowledgement, and recovery rules. The following is server-side pseudocode. Adapt the events and function names to your door lock resource and preferred [API library](/cad/api-integration/api-endpoints-v2/integration-panels#sdk-helpers). ```lua theme={null} onResourceStart(function() setIntegrationPanel("example.door-locks", definition) publishPanelState(readAllDoors()) end) -- Covers a player using a door and changes made by another script. onDoorStateChanged(function() publishPanelState(readAllDoors()) end) -- Shared serialized processing; the helper deduplicates in-flight/completed IDs, -- retries acknowledgements without repeating effects, and rejects expired actions. local function processAction(event) return processPanelActionOnce(event, function() local success if event.actionId == "door.set-locked" then success = doorResource.setLocked(event.values.doorId, event.values.locked) elseif event.actionId == "doors.lock-all" then success = doorResource.lockAllOnlineDoors() end if success then publishPanelState(readAllDoors()) end return success end) end AddEventHandler("SonoranCAD::pushevents:OtherEvent", function(eventType, event) if eventType == "EVENT_PANEL_EXAMPLE.DOOR-LOCKS" then processAction(event) end end) -- Backup only. Share three requests/minute across all panels and servers. every20Seconds(function() local response = pollPanelActions({ after = cursor }) for _, event in ipairs(response.events) do if not processAction(event) then return end end cursor = response.nextCursor -- Only after every polled action is acknowledged. end) ``` See [Set State](/cad/api-integration/api-endpoints-v2/integration-panels/set-state), [Poll Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions), and [Acknowledge Action](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) for copyable calls in every supported library. ## Actions | Action ID | Purpose | | - | - | | `door.set-locked` | Lock or unlock one online door. | | `doors.lock-all` | Lock every online door after confirmation. | ## Definition JSON [Open the raw definition](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/door-locks-definition.json) > [accordion] Copy the complete definition > > ```json theme={null} > { > "schemaVersion": 1, > "key": "example.door-locks", > "name": "Door Locks", > "icon": "fas fa-lock", > "surfaces": ["dispatch", "police"], > "body": [ > { > "type": "row", > "gap": "sm", > "children": [ > { "type": "badge", "label": "Locked: {{state.summary.locked}}", "appearance": "primary" }, > { "type": "badge", "label": "Unlocked: {{state.summary.unlocked}}", "appearance": "positive" }, > { "type": "badge", "label": "Offline: {{state.summary.offline}}", "appearance": "muted" }, > { > "type": "button", > "label": "Lock all", > "icon": "fas fa-lock", > "appearance": "primary", > "action": { > "id": "doors.lock-all", > "confirm": "Lock every online door?", > "values": {} > } > } > ] > }, > { > "type": "repeat", > "source": "$state.doors", > "emptyText": "No doors reported", > "layout": "grid", > "minItemWidth": 245, > "gap": "sm", > "search": { > "placeholder": "Search doors", > "fields": ["name", "facility", "status"] > }, > "sort": { > "label": "Order", > "default": "facility", > "options": [ > { > "label": "Facility", > "value": "facility", > "rules": [ > { "path": "facility", "direction": "asc" }, > { "path": "name", "direction": "asc" } > ] > }, > { > "label": "Unlocked first", > "value": "unlocked", > "rules": [ > { "path": "locked", "direction": "asc" }, > { "path": "name", "direction": "asc" } > ] > }, > { > "label": "Name A-Z", > "value": "name", > "rules": [{ "path": "name", "direction": "asc" }] > } > ] > }, > "children": [ > { > "type": "section", > "style": { > "borderColor": "$item.color", > "borderStyle": "solid", > "borderWidth": "1px", > "borderRadius": "6px", > "minHeight": "124px" > }, > "children": [ > { > "type": "row", > "align": "center", > "children": [ > { "type": "icon", "icon": "$item.icon", "color": "$item.color" }, > { "type": "text", "text": "$item.name", "variant": "title", "grow": true }, > { "type": "badge", "label": "$item.status", "appearance": "$item.appearance" } > ] > }, > { "type": "text", "text": "$item.facility", "appearance": "muted" }, > { > "type": "toggle", > "id": "door-locked", > "label": "Locked", > "value": "$item.locked", > "visibleWhen": { "path": "$item.offline", "equals": false }, > "color": "$item.color", > "action": { > "id": "door.set-locked", > "values": { "doorId": "$item.id", "locked": "$value" } > } > }, > { > "type": "alert", > "text": "Door controller offline", > "appearance": "warning", > "visibleWhen": { "path": "$item.offline", "equals": true } > } > ] > } > ] > } > ] > } > ``` ## Example State [Open the raw state](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/door-locks-state.json) > [accordion] Copy the example state > > ```json theme={null} > { > "summary": { "locked": 2, "unlocked": 1, "offline": 1 }, > "doors": [ > { "id": "mrpd-lobby", "name": "Lobby Entrance", "facility": "Mission Row PD", "status": "LOCKED", "locked": true, "offline": false, "icon": "fas fa-lock", "color": "primary", "appearance": "primary" }, > { "id": "mrpd-cell-1", "name": "Holding Cell 1", "facility": "Mission Row PD", "status": "UNLOCKED", "locked": false, "offline": false, "icon": "fas fa-lock-open", "color": "positive", "appearance": "positive" }, > { "id": "prison-gate", "name": "Vehicle Gate", "facility": "Bolingbroke Prison", "status": "LOCKED", "locked": true, "offline": false, "icon": "fas fa-lock", "color": "primary", "appearance": "primary" }, > { "id": "sandy-armory", "name": "Armory", "facility": "Sandy Shores SO", "status": "OFFLINE", "locked": true, "offline": true, "icon": "fas fa-triangle-exclamation", "color": "amber", "appearance": "warning" } > ] > } > ``` # Fire Alarm Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/examples/fire-alarm Monitor alarm controllers, surface active and fault states, toggle alarms, and play a sound when the active count increases. This example connects an existing in-game fire alarm resource to CAD. Dispatchers can see normal, active, and faulted controllers without entering the game. When an alarm activates in-game, the resource publishes the new state so the CAD card pulses red and plays an alert sound. A dispatcher can also use the panel toggle to change the alarm state in-game. ![Fire Alarm custom integration panel](https://docs-assets.sonoransoftware.com/sha256/93/93ddfae88237f33df789cdabb8bb48c83f589a2678f895611b319245f230bb24.png) ## How It Connects 1. Install or update the panel definition when the resource is configured. 2. On resource start, read every alarm controller and publish the complete panel state. 3. When an alarm changes in-game, publish the new state. Connected CAD clients update immediately. 4. Receive pushes for `alarm.set-active` actions. Apply each action through the alarm resource, acknowledge it, then publish the authoritative state again. ## Game-Side Outline Push is the primary delivery path. The scheduling and `processPanelActionOnce` functions below are pseudocode supplied by your integration; they are not SDK helpers. `processPanelActionOnce` records the completed result, acknowledges it, retries failed acknowledgements without repeating the effect, and returns true only after acknowledgement succeeds. Use one serial queue for both paths and keep the backup polling cursor separate from pushed actions. See [Action Push Events](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events) for routing, deduplication, acknowledgement, and recovery rules. The following is server-side pseudocode. Adapt the events and function names to your alarm resource and preferred [API library](/cad/api-integration/api-endpoints-v2/integration-panels#sdk-helpers). ```lua theme={null} -- Install the definition once, then publish the current in-game state. onResourceStart(function() setIntegrationPanel("example.fire-alarms", definition) publishPanelState(readAllAlarmControllers()) end) -- In-game changes are pushed to every connected CAD user. onAlarmStateChanged(function() publishPanelState(readAllAlarmControllers()) end) -- Shared serialized processing; the helper deduplicates in-flight/completed IDs, -- retries acknowledgements without repeating effects, and rejects expired actions. local function processAction(event) return processPanelActionOnce(event, function() local success = fireAlarmResource.setActive( event.values.alarmId, event.values.active ) if success then publishPanelState(readAllAlarmControllers()) end return success end) end AddEventHandler("SonoranCAD::pushevents:OtherEvent", function(eventType, event) if eventType == "EVENT_PANEL_EXAMPLE.FIRE-ALARMS" then processAction(event) end end) -- Backup only. Share three requests/minute across all panels and servers. every20Seconds(function() local response = pollPanelActions({ after = cursor }) for _, event in ipairs(response.events) do if not processAction(event) then return end end cursor = response.nextCursor -- Only after every polled action is acknowledged. end) ``` See [Set State](/cad/api-integration/api-endpoints-v2/integration-panels/set-state), [Poll Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions), and [Acknowledge Action](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) for copyable calls in every supported library. ## Actions | Action ID | Purpose | | - | - | | `alarm.set-active` | Toggle one alarm on or off. | ## Definition JSON [Open the raw definition](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/fire-alarm-definition.json) > [accordion] Copy the complete definition > > ```json theme={null} > { > "schemaVersion": 1, > "key": "example.fire-alarms", > "name": "Fire Alarm", > "icon": "fas fa-bell", > "surfaces": ["dispatch", "fire", "ems", "police"], > "sounds": [ > { > "id": "alarm-active", > "url": "https://s3.sonorancad.com/default/examples/demos/fire-alarm-demo.mp3", > "volume": 0.7, > "maxDurationMs": 8000, > "trigger": { > "event": "state", > "path": "summary.active", > "operator": "increased" > } > } > ], > "body": [ > { > "type": "row", > "gap": "sm", > "children": [ > { "type": "badge", "label": "Active: {{state.summary.active}}", "appearance": "primary" }, > { "type": "badge", "label": "Normal: {{state.summary.normal}}", "appearance": "positive" }, > { "type": "badge", "label": "Fault: {{state.summary.fault}}", "appearance": "warning" } > ] > }, > { > "type": "repeat", > "source": "$state.alarms", > "emptyText": "No alarms reported", > "layout": "grid", > "minItemWidth": 260, > "gap": "sm", > "search": { > "placeholder": "Search alarms", > "fields": ["name", "location", "status"] > }, > "sort": { > "label": "Order", > "default": "active", > "options": [ > { > "label": "Active first", > "value": "active", > "rules": [ > { "path": "active", "direction": "desc" }, > { "path": "name", "direction": "asc" } > ] > }, > { > "label": "Name A-Z", > "value": "name", > "rules": [{ "path": "name", "direction": "asc" }] > }, > { > "label": "Status", > "value": "status", > "rules": [ > { "path": "status", "order": ["ACTIVE", "FAULT", "NORMAL"] }, > { "path": "name", "direction": "asc" } > ] > } > ] > }, > "children": [ > { > "type": "section", > "animation": "$item.animation", > "style": { > "borderColor": "$item.color", > "borderStyle": "solid", > "borderWidth": "1px", > "borderRadius": "6px", > "minHeight": "132px" > }, > "children": [ > { > "type": "row", > "align": "center", > "children": [ > { "type": "icon", "icon": "fas fa-fire", "color": "$item.color" }, > { "type": "text", "text": "$item.name", "variant": "title", "grow": true }, > { "type": "badge", "label": "$item.status", "appearance": "$item.appearance" } > ] > }, > { "type": "text", "text": "$item.location", "appearance": "muted" }, > { > "type": "toggle", > "id": "alarm-active", > "label": "Alarm active", > "value": "$item.active", > "color": "$item.color", > "action": { > "id": "alarm.set-active", > "values": { "alarmId": "$item.id", "active": "$value" } > } > } > ] > } > ] > } > ] > } > ``` ## Example State [Open the raw state](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/fire-alarm-state.json) > [accordion] Copy the example state > > ```json theme={null} > { > "summary": { "active": 1, "normal": 1, "fault": 1 }, > "alarms": [ > { > "id": "mrpd-lobby", > "name": "MRPD Lobby", > "location": "Mission Row", > "status": "ACTIVE", > "appearance": "primary", > "color": "primary", > "animation": "pulse-negative", > "active": true > }, > { > "id": "sandy-24", > "name": "Station 24", > "location": "Sandy Shores", > "status": "NORMAL", > "appearance": "positive", > "color": "positive", > "active": false > }, > { > "id": "pillbox", > "name": "Pillbox Medical", > "location": "Los Santos", > "status": "FAULT", > "appearance": "warning", > "color": "amber", > "active": false > } > ] > } > ``` # Fleet Management Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/examples/fleet-management Separate law enforcement and fire/EMS fleets, display fuel and health, highlight vehicles that need attention, and request repairs. This example connects an existing garage or fleet resource to CAD. Police, fire, and EMS vehicles are grouped by fleet and show their fuel, health, station, and service state. Damage, refueling, spawning, and repairs performed in-game update CAD, while a CAD user can send a repair request back to the resource. ![Fleet Management custom integration panel](https://docs-assets.sonoransoftware.com/sha256/2b/2b4ed394fb74e7e60f3b8225fdeed1a630ab7582290a7d03ecf63d7b8bbdf1c6.png) ## How It Connects 1. Install or update the panel definition when the resource is configured. 2. On resource start, read the fleet database or garage resource and publish the complete state. 3. Publish again when a vehicle is spawned, stored, damaged, refueled, repaired, or moved between service states. 4. Receive pushes for `fleet.repair` actions. Apply them through the fleet resource, acknowledge them, then republish the authoritative vehicle condition. ## Game-Side Outline Push is the primary delivery path. The scheduling and `processPanelActionOnce` functions below are pseudocode supplied by your integration; they are not SDK helpers. `processPanelActionOnce` records the completed result, acknowledges it, retries failed acknowledgements without repeating the effect, and returns true only after acknowledgement succeeds. Use one serial queue for both paths and keep the backup polling cursor separate from pushed actions. See [Action Push Events](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events) for routing, deduplication, acknowledgement, and recovery rules. The following is server-side pseudocode. Adapt the events and function names to your fleet resource and preferred [API library](/cad/api-integration/api-endpoints-v2/integration-panels#sdk-helpers). ```lua theme={null} onResourceStart(function() setIntegrationPanel("example.fleet-management", definition) publishPanelState(readFleetVehiclesByType()) end) -- Publish after garage, fuel, health, or service-state changes. onFleetVehicleChanged(function() publishPanelState(readFleetVehiclesByType()) end) -- Shared serialized processing; the helper deduplicates in-flight/completed IDs, -- retries acknowledgements without repeating effects, and rejects expired actions. local function processAction(event) return processPanelActionOnce(event, function() local success = fleetResource.repairVehicle(event.values.vehicleId) if success then publishPanelState(readFleetVehiclesByType()) end return success end) end AddEventHandler("SonoranCAD::pushevents:OtherEvent", function(eventType, event) if eventType == "EVENT_PANEL_EXAMPLE.FLEET-MANAGEMENT" then processAction(event) end end) -- Backup only. Share three requests/minute across all panels and servers. every20Seconds(function() local response = pollPanelActions({ after = cursor }) for _, event in ipairs(response.events) do if not processAction(event) then return end end cursor = response.nextCursor -- Only after every polled action is acknowledged. end) ``` See [Set State](/cad/api-integration/api-endpoints-v2/integration-panels/set-state), [Poll Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions), and [Acknowledge Action](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) for copyable calls in every supported library. ## Actions | Action ID | Purpose | | - | - | | `fleet.repair` | Repair the selected fleet vehicle. | ## Definition JSON [Open the raw definition](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/fleet-management-definition.json) > [accordion] Copy the complete definition > > ```json theme={null} > { > "schemaVersion": 1, > "key": "example.fleet-management", > "name": "Fleet Management", > "icon": "fas fa-car-side", > "surfaces": ["dispatch", "police", "fire", "ems"], > "body": [ > { > "type": "row", > "gap": "sm", > "children": [ > { "type": "badge", "label": "In service: {{state.summary.inService}}", "appearance": "positive" }, > { "type": "badge", "label": "Low fuel: {{state.summary.lowFuel}}", "appearance": "warning" }, > { "type": "badge", "label": "Needs repair: {{state.summary.needsRepair}}", "appearance": "primary" } > ] > }, > { > "type": "section", > "title": "Law Enforcement Fleet", > "children": [ > { > "type": "repeat", > "source": "$state.policeVehicles", > "emptyText": "No law enforcement vehicles", > "layout": "grid", > "minItemWidth": 255, > "gap": "sm", > "search": { "placeholder": "Search police fleet", "fields": ["unit", "model", "station", "status"] }, > "sort": { > "label": "Order", > "default": "condition", > "options": [ > { "label": "Needs attention", "value": "condition", "rules": [{ "path": "conditionRank", "direction": "asc" }, { "path": "unit", "direction": "asc" }] }, > { "label": "Unit A-Z", "value": "unit", "rules": [{ "path": "unit", "direction": "asc" }] }, > { "label": "Fuel low-high", "value": "fuel", "rules": [{ "path": "fuel", "direction": "asc" }] } > ] > }, > "children": [ > { > "type": "section", > "style": { "borderColor": "$item.color", "borderStyle": "solid", "borderWidth": "1px", "borderRadius": "6px", "minHeight": "146px" }, > "children": [ > { "type": "row", "align": "center", "children": [ > { "type": "icon", "icon": "fas fa-car-side", "color": "blue" }, > { "type": "text", "text": "$item.unit", "variant": "title", "grow": true }, > { "type": "badge", "label": "$item.status", "appearance": "$item.appearance" } > ] }, > { "type": "text", "text": "$item.model" }, > { "type": "text", "text": "Fuel: {{item.fuel}}% · Health: {{item.health}}%", "appearance": "muted" }, > { "type": "text", "text": "$item.station", "variant": "caption", "appearance": "muted" }, > { "type": "button", "label": "Repair", "icon": "fas fa-wrench", "appearance": "primary", "visibleWhen": { "path": "$item.needsRepair", "equals": true }, "action": { "id": "fleet.repair", "values": { "vehicleId": "$item.id" } } } > ] > } > ] > } > ] > }, > { > "type": "section", > "title": "Fire & EMS Fleet", > "children": [ > { > "type": "repeat", > "source": "$state.fireVehicles", > "emptyText": "No fire or EMS vehicles", > "layout": "grid", > "minItemWidth": 255, > "gap": "sm", > "search": { "placeholder": "Search fire and EMS fleet", "fields": ["unit", "model", "station", "status"] }, > "sort": { > "label": "Order", > "default": "condition", > "options": [ > { "label": "Needs attention", "value": "condition", "rules": [{ "path": "conditionRank", "direction": "asc" }, { "path": "unit", "direction": "asc" }] }, > { "label": "Unit A-Z", "value": "unit", "rules": [{ "path": "unit", "direction": "asc" }] }, > { "label": "Fuel low-high", "value": "fuel", "rules": [{ "path": "fuel", "direction": "asc" }] } > ] > }, > "children": [ > { > "type": "section", > "style": { "borderColor": "$item.color", "borderStyle": "solid", "borderWidth": "1px", "borderRadius": "6px", "minHeight": "146px" }, > "children": [ > { "type": "row", "align": "center", "children": [ > { "type": "icon", "icon": "fas fa-truck-medical", "color": "primary" }, > { "type": "text", "text": "$item.unit", "variant": "title", "grow": true }, > { "type": "badge", "label": "$item.status", "appearance": "$item.appearance" } > ] }, > { "type": "text", "text": "$item.model" }, > { "type": "text", "text": "Fuel: {{item.fuel}}% · Health: {{item.health}}%", "appearance": "muted" }, > { "type": "text", "text": "$item.station", "variant": "caption", "appearance": "muted" }, > { "type": "button", "label": "Repair", "icon": "fas fa-wrench", "appearance": "primary", "visibleWhen": { "path": "$item.needsRepair", "equals": true }, "action": { "id": "fleet.repair", "values": { "vehicleId": "$item.id" } } } > ] > } > ] > } > ] > } > ] > } > ``` ## Example State [Open the raw state](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/fleet-management-state.json) > [accordion] Copy the example state > > ```json theme={null} > { > "summary": { "inService": 3, "lowFuel": 1, "needsRepair": 2 }, > "policeVehicles": [ > { "id": "pd-401", "unit": "PD-401", "model": "Vapid Police Cruiser", "station": "Mission Row PD", "status": "NEEDS REPAIR", "fuel": 62, "health": 38, "needsRepair": true, "conditionRank": 0, "color": "primary", "appearance": "primary" }, > { "id": "pd-418", "unit": "PD-418", "model": "Vapid Interceptor", "station": "Vespucci PD", "status": "IN SERVICE", "fuel": 84, "health": 96, "needsRepair": false, "conditionRank": 2, "color": "positive", "appearance": "positive" }, > { "id": "so-212", "unit": "SO-212", "model": "Declasse Granger", "station": "Sandy Shores SO", "status": "LOW FUEL", "fuel": 14, "health": 91, "needsRepair": false, "conditionRank": 1, "color": "amber", "appearance": "warning" } > ], > "fireVehicles": [ > { "id": "e24", "unit": "Engine 24", "model": "MTL Fire Engine", "station": "Sandy Shores Station 24", "status": "IN SERVICE", "fuel": 76, "health": 100, "needsRepair": false, "conditionRank": 2, "color": "positive", "appearance": "positive" }, > { "id": "m1", "unit": "Medic 1", "model": "Brute Ambulance", "station": "Pillbox Medical", "status": "NEEDS REPAIR", "fuel": 53, "health": 44, "needsRepair": true, "conditionRank": 0, "color": "primary", "appearance": "primary" } > ] > } > ``` # Smart Signs: Live Map Editor Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs Open an individual street sign editor from a custom live-map blip. Attach an Integration Panel to a custom blip to show interactive controls when a user clicks the blip. The same renderer, state API, action queue, and acknowledgments used by layout panels also work in the map's blip menu, in both 2D and 3D views. This example defines one reusable editor, publishes one instance per sign, and adds a blip pointing to that exact instance. CAD renders three text inputs and a **Save sign** button. No script or HTML runs inside CAD; your server-side integration handles each action. ![Street sign editor in the live map](https://docs-assets.sonoransoftware.com/sha256/ba/ba04c8aa352e1cb04534e5bc6083bf760b191e0ea85417adaa63e8f859badf7c.png) *Local CAD preview using sample sign data.* ## Define the sign editor Send the following body to `PUT /v2/integration-panels/smart-signs` using [Set Panel](/cad/api-integration/api-endpoints-v2/integration-panels/set-panel). All SDKs expose `setIntegrationPanelV2`. ```json theme={null} { "definition": { "schemaVersion": 1, "key": "smart-signs", "name": "Edit street sign", "icon": "signpost", "surfaces": [], "body": [ { "type": "text", "text": "$state.location", "appearance": "muted" }, { "type": "input", "id": "line1", "label": "Row 1", "value": "$state.line1" }, { "type": "input", "id": "line2", "label": "Row 2", "value": "$state.line2" }, { "type": "input", "id": "line3", "label": "Row 3", "value": "$state.line3" }, { "type": "button", "label": "Save sign", "icon": "save", "appearance": "primary", "action": { "id": "sign.save", "values": { "line1": "$inputs.line1", "line2": "$inputs.line2", "line3": "$inputs.line3" } } } ] } } ``` `surfaces: []` keeps these individual editors out of the layout's Add Window list. It does not prevent explicit blip references. Use a separate overview panel, such as `smart-signs-overview`, with `surfaces: ["dispatch", "police"]` and a repeated list for the full sign management window. Publish changes to both the overview state and the affected editor instance. ## Publish the sign's current text Use [Set State](/cad/api-integration/api-endpoints-v2/integration-panels/set-state), `PUT /v2/integration-panels/servers/1/panels/smart-signs/instances/sign-12/state`: ```json theme={null} { "state": { "location": "Vespucci Boulevard · Sign 12", "line1": "ROAD WORK", "line2": "LEFT LANE CLOSED", "line3": "MERGE RIGHT" } } ``` State is a full replacement. Send all three rows each time the sign changes, including changes made in-game. Connected editors receive the published values live. The updated CAD renderer clears accepted edits and edits whose authoritative default changed, while retaining drafts for controls whose defaults remain unchanged. Publish when authoritative sign data changes rather than continuously resending unchanged state. ## Attach the editor to a blip Use Sonoran.Net **0.1.40 or newer** for the typed `BlipDisplayDataV2.PanelKey` and `.InstanceKey` properties. Lua, JavaScript, and Python accept these fields through their existing v2 blip helpers. Use [Create Blip](/cad/api-integration/api-endpoints-v2/emergency/map/create-blip), `POST /v2/emergency/servers/1/blips`: ```json theme={null} { "coordinates": { "x": 235, "y": -1080 }, "subType": "SMART_SIGN", "icon": "signpost", "color": "#ffad33", "tooltip": "Vespucci Boulevard · Sign 12", "data": [{ "panelKey": "smart-signs", "instanceKey": "sign-12" }] } ``` Each `data` entry can contain ordinary `title`/`text` information or a `panelKey`/`instanceKey` reference. An optional `title` on a panel entry overrides its menu heading. If `panelKey` is present, that entry renders the panel instead of `text`. Multiple entries render in array order. | Field | Meaning | | - | - | | `panelKey` | Exact registered panel key, not its display name. | | `instanceKey` | Exact instance on the blip's selected server; defaults to `default` when omitted. | | `title` | Optional heading override. | Panel and instance keys use 2–80 lowercase letters, digits, dots, underscores, or hyphens and start with a letter or digit. Publish the definition and instance before using the blip. Missing definitions or instances show an unavailable message; CAD never substitutes another sign's instance. The existing community/server permissions for Integration Panels still apply. `surfaces` controls layout placement, not authorization. To change the reference, [Update Blip](/cad/api-integration/api-endpoints-v2/emergency/map/update-blip) with a complete replacement `data` array. To remove all menu content, send `"data": []`. To remove only a panel, resend the ordinary information entries you want to retain. Unrelated blip PATCH fields leave `data` unchanged. ## Apply Save actions in your integration Receive `EVENT_PANEL_SMART-SIGNS` through the existing FiveM [action push hook](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events). Its `data` contains the Save action below. Use [Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions) only for slow backup polling, budgeting three requests per minute per API key across all panels and servers: ```json theme={null} { "panelKey": "smart-signs", "serverId": 1, "instanceKey": "sign-12", "actionId": "sign.save", "values": { "line1": "ROAD WORK", "line2": "RIGHT LANE CLOSED", "line3": "MERGE RIGHT" } } ``` The event also contains its event ID, cursor, actor, creation time, and expiry. Use `instanceKey` to select the sign. Save includes the displayed defaults for untouched fields and preserves deliberate empty strings. Inputs without an `action` collect edits locally; the button sends all three rows together. 1. Validate the actor, sign, allowed action, text lengths, and supported characters against your game resource's rules. 2. Apply the change to the sign in-game. Handle repeated event delivery idempotently using the event ID. 3. [Acknowledge](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) the event as successful or failed, with a useful message. 4. On success, publish the complete resulting state for `sign-12` and your overview panel. The menu's request-sent message confirms queue submission, not in-game completion. CAD displays the integration's acknowledgment through its existing action notification. Acknowledging does not publish state automatically. Process pushes immediately and recover missed actions within their 60-second lifetime. Use the same processing queue for push and polling, deduplicate by `id`, and do not advance the backup polling cursor from a push. ## Save one sign in a repeated overview For an overview that renders many signs inside a `repeat`, avoid `"values": "$inputs"`: that contains every sign's form and can exceed the 32 KiB action limit. Use the item bindings in the [Manifest Reference](/cad/api-integration/api-endpoints-v2/integration-panels/manifest-reference#saving-one-repeated-item). These bindings are currently available on staging; deploy/reload the supporting CAD frontend before updating the manifest. For example, publish state as `{ "signs": [{ "id": "sign-12", "line1": "ROAD WORK", "line2": "LEFT LANE CLOSED", "line3": "MERGE RIGHT" }] }` and use this overview body: ```json theme={null} [ { "type": "repeat", "source": "$state.signs", "children": [ { "type": "section", "title": "$item.id", "children": [ { "type": "input", "id": "line1", "label": "Row 1", "value": "$item.line1" }, { "type": "input", "id": "line2", "label": "Row 2", "value": "$item.line2" }, { "type": "input", "id": "line3", "label": "Row 3", "value": "$item.line3" }, { "type": "button", "label": "Save sign", "icon": "save", "action": { "id": "sign.save", "values": { "signId": "$item.id", "changes": "$itemChanges" } } } ] } ] } ] ``` Editing only Row 2 produces `values: { "signId": "sign-12", "changes": { "line2": "RIGHT LANE CLOSED" } }`. Clearing Row 2 produces `"line2": ""`. Missing rows mean unchanged; do not replace them with empty strings. Validate the sign and field IDs, merge the allowed changes into the current game-side sign, acknowledge the action, and publish the complete resulting state. An empty changes object is a successful no-op. If your existing handler requires all three rows, use `"values": { "signId": "$item.id", "fields": "$itemInputs" }` and read `action.values.fields`. This includes the selected sign's defaults and edits without including other signs. The per-sign live-map editor above already sends only its three explicitly selected inputs and needs no manifest change. Keep [push delivery](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events) primary and polling as slow recovery. Partial action values do not change the Set State endpoint: publish a complete overview state and the affected individual editor state after a successful save. A revision for one saved sign preserves other unsaved drafts when their published control defaults are unchanged. ## Capacity One editor definition can currently have **100 instances per server**. This example therefore supports 100 independently addressed sign editors per panel/server. Larger deployments need separate panel keys or a future increase to the instance limit. The existing 50 active panels per community, rate limits, and payload limits remain unchanged. # Tow and Impound Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/examples/tow-impound Display pending and assigned tow requests with vehicle details, then accept or complete each request from the CAD. This example connects an existing tow or impound resource to CAD. Requests created by an officer or another in-game system appear with the vehicle, plate, location, requester, and status. A dispatcher can accept or complete a request in CAD, and the resource applies that workflow change for in-game tow operators. ![Tow and Impound custom integration panel](https://docs-assets.sonoransoftware.com/sha256/88/88385540c0c7c328a76f320050780c8e9b0c34e4cf929dc9b2cefe935b31e1c2.png) ## How It Connects 1. Install or update the panel definition when the resource is configured. 2. On resource start, publish every pending and assigned request plus the current summary. 3. Publish again when an in-game request is created, assigned, cancelled, or completed. 4. Receive pushes for `tow.accept` and `tow.complete` actions. Apply them through the tow resource, acknowledge them, then publish the updated request list. ## Game-Side Outline Push is the primary delivery path. The scheduling and `processPanelActionOnce` functions below are pseudocode supplied by your integration; they are not SDK helpers. `processPanelActionOnce` records the completed result, acknowledges it, retries failed acknowledgements without repeating the effect, and returns true only after acknowledgement succeeds. Use one serial queue for both paths and keep the backup polling cursor separate from pushed actions. See [Action Push Events](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events) for routing, deduplication, acknowledgement, and recovery rules. The following is server-side pseudocode. Adapt the events and function names to your tow resource and preferred [API library](/cad/api-integration/api-endpoints-v2/integration-panels#sdk-helpers). ```lua theme={null} onResourceStart(function() setIntegrationPanel("example.tow-requests", definition) publishPanelState(readCurrentTowRequests()) end) -- Includes requests created or updated by officers and tow operators. onTowRequestChanged(function() publishPanelState(readCurrentTowRequests()) end) -- Shared serialized processing; the helper deduplicates in-flight/completed IDs, -- retries acknowledgements without repeating effects, and rejects expired actions. local function processAction(event) return processPanelActionOnce(event, function() local success if event.actionId == "tow.accept" then success = towResource.acceptRequest(event.values.requestId) elseif event.actionId == "tow.complete" then success = towResource.completeRequest(event.values.requestId) end if success then publishPanelState(readCurrentTowRequests()) end return success end) end AddEventHandler("SonoranCAD::pushevents:OtherEvent", function(eventType, event) if eventType == "EVENT_PANEL_EXAMPLE.TOW-REQUESTS" then processAction(event) end end) -- Backup only. Share three requests/minute across all panels and servers. every20Seconds(function() local response = pollPanelActions({ after = cursor }) for _, event in ipairs(response.events) do if not processAction(event) then return end end cursor = response.nextCursor -- Only after every polled action is acknowledged. end) ``` See [Set State](/cad/api-integration/api-endpoints-v2/integration-panels/set-state), [Poll Actions](/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions), and [Acknowledge Action](/cad/api-integration/api-endpoints-v2/integration-panels/acknowledge-action) for copyable calls in every supported library. ## Actions | Action ID | Purpose | | - | - | | `tow.accept` | Assign the selected request. | | `tow.complete` | Mark an assigned request complete. | ## Definition JSON [Open the raw definition](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/tow-impound-definition.json) > [accordion] Copy the complete definition > > ```json theme={null} > { > "schemaVersion": 1, > "key": "example.tow-requests", > "name": "Tow & Impound", > "icon": "fas fa-truck-pickup", > "surfaces": ["dispatch", "police"], > "body": [ > { > "type": "row", > "gap": "sm", > "children": [ > { "type": "badge", "label": "Pending: {{state.summary.pending}}", "appearance": "primary" }, > { "type": "badge", "label": "Assigned: {{state.summary.assigned}}", "appearance": "info" }, > { "type": "badge", "label": "Completed today: {{state.summary.completed}}", "appearance": "positive" } > ] > }, > { > "type": "repeat", > "source": "$state.requests", > "emptyText": "No tow requests", > "layout": "grid", > "minItemWidth": 300, > "gap": "sm", > "search": { > "placeholder": "Search plate, vehicle, or location", > "fields": ["plate", "vehicle", "location", "requester", "status"] > }, > "sort": { > "label": "Order", > "default": "priority", > "options": [ > { > "label": "Pending first", > "value": "priority", > "rules": [ > { "path": "status", "order": ["PENDING", "ASSIGNED", "COMPLETED"] }, > { "path": "createdAt", "direction": "asc" } > ] > }, > { > "label": "Newest first", > "value": "newest", > "rules": [{ "path": "createdAt", "direction": "desc" }] > }, > { > "label": "Plate A-Z", > "value": "plate", > "rules": [{ "path": "plate", "direction": "asc" }] > } > ] > }, > "children": [ > { > "type": "section", > "style": { > "borderColor": "$item.color", > "borderStyle": "solid", > "borderWidth": "1px", > "borderRadius": "6px", > "minHeight": "166px" > }, > "children": [ > { > "type": "row", > "align": "center", > "children": [ > { "type": "icon", "icon": "fas fa-truck-pickup", "color": "$item.color" }, > { "type": "text", "text": "$item.plate", "variant": "title", "grow": true }, > { "type": "badge", "label": "$item.status", "appearance": "$item.appearance" } > ] > }, > { "type": "text", "text": "$item.vehicle" }, > { "type": "text", "text": "$item.location", "appearance": "muted" }, > { "type": "text", "text": "Requested by {{item.requester}}", "variant": "caption", "appearance": "muted" }, > { > "type": "button", > "label": "Accept request", > "icon": "fas fa-check", > "appearance": "primary", > "visibleWhen": { "path": "$item.pending", "equals": true }, > "action": { > "id": "tow.accept", > "values": { "requestId": "$item.id" } > } > }, > { > "type": "button", > "label": "Mark complete", > "icon": "fas fa-flag-checkered", > "appearance": "positive", > "visibleWhen": { "path": "$item.assigned", "equals": true }, > "action": { > "id": "tow.complete", > "values": { "requestId": "$item.id" } > } > } > ] > } > ] > } > ] > } > ``` ## Example State [Open the raw state](https://github.com/Sonoran-Software/SonoranCAD-Documentation/tree/master/api-integration/api-endpoints-v2/integration-panels/examples/json/tow-impound-state.json) > [accordion] Copy the example state > > ```json theme={null} > { > "summary": { "pending": 2, "assigned": 1, "completed": 8 }, > "requests": [ > { "id": "tow-1042", "plate": "46EJX219", "vehicle": "Vapid Stanier · Black", "location": "Alta St / Vespucci Blvd", "requester": "1A-12", "status": "PENDING", "createdAt": "2026-08-25T18:12:00Z", "pending": true, "assigned": false, "color": "primary", "appearance": "primary" }, > { "id": "tow-1043", "plate": "83KLM550", "vehicle": "Bravado Bison · White", "location": "Route 68 / Joshua Rd", "requester": "2L-04", "status": "PENDING", "createdAt": "2026-08-25T18:16:00Z", "pending": true, "assigned": false, "color": "primary", "appearance": "primary" }, > { "id": "tow-1039", "plate": "29QRS118", "vehicle": "Karin Sultan · Blue", "location": "Mission Row Impound", "requester": "1B-31 · Tow 7", "status": "ASSIGNED", "createdAt": "2026-08-25T17:54:00Z", "pending": false, "assigned": true, "color": "blue", "appearance": "info" } > ] > } > ``` # Get Integration Panel Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/get-panel Get one active integration panel and its stored instances. `GET` `https://api.sonorancad.com/v2/integration-panels/{panelKey}` > **Rate limit:** `120 requests per minute` per API key. Get one active integration panel and its stored instances. ## Path Parameters | Name | Type | Description | | - | - | - | | `panelKey` | string | Stable panel key. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:getIntegrationPanelV2("example.fire-alarms") > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:getIntegrationPanelV2("example.fire-alarms") > print(response.success) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.getIntegrationPanelV2('example.fire-alarms'); > console.log(response.success ? response.data : response.reason); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.getIntegrationPanelV2("example.fire-alarms"); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getIntegrationPanelV2('example.fire-alarms'); > console.log(response.success ? response.data : response.reason); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getIntegrationPanelV2("example.fire-alarms") > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getIntegrationPanelV2("example.fire-alarms"); > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Get Integration Panel" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels/{panelKey}: > get: > summary: "Get Integration Panel" > operationId: "getIntegrationPanel" > security: > - bearerAuth: > parameters: > - name: "panelKey" > in: "path" > required: true > schema: > type: "string" > example: "example.fire-alarms" > responses: > 200: > description: "Panel definition and instances" > content: > application/json: > schema: > type: "object" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \\ > --url "https://api.sonorancad.com/v2/integration-panels/example.fire-alarms" \\ > --header "Authorization: Bearer YOUR_API_KEY" \\ > --header "Accept: application/json" > ``` ## Response ```json theme={null} { "id": "00000000-0000-0000-0000-000000000000", "key": "example.fire-alarms", "name": "Fire Alarm", "definition": { "schemaVersion": 1, "name": "Fire Alarm", "body": [] }, "updatedAt": "2026-08-25T18:00:00Z", "instances": [ { "instanceKey": "default", "state": {}, "revision": 4, "updatedAt": "2026-08-25T18:01:00Z" } ] } ``` # List Integration Panels Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/list-panels List every active integration panel for the authenticated community with its stored instances. `GET` `https://api.sonorancad.com/v2/integration-panels` > **Rate limit:** `120 requests per minute` per API key. List every active integration panel for the authenticated community with its stored instances. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:getIntegrationPanelsV2() > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:getIntegrationPanelsV2() > print(response.success) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.getIntegrationPanelsV2(); > console.log(response.success ? response.data : response.reason); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.getIntegrationPanelsV2(); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getIntegrationPanelsV2(); > console.log(response.success ? response.data : response.reason); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getIntegrationPanelsV2() > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getIntegrationPanelsV2(); > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - List Integration Panels" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels: > get: > summary: "List Integration Panels" > operationId: "listIntegrationPanels" > security: > - bearerAuth: > responses: > 200: > description: "Active panels and stored instances" > content: > application/json: > schema: > type: "array" > items: > type: "object" > example: > - key: "example.fire-alarms" > name: "Fire Alarm" > definition: > schemaVersion: 1 > name: "Fire Alarm" > body: [] > instances: > - instanceKey: "default" > state: {} > revision: 4 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \\ > --url "https://api.sonorancad.com/v2/integration-panels" \\ > --header "Authorization: Bearer YOUR_API_KEY" \\ > --header "Accept: application/json" > ``` ## Response ```json theme={null} [ { "id": "00000000-0000-0000-0000-000000000000", "key": "example.fire-alarms", "name": "Fire Alarm", "definition": { "schemaVersion": 1, "name": "Fire Alarm", "body": [] }, "updatedAt": "2026-08-25T18:00:00Z", "instances": [ { "instanceKey": "default", "state": {}, "revision": 4, "updatedAt": "2026-08-25T18:01:00Z" } ] } ] ``` # Manifest Reference Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/manifest-reference Reference for Integration Panel definitions, UI nodes, bindings, styling, actions, search, sorting, and sounds. A panel definition is a JSON object stored at a stable `panelKey`. The definition controls presentation and behavior; state is stored separately per `serverId` and `instanceKey`. ## Definition | Property | Type | Required | Description | | - | - | - | - | | `schemaVersion` | integer | Yes | Must be `1`. | | `key` | string | No | When present, must equal the route `panelKey`. | | `name` | string | Yes | Panel header name; maximum 80 characters. | | `icon` | string | No | Quasar or Font Awesome icon, such as `fas fa-lock`. | | `surfaces` | string\[] | No | Layout availability: any of `dispatch`, `police`, `fire`, or `ems`. An empty array hides the panel from Add Window; explicit live-map blip references still work. This is not an authorization restriction. | | `sounds` | object\[] | No | Up to 20 sound triggers. | | `body` | object\[] | Yes | Recursive UI nodes; maximum 200 root nodes. | ## Bindings | Binding | Value | | - | - | | `$state.path` | Current instance state | | `$item.path` | Current item inside a `repeat` node | | `$inputs.id` | Current local control value, or the control's displayed `value` when untouched. Explicit empty strings are preserved. | | `$itemInputs` | Object of all control values in the current repeated item, including untouched defaults. Keys are unprefixed control IDs. | | `$itemInputs.id` | One control value in the current repeated item. | | `$itemChanges` | Object containing only current-item controls whose values differ from their published defaults. Keys are unprefixed control IDs. | | `$value` | New value emitted by the current control | Use a binding as the entire property value, such as `"value": "$item.locked"`. For text containing other words, use interpolation such as `"Fuel: {{item.fuel}}%"` or `"Active: {{state.summary.active}}"`. ### Saving one repeated item `$inputs` includes controls from the entire panel instance. Repeated controls use keys such as `sign-12:line1`. Avoid sending the entire `$inputs` object when an action edits just one item. Inside a `repeat`, use `$itemInputs` for a complete item form or `$itemChanges` for a partial edit: ```json theme={null} { "type": "button", "label": "Save sign", "action": { "id": "sign.save", "values": { "signId": "$item.id", "changes": "$itemChanges" } } } ``` Give every control a stable, unique `id` within its repeated item and every item a stable, unique `id` within the panel instance. These bindings collect controls under the nearest `repeat`, including controls inside layout containers; they exclude nested repeats, other items, and local search/sort settings. Without a repeated-item context, both objects are empty. Without an item ID, controls use their original source-array index; stable IDs are recommended when the collection can change. `$itemInputs` includes untouched defaults. `$itemChanges` compares current values with the controls' default `value` bindings, usually sourced from the latest published `$item` state. Reverting a field to its default removes it from the changes object. Deliberate `""`, `false`, `0`, and `null` values are preserved. No differences produces `{}`; the button still emits an action. Your integration should treat missing fields as unchanged and an empty changes object as a successful no-op. Validate and apply only allowed field IDs, then acknowledge and publish the complete authoritative state. CAD does not apply the partial edit to state automatically. The `changes` name is your integration's payload convention, not a reserved API property. Use `"fields": "$itemInputs"` instead if your handler expects all fields for one item. Existing explicit bindings such as `"line1": "$inputs.line1"` remain supported for non-repeated forms. Deploy a CAD frontend with these item bindings before changing your manifest; they are currently available on staging. ## Node Types | Type | Main properties | Purpose | | - | - | - | | `row` | `children`, `gap`, `align` | Horizontal layout that wraps as needed | | `column` | `children`, `gap`, `align` | Vertical layout | | `grid` | `children`, `minItemWidth`, `gap` | Responsive auto-fit grid | | `section` | `title`, `children`, `style`, `animation` | Card-like group | | `repeat` | `source`, `children`, `search`, `sort`, `layout` | Render state array items | | `text` | `text`, `variant`, `appearance` | Text; variants are `title` and `caption` | | `icon` | `icon`, `size`, `color` | Quasar or Font Awesome icon | | `badge` | `label`, `appearance` | Compact status chip | | `divider` | — | Separator line | | `spacer` | `size` | Vertical space in pixels | | `alert` | `text`, `appearance` | Highlighted message | | `input` | `id`, `label`, `value`, `placeholder`, `action` | Text input | | `number` | `id`, `label`, `value`, `action` | Numeric input | | `textarea` | `id`, `label`, `value`, `action` | Multiline input | | `select` | `id`, `label`, `value`, `options`, `multiple`, `clearable`, `action` | Selection control | | `iconPicker` | `id`, `label`, `value`, `options` or `sections`, `searchable`, `readonly`, `action` | Square SVG picker | | `toggle` | `id`, `label`, `value`, `color`, `action` | Boolean switch | | `checkbox` | `id`, `label`, `value`, `color`, `action` | Boolean checkbox | | `button` | `label`, `icon`, `disabled`, `appearance`, `action` | Explicit action | Common layout properties are `grow`, `columns` from 1-12, and `gap` using `none`, `xs`, `sm`, `md`, `lg`, or `xl`. Select options may be primitive values or `{ "label": "Display", "value": "stored-value" }` objects. ### SVG icon picker An `iconPicker` is a 40-pixel square, matching the height of a dense text input. Clicking it opens a scrollable menu. Supply a flat `options` array, or group icons with `sections: [{ "name": "Response", "options": [...] }]`. Each section needs a heading in `name`. When `sections` is present, it takes precedence over `options`. Each icon needs a stable string `value` and inline SVG markup in `svg`. An optional icon `name` supplies the tooltip and accessible name; without it, the picker uses `value`. Set `searchable` to `true` to show a local search field. It matches an icon's `name` or `value`, showing only sections with matching icons. A matching section heading shows all its icons. Search is off by default. The selected `value` is stored locally and available as `$value` in its action; your integration should process the action and publish the updated state. ![SVG icon picker in the panel builder with its menu open](https://docs-assets.sonoransoftware.com/sha256/f0/f0666f8a55046b35bb5cd0da87065a384981255b225a22f38138ba94fa28a86f.png) Typing `fi` narrows the menu to Fire in its section: ![SVG icon picker filtered by name](https://docs-assets.sonoransoftware.com/sha256/4b/4bcf72bd1417d4d8690d9d2752779b1109bbcac9ca68c5273ed823c84ce62f62.png) ```json theme={null} { "type": "iconPicker", "id": "unit-icon", "label": "Unit icon", "value": "$state.unit.icon", "searchable": true, "sections": [ { "name": "Response", "options": [ { "value": "shield", "name": "Shield", "svg": "" }, { "value": "fire", "name": "Fire", "svg": "" } ] }, { "name": "Equipment", "options": [ { "value": "radio", "name": "Radio", "svg": "" } ] } ], "action": { "id": "unit.set-icon", "values": { "icon": "$value" } } } ``` SVGs are rendered as images. Use basic shapes and explicit colors; scripts, external references, and unsupported SVG elements or attributes are rejected. A picker shows up to 100 options in total across its sections. Flat `options` use the same icon object format. ## Conditions Add `visibleWhen` to any node. Use one comparison with a bound `path`. ```json theme={null} { "visibleWhen": { "path": "$item.status", "in": ["PENDING", "ASSIGNED"] } } ``` Supported comparisons are `equals`, `notEquals`, and `in`. With no comparison, visibility follows the truthiness of `path`. ## Actions Controls use the same action envelope. The CAD creates an event containing the action ID, resolved values, actor, panel, instance, and server. ```json theme={null} { "type": "toggle", "id": "door-locked", "label": "Locked", "value": "$item.locked", "action": { "id": "door.set-locked", "confirm": "Change this door?", "values": { "doorId": "$item.id", "locked": "$value" } } } ``` `confirm` is optional. It displays a CAD confirmation dialog before the action is queued. Resolved action `values` must fit within 32 KiB of UTF-8 JSON. This is an application and database budget for each queued command, independent of the larger panel-state limit. An oversized action is rejected before queueing or push delivery. Keep actions limited to the affected item's fields or changes; state updates remain full replacements of up to 512 KiB. `input`, `number`, and `textarea` actions are emitted once when the user leaves a changed field. Selects, toggles, checkboxes, and icon pickers emit on selection or click. Successful action acknowledgments are quiet; failures show an error notification. ## Repeated Collections Set `source` to a state array. Child nodes can bind to the current `$item`. ```json theme={null} { "type": "repeat", "source": "$state.doors", "emptyText": "No doors reported", "layout": "grid", "minItemWidth": 245, "gap": "sm", "children": [] } ``` `minItemWidth` accepts 120-800 pixels. The grid automatically changes its column count with the panel width. ### Search Search is local to the CAD client and does not call the API. ```json theme={null} { "search": { "placeholder": "Search doors", "fields": ["name", "facility", "status"] } } ``` If `fields` is omitted, primitive properties on the item are searched. ### Sort Each option has a stable `value` and ordered rules. A rule can use `direction` (`asc` or `desc`) or an explicit `order` array. ```json theme={null} { "sort": { "label": "Order", "default": "priority", "options": [ { "label": "Pending first", "value": "priority", "rules": [ { "path": "status", "order": ["PENDING", "ASSIGNED", "COMPLETED"] }, { "path": "createdAt", "direction": "asc" } ] } ] } } ``` ## Theme-Safe Styling Arbitrary CSS is not accepted. This keeps community panels safe and compatible with every CAD theme. `appearance` supports `positive`, `negative`, `warning`, `primary`, `info`, `muted`, and `neutral`. Color fields and `style.backgroundColor`, `style.borderColor`, or `style.color` must use one of these v2 token names: `amber`, `amber-text`, `background`, `blue`, `blue-text`, `component-border`, `foreground`, `foreground-light`, `icon`, `positive`, `positive-text`, `primary`, `primary-faded`, `primary-text`, `text-inverse`, `text-primary`, `text-subtitle`, or `text-title`. Allowed non-color style properties are `borderRadius`, `borderStyle`, `borderWidth`, `fontSize`, `fontWeight`, `margin`, `maxHeight`, `minHeight`, `opacity`, `padding`, and `textAlign`. Built-in animations are `pulse-negative`, `pulse-warning`, and `pulse-positive`. Animation values may be bound to state. ## Sounds Sound URLs must use HTTPS. Local paths and localhost HTTP are accepted while developing. Browser autoplay rules may require the user to interact with the CAD before audio can play. ```json theme={null} { "sounds": [ { "id": "alarm-active", "url": "https://s3.sonorancad.com/default/examples/demos/fire-alarm-demo.mp3", "volume": 0.7, "maxDurationMs": 8000, "trigger": { "event": "state", "path": "summary.active", "operator": "increased" } } ] } ``` | Property | Rules | | - | - | | `id` | Stable sound identifier | | `url` | HTTPS audio URL | | `volume` | 0-1; default `0.7` | | `maxDurationMs` | 1,000-30,000; default `10,000` | | `trigger.event` | `state` or `action` | | `trigger.path` | Dot path in state; omit to compare complete state | | `trigger.operator` | `changed`, `increased`, `decreased`, `equals`, `becameTrue`, or `becameFalse` | | `trigger.value` | Comparison value for `equals` | | `trigger.actionId` | Optional action ID filter for action sounds | State sounds compare the prior and current values and do not play on initial load. Duplicate playback is suppressed for 500 ms. # Poll Integration Panel Actions Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/poll-actions Recover missed Integration Panel action push events with slow backup polling. `GET` `https://api.sonorancad.com/v2/integration-panels/servers/{serverId}/panels/{panelKey}/actions` > **Rate limit:** `3 requests per minute` per API key, shared across all panels and servers. Use [action push events](/cad/api-integration/api-endpoints-v2/integration-panels#action-push-events) for primary delivery. This endpoint is a backup for startup, reconnects, or missed pushes. For one panel, poll about every 20 seconds; multiple panel/server queues must share the total three-request-per-minute budget. Startup and reconnect requests count toward that budget. Respect `Retry-After` after a `429`. Poll unexpired CAD user actions for a panel. Actions remain available until acknowledged or until their 60-second lifetime expires, including actions already sent by push. Push and polling return the same `id`, `cursor`, routing fields, values, and timestamps. Deduplicate by `id` through a shared serial processing queue, including in-flight actions, and retry acknowledgements without reapplying completed effects. Process polled events in cursor order. Acknowledge each event after the third-party action finishes, then persist `nextCursor` only after every returned event is acknowledged. Keep this cursor separate from push delivery: advancing it from a later pushed action can skip an earlier missed action. If processing or acknowledgement fails, keep the prior polling cursor. Do not apply expired events. Polling cannot recover actions after their 60-second lifetime. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured CAD server ID allowed by the API key. | | `panelKey` | string | Stable panel key. | ## Query Parameters | Name | Type | Default | Description | | - | - | - | - | | `after` | integer | `0` | Return events with a cursor greater than this value. | | `limit` | integer | `100` | Return 1-100 events. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > 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:getIntegrationPanelActionsV2( > "example.fire-alarms", > { serverId = 1, after = 0, limit = 100 } > ) > > if response.success then > for _, event in ipairs(response.data.events) do > print(event.actionId, event.id) > end > end > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:getIntegrationPanelActionsV2( > "example.fire-alarms", > { after = 0, limit = 100 } > ) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.getIntegrationPanelActionsV2( > 'example.fire-alarms', > { after: 0, limit: 100 } > ); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var response = await sonoran.Cad.getIntegrationPanelActionsV2( > "example.fire-alarms", > new GetIntegrationPanelActionsV2Query { After = 0, Limit = 100 } > ); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const response = await instance.cad.getIntegrationPanelActionsV2( > 'example.fire-alarms', > { serverId: 1, after: 0, limit: 100 } > ); > > if (response.success) { > for (const event of response.data.events) { > console.log(event.actionId, event.id); > } > } > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > response = instance.cad.getIntegrationPanelActionsV2( > "example.fire-alarms", > {"serverId": 1, "after": 0, "limit": 100}, > ) > > if response.success: > for event in response.data["events"]: > print(event["actionId"], event["id"]) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var response = await sonoran.Cad.getIntegrationPanelActionsV2( > "example.fire-alarms", > new GetIntegrationPanelActionsV2Query > { > ServerId = 1, > After = 0, > Limit = 100 > } > ); > > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Poll Integration Panel Actions" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels/servers/{serverId}/panels/{panelKey}/actions: > get: > summary: "Poll Integration Panel Actions" > operationId: "pollIntegrationPanelActions" > security: > - bearerAuth: > parameters: > - name: "serverId" > in: "path" > required: true > schema: > type: "integer" > example: 1 > - name: "panelKey" > in: "path" > required: true > schema: > type: "string" > example: "example.fire-alarms" > - name: "after" > in: "query" > schema: > type: "integer" > format: "int64" > minimum: 0 > default: 0 > - name: "limit" > in: "query" > schema: > type: "integer" > minimum: 1 > maximum: 100 > default: 100 > responses: > 200: > description: "Pending actions and next cursor" > content: > application/json: > schema: > type: "object" > example: > events: > - cursor: 42 > id: "11111111-1111-1111-1111-111111111111" > panelKey: "example.fire-alarms" > serverId: 1 > instanceKey: "default" > actionId: "alarm.set-active" > actorUuid: "22222222-2222-2222-2222-222222222222" > actorName: "John Doe" > values: > alarmId: "mrpd-lobby" > active: false > createdAt: "2026-08-25T18:02:00Z" > expiresAt: "2026-08-25T18:03:00Z" > nextCursor: 42 > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonorancad.com/v2/integration-panels/servers/1/panels/example.fire-alarms/actions?after=0&limit=100" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response ```json theme={null} { "events": [ { "cursor": 42, "id": "11111111-1111-1111-1111-111111111111", "panelKey": "example.fire-alarms", "serverId": 1, "instanceKey": "default", "actionId": "alarm.set-active", "actorUuid": "22222222-2222-2222-2222-222222222222", "actorName": "John Doe", "values": { "alarmId": "mrpd-lobby", "active": false }, "createdAt": "2026-08-25T18:02:00Z", "expiresAt": "2026-08-25T18:03:00Z" } ], "nextCursor": 42 } ``` # Set Integration Panel Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/set-panel Create or replace a custom Integration Panel definition. `PUT` `https://api.sonorancad.com/v2/integration-panels/{panelKey}` > **Rate limit:** `30 requests per minute` per API key. Create a new panel or replace the complete definition of an existing panel. If `definition.key` is present, it must match `panelKey`. ## Path Parameters | Name | Type | Description | | - | - | - | | `panelKey` | string | Stable 2-80 character panel key. | ## Request Body | Property | Type | Required | Description | | - | - | - | - | | `definition` | object | Yes | Complete schema version 1 panel definition. | See the [Manifest Reference](/cad/api-integration/api-endpoints-v2/integration-panels/manifest-reference) for every definition option. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > local Sonoran = require("sonoran") > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }) > > local definition = { > schemaVersion = 1, > key = "example.fire-alarms", > name = "Fire Alarm", > icon = "fas fa-bell", > surfaces = { "dispatch", "fire" }, > body = { > { type = "text", text = "Connected to the alarm controller." } > } > } > > local response = sonoran.cad:setIntegrationPanelV2("example.fire-alarms", definition) > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local definition = { > schemaVersion = 1, > key = "example.fire-alarms", > name = "Fire Alarm", > icon = "fas fa-bell", > body = { > { type = "text", text = "Connected to the alarm controller." } > } > } > > local response = cad:setIntegrationPanelV2("example.fire-alarms", definition) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const definition = { > schemaVersion: 1, > key: 'example.fire-alarms', > name: 'Fire Alarm', > icon: 'fas fa-bell', > body: [{ type: 'text', text: 'Connected to the alarm controller.' }], > }; > > const response = await cad.setIntegrationPanelV2('example.fire-alarms', definition); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using System.Collections.Generic; > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var definition = new IntegrationPanelDefinitionV2 > { > Key = "example.fire-alarms", > Name = "Fire Alarm", > Icon = "fas fa-bell", > Body = new[] > { > new Dictionary > { > ["type"] = "text", > ["text"] = "Connected to the alarm controller." > } > } > }; > > var response = await sonoran.Cad.setIntegrationPanelV2("example.fire-alarms", definition); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const definition = { > schemaVersion: 1, > key: 'example.fire-alarms', > name: 'Fire Alarm', > icon: 'fas fa-bell', > surfaces: ['dispatch', 'fire'], > body: [{ type: 'text', text: 'Connected to the alarm controller.' }], > }; > > const response = await instance.cad.setIntegrationPanelV2('example.fire-alarms', definition); > console.log(response.success ? response.data : response.reason); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > definition = { > "schemaVersion": 1, > "key": "example.fire-alarms", > "name": "Fire Alarm", > "icon": "fas fa-bell", > "surfaces": ["dispatch", "fire"], > "body": [{"type": "text", "text": "Connected to the alarm controller."}], > } > > response = instance.cad.setIntegrationPanelV2("example.fire-alarms", definition) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var definition = new IntegrationPanelDefinitionV2 > { > Key = "example.fire-alarms", > Name = "Fire Alarm", > Icon = "fas fa-bell", > Surfaces = new[] { "dispatch", "fire" }, > Body = new[] > { > new Dictionary > { > ["type"] = "text", > ["text"] = "Connected to the alarm controller." > } > } > }; > > var response = await sonoran.Cad.setIntegrationPanelV2("example.fire-alarms", definition); > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Integration Panel" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels/{panelKey}: > put: > summary: "Set Integration Panel" > operationId: "putIntegrationPanel" > security: > - bearerAuth: > parameters: > - name: "panelKey" > in: "path" > required: true > schema: > type: "string" > example: "example.fire-alarms" > requestBody: > required: true > content: > application/json: > schema: > type: "object" > required: > - "definition" > properties: > definition: > type: "object" > example: > definition: > schemaVersion: 1 > key: "example.fire-alarms" > name: "Fire Alarm" > icon: "fas fa-bell" > surfaces: > - "dispatch" > - "fire" > body: > - type: "text" > text: "Connected to the alarm controller." > responses: > 200: > description: "Created or replaced panel" > content: > application/json: > schema: > type: "object" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/integration-panels/example.fire-alarms" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "definition": { > "schemaVersion": 1, > "key": "example.fire-alarms", > "name": "Fire Alarm", > "icon": "fas fa-bell", > "surfaces": ["dispatch", "fire"], > "body": [ > { "type": "text", "text": "Connected to the alarm controller." } > ] > } > }' > ``` ## Response ```json theme={null} { "id": "00000000-0000-0000-0000-000000000000", "key": "example.fire-alarms", "name": "Fire Alarm", "definition": { "schemaVersion": 1, "key": "example.fire-alarms", "name": "Fire Alarm", "icon": "fas fa-bell", "surfaces": ["dispatch", "fire"], "body": [ { "type": "text", "text": "Connected to the alarm controller." } ] }, "updatedAt": "2026-08-25T18:00:00Z", "instances": [] } ``` # Set Integration Panel State Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/integration-panels/set-state Replace one panel instance's live state and update connected CAD clients. `PUT` `https://api.sonorancad.com/v2/integration-panels/servers/{serverId}/panels/{panelKey}/instances/{instanceKey}/state` > **Rate limit:** `300 requests per minute` per API key. Replace the complete state object for one panel instance. The update is immediately pushed to connected CAD clients on the selected server. An action may send only one item's changes using [`$itemChanges`](/cad/api-integration/api-endpoints-v2/integration-panels/manifest-reference#saving-one-repeated-item), but this endpoint still requires the complete resulting state. Apply and validate the partial edit in your integration before publishing. The updated CAD renderer clears accepted or superseded local edits on a new revision and retains drafts where the control's published default is unchanged. The panel must already exist. A panel may store up to 100 instances per server. ## Path Parameters | Name | Type | Description | | - | - | - | | `serverId` | integer | Configured CAD server ID allowed by the API key. | | `panelKey` | string | Stable panel key. | | `instanceKey` | string | Stable instance key, commonly `default`. | ## Request Body | Property | Type | Required | Description | | - | - | - | - | | `state` | object | Yes | Complete replacement state; maximum 512 KiB. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > -- luarocks install sonoran.lua > local Sonoran = require("sonoran") > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }) > > local state = { > summary = { active = 1, normal = 2 }, > alarms = { > { id = "mrpd-lobby", name = "MRPD Lobby", active = true } > } > } > > local response = sonoran.cad:setIntegrationPanelStateV2( > "example.fire-alarms", > "default", > state, > 1 > ) > print(response.success) > ``` > [tab] SonoranCADFiveM > > Use this tab from the **server side** of a FiveM resource. Never expose the API key to client scripts. > > Sonoran.lua and Sonoran.js use the configured client exported by `sonorancad`. Sonoran.Net must read the CAD convars and create a client. Grant the resource access to the protected key with `add_convar_permission your-resource-name read sonoran_apiKey`. > > **Sonoran.lua** > > ```lua theme={null} > local cad = exports["sonorancad"]:getCadClient() > local response = cad:setIntegrationPanelStateV2( > "example.fire-alarms", > "default", > { > summary = { active = 1, normal = 2 }, > alarms = { > { id = "mrpd-lobby", name = "MRPD Lobby", active = true } > } > } > ) > ``` > > **Sonoran.js** > > ```javascript theme={null} > (async () => { > const cad = exports["sonorancad"].getCadClient(); > const response = await cad.setIntegrationPanelStateV2( > 'example.fire-alarms', > 'default', > { > summary: { active: 1, normal: 2 }, > alarms: [{ id: 'mrpd-lobby', name: 'MRPD Lobby', active: true }], > } > ); > })(); > ``` > > **Sonoran.Net** > > ```csharp theme={null} > using System.Collections.Generic; > using CitizenFX.Core.Native; > using Sonoran; > > var communityId = API.GetConvar("sonoran_communityID", ""); > var apiKey = API.GetConvar("sonoran_apiKey", ""); > var serverId = int.TryParse(API.GetConvar("sonoran_serverId", "1"), out var parsed) ? parsed : 1; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = communityId, > apiKey = apiKey, > defaultServerId = serverId > }); > > var state = new Dictionary > { > ["summary"] = new Dictionary { ["active"] = 1, ["normal"] = 2 }, > ["alarms"] = new[] > { > new Dictionary { ["id"] = "mrpd-lobby", ["name"] = "MRPD Lobby", ["active"] = true } > } > }; > > var response = await sonoran.Cad.setIntegrationPanelStateV2( > "example.fire-alarms", > "default", > state > ); > ``` > [tab] Sonoran.js > > ```javascript theme={null} > // npm install @sonoransoftware/sonoran.js > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.CAD, > serverId: 1, > }); > > const state = { > summary: { active: 1, normal: 2 }, > alarms: [{ id: 'mrpd-lobby', name: 'MRPD Lobby', active: true }], > }; > > const response = await instance.cad.setIntegrationPanelStateV2( > 'example.fire-alarms', > 'default', > state, > 1 > ); > console.log(response.success ? response.data : response.reason); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > # pip install Sonoran.py > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CAD, > serverId=1, > ) > > state = { > "summary": {"active": 1, "normal": 2}, > "alarms": [{"id": "mrpd-lobby", "name": "MRPD Lobby", "active": True}], > } > > response = instance.cad.setIntegrationPanelStateV2( > "example.fire-alarms", > "default", > state, > 1, > ) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > // dotnet add package Sonoran.Net > using System.Collections.Generic; > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CAD, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > defaultServerId = 1 > }); > > var state = new Dictionary > { > ["summary"] = new Dictionary { ["active"] = 1, ["normal"] = 2 }, > ["alarms"] = new[] > { > new Dictionary { ["id"] = "mrpd-lobby", ["name"] = "MRPD Lobby", ["active"] = true } > } > }; > > var response = await sonoran.Cad.setIntegrationPanelStateV2( > "example.fire-alarms", > "default", > state, > 1 > ); > Console.WriteLine(response.success ? response.data : response.reason); > ``` > [tab] OpenAPI > > Import this YAML into Postman with **Import -> Raw text**. > > ```yaml theme={null} > openapi: "3.0.3" > info: > title: "Sonoran CAD v2 - Set Integration Panel State" > version: "1.0.0" > servers: > - url: "https://api.sonorancad.com" > paths: > /v2/integration-panels/servers/{serverId}/panels/{panelKey}/instances/{instanceKey}/state: > put: > summary: "Set Integration Panel State" > operationId: "replaceIntegrationPanelState" > security: > - bearerAuth: > parameters: > - name: "serverId" > in: "path" > required: true > schema: > type: "integer" > example: 1 > - name: "panelKey" > in: "path" > required: true > schema: > type: "string" > example: "example.fire-alarms" > - name: "instanceKey" > in: "path" > required: true > schema: > type: "string" > example: "default" > requestBody: > required: true > content: > application/json: > schema: > type: "object" > required: > - "state" > properties: > state: > type: "object" > additionalProperties: true > example: > state: > summary: > active: 1 > normal: 2 > alarms: > - id: "mrpd-lobby" > name: "MRPD Lobby" > active: true > responses: > 200: > description: "Stored state and revision" > content: > application/json: > schema: > type: "object" > components: > securitySchemes: > bearerAuth: > type: "http" > scheme: "bearer" > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > --url "https://api.sonorancad.com/v2/integration-panels/servers/1/panels/example.fire-alarms/instances/default/state" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" \ > --header "Content-Type: application/json" \ > --data '{ > "state": { > "summary": { "active": 1, "normal": 2 }, > "alarms": [ > { "id": "mrpd-lobby", "name": "MRPD Lobby", "active": true } > ] > } > }' > ``` ## Response ```json theme={null} { "panelKey": "example.fire-alarms", "serverId": 1, "instanceKey": "default", "state": { "summary": { "active": 1, "normal": 2 }, "alarms": [ { "id": "mrpd-lobby", "name": "MRPD Lobby", "active": true } ] }, "revision": 5, "updatedAt": "2026-08-25T18:01:00Z" } ``` # Internal Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/internal Internal API endpoints not indented or supported for public use. # FiveM Download Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/internal/fivem-download Get a download URL to a pre-configured Sonoran CAD resource. ## FiveM Download `GET``https://api.sonorancad.com/download/fivem//` This endpoint allows you to retrieve a download URL for a community's pre-configured FiveM installation. ### Response Body > [tab] 200 A successful call will be met with the following response: > > ```json theme={null} > { > "download": "https://s3.sonoransoftware.com/cad/temp/temp_e3ed4ee2-35f1-427e-a799-3771bbec4c75_resource.zip", > "configLines": [ > "# Sonoran CAD", > "ensure pNotify", > "ensure wk_wars2x", > "ensure sonorancad", > "ensure tablet", > "# permissions for Sonoran CAD auto-updater (REQUIRED)", > "add_ace resource.sonorancad command allow", > "add_ace resource.sonoran_updatehelper command allow" > ] > } > ``` > [tab] 404 The following 400 errors may be sent in response: > > ```http theme={null} > INVALID COMMUNITY ID OR KEY > ``` ### Response Properties The `download` URL will be a temporary link to a pre-configured ZIP. The `configLines` will be a string array of lines to add to the `server.cfg` to start the CAD resource. `pNotify` may still appear in the generated `configLines` because it is bundled with the default FiveM package, but user-facing notification routing is now configured centrally in `sonorancad/configuration/config.json` via `notificationSystem`, not per submodule. For more information, view the [pre-configured installation guide](/cad/integration-plugins/in-game-integration/fivem-installation#pre-configured-resource-installation-recommended). # Libraries Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/libraries Install links for the official Sonoran SDK libraries used with the v2 API. The official Sonoran SDK libraries provide package-managed access to Sonoran CAD integrations and v2 API helpers. ## Package Manager Links * [Sonoran.js on npm](https://www.npmjs.com/package/@sonoransoftware/sonoran.js) * [Sonoran.lua on LuaRocks](https://luarocks.org/modules/sonoransoftware/sonoran.lua) * [Sonoran.Net on NuGet](https://www.nuget.org/packages/Sonoran.Net) * [Sonoran.py on PyPI](https://pypi.org/project/Sonoran.py/) # Local Endpoints Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/local-endpoints Local API endpoints are pushed directly to the local desktop application, typically from in-game or other network devices. # Smart Lighting Source: https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/local-endpoints/smart-lighting Local API endpoints are pushed directly to the local desktop application, typically from in-game or other network devices. ## Set Smart Light State `POST` `http://localhost:9990/lighting` This method sets the current smart lighting state. #### Request Body | Name | Type | Description | | - | - | - | | state | string | some\_state\_here | > [tab] 200 > > ``` > some_state_here > ``` ```javascript theme={null} { "state": "lights" } ``` ### Lighting States | State | Description | | - | - | | `restore` | Toggle 'Restore' lights when there is no active event | | `lights` | Toggle 'Emergency' lights when emergency vehicle lights are on | | `panic` | Toggle 'Panic' lights | | `available` | Toggle lights when unit status is changed | | `unavailable` | Toggle lights when unit status is changed | | `enroute` | Toggle lights when unit status is changed | | `onscene` | Toggle lights when unit status is changed | | `busy` | Toggle lights when unit status is changed | | `left` | Toggle the left turn signal lights | | `right` | Toggle the right turn signal lights | | `hazard` | Toggle the hazard lights | ### Local Port The local port (`9990` by default) can be modified in the bodycam configuration section. ![Sonoran CAD - Bodycam Port](https://docs-assets.sonoransoftware.com/sha256/92/9250549deb624646c26bbb8f5a474de9d8a4e4b1d434f5933114a755801cb46f.png) # Development Branch Source: https://docs.sonoransoftware.com/cad/api-integration/development-branch Developers can access the Pro version for free and work with upcoming CAD features, API changes, and more. > [!WARNING] > > The development API, database and website are entirely separate from the current production version. For more information in working with our development team please [contact us](https://support.sonoransoftware.com). or join our community [Discord](http://discord.sonorancad.com/). ### Development API Server **Available on staging:** [custom Integration Panels in live-map blip menus](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs). The example covers panel definitions, per-sign state, blip references, and Save actions. Use the staging API and CAD URLs below with a staging community's API key. All API endpoints and requests should be made to the following address: ``` https://staging-api.dev.sonorancad.com ``` ### Development CAD The latest CAD development version can be accessed at the following address: ``` https://staging.dev.sonorancad.com ``` ### FiveM Resource To switch the [SonoranCADFiveM](/cad/integration-plugins/in-game-integration/fivem-installation) resource to the development environment, set the core config mode to: ```json theme={null} "mode": "development" ``` You can also override this with a server convar: ```cfg theme={null} setr sonoran_mode development ``` That mode switch automatically updates the resource to use: * `https://staging-api.dev.sonorancad.com/` for API requests * `https://staging-api.dev.sonorancad.com/apiWsHub` for API websocket traffic * `https://staging.dev.sonorancad.com` for CAD link/UI URLs ### Development Subscription - Free > [!WARNING] > > Data will be reset at random times and **this environment is not suitable for production use**.\ > \ > Use only for testing new features when requested by Sonoran Software Development and for developing API based resources. While our APIs are not restricted based on subscription level, some specific panels or features may be. Communities on the development branch can be upgraded for free with the following steps: 1. Create a new PRO subscription in the development CAD billing portal. 2. At checkout enter `4242 4242 4242 4242` as the card number with any CVV and expiration date. 3. Apply the subscription to your development testing CAD. ### Developer Discord Join our [Discord](http://discord.sonorancad.com/) and access the `#community-development` channel. Here you can discuss API related issues, development, and more. # Getting Started Source: https://docs.sonoransoftware.com/cad/api-integration/getting-started Integrating your gamemode with Sonoran CAD's API will require a couple of things to get started. ## Gather Your Credentials All API calls require some basic authentication. Here's how to find your community ID and API key. > [card] [Retrieving Your Credentials](/cad/api-integration/getting-started/retrieving-your-credentials) ### Map In-Game Users to CAD Users Before you can update units, send calls, or read player data, your integration needs a way to resolve an in-game player to a Sonoran CAD account. > [card] [Map Players to CAD Users](/cad/api-integration/getting-started/setting-your-api-id) ### Start Building Use the official SDK libraries for package-managed helpers, or work directly with the v2 API documentation. > [card] [Libraries](/cad/api-integration/api-endpoints-v2/libraries) > [card] [api-endpoints-v2](/cad/api-integration/api-endpoints-v2) # Retrieving Your Credentials Source: https://docs.sonoransoftware.com/cad/api-integration/getting-started/retrieving-your-credentials All API calls must be authenticated with a community ID and API key. ### Retrieving Your Credentials API credentials are shown under **Admin** > **In-Game Integration** > **API** Click to copy your community ID and API key. ![](https://docs-assets.sonoransoftware.com/sha256/c5/c57e19eabbed38d18416ddd2673e2090c78b918ed6b61dbbe4b49b963e6cb4c9.png) # Map Players to CAD Users Source: https://docs.sonoransoftware.com/cad/api-integration/getting-started/setting-your-api-id Learn how to map in-game players to Sonoran CAD users with unique identifiers. Your integration must be able to tell Sonoran CAD which account an in-game player belongs to. There are four main ways to do that. ## Option 1: `communityUserId` Use `communityUserId` when your game server controls its own player identifier, such as FiveM. This is the default approach used by our [FiveM integration resource](/cad/integration-plugins/in-game-integration/fivem-installation). Players link their CAD account in-game with [`/link`](/cad/integration-plugins/in-game-integration/link-user-in-game), and Sonoran CAD stores the player's game identifier in the account's `communityUserId` field. If you need to go from a CAD push event or API response back to an in-game FiveM player, use that same `communityUserId` as your join key. Our FiveM resource documents this flow in [LINKING\_V2.md](https://github.com/Sonoran-Software/SonoranCADFiveM/blob/master/sonorancad/LINKING_V2.md) and exposes `exports.sonorancad:getPlayerCommunityUserId(source)` for third-party resources. For example, a push event may include `communityUserId = "license:abc123"`. Your server can compare that to the value returned by `getPlayerCommunityUserId(source)` for connected players, or use it alongside the cached unit payload described in [GetUnitCache](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#getunitcache). By default, the FiveM resource uses the `primaryIdentifier` config value, which is set to `license` unless you change it. #### Create Community Link Use the following endpoint to create a 4-character link code and associate it with your game's unique player identifier. * [Create Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/create-community-link) #### Complete User Link Users can complete the link verification by logging in and visiting `sonorancad.com/id?code=1234`. This completes the link and automatically joins the user to the community (if not already). #### Automatic Link from an Embedded CAD As an alternative to the manual 4-character code, the Sonoran CAD frontend emits a message after every successful community login, re-login, or reconnect when it is displayed inside an iframe: ```javascript theme={null} { type: 'scad:account-link', accountUuid: '11111111-1111-1111-1111-111111111111', secretUuid: '22222222-2222-2222-2222-222222222222' } ``` The iframe parent should validate the message source and origin, forward the two UUIDs to its trusted server process, derive the current player's `communityUserId`, and call [Set Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/set-community-link). The frontend event intentionally does not contain the in-game identifier. Keep the secret UUID server-bound: do not log it or store it in the browser, and never expose the community API key to the iframe or game client. See the endpoint documentation for the complete event listener and server-side flow. #### Check User Link Use the following API endpoint and push event to programmatically confirm that a user has completed the link. * [Check Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/check-community-link) * [Community Link Verified](/cad/api-integration/push-events/community-link-verified) Once linked, pass `communityUserId` to supported v2 endpoints to target that player's Sonoran CAD account. ## Option 2: Roblox account linking Use Roblox account linking when the player's Roblox identity is already the source of truth for your integration. Players can link their Roblox account directly to their Sonoran account. Our [ER:LC getting started guide](/cad/integration-plugins/erlc/getting-started#linking-your-roblox-account) walks through that flow. After the account is linked, use the `roblox` parameter on supported v2 endpoints instead of `communityUserId`. This is the preferred approach for Roblox-based integrations because it targets the linked Roblox account directly. ## Option 3: Discord account linking Use Discord account linking when the player's Discord identity is already the source of truth for your integration. Players can link their Discord account directly to their Sonoran account through OAuth. After the account is linked, use the `discord` parameter on supported v2 endpoints instead of `communityUserId`. ## Option 4: account secret key to `accountUuid` Use an account secret key when you already have a trusted Sonoran account secret and need to resolve it to the user's Sonoran account UUID. #### User Secret ID User's can copy their account's secret ID from the settings panel. ![](https://docs-assets.sonoransoftware.com/sha256/94/94b89d77a43d3a2abbcf51d51843cc6198e1d7473bd4f97394ee68bf46fe07e9.png) #### Verify the Secret Use the following endpoint to verify the secret ID and get the user's Sonoran account UUID * [Verify Secret](/cad/api-integration/api-endpoints-v2/general/accounts/verify-secret) You can then use `accountUuid` on supported v2 endpoints. Support for `accountUuid` is more limited than `communityUserId`, `roblox`, or `discord`, so this should usually be treated as a fallback rather than your primary mapping strategy. Reach out to our development team if more expansion is required for your application. # Push Events Source: https://docs.sonoransoftware.com/cad/api-integration/push-events Sonoran CAD pushes event data to your community for further integration possibilities. Learn more below! ## Configuring your Listener Sonoran CAD defaults to websocket delivery when an active [API websocket session](/cad/api-integration/websocket-api/push-events) exists for the target `serverId`. For the [FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation), this socket is setup automatically. If no matching websocket session exists, Sonoran CAD falls back to `http://ip:gameport/sonorancad/event` **utilizing your existing game port**. Server IP and port configuration is automatically added by the [FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation) on startup for HTTP fallback compatibility. You can also [manually configure the server information in the admin panel](/cad/tutorials/customization/configuring-multiple-servers). # Civilian Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/civilian # Character Selected Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/civilian/character-selected This push event is sent when a user selects a new character in the civilian page. ### EVENT\_CHAR\_SELECTED ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_CHAR_SELECTED", "data": { "accId": 000-000-000, // SSO GUID of user account "id": 1, // numerical record ID OR DB sync key string (steam hex, license, etc.) } } ``` # Community Link Verified Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/community-link-verified This push event is sent when a player completes a community link flow. ### EVENT\_COMMUNITY\_LINK\_VERIFIED This push event is sent when a player completes the CAD link flow created by [Create Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/create-community-link). Sonoran CAD prefers websocket delivery first when an authenticated websocket session is active for the target `serverId`. If no matching websocket session exists, it falls back to the standard local HTTP push event listener. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_COMMUNITY_LINK_VERIFIED", "data": { "communityUserId": "license:abc123", "accountUuid": "00000000-0000-0000-0000-000000000000" } } ``` Use `communityUserId` to match the active in-game linking session and mark that player as linked immediately. If you need to verify the current link state on demand instead of waiting for an event, use [Check Community Link](/cad/api-integration/api-endpoints-v2/general/accounts/check-community-link). # Dispatch Events Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events # Attach Unit Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/attach-unit The EVENT_UNIT_ATTACH push event is sent when an identifier/unit is attached to a new call. ## EVENT\_DISPATCH\_UNIT\_ATTACH Post > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_UNIT_ATTACH", "data": { "eventOriginIdent": 123, // Identifier that created/caused this event "ident": 1, // (Option 1) Single Identifier/Unit ID "idents": [123, 456], // (Option 2) Multiple Identifiers/Unit IDs "callId": 111 // Dispatch Call ID } } ``` ### Identifier Field Options The `ident` is a unique number specifying the a unit "identifier" being attached to a call. This field may be replaced with the `idents` array, specifying multiple identifiers being attached to the call at once. # Closed Dispatch Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/closed-dispatch The dispatch event sends a notice to your community when a dispatch call is closed. ### EVENT\_DISPATCH\_CLOSED POST > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_CLOSED", "data": { "eventOriginIdent": 123, // Identifier that created/caused this event "callIds": [1234, 5678] } } ``` # Detach Unit Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/detach-unit The EVENT_UNIT_DETACH push event is sent when an identifier/unit is attached to a new call. ## EVENT\_DISPATCH\_UNIT\_DETACH Post > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_UNIT_DETACH", "data": { "eventOriginIdent": 123, // Identifier that created/caused this event "ident": 1, // (Option 1) Single Identifier/Unit ID "idents": [123, 456], // (Option 2) Multiple Identifiers/Unit IDs "callId": 123 // Dispatch Call ID } } ``` The `ident` is a unique number specifying the a unit "identifier" being detached from a call. The `callId` represents the specific dispatch call they are being removed from. # New Dispatch Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/dispatch-event The dispatch event sends dispatch call information to your community when a dispatch call is created. ### EVENT\_DISPATCH\_NEW POST > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_NEW", "data": [ "eventOriginIdent": 123, // Identifier that created/caused this event "dispatch": { "callId": -1, "origin": 0, // See ORIGIN Enum "status": 0, // See CALL_STATUS Enum "priority": 1, // 1, 2, or 3 "block": "123", "address": "4234 E. Example Ave", "postal": "456", "title": "Traffic Stop", "code": "10-39 - Traffic Stop", "description": "Traffic Stop - Blue Sedan - XP123BS", "notes": "", "idents": [ 987, 123, 456, ], "metaData": { "origin911": 1 // 911 call ID if created from a 911 call } } ] } ``` ### Enumeration Values Sonoran CAD uses integer enumeration values for the `ORIGIN` and `STATUS` fields. See the tables below for more information. > [tab] ORIGIN > > | Integer (Enumeration) Value | Origin Description | > | - | - | > | 0 | CALLER | > | 1 | RADIO DISPATCH | > | 2 | OBSERVED | > | 3 | WALK UP | > [tab] STATUS > > | Integer (Enumeration) Value | Status Description | > | - | - | > | 0 | PENDING | > | 1 | ACTIVE | > | 2 | CLOSED | ### Idents The `idents` field is an array of identifier/unit IDs. These IDs can be mapped by caching a table from the [get units endpoint](/cad/api-integration/api-endpoints-v2/emergency/units/get-active-units). # Dispatch Note Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/dispatch-note This push event sends data when a note is added to an existing dispatch call. ### EVENT\_DISPATCH\_NOTE POST > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_NOTE", "data": { "callId": -1, "note": { "time": "12:00:00", "label": "A-10", "type": "text", "content": "Some message here!" } } } ``` # Modified Dispatch Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/modified-dispatch This push event sends data when an existing dispatch call is modified. ### EVENT\_DISPATCH\_EDIT POST > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_EDIT", "data": [ "eventOriginIdent": 123, // Identifier that created/caused this event "dispatch": { "callId": -1, "origin": 0, // See ORIGIN Enum "status": 0, // See CALL_STATUS Enum "priority": 1, // 1, 2, or 3 "block": "123", "address": "4234 E. Example Ave", "postal": "456", "title": "Traffic Stop", "code": "10-39 - Traffic Stop", "description": "Traffic Stop - Blue Sedan - XP123BS", "notes": "", "idents": [ 987, 123, 456, ], "metaData": { "origin911": 1 // 911 call ID if created from a 911 call } } ] } ``` ### Enumeration Values Sonoran CAD uses integer enumeration values for the `ORIGIN` and `STATUS` fields. See the tables below for more information. > [tab] ORIGIN > > | Integer (Enumeration) Value | Origin Description | > | - | - | > | 0 | CALLER | > | 1 | RADIO DISPATCH | > | 2 | OBSERVED | > | 3 | WALK UP | > [tab] STATUS > > | Integer (Enumeration) Value | Status Description | > | - | - | > | 0 | PENDING | > | 1 | ACTIVE | > | 2 | CLOSED | ### Idents The `idents` field is an array of identifier/unit IDs. These IDs can be mapped by caching a table from the [get units endpoint](/cad/api-integration/api-endpoints-v2/emergency/units/get-active-units). # Toggle Bodycam Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/toggle-bodycam The TOGGLE_BODYCAM push event is sent when an a bodycam state is toggled. ## TOGGLE\_BODYCAM Post > [!WARNING] > > This push event is not sent triggered via the API.\ > API triggers should be listened to locally on the game server ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_DISPATCH_TOGGLE_BODYCAM", "data": { "ident", "1", "state", true } } ``` The `ident` is a unique number specifying the a unit "identifier" being detached from a call. The `state` represents the requested toggle state of the unit's bodycam with `true` being on and `false` being off. # ERS Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/ers Push events for Emergency Response Simulator. # New Callout Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/ers/new-callout This push event is sent when a new ERS callout request is made on the live map. ### EVENT\_NEW\_CALLOUT ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_NEW_CALLOUT", "data": { "callout": { "calloutLocations": [ // Single location object, Z must be dynamically set { "x": 1234, "y": 5678, "z": 0, } ], "pedWeaponData": ["weapon_unarmed"], "pedActionOnNoActionFound": "none", // none, flee, attack, surrender "pedChanceToFleeFromPlayer": 0, // 0-100 "pedChanceToObtainWeapons": 0, // 0-100 "pedChanceToAttackPlayer": 0, // 0-100 "pedChanceToSurrender": 0, // 0-100 } } } ``` # Event 911 Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/event-911 This push event sends data when a new 911/emergency call is placed via API or in-CAD. ### EVENT\_911 POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_911", "data": [ { "call": { "callId": 1234, "isEmergency": true, // Emergency or Civil "caller": "John Doe", "location": "1234 E Hawick Ave", "description": "This is a 911 call!" }, "apiIds": ["Steam:1234", "11112222"], // User account's API ID "communityUserId": "license:abc123", // Linked in-game user identifier "metaData": { "someKey": "someValue" // OPTIONAL: metaData for API custom storage }, } ] } ``` #### API IDs The API ID list will only be returned if the 911 call was placed via the CAD interface and not via an API call. #### Community User ID When the originating CAD account has a linked `communityUserId`, Sonoran CAD includes it in the push payload. This is the preferred field for modern in-game integrations because it matches the same identifier used by v2 account linking and unit-targeting endpoints. For FiveM implementations, see [Map Players to CAD Users](/cad/api-integration/getting-started/setting-your-api-id) and the SonoranCADFiveM [LINKING\_V2.md](https://github.com/Sonoran-Software/SonoranCADFiveM/blob/master/sonorancad/LINKING_V2.md) example flow. # Inferno Pager Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/inferno-pager Push events for Inferno Pager integrations. # Event Pager Reborn Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/inferno-pager/event-pager-reborn This push event is sent when a new Inferno page is sent. ### EVENT\_PAGER\_REBORN ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_PAGER_REBORN", "data": { "addresses": [ "FIRE-1", "BATTALION-1" ], "identIds": [ 12, 34 ], "nature": "Administrative", // Emergency, NonEmergency, or Administrative "body": "Respond to briefing room." } } ``` ### Data Fields * `addresses`: Array of routed Inferno pager address strings selected in CAD. * `identIds`: Array of integer unit identifier IDs when paging specific online units directly. * `nature`: String enum value. Possible values are `Emergency`, `NonEmergency`, and `Administrative`. * `body`: Message body sent with the page. # Record Events Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/record-events Push events are sent to servers when records are added, edited, or removed. # Record Added Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/record-events/record-added The EVENT_RECORD_ADD is sent when a new record has been added in the CAD. ### EVENT\_RECORD\_ADD Note: This event will NOT be fired when adding a record via API, as your server is already aware of the record being added. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_RECORD_ADD", "data": { "record": {} // Custom record object } } ``` ### Custom Record Object The `record` object will contain the custom record object, in accordance with the record format below: > [card] [Custom Record Structure](/cad/api-integration/api-endpoints-v2/general/records#record-structure) # Record Edited Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/record-events/record-edited The EVENT_RECORD_EDIT push event will be sent when a record is modified in the CAD. ### EVENT\_RECORD\_EDIT Note: This event will NOT be fired when editing a record via API, as your server is already aware of the record being added. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_RECORD_EDIT", "data": { "record": {} // Custom record object } } ``` ### Custom Record Object The `record` object will contain the custom record object, in accordance with the record format below: > [card] [Custom Record Structure](/cad/api-integration/api-endpoints-v2/general/records#record-structure) # Record Removed Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/record-events/record-removed The EVENT_RECORD_REMOVE push event is sent when a record is removed in the CAD. ### EVENT\_RECORD\_REMOVE Note: This event will NOT be fired when removing a record via API, as your server is already aware of the record being added. ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_RECORD_REMOVE", "data": { "record": {} // Custom record object } } ``` ### Custom Record Object The `record` object will contain the custom record object, in accordance with the record format below: > [card] [Custom Record Structure](/cad/api-integration/api-endpoints-v2/general/records#record-structure) # Remove 911 Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/remove-911 This push event sends data when a 911 call is removed. ### EVENT\_REMOVE\_911 POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_REMOVE_911", "data": [ { "callIds": [1234, 5678] } ] ``` # Station Alert Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/station-alert Push events for Station Alert. # New Station Alert Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/station-alert/new-station-alert This push event is sent when a new station alert is sent. ### EVENT\_STATION\_ALERT ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_STATION_ALERT", "data": { "locations": [ { "name": "Fire Station One", "open": [ "Door 1", "Door 2" ], "close": [ "Door 3" } } ], "message": "Some TTS message here!", // May also be a base 64 string for AI audio "colors": [ "blue" ], "tone": "tone1", // May also be a S3 URL to hosted tone audio } } ``` # Tone Played Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/tone-played This push event is sent when a tone is played in the CAD. ### EVENT\_TONE ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_TONE", "data": { "url": "https://s3.sonoransoftware.com/someTone.mp3", "playTonesTo": [ { "type": 1, // Dispatch Call "value": 123, // Dispatch Call ID "label": "Dispatch Call 123" }, { "type": 3, // Department "value": "Prescott PD", "label": "Prescott PD" }, ] } } ``` ### playTonesTo Object The[ tone board](/cad/tutorials/customization/tone-board) allows you to play tones to specific identifiers, dispatch calls, departments, and more. The `playTonesTo` array specifies who or what the tone was sent to. #### type Enum The `type` field is an enumerator value as follows: | Enum (Integer) | Description | | - | - | | 0 | All Active Units | | 1 | Specified Dispatch Call ID | | 2 | Specified Agency | | 3 | Specified Department | | 4 | Specified Subdivision | | 5 | Specified Unit Identifier | | 6 | Specified Unit Group | #### value Property The `value` property represents the specific target for the `type`.\ Ex: On a `type` `1` (dispatch call) the `value` would be a number representing the dispatch call ID. # Unit Events Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events # Unit Group Add Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-group-add This push event notifies your server when a unit is added to a unit group. ## EVENT\_UNIT\_GROUP\_ADD POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_GROUP_ADD", "data": { "identId": 1, "identIds": [1, 2, 3], // OPTIONAL: Only sent when a unit group is having the name updated "groupName": "Ladder 61" } } ``` # Unit Group Name Change Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-group-name-change This event is fired when a unit group's name is modified. ## EVENT\_UNIT\_GROUP\_CHANGE\_NAME POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_GROUP_CHANGE_NAME", "data": { "identIds": [1, 2, 3], // Unit Identifier IDs "oldName": "Some Old Group", "newName": "My New Group Name" } } ``` # Unit Group Remove Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-group-remove This push event notifies your server when a unit is removed from a unit group. ## EVENT\_UNIT\_GROUP\_REMOVE POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_GROUP_REMOVE", "data": { "identId": 1, "groupName": "Ladder 61" } } ``` # Unit Login Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-login This push event is sent whenever a unit logs into the CAD. ### EVENT\_UNIT\_LOGIN ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_LOGIN", "data": [ { "unit": { "id": -1, "accId": "123-456-7890", // Account UUID "status": 0, // See UNIT_STATUS Enum "isPanic": false, // PANIC State "location": "1234 E. Test Ave", "aop": "South District", "data": { "apiIds": [ "STEAM:1234", // API ID - Typically Steam Hex ], "unitNum": "A-10", "name": "Brian Sosnowski", "district": "Maricopa County", "department": "MCSO", "subdivision": "Speed Enforcement", "rank": "CPT", "group": "CAR 51", // Name of unit group "page": 0 // Police } }, "isDispatch": false, "selfDispatch": false } ] } ``` ### Enumeration Values #### Unit Status Sonoran CAD uses integer enumeration values for the unit `STATUS` field. See the tables below for more information. These values reflect the default [unit status](/cad/tutorials/customization/unit-status-codes) options. | Integer (Enumeration) Value | Status Description | | - | - | | 0 | UNAVAILABLE | | 1 | BUSY | | 2 | AVAILABLE | | 3 | ENROUTE | | 4 | ON\_SCENE | #### Unit Page The unit's `data.page` property reflects what page in the CAD the unit is viewing. | Integer (Enumeration) Value | Description | | - | - | | 0 | POLICE | | 1 | FIRE | | 2 | EMS | | 3 | DISPATCH | # Unit Logoff Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-logoff This push event is sent whenever a unit logs into the CAD. ### EVENT\_UNIT\_LOGOUT ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_LOGOUT", "data": [ { "identId": 1, // Identifier ID } ] } ``` ### Enumeration Values Sonoran CAD uses integer enumeration values for the unit `STATUS` field. See the tables below for more information. These values reflect the default [unit status](/cad/tutorials/customization/unit-status-codes) options. | Integer (Enumeration) Value | Status Description | | - | - | | 0 | UNAVAILABLE | | 1 | BUSY | | 2 | AVAILABLE | | 3 | ENROUTE | | 4 | ON\_SCENE | # Unit Panic Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-panic This event is sent when a unit toggles their panic status. ### EVENT\_UNIT\_PANIC ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_PANIC", "data": [ { "identIds": [1, 2, 3], // Identifier IDs "isPanic": true } ] } ``` # Unit Status Update Source: https://docs.sonoransoftware.com/cad/api-integration/push-events/unit-events/unit-status-update This push event is sent whenever a unit's status call is changed. ### EVENT\_UNIT\_STATUS ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "EVENT_UNIT_STATUS", "data": [ { "identIds": 1, "status": 0 } ] } ``` ### Ident Field The `identIds` array contains the unit identifier ID(s). ### Enumeration Values Sonoran CAD uses integer enumeration values for the unit `STATUS` field. See the tables below for more information. These values reflect the default [unit status](/cad/tutorials/customization/unit-status-codes) options. | Integer (Enumeration) Value | Status Description | | - | - | | 0 | UNAVAILABLE | | 1 | BUSY | | 2 | AVAILABLE | | 3 | ENROUTE | | 4 | ON\_SCENE | # Websocket API Source: https://docs.sonoransoftware.com/cad/api-integration/websocket-api Access the Sonoran CAD API via WSS to reduce authentication overhead for frequent API calls. Use the websocket API for persistent, low-overhead integration traffic. For frequent live-map location updates, prefer the websocket API over the HTTP v2 endpoint: * Websocket `unitLocation` updates can be sent every `200ms` minimum. In practice, sending every `250ms` is a safe default. * HTTP v2 `PATCH /v2/emergency/servers/{serverId}/unit-locations` is rate limited to `12 requests per minute`, which is effectively one request every `5 seconds`. Current websocket API features include: * Authenticating once and reusing the session for repeated calls * Sending frequent `unitLocation` updates for the live map * Receiving Sonoran CAD `pushEvent` messages for a specific `serverId`, including normal push-event traffic before HTTP listener fallback is used ## Pages * [Authentication](/cad/api-integration/websocket-api/authentication) * [Unit Locations](/cad/api-integration/websocket-api/unit-locations) * [Push Events](/cad/api-integration/websocket-api/push-events) # Authentication Source: https://docs.sonoransoftware.com/cad/api-integration/websocket-api/authentication All websocket API calls require authentication prior to invoking functions. ## Websocket Authentication ### Authentication Method #### **Method:** ``` authenticatev2 ``` #### **Parameters:** | Parameter | Type | | - | - | | `communityId` | String | | `apiKey` | String | | `serverId` | Number (Optional) | ### Response ``` { success: boolean, error: string, count: number } ``` ### serverId `serverId` is optional for websocket authentication. Use it when you want this websocket connection to receive Sonoran CAD push events for a specific configured server. If provided, the `serverId` must match a valid server configured in your CAD. If `serverId` is omitted, the websocket session can still call websocket API methods such as `unitLocation`, but it will not be used as a push event destination for a specific server. ### Auth JS example (Node.js) Requires: **Add the Microsoft SignalR Library** ``` npm i @microsoft/signalr ```
  ``// Import the signalr library for backend connection
  const signalR = require("@microsoft/signalr");

  // Establist the connection object
  const connection = new signalR.HubConnectionBuilder()
    .withUrl("https://api.sonorancad.com/apiWsHub", {
      transport: signalR.HttpTransportType.WebSockets,
      skipNegotiation: true,
    })
    .withAutomaticReconnect()
    .build();

  // Start the WSS connection
  await connection.start();

  // Replace community ID and API key
  const auth = await connection.invoke("authenticatev2", "yourCommunityId", "yourApiKey", 1);
  if (!auth?.success) {
    throw new Error(`Authentication failed: ${auth?.error || "unknown error"}`);
  }
  ``
# FiveM Configuration Source: https://docs.sonoransoftware.com/cad/api-integration/websocket-api/fivem-configuration How the FiveM resource loads CAD-managed settings. Save settings in **Admin > Integrations > In-Game Integration > Manage Your Game Setup** and restart the FiveM resource to load them. ## Delivery The resource requests the selected server's settings at startup through [Get FiveM Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration). ## Payload The API returns the [full configuration object](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration#response). It contains the core settings and each plugin's settings. ## Resource behavior For a server pending migration, use [Migrate FiveM Configuration](/cad/api-integration/api-endpoints-v2/general/configuration/migrate-fivem-configuration) to upload the existing settings before fetching them. # Push Events Source: https://docs.sonoransoftware.com/cad/api-integration/websocket-api/push-events Receive Sonoran CAD push events over the websocket API. The websocket API can receive Sonoran CAD push events without exposing a local HTTP listener. When a valid websocket session is active for the target `serverId`, Sonoran CAD sends push events to that socket first. ## How It Works When your websocket client authenticates with a valid `serverId`, Sonoran CAD checks for an active websocket session for that exact community/server pair before sending a traditional push event HTTP `POST`. If a matching websocket session exists: * The push event is sent over the websocket connection. * The legacy HTTP push event fallback is skipped. If no matching websocket session exists: * Sonoran CAD falls back to the existing HTTP push event delivery flow for that server IP/port. * This fallback is useful for custom listeners or for servers that are not keeping an API websocket connection open. The FiveM resource [fetches its configuration at startup](/cad/api-integration/api-endpoints-v2/general/configuration/get-fivem-configuration). ## Requirements * Authenticate over `/apiWsHub` * Pass your `communityId` * Pass your Sonoran CAD `apiKey` * Pass the target `serverId` you want to receive push events for ## Incoming Event Name Your websocket client should listen for: ``` pushEvent ``` ## Payload Format The `pushEvent` payload is the same JSON payload previously sent to local push event listeners over HTTP. Example: ```json theme={null} { "key": "YOUR_API_KEY", "type": "EVENT_UNIT_STATUS", "data": { "units": [] } } ``` This means your existing push event parsing logic can usually be reused with minimal changes. ## Node.js Example ```js theme={null} const signalR = require("@microsoft/signalr"); const connection = new signalR.HubConnectionBuilder() .withUrl("https://api.sonorancad.com/apiWsHub", { transport: signalR.HttpTransportType.WebSockets, skipNegotiation: true, }) .withAutomaticReconnect() .build(); connection.on("pushEvent", (payload) => { try { const event = typeof payload === "string" ? JSON.parse(payload) : payload; console.log("Received push event:", event.type, event.data); } catch (err) { console.error("Failed to parse push event payload:", err.message); } }); await connection.start(); const auth = await connection.invoke( "authenticate", "yourCommunityId", "yourApiKey", 1 ); if (!auth?.success) { throw new Error(`Authentication failed: ${auth?.error || "unknown error"}`); } ``` ## Notes * Push event delivery over websocket is scoped to the authenticated `serverId`. * If you operate multiple servers, create one websocket session per target `serverId`. * Unit location updates continue to use the `unitLocation` websocket method separately from inbound `pushEvent` messages. # Unit Locations Source: https://docs.sonoransoftware.com/cad/api-integration/websocket-api/unit-locations Update unit locations for the live map. ## Rate Limits * Maximum of one request every 250ms * Maximum of 25 unit update objects per request > Use this websocket method for high-frequency live map streaming when possible. The HTTP v2 alternative is [`PATCH /v2/emergency/servers/{serverId}/unit-locations`](/cad/api-integration/api-endpoints-v2/emergency/units/update-unit-locations), but that route is limited to 12 requests per minute. ## Websocket API ### Authentication Method #### **Method:** ``` unitLocation ``` #### **Parameters:** | Parameter | Type | | - | - | |
`data
`
| Array of `unitLocationObject` | #### Structure unitLocationObject ```js theme={null} { communityUserId: "player-1234", // Optional alternative to apiId or identId roblox: 123456789, // Optional alternative to communityUserId, apiId, or identId apiId: "SOME_API_ID", // Optional identId: 42, // Optional location: "US-101 / Exit 15", coordinates: { x: 123.45, y: 678.9, z: 21.0, w: 180.0 }, peerId: "bodycam-1-123", // Used only for P2P bodycam streams vehicle: { model: 'https://example.com/model.obj', // S3 URL to a 3D map object zOffset: 0, // Offset model Z (height) on map lightZOffset: 0, // Offset light effect Z (height) on map sizeOffset: 0, // Increase/Decrease Size headingOffset: 0, // Offset heading direction for 3D model lights: false // Show emergency lights flashing on model } } ``` Each update must include `location` plus one target identifier: `communityUserId`, `roblox`, `apiId`, or `identId`. Authenticate the SignalR connection first with [`authenticatev2`](/cad/api-integration/websocket-api/authentication). ### Response #### Success ``` { success: boolean, error: string, count: number } ``` #### Error ``` - Unauthenticated: "Unauthenticated. Call authenticate first." - Missing/empty array: "Missing unit location updates." - Batch too large: "Too many unit updates in one call. Max is 25." - Too fast: "UNIT_LOCATION updates are limited to every 200ms." - Invalid target: "Each unit update requires identId, apiId, communityUserId, or roblox, and location." ``` ### Unit Location JS example (Node.js): ```js theme={null} setInterval(async () => { const updates = [ { communityUserId: "player-1234", location: "Interstate 4 / Mile 228", position: { x: 8.5, y: 2.1, z: 0.0, w: 90.0 }, }, ]; try { await connection.invoke("unitLocation", updates); } catch (err) { console.error("send failed:", err.message); } }, 250); ``` # 📱Download The App Source: https://docs.sonoransoftware.com/cad/download Sonoran CAD is available on the web, Windows desktop, macOS, Linux, iOS App Store, and Google Play store! Select your platform below and download the official app today! ![](https://docs-assets.sonoransoftware.com/sha256/ab/ab7e067fb48647444267718ee73fedc348ea3282b5e454c2d2c1fc2381ce5b06.png) | Website | iOS App Store | | - | - | | Website | iOS App Store | | iOS App Store | [Download](https://apps.apple.com/us/app/sonoran-cad/id1496539456) | | Google Play Store | [Download](https://play.google.com/store/apps/details?id=sonorancadmdt.app\&hl=en_US) | | Windows | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cad\&platform=windows) | | macOS | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cad\&platform=macos) | | Linux (AppImage) | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cad\&platform=linux) | ### MacOS & Windows Desktop Our MacOS and Windows desktop application allows you to access [global hotkeys](/cad/tutorials/other-features/configurable-hotkeys) regardless of whether or not the app is in-focus. You can even configure our [Stream Deck plugin](/cad/integration-plugins/stream-deck-integration) to work with your deskop app! ### iOS and Android Only Sonoran CAD has dedicated [iOS](https://apps.apple.com/us/app/sonoran-cad/id1496539456) and [Android](https://play.google.com/store/apps/details?id=sonorancadmdt.app/\&hl=en_US) applications to access your community's CAD with a mobile native experience. Download it today for your tablet or mobile device! ### Linux Download the AppImage, mark it executable in your file manager, and open it to start the app. These desktop downloads follow the latest available release for each platform. [Verify the Linux download signature](https://sonoran-software.github.io/Sonoran-Desktop-Apps/signing.html). # Desktop App - Clear Cache Source: https://docs.sonoransoftware.com/cad/download/desktop-app-clear-cache This guide covers how to clear your Windows Desktop app cache. You may need to manually clear your Sonoran CAD desktop application's cache for troubleshooting steps. The guide below will walk you through the process. ### Open Your AppData Folder In the window search bar type `run` and open the run application.\ Enter `appdata` then hit `Ok`\ ![Windows - Run AppData](https://docs-assets.sonoransoftware.com/sha256/d7/d7561f584fbacce82c9b8bacc70e4f825c746fc9408d79c6fd96c1e4d606773a.png) ### Delete the Cache Folder Navigate to `Roaming` > `Sonoran CAD` and delete the `Cache`, `Local Storage`, and `Session Storage` folders. ![Desktop App - Cache Folders](https://docs-assets.sonoransoftware.com/sha256/76/761dd7dd547968bfcca8802f8aad975dff4e81a7244ec0c0043134a83c51e527.png) # GTA RP Tablet - Clear Cache Source: https://docs.sonoransoftware.com/cad/download/fivem-clear-cache This guide covers how to clear your FiveM game cache. You may need to manually clear your FiveM cache for troubleshooting steps. The guide below will walk you through the process. Sometimes updates will not automatically apply to your tablet and this process will resolve the issue. > [!WARNING] > > Make sure to close GTA RP before performing these steps To do this, right-click on your GTA RP application shortcut and click on the Open file location. ![](https://docs-assets.sonoransoftware.com/sha256/ad/adfb4b1276f7014ea75f2e9d2a7779803e25177b70e363f439f343ef4ee3bc11.png) Now you will need to go to the GTA RP **Application Data**. ![](https://docs-assets.sonoransoftware.com/sha256/58/58843e6ae36e9b1f4be20fcb07ab2cd6ef0422cddca70246491a4816c8524525.png) You will find a **data** folder there; click on it. ![](https://docs-assets.sonoransoftware.com/sha256/42/42384b13b59eb7e5b07cc663a9910cc4cdae24c6e353535b539ce31699e06022.png) Here you must delete the **cache, nui-storage**, **server-cache** and **server-cache-priv** folders. ![](https://docs-assets.sonoransoftware.com/sha256/4c/4ca8c6a09d99b4571da3023d07d20491f57ea1d4e44b87b128737aa5a5e22feb.png) # Steam Browser - Clear Cache Source: https://docs.sonoransoftware.com/cad/download/steam-browser-clear-cache Learn how to clear your Steam browser's cache. ### Open the Settings Page In the Steam application, navigate to `Steam` > `Settings` ![Steam - Open Settings](https://docs-assets.sonoransoftware.com/sha256/af/affad560d329ee2cf2df14fab87202f008fba21edd27b1423c6ff84b6c02812a.png) ### Clear Web Browser Cache In the settings page, select `Web Browser` > `Delete Web Browser Cache` ![Steam - Clear Browser Cache](https://docs-assets.sonoransoftware.com/sha256/a8/a84ed19e24c41411cd2ee2482cbf69109839fc0e2a720011514fc6de2c2fb34a.png) # Steam Browser - Workaround Source: https://docs.sonoransoftware.com/cad/download/steam-browser-workaround Lean how to more easily view Sonoran CAD while in-game. ![Sonoran CAD - In-Game Use](https://docs-assets.sonoransoftware.com/sha256/5f/5f9817d5f221d0d5ec387294207c35262f55547ae811f82d87fa9aede29e3717.gif) ## Introduction Many users utilize Steam's browser/overlay system. The Steam browser utilizes an out-of-date version of [CEF ](https://en.wikipedia.org/wiki/Chromium_Embedded_Framework)to run. Because of this, the Steam browser is known for it's infamous freezing, lagging, and general lack of support for developers. While the Steam browser works well for basic websites, some users may experience issues with larger web apps like Sonoran CAD. ## Accessing the CAD In-Game ### Download the Desktop App [Download our official Windows desktop application](/cad/download). This allows support for our [global hotkeys](/cad/tutorials/other-features/configurable-hotkeys), [bodycam](/cad/integration-plugins/twitch-overlay-and-bot), and more! ### Configure your Hotkey Once you've opened the desktop app, open the settings modal to configure your `show` hotkey.\ When pressed, this will open the desktop app on-top of your game client. ![Sonoran CAD - Desktop Hotkey: Show](https://docs-assets.sonoransoftware.com/sha256/06/06df5f76bad5d1d9c9bc030f22144c5a31c6593451cbab19736d5a3a388715fd.png) ### Configure your Game Client Depending on what game you're running, ensure it's in "Borderless Windowed" mode. This means the game is running as a window, with no top border. In GTAV, this mode is actually just called `Full Screen`. ![GTA - Windowed Borderless Mode](https://docs-assets.sonoransoftware.com/sha256/87/876fbc1b3e12bbda9f508da6f1a25ead8942c650a6e0f957263095876873f626.png) ### Auto-Hide Windows Taskbar (Optional) Specifically with streamers, some users may want to hide the Windows taskbar that appears when the CAD is placed on top of the game. To do so, simply right-click the taskbar > Taskbar Settings > Automatically Hide the Taskbar ![Taskbar - Auto Hide](https://docs-assets.sonoransoftware.com/sha256/8b/8b8c12f14ad1fb136d2626b0eb50bbf402c326704554a3b6f12849388b3f3ad7.png) ### Utilize the Hotkey In-game, simply press your hotkey to toggle the CAD display both on and off.\ When the CAD is toggled off, your game will automatically regain focus! # Web Browser - Clear Cache Source: https://docs.sonoransoftware.com/cad/download/web-browser-clear-cache This guide covers how to clear your desktop browser's cache. You may need to manually clear your Sonoran CAD desktop browser's cache for troubleshooting steps. The guide below will walk you through the process. ### Chrome - Hard Refresh Most modern browsers allow you to hold `Shift` and click `Refresh` at the same time. Doing so will reload the page with your local cache cleared. ### Chrome - Settings In the Chrome address bar, paste the following:\ `chrome://settings/clearBrowserData?search=cache` Select the following options and press `Clear Data`. ![Chrome - Clear Cache](https://docs-assets.sonoransoftware.com/sha256/2b/2b5c2afbbb34e51f2edb745dd9fe15bd27bad46d10410753fcd103fb5ece8e14.png) # Database Sync and Merge Source: https://docs.sonoransoftware.com/cad/integration-plugins/database-sync-and-merge Database Sync allows you to search all in-game characters, licenses, and vehicle registrations stored in your FiveM database—without manually creating records in Sonoran CAD. > [!NOTE] > > Database Sync requires the **Plus** version or higher of Sonoran CAD. > > Additional features like Database Merge and Friendly Mapping require the **Pro** version of Sonoran CAD. > > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). > [!TIP] > > Looking for VPS, web, or dedicated hosting? Check out our official [server hosting](/promotions/fivem-hosting)! ![Character and vehicle lookup results in Sonoran CAD.](https://docs-assets.sonoransoftware.com/sha256/f0/f0b6411d9bfe670e456c2b4d02e3781fd16ae30e15a3fef9940f80c214febe20.png) ## What is DB Sync? Database Sync allows you to search all in-game characters, licenses, and vehicle registrations stored in your FiveM database—without manually creating records in Sonoran CAD. When a lookup is performed, Sonoran CAD securely queries your FiveM framework’s database and displays the results using your custom record templates. ## Configuring DB Sync ### Enter Connection Credentials In order for Sonoran CAD to read your in-game database, you must configure the connection information. > [tab] RocketNode > > **Rocket Node Hosting - Database Credentials** > > **1. Login** > > Login to your RocketNode game panel and navigate to your FiveM Server. > > **2. Select the Database** > > On the left sidebar select **Databases** > **...** menu > **Details** > > ![](https://docs-assets.sonoransoftware.com/sha256/b2/b28010cbeac007e2f89f9fbbd4d979d4c46b57250e52919822f14447c591c580.png) > > **3. Copy Connection Credentials** > > Enter the following items from the RocketNode database details panel into Sonoran CAD > > * **Endpoint** > * This includes the "Host" and "IP" portions for Sonoran CAD. From the image below, the Sonoran CAD **Host** would be `db-ash-06.apollopanel.com` and the **Port** would be `3306`. > * **Username** > * Direct copy from RocketNode to the Sonoran CAD's **Username** field. > * **Password** > * Direct copy from RocketNode to the Sonoran CAD's **Password** field. > * **Database** > * Outside of the database details window the database name can be clicked to be copied and pasted into the Sonoran CAD **Database** field (image 2). > > ![](https://docs-assets.sonoransoftware.com/sha256/f8/f8391b23c4f1f57a0b3aa0a31f030120dcb0ab3774929b5e6a161bc8c997fe9e.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/ff/ffd2c641e410ea25062e07caa33566b16fcb63fe51402add962b3919213a4bfe.png) > [tab] Zap Hosting > > **Zap Hosting - Database Credentials** > > **1. Login** > > Login to your Zap Hosting Account and Navigate to your FiveM Server. > > **2. View the Tools Section** > > Scroll down until you see **TOOLS** on the left hand side of your screen and select **`Databases`.** > > ![ZAP Hosting Tools - Database](https://docs-assets.sonoransoftware.com/sha256/fc/fc4207800ad42e370eb3e40aa9e05f8bdec8f3ffcc82a41f2bbbd1600de214b3.png) > > **3. View Database Credentials** > > In the Center of your screen you will see you're database Credentials. > > ![Zap Hosting - Database Credentials](https://docs-assets.sonoransoftware.com/sha256/8e/8e6a047544c57320890ed9327f7309df18d88bc9cb9a63cf61ec910b8cd87449.png) > > **4. Set DB Credentials in Sonoran CAD** > > Database Translation Information > > | Zap Hosting | SonoranCAD | > | - | - | > | Server/IP | Host/Address | > | Database | Database | > | User | Username | > | Password | Password | > > > [!WARNING] > > > > See [Database Sync and Merge Connection Credentials](/cad/integration-plugins/database-sync-and-merge#written-configuration-guide) to figure out how to add Credentials to your CAD Instance using the information above. > [tab] HeidiSQL > > **HeidiSQL - Database Credentials** > > **1. Login to your database using HeidiSQL.** > > **2. Open the User Manager** > > At the top of your screen click `Tools` and then `User Manager.`\ > Then, click `Add` at the top left. > > ![HeidiSQL - Open User Manager](https://docs-assets.sonoransoftware.com/sha256/aa/aa4bee88cf1de7d2306c64901dfc66c3f58e5f2e6ab5ba09f379a889df5e96d7.png) > > **3. Enter the Account Information** > > Enter a user name, password, and enter `%` in the From host field. This will allow external IPs (Sonoran CAD) to connect to your database. > > Under `Allow Access To` select `Add Object` > > ![HeidiSQL - User Account Credentials](https://docs-assets.sonoransoftware.com/sha256/2b/2b271558360ea025aa56530fbbd25b7320053266814f507e9a97d6d44d5e4382.png) > > **4. Select the Database** > > Select the name of your database, then hit `Ok`. > > ![HeidiSQL - Select Database](https://docs-assets.sonoransoftware.com/sha256/ef/ef6a8809e660e8b293c7cbc20c68aae02e705715519695dfbc22597407594e20.png) > > **5. Select the Permissions** > > Check off the `EXECUTE`, `SELECT`, and `SHOW VIEW` read permissions. Then press `Save`. > > ![HeidiSQL - Select User Permissions](https://docs-assets.sonoransoftware.com/sha256/73/73d8ac20ce0872bfdd5f45ed8380b1ada35b56a659ad629f9488b61e09fd9f91.png) > > **6. Save the user and set credentials in Sonoran CAD** > > You will now want to go to [http://whatsmyip.org](http://whatsmyip.org) and get your Public IP Address to use as your Host. > > Database Translation Information > > | HeidiSQL | SonoranCAD | > | - | - | > | Host | Host/Address | > | User name | Username | > | Password | Password | > | Database | Database | > > > [!WARNING] > > > > See [Database Sync and Merge Connection Credentials](/cad/integration-plugins/database-sync-and-merge#written-configuration-guide) to figure out how to add Credentials to your CAD Instance using the information above. > [tab] phpMyAdmin > > **phpMyAdmin - Database Credentials** > > **1. Navigate to your phpMyAdmin Web Panel** > > **2. Navigate to User Accounts** > > At the top of your screen click on **`User Accounts`**. > > ![](https://docs-assets.sonoransoftware.com/sha256/77/774d4d0b5cbf7d8d63f28ef3ab555d135436e5ac6fc06edd5941a37984d4de1c.png) > > **3. Create a new user account** > > ![phpMyAdmin - New User Account](https://docs-assets.sonoransoftware.com/sha256/38/38414ad48a447c587d9164fa724822eb464fa1fc568a5e7273283480d079c9ec.png) > > **4. Fill out the account information** > > The `Host Name` field should be set as `Any Host` and the value as `%`. This will allow external IPs (Sonoran CAD) to connect to your database. > > ![phpMyAdmin - New User Information](https://docs-assets.sonoransoftware.com/sha256/91/910423d86103993fce93a8178f71e279ed24b65c3b86e9fb69e383255a8bbbfc.png) > > **5. Once created, edit the user account privileges** > > ![phpMyAdmin - Edit Account Privileges](https://docs-assets.sonoransoftware.com/sha256/a7/a73ad0454d756c37980df3ebc5d87b52499ba30cac34f298517b37e738008b7d.png) > > **6. Select your specific database** > > ![phpMyAdmin - Set Database](https://docs-assets.sonoransoftware.com/sha256/83/83b8b8581763001aca894f3f44d03651acf3bbb480cf61d0349663b50310c37c.png) > > **7. Select only the required permissions** > > `SELECT` and `SHOW VIEW` will ensure this account can only read from your database. > > ![phpMyAdmin - Read Only Permissions](https://docs-assets.sonoransoftware.com/sha256/c3/c3d8c55ea7723ad5de93f7b813612376d3b5d277e4f2b053df325dce40bb6948.png) > > **8. Save the user and set credentials in Sonoran CAD** > > You will now want to go to [http://whatsmyip.org](http://whatsmyip.org) and get your Public IP Address to use as your Host. > > Database Translation Information**:** > > | phpMyAdmin | SonoranCAD | > | - | - | > | Host | Host/Address | > | Database | Database | > | User name | Username | > | Password | Password | > > > [!WARNING] > > > > See [Database Sync and Merge Connection Credentials](/cad/integration-plugins/database-sync-and-merge#written-configuration-guide) to figure out how to add Credentials to your CAD Instance using the information above. > [accordion] Manual Port Forwarding > > If your database port has not already been opened, you will need to forward/open this port.\ > Typically, the default MySQL port is `3306`. > > To check if your MySQL port has been properly opened, [visit a port checking utility](https://www.yougetsignal.com/tools/open-ports/) and enter your MySQL server's IP address and port. > > **If you are unsure how to open a port, you will need to contact your hosting provider.** > [accordion] IP Whitelisting > > ## IP Whitelisting > > My community wants to whitelist **only** the Sonoran CAD IP address to connect on this SQL user account. How can I do this? > > You may whitelist the following IPs: > > ``` > 34.173.36.190 > ``` > > Last Updated : 1/15/2026 ### Combine API and DB Sync Records > [accordion] Combine API and DB Sync Records > > When a community uses database sync, all record lookups run against that community’s external database. Some communities may also want to include CAD records created through [integrations such as ERS](/cad/integration-plugins/in-game-integration/available-plugins/ers). Enabling this option allows lookups to return both in-game data, such as characters, licenses, and vehicles, and API-created characters and vehicles from ERS. > > To enable this, turn on **Include CAD API records in DB Sync lookups**. > > ![](https://docs-assets.sonoransoftware.com/sha256/b3/b386cb4939562532f5798321fcf4d2fca337d828dc6d32491719b2b078ea0976.png) ### Automatic AI Setup > [accordion] Automatic AI Setup > > Sonoran CAD's automatic AI setup handles all of the configuration for you. Once your connection credentials are entered correctly, select **AI Automatic Setup** to complete the full configuration. > > The AI will automatically add any primary key columns if missing, will update your license record for any additional types, and will configure friendly mapping values if your community is on the Pro version. This process typically takes 60-90 seconds. > > Once completed, the AI will inform you of any missing columns (record fields that don't exist in your database) and will save the new configuration. > > Next, run a lookup in the police or dispatch panel to test searching for exisitng in-game characters, licenses, and vehicle registrations. > > ![](https://docs-assets.sonoransoftware.com/sha256/64/6403ae11afc945219dba1385a88c2156951a034197d1afd1a2ec4f7d4c25f3c8.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/64/6489dcf19a7bd9a4290318f9691c26ab6f69471690adcc09f8102b5b522c82a6.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/5d/5d7db4ce4ec25d193982cf52182483338556f8dff582172aa8e34ef60d5c80a8.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/2c/2ce177d173cc3d5cf3bc35d01e512406801d74ca5ca9ec644a8f6b8f7db48a16.png) ### Automatic Selfie/Portraits > [accordion] Automatic Character Photos > > FiveM communities can also use the [Civilian Registration](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration) submodule to create automatic character photos on their db sync records. > > Ensure the submodule has been enabled and started, then run the AI configurator to ensure the `sonoran_mugshot` DB column has been mapped to your character record's image field. ## Database Merge > [accordion] Database Merge > > For security, Sonoran CAD’s database sync is read-only. It retrieves information from your in-game database but never modifies it. Available fields—such as vehicle color, hair color, and other character details—are automatically loaded into your custom record templates. > > If your database does not contain the information required for certain custom fields, those fields will appear blank. Database Merge allows you to manually complete these records without changing your in-game database. > > When you enter information into a blank field, Sonoran CAD saves the additional data separately. During future lookups, it automatically combines your in-game database information with the manually entered CAD data to display a more complete record. > > Database Merge is available exclusively to Pro communities and can be enabled from the Connection Credentials tab. > > ![](https://docs-assets.sonoransoftware.com/sha256/db/dbf9b43566d84aede3377ee5c47f4647d34878e57f79728dab2a983d4e83e696.png) ## Friendly Mapping > [accordion] Friendly Mapping > > Friendly mapping allows you to convert any raw database value to a more user friendly value. > > \ > Ex: > > * `drive_license` in your database is converted to `Driver's License`. > * `color1` in your database is converted to `Brown`. > > To manually configure friendly mapping on a field, select the **Modify** button under the **Friendly Mapping** column. Enter in a raw database value and the friendly value that should be replaced. > > ![](https://docs-assets.sonoransoftware.com/sha256/0a/0aa2c507d352df50b8e3e25f672ba60944ba434c42601d1d448d3962308e7020.png) # Old: Manual Sync Setup Source: https://docs.sonoransoftware.com/cad/integration-plugins/database-sync-and-merge/database-sync-credentials Getting your database Credentials to use with Database Sync. ## Character Mapping > [!WARNING] > > Sonoran CAD requires character mapping to be properly configured for the additional license and vehicle registration mapping. ### What is DB Sync Mapping? The DB sync configuration is designed to show Sonoran CAD the specific tables and columns that data can be pulled from in your database. ### Table Columns and Name The `table name` field will contain the name of your database table containing character records. The `column name` field will contain the name of the specific column in the character records table containing data for this row. The `Character Mapping Column` contains a unique ID for the specific character. This unique identifier will also map records in your license and vehicle registration tables back to the character that owns them. Typically, this is a Steam ID or license ID. Character records can also pull data from multiple different tables, such as a properties table to add address information. Just be sure that those additional tables have a proper `identifier` column to map back to the other characters table. **Example:** In our database, the `characters` table contains our character records. The `identifier` column contains the character's unique ID, the `firstname` column contains the characters first name, the `lastname` character contains the characters last name, etc. ![SQL Table Example](https://docs-assets.sonoransoftware.com/sha256/2e/2e25d24276a059cb43f875ad836f9d63988288a194748b2ac41d90c682e241b3.png) ![DB Sync Character Mapping Example](https://docs-assets.sonoransoftware.com/sha256/d0/d0eb3062c8b3449d94b9dea68bb21ecafa22ebdd5ed100dc07fbdf3062664079.png) ### Enable, Save and Test Be sure that you have enabled character mapping via the toggle. Once your character mapping has been completed, hit the save button and then the test button. The test button will attempt to select a single random character with the mapping configuration specified. If you see "Success!" move onto the next section. ## License and Vehicle Mapping Licenses and Vehicle registrations can also be automatically pulled via CAD search with Database Sync. ### Table Columns and Names Similar to the character mapping, specify the table name containing your vehicle registrations or licenses. Unlike character mapping, data for these records can only be pulled from a single table. The vehicle and license mapping will also need to have the `Character Mapping Column` specified. Again, this is the name of the column in your license/vehicle table containing a unique ID that maps back to the character that owns it. **Example:** In our database, the `owned_vehicles` table contains our stored vehicles. The `owner` column contains the character's unique ID that owns the vehicle, and the `plate` column contains the vehicle's license plate. ![SQL Vehicle Table Example](https://docs-assets.sonoransoftware.com/sha256/26/2631f4e8755e28fb4e9d23f9750a3998aa4db489c34e1f85e027dc1cad9ad7e0.png) ![DB Sync - Vehicle Mapping Example](https://docs-assets.sonoransoftware.com/sha256/ec/ec6037d9eebbbbc7a51c1c6cb0d031833b8d0d3967b2240bf524af91b5c0cf88.png) ### Enable, Save and Test Be sure that you have enabled the license/vehicle mapping via the toggle. Once your mapping has been completed, hit the save button and then the test button. The test button will attempt to select a single random license or vehicle with the mapping configuration specified. If you see "Success!" move onto the next section. ## JSON Columns Many databases store data in a JSON formatted column. Sonoran CAD can also parse these columns for data. > [accordion] JSON Columns (Objects) > > The following is for JSON columns that contain one or more object(s). Objects are formatted using `{}` and are NOT enclosed by `[]`. > > **1. View the JSON Data** > > In our database, the `accounts` column stores JSON formatted data. For this example, we want to display the `bank` money in the custom character record. > > ![SQL - JSON Column Example](https://docs-assets.sonoransoftware.com/sha256/54/54a59e28a30c22ba2f15262049246f8fff639c820a0f5f51138cc32e517cbe5f.png) > > To more easily view the JSON data, we can copy it from the cell and paste it into a [JSON formatter](http://jsonviewer.stack.hu/). > > ![](https://docs-assets.sonoransoftware.com/sha256/ae/ae6f85635095b0defede2e67e484e8b556a2390f3cc8b555ed7febba64d1c586.png) > > We can see that the JSON "key" for the bank account amount is `bank`. > > **2. Nested JSON Values** > > Nested JSON values are also supported.\ > Here, the `eye_color` is a JSON object, with the `item` property of `0`. > > ![Database - Nested JSON Value](https://docs-assets.sonoransoftware.com/sha256/9c/9c37d302a051aec2d48956b64b239a3a9413cec6fa67f369bc716bd064a6570b.png) > > In the DB Sync config, we list the JSON key as `eye_color.item` > > ![](https://docs-assets.sonoransoftware.com/sha256/fb/fbb3af9f16ec354628e96993ebe0d4b2728b036a8dad646ab8213576bb739b0e.png) > > Then, we can use [friendly mapping](/cad/integration-plugins/database-sync-and-merge/database-sync-credentials#friendly-mapping) to convert the eye color `0` value to an actual color, like "brown". > [accordion] JSON Columns (Array) > > The following is for JSON columns that contain an array of objects. Arrays are enclosed by `[]` and contain one or more objects formatted by `{}`. > > **1. View the JSON Data** > > In our database, the `licenses` column stores JSON formatted data. This data is an array (list) `[]` of license objects `{}`. > > To more easily view the JSON data, we can copy it from the cell and paste it into a [JSON formatter](http://jsonviewer.stack.hu/). > > ![](https://docs-assets.sonoransoftware.com/sha256/f5/f56a9eb0cb62329509c49528409261875caf3339d10510def9f22a1d1d2db864.png) > > For this example, we want to display the status (valid/invalid) of the license type `drivers`. > > **2. Configure the JSON Key** > > We want our `Driver's License Status` field in our custom record to reflect whether or not their license is valid. The `expireDate` JSON property displays `true` (expired) or `false` (valid). > > For our JSON key, set it to the following: > > `[?(@.license='drivers')].expireDate` > > This tells DB sync to look in the array (list) `[]` for a license type of `drivers` and give us the `expireDate` value. > > ![](https://docs-assets.sonoransoftware.com/sha256/5f/5f7f89364d262e6dd3acd2f0f28c789724bddc182e13a546e3081b844ae2c24a.png) > > Then, we can use [friendly mapping](/cad/integration-plugins/database-sync-and-merge/database-sync-credentials#friendly-mapping) to convert the `true` to `Expired` and `false` to `Valid`. ## External Keys ### Introduction In some cases, your license or vehicle registration tables may not directly contain a `Character Mapping ID` column (a column with an ID that directly maps back to the character/civilian record), but may contain a unique ID that maps back to a specific character in another table. ### Example: DB Layout In this example, the `vehicle` table contains all of the vehicle information, but does not contain a `CharacterID` column. Instead, the `vehicle` table contains a `VehicleRegistrationID` column. The `VehicleRegistrationId` column then maps to the `vehicleregistration` table. The `vehicleregistration` table then contains a corresponding `CharacterId` column, which maps back to the `character` table. ![Sonoran CAD - External Key DB Layout](https://docs-assets.sonoransoftware.com/sha256/95/959a949f7fcccbaf853e285b9afc0442a891dff730d957ab0a1a183772e3af1e.png) ### Example: CAD Config In the CAD, the configuration is simple. Toggle on the `External Key` checkbox, as the `vehicle` table's `VehicleId` needs to be mapped to an external table to be turned into the proper `characterId`. Specify the external key's table (`vehicleregistration`) and the external key's column `CharacterId`. ![Sonoran CAD - External Key](https://docs-assets.sonoransoftware.com/sha256/c8/c8be59878d62207ce669db7ba1ad667bcbd2b970aa6a55aee692c2bd63715ff1.png) ### Set the JSON Column and Key Back in the mapping panel, we toggle the field as a `JSON Column` and set the column name to `accounts` as this is the column in our character table that contains the JSON data. We can then set the JSON Key for this data as `bank`. ![DB Sync - JSON Column](https://docs-assets.sonoransoftware.com/sha256/70/708f89b56fc8e31862fdba402076f8b6d1b8b2e4be461e80d9249961872859af.png) ## Friendly Mapping > [!WARNING] > > Friendly Mapping requires the **pro** version of Sonoran CAD. > > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). Friendly mapping allows you to convert any raw database value to a more user friendly value.\ Ex: `drive_license` in your database is converted to `Driver's License`. ### Find Values to "Friendly Map" > [!WARNING] > > MySQL `tinyint` column types may be displayed as numerical values `0` and `1` but be read as `True` and `False` by Sonoran CAD.\ > \ > Instead of mapping the "Database Vaue" as `0` or `1` you will need to map `False` and `True`. In our SQL table, we can see the character's job columns has text values that can be improved. The `taxi` job value can be automatically converted to `Taxi Driver` in DB Sync records, and the `cardealer` jon can be automatically converted to `Car Dealer`. ![SQL Table - Unfriendly Values](https://docs-assets.sonoransoftware.com/sha256/a9/a92710b5cb9c759c2478654e2a0ad3d55409e2d56d3958f6ddba98a3e6e0947e.png) ### Configure the Friendly Mapping In our character table mapping, we can select `Modify` on the `job` field's friendly mapping. ![DB Sync - Modify Friendly Mapping](https://docs-assets.sonoransoftware.com/sha256/86/860896e6de680321e21aba25b0adf2e5ce7162be85c462f16e67c75b0679d3e6.png) In the editor, we can now map the raw database value of `taxi` to a friendly value of `Taxi Driver` and the raw db value of `cardealer` to `Car Dealer`. Be sure to hit save in the friendly mapping editor, and then save the configuration for your mapping section. These new friendly mapped values will even work with [custom search types](/cad/tutorials/customization/custom-search-types)! ![Friendly Mapping Editor](https://docs-assets.sonoransoftware.com/sha256/37/37af8fa987ee520f2ed714115437090b08517d267f413eb3a92b428b72500e3f.png) ### Import via CSV #### Copy the Google Sheet Navigate to our [official friendly mapping Google Sheet](https://docs.google.com/spreadsheets/u/1/d/1Q83yqdH-YGlAv9zW-hJ1dA5k5hYPQDLfeXby0BXB6-k/copy) and make a copy. Using a copy of our official sheet ensures your friendly mapping is formatted correctly. **You may ONLY use the Google sheet directly. Editing this via Excel or any other program is NOT supported.** ![Sonoran CAD - Copy Friendly Mapping CSV](https://docs-assets.sonoransoftware.com/sha256/49/49806ce6e5c3a39de16a4deafe9aa019f5b06bedf0d70a2045abb090c808e838.png) **2. Add your Friendly Mappings** Be sure to leave the top header line as it is. Below the header, add in your friendly mapping keys and values. ![Sonoran CAD - Edit Friendly Mapping CSV](https://docs-assets.sonoransoftware.com/sha256/9f/9ff14a712333e4dcc6730f938894e026198bb021760d00a19cd73b959ebb816b.png) #### Download the CSV In Google Sheets, navigate to File > Download > Comma Separated Values (.csv) to download the file. ![Sonoran CAD - Download Friendly Mapping CSV](https://docs-assets.sonoransoftware.com/sha256/47/47d870acf9e6ed4c265a0d526cb0b54286455c7b415204a9ded575dd5b836be1.png) #### Import the CSV File In the friendly mapping editor select `Import` > `CSV` > Select your downloaded Google spreadsheet Then, save the mapping and save the database sync config. ![](https://docs-assets.sonoransoftware.com/sha256/fa/fa0e2ab54ffa70b80dff3df5396cd9f8ddc647f13082204f590d56e8ee3720ce.png) ### Import from JSON You can also build and format your friendly mapping from raw JSON and paste them directly into the UI. #### Format the JSON Structure The JSON structure is an object array. Be sure to strictly follow the format. ```javascript theme={null} [ { "dbValue": "0", "friendlyValue": "Brown" }, { "dbValue": "1", "friendlyValue": "Green" }, { "dbValue": "2", "friendlyValue": "Blue" } ] ``` #### Import the JSON Structure In the friendly mapping editor select `Import` > `JSON` > Paste your JSON formatted structure ![Friendly Mapping - Import via JSON](https://docs-assets.sonoransoftware.com/sha256/11/11422e5cae0269b35c4b813f055176832d6a1f4019c1c02e5c080ce598ecd8a4.png) ## Custom Record Fields Sonoran CAD's records are entirely customizable, this includes database sync records! You can easily enable database sync mapping for any custom field you add to a character, license, or vehicle registration record. ### Edit your Custom Record Navigate to Admin > Customization > Custom Records Select your custom character, license, or vehicle registration record to open the editor. Simply add a field if the desired field doesn't already exist and note the `Label` name for the next step. For this example, we'll enable database sync for a new `job` field in our character's table. Be sure to save your custom record format after enabling this! ![](https://docs-assets.sonoransoftware.com/sha256/07/07dccb344e60a36d0277ca5f0bd8e63b8783c715e72c993fc46ebb95bb8790c3.png) *Custom Records - DB Sync Mapping Toggle* ### Configure the Newly Mapped Field Back in our database sync editor, we can now see the new `Job` field has been added. We can map this new field to our database as any other field. ![Database Sync - Custom Field Mapping](https://docs-assets.sonoransoftware.com/sha256/40/4088bf4d7659a19469f004fcbd23f3b23ecd0f3a46a3a7ab1555471379453177.png) # QB Core Mapping Tutorial Source: https://docs.sonoransoftware.com/cad/integration-plugins/database-sync-and-merge/qbcore-license-mapping Find out how to map a QB Core database with Sonoran CAD! ## Character Mapping QB Core stores player information in the `players` table. The player's first and last name is stored as JSON in the `charinfo` column. We'll toggle these as a `JSON Column` and set the JSON keys to `firstname` and `lastname`. The `citizenid` column stores a unique player ID. This will be our `Character Mapping Column`. ![](https://docs-assets.sonoransoftware.com/sha256/ef/ef64f4559eebc5d761baf0a6ba20754c53b963497165f3a80ebcdb35060a9fdb.png) ![](https://docs-assets.sonoransoftware.com/sha256/15/15a6ce22bc33ff10c3743a15a205059ac1509262ada7dff20885ffc5a9ba4a6f.png) ### Multiple Residency QB Core also allows players to own multiple residences at once. Sonoran CAD's DB Sync will pull all of these from their external `player_houses` table. ![QB Core - DB Sync - Residency Mapping](https://docs-assets.sonoransoftware.com/sha256/13/132606ba9d660d8a97a56fb56b40f3daedbccfd7ba6e6f5a1dc49ff8364bea1c.png) Because multiple residences can be listed at once, it's recommended you update your custom record's residence field to the `textarea` type. ![](https://docs-assets.sonoransoftware.com/sha256/5c/5c5f3acabf5641298a542a896af5a64721b12d80671ed66e3cf91a3e665b7510.png) The custom record now shows the residency textarea with all owned addresses. ![QB Core - Multi Residence in Custom Record with DB Sync](https://docs-assets.sonoransoftware.com/sha256/30/301a258df3fca82de666d3d39101053de46cc194be52e2f40a04c71b93b55407.png) ## Vehicle Mapping QB Core stores the vehicle information in the `player_vehicles` table. The `Unique ID` for vehicles is stored in the `citizenid` column and matches the values stored in the `citizenid` column from our player mapping. The `plate` column stores the vehicle's license plates. You can configure other custom fields may include color, make, model, etc. Vehicle colors are often stored as a number. You can use [friendly mapping](/cad/integration-plugins/database-sync-and-merge#friendly-mapping) to convert a number to a color name. ![](https://docs-assets.sonoransoftware.com/sha256/24/24363db8f720d79b749b724400c18063336365f6e4a23b309a2b06b1c48ebaf4.png) ![](https://docs-assets.sonoransoftware.com/sha256/cb/cb0020aa15b201b822f4e1884d223b8ec563d511bb5033fccd383ba5a09908b5.png) ## License Mapping Because of how licenses are stored in QB Core, this process adds a couple of extra steps. ### Open Admin panel to License Record You will first need to edit the License record to adapt it for how QBCore stores its licenses. Open the Admin Panel by going to the following... `Admin Panel` -> `Customization` -> `Custom Records` -> Click `#4 - License` ![Sonoran CAD Custom Record Editor](https://docs-assets.sonoransoftware.com/sha256/10/1050055acf8fa62bbb2bc8d53f5f7ca20877e8d359eeb86fe9c461294ccf3061.png) ### **2**. Edit License Information Section Replace the last three fields in the `License Information:` section with the following. Make sure to change the `type` to `text` and remove the `mask`. You can use the screenshot below as a guide. Then click `Save` before moving on. > [!WARNING] > > **Don't forget to click Save before continuing!** ![Sonoran CAD custom record editor](https://docs-assets.sonoransoftware.com/sha256/f1/f11a623691fa5d8d20c8ca59ec646ef91e8bde54668ff2882df510336357b4ca.png) ### Open DBSync Settings Click `Advanced` -> `In-Game Integration` to open the DBSync settings menu. ### Fill in DBSync Settings As of writing on 2/28/2022, the following pictured settings will work for QBCore's latest version. Fill in the `Table Name`, `Character Mapping Column`, `Column Name`s, `JSON Column`s and `Friendly Mapping`s as shown below. Make sure to click `Save Mapping Config` once finished. > [!NOTE] > > We are aware of the misspelling "licence", this is intentional in QBCore to differentiate between another piece of data referred to as "license" ![Sonoran CAD DBSync Settings](https://docs-assets.sonoransoftware.com/sha256/80/802ac7e438abda679232f650dba0ca281df1e858e44ce4de90e85b8508e8522c.png) ![Sonoran CAD DBSync Friendly Mapping Settings](https://docs-assets.sonoransoftware.com/sha256/4f/4f7126ea67a712debfd3b27c20f1fe25f39cf0c254b01078c0ccffa7798b9fab.png) Congratulations! You should now be all set up to display your licenses from QBCore in Sonoran CAD. Feel free to test a record lookup to verify everything is in order. ![Example QBCore DBSynced license data](https://docs-assets.sonoransoftware.com/sha256/b8/b8289c22845b2cf3b273c0b76124c896685a4bba91f720a5ffe04e3dc7be2a0e.png) # Troubleshooting Source: https://docs.sonoransoftware.com/cad/integration-plugins/database-sync-and-merge/troubleshooting Troubleshooting for common issues encountered with Database Sync ## Slow lookups Sometimes with certain server hosts, their networks tend to respond slower for a variety of reasons. In MySQL there is a process as part of each login in which a DNS lookup is run before the CAD or other database users can be allowed in. With slow DNS server settings, this can sometimes cause lookups to take 5-20 seconds in the CAD. We are going to show you one way to resolve this in MySQL Server/MariaDB Server. 1\. Open your my.ini configuration file for your MySQL server. If you are using XAMPP simply open the XAMPP Control Panel and click `Config` then `my.ini` from the line for your MySQL Module. ![XAMPP - Opening my.ini configuration file](https://docs-assets.sonoransoftware.com/sha256/66/665738cbe86027ea29f43c960eeaf7c352c7d8d3ba2adbfeaca1db1ae37041d7.png) 2\. With the my.ini configuration file open, scroll down till you find the "\[mysqld]" section and add the following line right under `[mysqld]` > skip-name-resolve ![MySQL my.ini configuration file](https://docs-assets.sonoransoftware.com/sha256/a6/a6a005d6a652a344863f4dc70c657894c0433a165b013b4f2c03703ba367c476.png) 3\. Save the my.ini file and then restart your MySQL server. For XAMPP simply click Stop in the XAMPP Control Panel then click Start. Your lookups in Sonoran CAD with DBSync enabled should now be faster. If your lookup speed is still slow (ie. takes over 5 seconds) this is usually due to much greater issues either with the performance of your server or network. # Discord Source: https://docs.sonoransoftware.com/cad/integration-plugins/discord-bot-integration Connect Discord to manage CAD permissions and receive notifications. Connect your Discord server once, then set up role sync or notifications in CAD. ## Connect your server You need **Manage Server** in Discord to invite and set up the bot. 1. Open **Administration > Advanced > Discord Integration > Invite bot**. 2. Select **Invite Sonoran Bot** and choose your Discord server. 3. In Discord, run `/settings`. Choose a logging channel, select **Discord Only**, and enter the **Community ID** and **API Key** shown in CAD. Leave Radio blank if you do not use it. 4. Return to CAD and select **Refresh Discord connection**. Your server appears under **Connected Discord servers**. ![CAD Invite bot tab with a connected San Andreas Roleplay server and three setup steps](https://docs-assets.sonoransoftware.com/sha256/8a/8af3f9223c38ebd4383c00c14e717707faa764bb08f4146cca75f10dc0d09dca.jpg) *Connect your server from the Invite bot tab.* **Already using the bot?** Run `/settings > API Settings > Change CAD Setup` to link this CAD community, then refresh in CAD. **Using CMS?** Follow the **CMS Use** setup instructions in CAD, then manage [CAD permissions in CMS](/cms/integration-capabilities/sonoran-cad-sync). Webhooks and Role sync unlock when a connected server appears. Use **Invite bot** to add another server or the **×** beside a server to disconnect it. ## Choose what to set up > [card] [Role sync](/cad/integration-plugins/discord-bot-integration/role-sync) > [card] [Webhooks](/cad/integration-plugins/discord-bot-integration/discord-webhooks) > [card] [Discord Rich Presence](/cad/integration-plugins/discord-bot-integration/discord-rich-presence) For other bot features, see the [Sonoran Bot guides](/bot/tutorials/getting-started). # Rich Presence Source: https://docs.sonoransoftware.com/cad/integration-plugins/discord-bot-integration/discord-rich-presence Our desktop app allows you to advertise your community right in Discord! > [!NOTE] > > Rich presence is included with all versions of Sonoran CAD, but customization requires the **Standard** plan or higher, and the **Pro** plan for complete customization with the icon.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ## What is Discord Rich Presence? When running our [desktop application](/cad/download), Discord can automatically detect and display information about your community. ![Sonoran CAD - Discord Rich Presence](https://docs-assets.sonoransoftware.com/sha256/7b/7be7516fd7edb1b8be1c9a21899d4eac8d8c4c24416a6b634d49321b308dce77.png) ## Customizing your Rich Presence ![Sonoran CAD - Discord Presence Customization](https://docs-assets.sonoransoftware.com/sha256/a7/a70062e202136461ae0fc1a300c0ec51d40d59d9327ad01744e89fc74d4f8cff.png) ### Customizing Buttons Discord presence currently allows for two customizable buttons. Navigate to Admin > Customization > Customization > Discord Rich Presence #### For communities on the **Standard** plan or higher: \- Button #2 may be customized to any [Sonoran CAD](/cad/tutorials/customization/custom-login-page#in-game-tablet) or [Sonoran CMS](/cms) invitation link.\ \- Ex: `https://sonorancad.com/#/?comid=mycommunityid` or `https://sonorancms.com/#/?comid=mycommunityid` #### For communities on the Pro plan: \- Both buttons may be customized to any URL desired.\ \- The Icon and title can also be customized with a Discord developer application. ### Customizing the Icon Communities on the **Pro** version may customize the rich presence icon: #### Create a new Discord Application On [https://discord.com/developers/applications](https://discord.com/developers/applications) create a new application ![Discord Developer - New Application](https://docs-assets.sonoransoftware.com/sha256/26/26b667205df33634d7a2ac9fb93ba25e7f1188f2b4ba60a8896b18518909f8ad.png) #### Copy your Client ID Under OAuth2, copy your `Client ID` ![Discord Developer - Application Client ID](https://docs-assets.sonoransoftware.com/sha256/3f/3ffd20ee73ea6b40581ca351182b88d5a6c08523e3688fffcd2bf3d3a1c6682f.png) #### Add an Icon Next, upload an icon for your new application. Be sure to copy down the name of the icon for later. ![Discord Developer - Application Icon](https://docs-assets.sonoransoftware.com/sha256/26/26c82bfafb80fa2ce860d1dad6298322fd08143f0288052cfa6a5c9cfe55f293.png) #### Configure in Sonoran CAD Back in the admin customization menu, we can paste the Discord application's Client ID and Icon name. ![Sonoran CAD - Custom Discord Presence Config](https://docs-assets.sonoransoftware.com/sha256/14/14bd69995f8896f8f52736fd208d284b8d92c435b013ee3385c1507642581daf.png) Once saved, your Discord presence for all community members will reflect your custom icon, title, and buttons. ![Sonoran CAD - Custom Discord Presence View](https://docs-assets.sonoransoftware.com/sha256/29/291deb971d27ccb4d8b0e7fd52494953bfc33fc9bea3c8e4f5f46e17e5125398.png) ## Toggle On/Off Rich Presence ### Community Toggle To hide the invite button for your community's Discord rich presence, simply leave the button text and URL blank. ### User Toggle In the settings menu, users can toggle this display on or off for their individual desktop client. ![Sonoran CAD Settings - Disable Discord's Rich Presence](https://docs-assets.sonoransoftware.com/sha256/bb/bb58851811fee76f2239c3d38c7528f13c03a165747667bdf69d53904cb120e3.png) ## Known Issues #### My presence visible, but not to others? If your Discord presence is visible to you personally but not to others, ensure the button labels don't include any sort of `:emoji:` in them. # Webhooks Source: https://docs.sonoransoftware.com/cad/integration-plugins/discord-bot-integration/discord-webhooks Choose which CAD events send notifications to your Discord channels. Send CAD alerts to Discord, including panic alerts, call updates, record changes, and account activity. ## Set up notifications 1. [Connect your Discord server](/cad/integration-plugins/discord-bot-integration). 2. Open **Administration > Advanced > Discord Integration > Webhooks**. 3. Expand an event group and turn on the events you want. 4. Choose the **Server** and **Channel** for each event. 5. Optionally choose **Roles to ping (optional)**. Changes save automatically. ![CAD Webhooks tab with a panic alert routed to the cad-alerts channel and Police Officer role](https://docs-assets.sonoransoftware.com/sha256/85/85a1514cd34aef9a6a241fcf9a11bb12b47878c64ebc6c1b8d41a3dbba08eeee.jpg) *Choose a channel for each notification.* To stop a notification, turn off that event. The bot must have permission to view and send messages in the selected channel. # Role sync Source: https://docs.sonoransoftware.com/cad/integration-plugins/discord-bot-integration/role-sync Choose the CAD permissions each Discord role gives your members. Give members CAD permissions through their Discord roles. ## Connect Discord Follow [Connect your server](/cad/integration-plugins/discord-bot-integration), then open **Administration > Advanced > Discord Integration > Role sync**. You can also select **Set up role sync** in **Administration > Accounts**. ![CAD Role sync tab showing Police Officer and Dispatcher mappings with edit and remove buttons](https://docs-assets.sonoransoftware.com/sha256/de/de58efd1cab6e2fbbddb32f513dd777e78ac393c4154d14ba70c858f3e748bd6.jpg) *Each role shows its Discord server and assigned permissions.* > [!NOTE] > > If this community uses Sonoran CMS, configure [CAD permissions in CMS](/cms/integration-capabilities/sonoran-cad-sync). CAD role mapping is disabled for CMS-managed communities. ## Add a role 1. Select **Add role**. 2. Type a role name and select it. Check the role color and server name. 3. Choose permissions under **Access**, **Records**, and **Administration**. 4. Wait for **Saved automatically**, then select **Done**. ![Searchable Discord role menu showing role names, colors, and their server](https://docs-assets.sonoransoftware.com/sha256/1a/1a773fd6184d6ecd11f05bc3ad38e5929a06adefc9f8b6a71db4c51fe273a928.jpg) *Choose the role from the correct Discord server.* ![Police Officer role mapping with CAD access permissions and Saved automatically confirmation](https://docs-assets.sonoransoftware.com/sha256/1f/1f0a2dbaf3aa0db06434f3ef5d5701dc0cfa278062661c1ac1f674e6c7f6ab7c.jpg) *Choose the permissions this role gives members.* Under **Records**, expand a template to choose what members can view, create, edit, or delete. See [Account permissions](/cad/tutorials/getting-started/permissions#record-permissions) for permission details. ![Police Officer mapping with Incident Report View, Create, and Edit own permissions enabled](https://docs-assets.sonoransoftware.com/sha256/f4/f414685a630e33262b8f7a81505ad06850c8b7fc0e148d42ca791cbec3ded37e.jpg) *Set permissions separately for each record template.* ## Sync members 1. Members join your CAD community. 2. Members run `/sync` in Discord. If their account needs linking, the bot shows them how. After a mapping changes, all linked members automatically resync **5 minutes after your last edit**. Finishing the sync may take a little longer. Members receive the combined permissions from all their mapped roles. Sync replaces their CAD permissions, including permissions assigned manually or through a key. ## Edit or remove a mapping 1. Select the **Edit permissions** icon beside a role to change its permissions. Changes save automatically. 2. To remove a mapping, select the **Remove role** icon and confirm. This removes the mapping, not the Discord role. # Dispatch AI Source: https://docs.sonoransoftware.com/cad/integration-plugins/dispatch-ai Dispatch AI is our most advanced integration to date—bringing a real-time AI dispatcher directly into your community’s CAD. Control everything with just your voice! ![](https://docs-assets.sonoransoftware.com/sha256/b7/b79c2125dcbc3d4e15b4c7f89598999a94f6e7b680f5f7c67acb47e1a4443628.png) Dispatch AI is our most advanced integration to date—bringing a real-time AI dispatcher directly into your community’s CAD. When paired with [Sonoran Radio](/radio), units can create calls, run license plates, update their status, and more—all automatically through their radio transmissions. **Learn more about Dispatch AI:** > [card] [Dispatch AI](/radio/tutorials/usage/dispatch-ai) # ER:LC Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc Sonoran CAD offers the most immersive, 100% free ER:LC integrations available. Complete with a 3D live map, bodycam live streams, traffic stop automations, emergency calls, plate reader, and more! ## Sonoran CAD x ER:LC Sonoran CAD offers the most immersive, free ER:LC integrations available. Complete with a 3D live map, bodycam live streams, traffic stop automations, emergency calls, plate reader, and more! **All ER:LC integrations are fully available on the free version of Sonoran CAD, no payment required.** > [card] [3D Live Map](/cad/integration-plugins/erlc/3d-live-map) > [card] [Live Bodycam](/cad/integration-plugins/erlc/bodycam) > [card] [3D Location Webhooks](/cad/integration-plugins/erlc/location-notifications) > [card] [In-Game Overlay](/cad/integration-plugins/erlc/in-game-overlay) > [card] [ID Check](/cad/integration-plugins/erlc/id-check) > [card] [Character Creation](/cad/integration-plugins/erlc/character-creation) > [card] [Vehicle Registration](/cad/integration-plugins/erlc/vehicle-registrations) > [card] [Traffic Stop](/cad/integration-plugins/erlc/traffic-stops) > [card] [Plate Reader](/cad/integration-plugins/erlc/plate-reader) > [card] [ALPR Cameras](/cad/integration-plugins/erlc/alpr-cameras) > [card] [Emergency Calls](/cad/integration-plugins/erlc/emergency-calls) > [card] [Pin Drop Locations](/cad/integration-plugins/erlc/call-editor-pin-drop) ## Get Started Integrating your ER:LC server is simple! Click below to learn more. > [card] [Getting Started](/cad/integration-plugins/erlc/getting-started) # 3D Live Map Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/3d-live-map Sonoran CAD includes an interactive 2D and 3D live map that displays unit locations, bodycams, emergency calls, dispatch calls, and more in real time. ## ER:LC Live Map Sonoran CAD includes an interactive 2D and 3D live map that displays unit locations, bodycams, emergency calls, dispatch calls, and more in real time. ![](https://docs-assets.sonoransoftware.com/sha256/8d/8d5a7c26c313cf185cace2f3b0fa0c84636274fa0e311fd2b7453280c01a29dc.png) ## Configuring the Live Map > [accordion] Configuring the Live Map > > The live map is automatically enabled for ER:LC communities [once your API key is setup](/cad/integration-plugins/erlc/getting-started). > > The map can be enabled or disabled under **Admin** > **Advanced** > **In-Game Integration** > **Live Map**. Ensure that the map is toggled to **Official ER:LC Map**. > > Users will need the **Live Map** [account permission](/cad/tutorials/getting-started/permissions). > > ![ERLC admin settings with Live Map enabled and Official ERLC Map selected](https://docs-assets.sonoransoftware.com/sha256/ce/cefcb0368b5d63787ff8f245c4eaaa7fe6a281c727d1be4d0098e6f119c95100.jpg) > > *Enable the official ER:LC live map in the integration settings.* ## CAD Permission Requirements In order to appear on the live map, players must have a [linked Roblox account](/cad/integration-plugins/erlc/getting-started#linking-your-roblox-account). In order to access the live map, players must have the [**Live Map** account permission](/cad/tutorials/getting-started/permissions). ## Usage ### Accessing the Live Map The live map can be opened by the **Live Map** button in the taskbar. Or add the **Live Map** panel to your custom layout by selecting the **New** button at the bottom of any layout column. ![](https://docs-assets.sonoransoftware.com/sha256/15/153bd617895aede21ab9ae19fafa3291112373f2ba563ebb740b06ba5a6a0cb8.png) ### Using the Live Map #### 2D and 3D Mode Change the map view from 2D, 2.5D, or 3D via the top right. #### Searching Postal Codes Enter a postal code, such as **1007**, in the **Postal** field at the top of the legend. Press **Enter** or select **Search** to center the map on that location. Postal search works in 2D, 2.5D, and 3D. If a code is not found, the field displays an inline error. Check the code and try again. ![Postal search for 1007 centers the map on a modeled residential neighborhood](https://docs-assets.sonoransoftware.com/sha256/8b/8ba6ad42400d333000d8c9cc7dd9a6e1a9b48d297c27992766d5f5f768eeea15.jpg) *Search for a postal code from the map legend.* In **2D** and **2.5D**, the label button beside the mode controls shows or hides postal codes and street names together. #### Exploring the 3D Map Zoom in to inspect buildings and roads, and use the movement and camera controls to change your view. The new ER:LC map is being modeled in stages, so detail varies by area. ![Modeled downtown buildings in the ERLC 3D map](https://docs-assets.sonoransoftware.com/sha256/a1/a1e33be362f9892027b354dc040ac568ace1008c4ecd6b161a68df3be39cc524.jpg) *A closer look at the downtown area.* New map geometry loads automatically when you open the map. An active map also checks for updates approximately every five minutes. #### Unit Blips Units will appear on the map if they have a [linked Roblox account](/cad/integration-plugins/erlc/getting-started#linking-your-roblox-account) and are active on the CAD police, fire, EMS, or dispatch page. Click on a unit to access dispatch calls, lookups, the tone board, timers, and other options. If the unit is streaming a [bodycam](/cad/integration-plugins/erlc/bodycam#via-live-map), its live video appears at the top of the unit menu. Click the video preview to open the dedicated bodycam viewer. This works in 2D, 2.5D, and 3D. ![A police unit selected on the ERLC 3D map with its live bodycam preview open](https://docs-assets.sonoransoftware.com/sha256/df/dfc991f0717fac630980c43996856fddf716bbc0bccab3316e21669e61f6e947.png) *View a unit's live bodycam directly from its map blip.* Expand **Blips** in the legend to choose which unit and emergency-call categories appear. Use the text-size controls to adjust blip size. Supported teams use police, fire, EMS, or DOT models. When the API does not report vehicle occupancy, the team's vehicle model is used. A character model is used when on-foot status is explicitly reported. ![Sample police, fire, and EMS vehicles beside a collision call, with blip filters expanded](https://docs-assets.sonoransoftware.com/sha256/52/527c83ff27a7a76248dd9dd1cd55b0f025cc7f232846e9ab6fdf2c5244f7f00e.jpg) *Service vehicles beside a sample dispatch call.* #### Emergency Calls When an [emergency call is made from in-game](/cad/integration-plugins/erlc/emergency-calls) a blip will appear on the map. Select the blip to view the call and open it in your call editor. #### Dispatch Calls Dispatch calls created from an [in-game emergency call](/cad/integration-plugins/erlc/emergency-calls) or an [in-game traffic stop](/cad/integration-plugins/erlc/traffic-stops) will automatically have location data showing a blip on the map. Select the call blip to open it in the editor or close it. ## Roblox Custom Maps > [accordion] Roblox Custom Maps > > Sonoran CAD allows any Roblox game to also send and update live map positions. > > * [ER:LC](/cad/integration-plugins/erlc/getting-started) > * Select **Official ER:LC Map** for the maintained map and automatic geometry updates. > * [Maple County | Fall Update](https://www.roblox.com/games/8416011646/Maple-County-FALL-UPDATE) > * Requires a custom map upload from the game > > To upload a custom live map for Roblox > > * Open **Admin** > **Advanced** > **In-Game Integration** > **ER:LC**. > * Under **Live Map**, select **Custom Roblox Map** and use **Upload** to upload your map image. Custom map images require **Pro**. > > ![Current custom Roblox map settings with the Upload button](https://docs-assets.sonoransoftware.com/sha256/89/891d5bbb30eeceaedc3e0ce4b9ceade5c99e820014f02fc96904bbf08cd315f7.jpg) > > *Custom map image uploads are separate from the official ER:LC map.* > [accordion] For Roblox Developers > > Maple County has recently added Sonoran CAD live map access to their Roblox game mode.\ > To do the same for your game: > > 1. Send Unit Location API updates with the `coordinate` `x` and `y` values > 2. Convert (if needed) your `coordinate` `x` and `y` values so that the top left of your map image is `{0,0}` > 3. Export your square map as a PNG and upload it under **Admin** > **Advanced** > **In-Game Integration** > **ER:LC** > **Live Map** > **Custom Roblox Map** > **Upload**. Make sure the image coordinates match the coordinates your integration sends. > > For more help, reach out to our [support team](https://support.sonoransoftware.com). # ALPR Cameras Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/alpr-cameras Automatically create a 911 call when an ALPR camera detects an active BOLO plate. When a vehicle with an active BOLO plate passes through a configured camera's range, Sonoran CAD creates a 911 call with its location and vehicle details. ![ER:LC ALPR camera detection with an automatic 911 call and location on the CAD map](https://docs-assets.sonoransoftware.com/sha256/d1/d15aa9e7327c3240200fcac468d384f0b1015b0a2a697e95d76dd497ca73889f.png) ## Setup 1. [Connect your ER:LC server](/cad/integration-plugins/erlc/getting-started). 2. In **Admin > Integrations**, open **ALPR Cameras**, select your server, and enable ALPR. 3. Select **Apply default cameras**, or **Place camera** to add your own. Drag cameras to move them and adjust their detection radius. 4. Create an active BOLO record with the vehicle's license plate. ![ALPR Cameras admin panel with camera locations on the ERLC map](https://docs-assets.sonoransoftware.com/sha256/78/78b3464588f7af490883ecae3babf5cafbc383087e2524bc11f20b2db847f6cc.jpg) *Camera locations* ![Selected ALPR camera with camera name and detection radius settings](https://docs-assets.sonoransoftware.com/sha256/7a/7a818085863bf522c775f909b43bbf25faa427d61e7fe03f1648119fecd4a9aa.jpg) *Select a camera to edit its name and detection radius.* Camera settings save automatically. You can customize the 911 description, call expiry, and repeat detection cooldown. # Bodycam Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/bodycam Stay connected to in-game units with live bodycam video feeds integrated directly into the CAD. Quickly toggle recordings with a hotkey and shadow-recording. > [!TIP] > > Bodycam streams in the web and desktop applications are transmitted through **secure relay-based peer-to-peer connections** that prevent IP address exposure between participants. ## ER:LC Bodycam Stay connected to in-game units with live bodycam video feeds integrated directly into the CAD. ![Sonoran CAD live bodycam on the ERLC 3D map](https://docs-assets.sonoransoftware.com/sha256/65/65be429aaabf6c3da4a1be73ce1821068e4b4658e4d2606d559a4ece8f52900e.png) ## Configuring the Bodycam ### Optional: Download the App While the bodycam system works inside of a web browser, you can also download the [Windows or OSX desktop application](/cad/download) for the best experience. ### Select the Roblox Game Once inside of the police, fire, EMS, or dispatch panel users can open the bodycam by clicking on their unit number in the taskbar. ![](https://docs-assets.sonoransoftware.com/sha256/af/af6ef904a41e055f2fa1c68177ccb69402298c599113df91af9cfcf73735c6b5.png) ![](https://docs-assets.sonoransoftware.com/sha256/5a/5a89eef80c7465cd081d4d6e968af4316352de1dbcda2311da887c44453be73b.png) Once opened, select **Bodycam Source** > **Roblox** > **Start** Once configured and started, if using the desktop application, your bodycam will automatically select the same window and start the next time you use the application. > [!NOTE] > > Due to graphics settings and drivers, some users may experience **white flashing in the Roblox app** when using **window** share mode. > > To resolve this, share the entire **screen** instead of just the Roblox application. ### Bodycam Options #### Shadow Recording Shadow recording continuously buffers the last 0–60 seconds of footage. When you activate recording, that buffered footage is automatically included at the beginning of the clip. By default, this is set to **30 seconds**. Additionally, you can configure the total recording length with a maximum of 120 seconds (two minutes). ![](https://docs-assets.sonoransoftware.com/sha256/d3/d3e279d73d9239b7134b63e7b9b29c407ab46ed0e7dd7f94e7f109798090632b.png) #### Sound Effects Users can also enable or disable sound effects. When enabled, a long tone will play when the bodycam is turned on or off. Additionally, a short tone will repeat periodically to remind the user that their camera is on. ![](https://docs-assets.sonoransoftware.com/sha256/1b/1b724c6c30d7477ea25a78cd5f6acdf288ec25c67f37152e5163d97735ac9388.png) ## Using the Bodycam ### Via Active Units > [accordion] Via Active Units > > In the active units panel hover over the flashing camera icon to preview a unit's bodycam. > > ![](https://docs-assets.sonoransoftware.com/sha256/85/85c1e7ea19aa63e51d218ab36ac63087b07059f982f9889305d518bd0d1bf315.png) ### Via Live Map > [accordion] Via Live Map > > 1. Open the [live map](/cad/integration-plugins/erlc/3d-live-map) in **2D**, **2.5D**, or **3D**. > 2. Click a unit blip to open its unit menu. If the unit is streaming a bodycam, a live video preview appears at the top of the menu. > 3. Click the video preview to open the dedicated bodycam viewer. > > The unit must [start sharing their bodycam](/cad/integration-plugins/erlc/bodycam#2-select-the-roblox-game) before a live preview is available. > > ![Selected ERLC police unit with live bodycam video in its 3D map unit menu](https://docs-assets.sonoransoftware.com/sha256/df/dfc991f0717fac630980c43996856fddf716bbc0bccab3316e21669e61f6e947.png) > > *Select a unit blip to preview its live bodycam without leaving the map.* ### Via Manual Bodycam Window > [accordion] Via Manual Bodycam Window > > Add the **Bodycam** panel to your custom layout to view active streams. > > ![](https://docs-assets.sonoransoftware.com/sha256/88/88f81cf96dbb0783a8fb418b44a9c377ca902921cf1668277d5729790f2e5dd3.png) ## Overlay Options > [accordion] Overlay Options > > When viewing a bodycam, you can optionally toggle the text overlay and video effects on or off. > > ![](https://docs-assets.sonoransoftware.com/sha256/76/76ae7f95aec519f7c13c265f8be2e9a20be0a4737982e25bb1a485ccaad6918d.png) ## Recording Sonoran body cameras support recording for later playback and download. #### Via Hotkey Desktop users can toggle recording using a customizable hotkey under **Customization** > **Hotkeys** > **Bodycam Record Toggle**. ![](https://docs-assets.sonoransoftware.com/sha256/f7/f7510b93950fa7cc6e8376d425efc0f5109141ac5e063583e5897fde2b46bc7c.png) #### Manual Start/Stop Users viewing a bodycam can press the manual **Start Recording** and **Stop Recording** button at the bottom of the viewer. ### Via Automatic Event The bodycam will automatically start recording when: * Panic button is pressed ### Recording Limits Recordings are retained for 24 hours before being automatically deleted. Daily recording limits (applied to the entire community) vary by subscription tier: * Free: 10 minutes/day community-wide * Standard: 100 minutes/day community-wide * Pro: 1,000 minutes/day community-wide ### Viewing Recordings Dispatchers can search and view recorded bodycams by selecting **Body Cam Recordings** in the taskbar, or by adding the panel to their custom layout. ![](https://docs-assets.sonoransoftware.com/sha256/7c/7cce1b3f37462644ca3a09919632275df52585af48f4e82754c2b692a79c3712.png) # Call Editor Pin Drop Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/call-editor-pin-drop Select a location on the ERLC map to fill a dispatch call's street address and postal code. ![ERLC Call Editor Pin Drop](https://docs-assets.sonoransoftware.com/sha256/95/958c0e1e5ee5fa06ccc22ae8d27e51eed3d52d072b2132395e0231f734388ceb.png) Drop a pin instead of typing an address. Select a location on the 2D ERLC map and Sonoran CAD fills the nearest street name and postal code in your dispatch call. ### Check ERLC mode Make sure your CAD community is in **ER:LC** mode under **Administration → Advanced → In-Game Integration**. ![](https://docs-assets.sonoransoftware.com/sha256/fb/fbce76ee84f03f185a5deb552d0c7e99bc2ea4cc05ed6e3080e9c6448d4a915c.png) ### Open the map Create or edit a dispatch call. Select the **pin icon** inside the **Address** field to open the 2D map picker. ![](https://docs-assets.sonoransoftware.com/sha256/80/80f5df4993fe24ae28fda35df191fc179961c57f674bbd23b02bbbc8e1a9622a.png) ### Select the location Drag to pan and scroll to zoom. Open **Legend** to access the map controls, including the **map labels** button to show or hide street and postal labels. ![The ERLC 2D map picker with street names and postal labels](https://docs-assets.sonoransoftware.com/sha256/a6/a65b226ee2beb3acff2f55e2334581adb5c48098c6b953d0bfc50b7a57d814de.jpg) Click the call's location. The map closes and fills the **Address** and **Postal** fields. ## Use the ERLC street list The type-to-filter **Address** field is also pre-configured with the full list of ER:LC's street and trail names. These [custom street names](/cad/tutorials/customization/addresses-and-street-names) can be re-applied under **Administration → Advanced → In-Game Integration → ER:LC**. In **Addresses**, select **Use ER:LC street list**. ![](https://docs-assets.sonoransoftware.com/sha256/99/999eac8bcb2c7a57484fd47a86f9b5e2a213aea8db657e9d220d1f01684c946e.png) ![](https://docs-assets.sonoransoftware.com/sha256/a2/a226a773b2144a80fb40c833f7776f0035eda2e6552357652ba3cfefbfde7a33.png) ## Send the location to Discord You can also enable [ERLC 3D Location Webhooks](/cad/integration-plugins/erlc/location-notifications) to include an aerial location image with emergency and dispatch call webhooks. ![](https://docs-assets.sonoransoftware.com/sha256/67/673b30972e39233a04cd4316a264e7306beffcf5ce39367e68ca9b3f65e061b2.png) # Character Creation Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/character-creation Create a character in the CAD from an in-game command, no CAD access or account required! ## ER:LC Character Creation ![](https://docs-assets.sonoransoftware.com/sha256/94/94eebe2a43a0972b3f0225d247e50e3193d1b3dbefaf05514fe67e96b5deba8f.png) Use customizable in-game commands allowing users to register their character in the CAD, no account or CAD access required! Once created, their civilian character will be searchable and can be used to [automatically register their vehicle](/cad/integration-plugins/erlc/vehicle-registrations). ## In-Game Registration Command Configuration Register a character via a custom in-game command. ### Persistent Character Creation > [accordion] In-Game Persistent Character Creation Command > > When the character creation command is ran a new character will be created in the CAD. The character will include the first name, last name, and avatar photo. > > If the user already has an in-game character created, it will be replaced by this new character. ### Temporary Registration > [accordion] In-Game Temporary Registration Command > > Running the temporary character creation command will perform the same actions as above. However, the civilian character record will be automatically **deleted after 24 hours**. ## Using the In-Game Commands When in-game, users can run the customizable character creation commands followed by the **First** and **Last** name. Ex: `;civ John Doe` Once the character has been created in the CAD, users will be notified by an optional in-game message. Once a character has been created, users can [register their vehicle with a single command](/cad/integration-plugins/erlc/vehicle-registrations). [In-game commands not working? Make sure you have connected the webhook.](/cad/integration-plugins/erlc/getting-started#id-3.-link-er-lc-event-webhooks-to-sonoran-cad) ## Customize the In-Game Commands In-Game commands can be customized under **Admin** > **In-Game Integration** > **ER:LC** > **Server** > **Civilian Registration** ![](https://docs-assets.sonoransoftware.com/sha256/24/24ee68adadcc4f99c86c4b83655f3b5bd541e62b21ba1e3f3c33f97539283968.png) # Emergency Calls Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/emergency-calls Automatic emergency calls on in-game events and via in-game phone appear instantly on the 3D live map and dispatch panel. ## ER:LC Emergency Calls Submit emergency calls from in-game and see them appear instantly on the 3D live map and dispatch panel. ![](https://docs-assets.sonoransoftware.com/sha256/47/474ce1213ae47e7efabbb05cc07402d6c2c8e29cb997bd94a08dd2ebf3752fec.png) ## In-Game Emergency Phone Call Opening the phone in-game and pressing the **911** app will allow users to create emergency calls. In the dispatch panel, the call will include the location for the live map, caller name (if a character is registered) and the description. ![](https://docs-assets.sonoransoftware.com/sha256/8d/8d50a516cf2238bd45f2c0124b6a1115a87eb41ca37bb4fe350518aaadd4589d.png) [In-game calls not working? Make sure you have connected the webhook.](/cad/integration-plugins/erlc/getting-started#id-3.-link-er-lc-event-webhooks-to-sonoran-cad) ## Automatic Emergency Calls In-game events like fires, robberies, and more will create an automatic emergency call in the dispatch panel. ![](https://docs-assets.sonoransoftware.com/sha256/ab/ab8d5af209dfc03a03ecded2dbd59620bc697240d2f43ff0db7caaf6781aeb4a.png) # Getting Started Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/getting-started Sonoran CAD offers the most immersive, free ER:LC integrations available. Complete with a 3D live map, bodycam live streams, traffic stop automations, emergency calls, plate reader, and more! ## Video Tutorials Follow these tutorials in order, or watch the [Sonoran CAD ERLC Tutorials playlist](https://www.youtube.com/playlist?list=PLMVNElMT07L4). ### ER:LC Integration Setup Create your ER:LC API key, connect your server to Sonoran CAD, configure the Event Log Webhook, and test the connection. [Video tutorial](https://www.youtube-nocookie.com/embed/Fl_A6Aop9_Q) ### Accounts and Permissions Invite members to your community, review pending accounts, and manage individual permissions. This tutorial also introduces Discord role mapping for automatic permission sync. [Video tutorial](https://www.youtube-nocookie.com/embed/PwsWTvn0IOs) ## Linking your ER:LC Server ### Create an ER:LC API Key > [accordion] ER:LC API Key > > ER:LC grants API access as a paid upgrade. > > Once in-game, select the **Menu** button at the top right > **Servers** > **Owned Servers** > Select your private server > **Upgrade Packs** > **API Pack**. > > ![](https://docs-assets.sonoransoftware.com/sha256/05/05e515d29de607d5e2fd68b9da79700eb3cd23342b1d9d61cac65cbe0aca5a62.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/b1/b14279d50593c02ac90a720aab44b098b14025fa135e2cafef5c06d2ab8d699a.png) > > Once in your private ER:LC server, open the **Server Info** tab. > > Select **Edit Server Settings** > Navigate To **ER:LC API** > Select **Edit** to Copy. > > ![](https://docs-assets.sonoransoftware.com/sha256/39/399eaa1120785ce94683d095dc9501db1533411c33690d49a5aed52a894ee0aa.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/92/9242983c282c803cb78da8bfd85cca14414b511b8b84cdc995453fd64ff3d6d1.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/29/292127583baddc5a6b902f951849c6b39b196ef87f7a6b42b48efce212d23df7.png) ### Link ER:LC to Sonoran CAD > [accordion] Linking ER:LC to Sonoran CAD > > 1. In the CAD, navigate to **Admin** > **Advanced** > **In-Game Integration**. > 2. At the top right, make sure **Game: ER:LC** is selected. > 3. Select the **ER:LC** tab and **Start Setup**. > 4. Select **Start Setup** and paste your **ER:LC API Key** in. > > ![](https://docs-assets.sonoransoftware.com/sha256/c1/c10e99c303bd99adbbb81ad52a8aec0b33fc326f99e5e39d6567ed1520105213.png) ### Link ER:LC Event Webhooks to Sonoran CAD > [accordion] Link ER:LC Event Webhooks to Sonoran CAD > > ER:LC sends Sonoran CAD events for custom commands like traffic stops and vehicle registrations. Additionally, in-game events for robberies, fires, etc. are also sent. > > 1. Open the **Server Info** > 2. Select **Edit Server Settings** > 3. Under **ER:LC API** > **Event Log Webhook** > **Edit** > 1. Paste: `https://events.sonoransoftware.com/erlc` > 4. In the in-game chat, enter `;test` to verify. > > ![](https://docs-assets.sonoransoftware.com/sha256/f0/f0de2d624cd1d2e0687959cd5723536b83c910645adbab05852159c3a5c384d9.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/7e/7e7af7a78e4afb17a7418a7666f373dc7cd0afda5cde83527c60b58c6c534f85.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/28/28eb2c8ec9d649142042bdc40dc487a8e9eef41bd8458e9cb02355c22b691362.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/56/56b63a83a1da40ea2357a6cfa29b046561298c22b1a1b735c2dc48d031da2c8f.png) > > **Webhook Errors** > > The ER:LC API may be experiencing a partial outage—this is common after weekend game updates. If you see a red error when setting the Event Log Webhook, it’s likely due to this issue. > > **This outage is on the ER:LC side, not Sonoran CAD.** When we’re notified, we’ll relay the issue to the PRC/ER:LC development team and keep you updated as more information becomes available. > > ![](https://docs-assets.sonoransoftware.com/sha256/67/67f5eec4d7280f3057306e00bffd32e4f3e76051741fe24b27fcfdfe8e4a46e3.png) ## Linking your Roblox Account Players must link their Roblox account to their Sonoran account in order to use in-game integrations. Once linked, the Sonoran account can be used for ER:LC integrations across Sonoran CAD, CMS, and radio. > [accordion] Linking Roblox to Sonoran > > If a user in an ER:LC linked community does not have their Roblox account linked, the **Roblox Account Link Required** banner will display at the top of the screen. Press the red **Link** button to redirect to Roblox and link your account. > > ![Roblox Account Link Required banner with Refresh and Link buttons](https://docs-assets.sonoransoftware.com/sha256/77/7769b8ee186d2a499e8c77a00137baaf86cefadd2ee3c775ca49087d0cca4ada.png) > > Pressing **Link** will open up a window to login and link with Roblox: > > ![](https://docs-assets.sonoransoftware.com/sha256/b8/b8298060e479b117428dd34a44c3ab0346f680836dbae667d55ad0519d9c0125.png) > > Once linked, return to the CAD and press **Refresh**. The banner disappears when your linked account is detected. # ID Check Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/id-check Request a nearby civilian's ID from the in-game overlay and view their Sonoran CAD character details. ![ID Check showing a Liberty County identification card and the Request ID button in the in-game overlay](https://docs-assets.sonoransoftware.com/sha256/62/62b9b6f1345ac60e66d81dd74633c83b552888f1dcd819483ea60646d0540f7b.png) ## Identify Nearby Civilians ID Check lets officers request a nearby civilian's ID directly from the [in-game overlay](/cad/integration-plugins/erlc/in-game-overlay). The civilian's Sonoran CAD character appears as a Liberty County identification card, including their photo, name, date of birth, address, and identifying details such as height, weight, hair, and eye color. The card uses the character's saved information. Fields that have not been filled in display as not provided. ## Using ID Check 1. Connect your community's ER:LC server and link your Roblox account using the [Getting Started guide](/cad/integration-plugins/erlc/getting-started). 2. In the Sonoran CAD desktop app, open Police or Dispatch with an active unit and select the ER:LC server you are playing in. 3. Open the [in-game overlay](/cad/integration-plugins/erlc/in-game-overlay#using-the-in-game-overlay) and approach within **5 studs** of a player on the **Civilian** team. 4. When their username appears at the bottom of the overlay, click **Request ID**. Their identification card opens in a separate popup centered on the monitor containing the overlay. 5. Select **Run Lookup** to bring CAD forward, open the lookup tab, and search the character's **first and last name**. Both names must be present for this action. 6. Close the card with **X**, or press **Escape** while the card is focused. You can request the same civilian's ID again while they remain within range. ![A nearby civilian's username and Request ID button at the bottom of the in-game overlay](https://docs-assets.sonoransoftware.com/sha256/75/7573bdf191b0da54e8f60c0ee9b5d3cc92b84b8939e820c61726c2830098d9fe.png) ![Liberty County identification card popup with a Roblox avatar photo and Run Lookup button](https://docs-assets.sonoransoftware.com/sha256/01/01783b5589827b7a4be9342d9d312fba666b6f63ef8b85b2508c68c3da4a7b49.png) ## Character Records The civilian must have a [registered character](/cad/integration-plugins/erlc/character-creation) associated with their Roblox account. ID Check uses their selected character when one is available and respects your community's character record permissions. The prompt appears for civilians within five studs, including civilians seated in vehicles. Other first responders do not appear as ID Check targets. Allow a few seconds for the prompt to update after approaching someone or after they change teams. The prompt disappears when the player is out of range or their location data is no longer fresh. # In-Game Overlay Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/in-game-overlay Use a hotkey to instantly open the in-game overlay and manage dispatch calls without leaving the action. View call details, handle attachments, send notes, update your status, and more in one place. ## In-Game Overlay ![](https://docs-assets.sonoransoftware.com/sha256/ae/ae94044eb6ab62c8dde49e93943c51a30c7189ba1e85d2d5b5df2c878463579e.png) ## Using the In-Game Overlay ### Configuring the Hotkey The in-game overlay is toggled via custom hotkey. Hotkeys can be configured under **Customization** > **Hotkeys** > **Desktop Overlay**. Pressing this hotkey will show/hide the overlay. ![](https://docs-assets.sonoransoftware.com/sha256/68/68abfa315540d26a9564a45a4e8039703ba6e686aebeb3ebe4d69c7ef88dfa54.png) ### Overlay Tab In the desktop app the taskbar also displays a **Overlay** tab that can be clicked to activate the overlay. ![](https://docs-assets.sonoransoftware.com/sha256/6f/6fcca4552dfd8acdd8364048693eb8d7b0c7292894ade9b27cc4f4a1c756f6ba.png) ### Overlay Buttons The overlay offers several buttons at the top right. #### Visibility Click the **Eye** icon to make the overlay window more or less transparent. #### Self-Dispatch Click the **Self Dispatch** button to toggle on access to dispatching features: * Previous/Next Call * Attach/Detach from Call Users must have the **Self Dispatch** permission in order to toggle this on. #### **Include Emergency Calls** When enabled (requires **Self Dispatch**) emergency calls will also be displayed in the overlay. Pressing the **Attach** button (enter) will automatically convert the emergency call to a dispatch call, attaching your unit. ![](https://docs-assets.sonoransoftware.com/sha256/e6/e66a8a98c5c3f4cec4d2c268db21b7b7c4f0af5fbbc43b927857d938a21a2ae6.png) #### Previous/Next Call When **Self Dispatch** is enabled, use the left and right arrow keys (or icons) to page between active dispatch calls. #### Attach/Detach from Call When **Self Dispatch** is enabled, use the **enter** key or press the attach/detach icon to attach or detach from the selected dispatch call. #### Call Notes Click the **Call Notes** button to view the notes tab. Enter in text for live-chat while on a dispatch call. ## ID Check When you approach a nearby civilian, their username and a **Request ID** button appear at the bottom of the overlay. Click **Request ID** to view their Sonoran CAD character as a Liberty County identification card. See [ID Check](/cad/integration-plugins/erlc/id-check) for setup requirements and details. # 3D Location Webhooks Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/location-notifications Send ERLC emergency and dispatch calls to Discord with an aerial location image. ![ERLC 3D Location Webhooks](https://docs-assets.sonoransoftware.com/sha256/67/673b30972e39233a04cd4316a264e7306beffcf5ce39367e68ca9b3f65e061b2.png) See the call and its location together in Discord. Notifications include the call details and a watermarked aerial image when a matching location image is available. Before you start, [connect Sonoran Bot to your CAD community](/bot/tutorials/getting-started). For in-game 911 calls, complete [ERLC setup](/cad/integration-plugins/erlc/getting-started) too. ### Check ERLC mode Make sure your CAD community is in **ER:LC** mode under **Administration → Advanced → In-Game Integration**. ![](https://docs-assets.sonoransoftware.com/sha256/fb/fbce76ee84f03f185a5deb552d0c7e99bc2ea4cc05ed6e3080e9c6448d4a915c.png) ### Choose your notifications Open **Administration → Advanced → Discord Integration**. Enable the events you want: * **Emergency Call · Created** — new 911 calls. * **Dispatch · Created** — new dispatch calls. * **Dispatch · Modified** — updated dispatch calls. ### Pick a channel Choose your Discord **Server** and **Channel** for each enabled event. Changes save automatically. For the 3D aerial images, [dispatch calls must have a postal code set](/cad/integration-plugins/erlc/call-editor-pin-drop). In-game 911 calls already include the required location information. ![](https://docs-assets.sonoransoftware.com/sha256/32/32722e663ca46aaa018c955f234d93a7a65d98007ba44b099dfd7ba855c80af4.png) ## Webhook Examples ![](https://docs-assets.sonoransoftware.com/sha256/41/41444e20d6ad7067aa9080ff2f1de840d02d71cad8b9c2b164fcd0e19e8268fa.png) ![](https://docs-assets.sonoransoftware.com/sha256/ba/bac85766e7e2fbf2474ee47c9ef1263d8d842f899dd0c038a24ca4206dcbac58.png) # Plate Reader Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/plate-reader Perform a plate lookup with the press of a hotkey! ## Plate Reader The ER:LC plate reader offers a desktop hotkey to search for the nearest player inside of a vehicle. Once found, a plate search lookup will be automatically opened in your CAD screen. ![](https://docs-assets.sonoransoftware.com/sha256/25/25afeb9587b647fe083c2fba4992f021a37e2518a0d2d32ecf8353e64bfc820c.png) ## Configuration ### Download the Desktop Application In order to use hotkeys, download the Windows or OSX desktop application. ### Configure your Hotkey Customize the plate reader hotkey under **Customization** > **Hotkeys** > **Plate Reader** ![](https://docs-assets.sonoransoftware.com/sha256/54/54adef48c8a6fb6bf1cf1b1d157bf2cce67b4288a73b0090a2c000dcc4665bae.png) #### Utilize the Hotkey Once in-game, press your desktop hotkey to run a plate search. * The vehicle must be nearby with a player in it ![](https://docs-assets.sonoransoftware.com/sha256/41/41abd6bf30e21a8d9e12d2f1ea56347ac365a6baa7c3dcecdd04257e3237e521.png) ![](https://docs-assets.sonoransoftware.com/sha256/9c/9cf1adc9f3e48c968e641e1cdeec456c6a849e30601839763261638a4204ae84.png) # Traffic Stops Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/traffic-stops Create automatic traffic stop calls with an in-game command or hotkey! ## Traffic Stop Integration ![](https://docs-assets.sonoransoftware.com/sha256/76/765207e07e3f92e769a0a464113f636dafa0f78f3447e1378897a96e40e3b906.png) When the the traffic stop command is used a dispatch call will be created in the CAD. This call will: * Attach the unit that performed the command * Include the unit's address and postal code * [Display on the live map](/cad/integration-plugins/erlc/3d-live-map) * Include the vehicle's make, model, year, color, and license plate in the [customizable description template](/cad/integration-plugins/erlc/traffic-stops#dispatch-description) * [Include the customizable 10-code](/cad/integration-plugins/erlc/traffic-stops#id-10-code) * Automatically search the license plate ## Traffic Stop Command Configuration Configure the traffic stop behavior under **Admin** > **In-Game Integration** > **ER:LC** > **Server** > **Traffic Stops**. ![](https://docs-assets.sonoransoftware.com/sha256/4f/4feb546523c56c99759090cbd87fbb6413e4c5127e88b0a23388569eaad6a1d5.png) ### Command Customize the command from `;ts` to anything else. ### Dispatch Description When the traffic stop call is created, the call description can contain customizable information about the vehicle, license plate, and more. Select the `` icon to view available variables, click-to-copy, and paste them into the description. #### 10-Code When the traffic stop call is created, it will use the selected [custom 10-code](/cad/tutorials/customization/10-codes). ## CAD Permission Requirements In order to use this command in-game, players must have a [linked Roblox account](/cad/integration-plugins/erlc/getting-started#linking-your-roblox-account) with the **Dispatch** or **Self Dispatch** permission to create a traffic stop call. ## Using the Desktop Hotkey ### Download the Desktop Application In order to use hotkeys, download the Windows or OSX desktop application. ### Configure your Hotkey Configure a traffic stop hotkey under **Customization** > **Hotkeys** > **Traffic Stop** ![](https://docs-assets.sonoransoftware.com/sha256/37/37b720945eb54380c1486556561bb88ee0b7650e21d11ebd3db2cf29bad3d2dd.png) #### Utilize the Hotkey Once in-game, press your desktop hotkey to generate a traffic stop. * The vehicle must be nearby with a player in it. * You must have a [linked Roblox account](/cad/integration-plugins/erlc/getting-started#linking-your-roblox-account). ## Using the In-Game Commands The CAD will automatically find the closest vehicle to the unit. The call will automatically include the vehicle description, plate, and location. Ex: `;ts` [In-game commands not working? Make sure you have connected the webhook.](/cad/integration-plugins/erlc/getting-started#id-3.-link-er-lc-event-webhooks-to-sonoran-cad) ### Customizing the In-Game Command ## Result Once the hotkey or in-game command has been ran, a traffic stop call will be generated with the details, a plate lookup will open, and the call will be visible on the [live map](/cad/integration-plugins/erlc/3d-live-map). ![](https://docs-assets.sonoransoftware.com/sha256/8f/8f4d73eb69fe9243881f22cf0ab4969af0bb54af00d52882151c91dbb75153e6.png) ![](https://docs-assets.sonoransoftware.com/sha256/13/134fcbfdbf911b00b48b77c362f1011b6c01be2e240a9607b0d5c35633f19a50.png) # Vehicle Registrations Source: https://docs.sonoransoftware.com/cad/integration-plugins/erlc/vehicle-registrations Automatically register vehicles using an in-game command! ## ER:LC Vehicle Registration Automatically register vehicles using an in-game command! ![](https://docs-assets.sonoransoftware.com/sha256/4a/4ab010ea241b7a8a3ca2c5046addfe03b025b5d4ebc158c3f7fc38fdccb8af13.png) ## Civilian Panel Access Automatically register your current vehicle via the civilian panel. > [accordion] Civilian Panel Automatic Registration > > Users can automatically register their current vehicle via the civilian panel. > > 1. Create and Select a Character > > Create and select the character you wish to register the vehicle to. > > 2. Trigger ER:LC Automatic Registration > > * **Civilian** > **DMV** > **ER:LC Automatic Registration** > > 3. View the Registration > > * Select the **Records** button to search and view your new vehicle registration. ## In-Game Registration Command Configuration Register a vehicle via a custom in-game command. ### Persistent Registration > [accordion] In-Game Persistent Registration Command > > When the registration command is ran a new vehicle registration will be created under the user's currently selected character in the CAD. The registration information will include the character information, license plate, make, and color. > > If the user already has this license plate registered under any of their characters, the registration will be moved to the currently selected character and the vehicle information will be updated. ### Temporary Registration > [accordion] In-Game Temporary Registration Command > > Running the temporary registration command will perform the same actions as above. However, the registration record will be automatically **deleted after 24 hours**. #### Note: Vehicle Registration Persistence Vehicles purchased in public ER:LC servers persist their license plate across public and private servers. If a vehicle is purchased in a private server, vehicles are not persisted and are removed when the user leaves the game. For private server vehicles, it is best to use the temporary registration command. ## CAD Permission Requirements Users in-game must first register a character in the CAD. This can be done with or without a CAD account all from [an in-game command or in the CAD](/cad/integration-plugins/erlc/character-creation). ## Using the In-Game Commands When in-game, users can run the customizable vehicle registration commands followed by the license plate on the vehicle. Ex: `;register` Once the registration has been created in the CAD, users will be notified by an optional in-game message. ![](https://docs-assets.sonoransoftware.com/sha256/bc/bcb294c69479432772d828ee03973713b3797ee761968742e87e75dcee979b1b.png) ![](https://docs-assets.sonoransoftware.com/sha256/7b/7b4b4c9371b0da11ccd5cd5b865429c25ff27c3141f6753cdb75de4e18121a41.png) ![](https://docs-assets.sonoransoftware.com/sha256/11/11493188e2fc38a66abdce266bbcc164a2a0ae7741d21614bb67f6d035a89b03.png) [In-game commands not working? Make sure you have connected the webhook.](/cad/integration-plugins/erlc/getting-started#id-3.-link-er-lc-event-webhooks-to-sonoran-cad) ## Customize the In-Game Commands In-Game commands can be customized under **Admin** > **In-Game Integration** > **ER:LC** > **Server** > **Vehicle Registration** ![](https://docs-assets.sonoransoftware.com/sha256/b4/b48f28911cf6755ae49cc8bb5d30333d8291e7d8af8b45e6c53fa93048d92f03.png) ## Troubleshooting ### Registration Fields Blank > [accordion] Registration Fields Blank > > In order for Sonoran CAD to know where to place information (license plate, color, etc.) in your custom record fields, the field IDs must match. > > ![](https://docs-assets.sonoransoftware.com/sha256/7c/7c692f206edd6d51958db188d7c076eefa51d46689ecb3caeb1d2d983e92a63b.png) > > | Field ID | Use | > | - | - | > | `plate` | License Plate Ex: `ABC-123` | > | `make` | Vehicle Name Ex: `Captain` | > | `model` | Vehicle Model Ex: `Chevlon` | > | `year` | Vehicle Year Ex: `1992` | > | `color` | Vehicle Color Ex: `Crimson` | # FiveM Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration Sonoran CAD offers the largest library of FiveM integrations available. > [!NOTE] > > Looking to host your FiveM server? Check out our official [server hosting](/promotions/fivem-hosting)! ![Sonoran CAD FiveM integrations: live map, bodycam, in-game CAD, and more](https://docs-assets.sonoransoftware.com/sha256/b6/b6a4ec36703a1528735c3dc69f1a9bd2de3f992ad235bfc1afed45fddb3e0f79.png) ### FiveM Installation From one-click installation options to pre-configured resource downloads, we've made integration setup a breeze! Learn more about installing the resource below. > [card] [fivem-installation](/cad/integration-plugins/in-game-integration/fivem-installation) ### FiveM Submodules The Sonoran CAD FiveM resource is packed with over a dozen submodules. Each submodule offers unique feature customization. > [card] [Body Camera](/cad/integration-plugins/in-game-integration/available-plugins/bodycam) > [card] [CAD Display](/cad/integration-plugins/in-game-integration/available-plugins/cad-display) > [card] [Call Commands](/cad/integration-plugins/in-game-integration/available-plugins/call-commands) > [card] [Call Templates](/cad/integration-plugins/in-game-integration/available-plugins/call-templates) > [card] [Civilian Integration](/cad/integration-plugins/in-game-integration/available-plugins/civilian-integration) > [card] [Civilian Registration](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration) > [card] [Database Sync](/cad/integration-plugins/database-sync-and-merge) > [card] [Dispatch Notify](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify) > [card] [ERS Integration](/cad/integration-plugins/in-game-integration/available-plugins/ers) > [card] [Framework Support](/cad/integration-plugins/in-game-integration/available-plugins/framework-support-esx-qbcore-and-auto-fines) > > framework-support-esx-qbcore-and-auto-fines > [card] [Force Register](/cad/integration-plugins/in-game-integration/available-plugins/forcereg) > [card] [Kick](/cad/integration-plugins/in-game-integration/available-plugins/kick) > [card] [LB Phone App](/cad/integration-plugins/in-game-integration/available-plugins/lb-phone-app) > [card] [Local Callers](/cad/integration-plugins/in-game-integration/available-plugins/local-callers) > [card] [Live Map](/cad/integration-plugins/in-game-integration/available-plugins/live-map) > [card] [Pager Reborn](/cad/integration-plugins/in-game-integration/available-plugins/pager-reborn) > [card] [Record Printer](/cad/integration-plugins/in-game-integration/available-plugins/record-printer) > [card] [Sonoran Street Signs](/cad/integration-plugins/in-game-integration/available-plugins/smart-signs) > [card] [Sonoran Radio](/cad/integration-plugins/in-game-integration/available-plugins/sonoran-radio-sonrad) > [card] [Station Alert](/cad/integration-plugins/in-game-integration/available-plugins/station-alert) > [card] [Tablet & Mini-CAD](/cad/integration-plugins/in-game-integration/available-plugins/tablet) > [card] [Unit Status](/cad/integration-plugins/in-game-integration/available-plugins/unit-status) > [card] [Vehicle Register](/cad/integration-plugins/in-game-integration/available-plugins/vehreg) > [card] [WraithV2](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2) > [card] [submodule-configuration](/cad/integration-plugins/in-game-integration/submodule-configuration) ### Developer Documentation ![](https://docs-assets.sonoransoftware.com/sha256/eb/eb40b8212f30f152a921608dac5061158e427ce396e4077fad20c32f63408350.png) ### API Documentation View our API endpoints, documented with examples for all code libraries, raw requests, rate limit information, and more. > [card] [api-integration](/cad/api-integration) ### FiveM Developer Documentation In addition to the official API libraries, FiveM developers can access exports and functions from the official resource. > [card] [framework-development-documentation](/cad/integration-plugins/in-game-integration/framework-development-documentation) # FiveM Submodules Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins View Sonoran CAD's vast library of integration plugins for your community! ### Legacy Integrations [FivePD (Legacy, Unsupported)](/cad/integration-plugins/in-game-integration/available-plugins/fivepd) is available for existing FivePD servers as a separate resource and plugin DLL. FivePD 1.5.x has gone years without developer updates or support; this as-is integration uses what its available API allows. It is not bundled with Sonoran CAD, supported, or maintained. Follow its installation page rather than the standard submodule activation steps. # Check API ID Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/api-id-checker Easily view your API ID with a command, and check if a given API ID is linked to an account. > [!NOTE] > > **This submodule has been merged into the SonoranCAD Core and no longer requires external configuration or setup** ## Usage ### Command This submodule supplies the command `/apiid` which will print the player's primary identifier (the one they should use in Settings) to their console. ### Function Callback output parameter: true/false if API ID exists. ```lua theme={null} cadApiIdExists("identifier_here", callback) ``` #### Example ```lua theme={null} cadApiIdExists("steam:1234567890", function(exists) if exists then print("API ID exists!") else print("API ID does not exist!") end end) ``` ### Event This is a *server only* event. **Event Name:** SonoranCAD::apicheck:CheckPlayerLinked **Response Event:** SonoranCAD::apicheck:CheckPlayerLinkedResponse #### Example ```lua theme={null} -- Request TriggerEvent("SonoranCAD::apicheck:CheckPlayerLinked", source, identifier) -- Response AddEventHandler("SonoranCAD::apicheck:CheckPlayerLinkedResponse", function(player, identifier, exists) print(("Player %s has API ID? %s"):format(player, exists)) end) ``` # Body Camera Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/bodycam The Sonoran CAD bodycam enables dispatchers to see live video from units in-game. > [!WARNING] > > Bodycam cloud footage storage is limited based on your subscription plan. > > [View our pricing page](/cad/pricing/faq) for more information. ![Body Camera showing the native CAD viewer with a unit video feed and recording control.](https://docs-assets.sonoransoftware.com/sha256/05/0505af3b6a52cca3b2e2ffef5a37b8281683f41e1e2e2e22e544e5b5004a760a.png) ## What is the live Body Camera? Sonoran CAD is the only external CAD system offering livestream video from in-game users accessible through the [live map](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#live-map), [active units preview](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#active-units), or a [dedicated window](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#window). ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > > \ > The [locations submodule](/cad/integration-plugins/in-game-integration/available-plugins/locations) includes all logic required to send bodycam images to the CAD and is **already enabled by default**. Keep this submodule enabled to maintain functionality. ### Adjust the Configuration The bodycam settings are stored inside of the `/configuration/bodycam_config.lua` file. > [accordion] Configuration Options > > | Variable | Description | > | - | - | > | `command` | The command name to toggle your body camera on or off. | > | `requireUnitDuty` | If enabled, the player must be logged into the CAD to use the body camera. | > | `enableAnimation` | Play an in-game animation when activating or deactivating the body camera. | > | `enableOverlay` | Enables or disables the blinking body camera image on screen when enabled. Default `true` | > | `overlayLocation` | The position (corner) of the screen where the body camera image is displayed. Options: `top-left`, `top-right`, `bottom-left`, `bottom-right` Default: `top-right` | > | `enableBeeps` | Enables or disables the body camera beeping when turned on. Default: `true` | > | `beepType` | Type of audio that the beeps use.`native` = GTAV Native Sounds`nui` = Custom Sound File | > | `beepFrequency` | Adjusts the frequency at which unit body camera beeps when turned on(in milliseconds). Default: `60000` (60 seconds) | > | `beepRange` | The range at which a person can hear the bodycam beeps | > | `screenshotFrequency` | Adjusts the frequency at which unit body cameras update (in milliseconds). Default: `2000` (2 seconds) | > | `defaultKeybind` | The default keybind for toggling the bodycam. | > | `autoEnableWithLights` | Automatically enable bodycam when emergency lights are enabled/disabled. | > | `autoEnableWithWeapons` | Automatically enable bodycam when a weapon is drawn. | > | `clothing` | Clothing items that must be worn in order to have a body camera. | > | `weapons` | Weapons that when drawn enable bodycam. | > | `bodycamCommandChangeFrequency` | The command to adjust your individual body camera screenshot frequency to be different than the server's `screenshotFrequency` value. Default: `bodycamFreq` | ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ## In-Game Usage When in-game, units [must also be actively signed into the dispatch, police, fire, or EMS panel](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#unit-duty-requirement). On first usage, players will be prompted to grant permission for the bodycam: ![](https://docs-assets.sonoransoftware.com/sha256/97/975534ab44f7dff632a9ab9d078ea4af38af20b5989e603217926de14eb0fb09.png) #### Commands In-game commands can be used to * `/bodycam` Toggle the bodycam on or off * `/bodycam sound` Displays your current local sound volume * `/bodycam sound 0` Mutes bodycam sounds locally; use a value from `0` to `1`, such as `/bodycam sound 0.2` for 20% volume * `/bodycam frequency` Displays your current beep interval in seconds * `/bodycam frequency 30` Sets your bodycam beep interval to 30 seconds; accepts whole seconds from `1` to `3600` * `/bodycam anim` Toggles the [bodycam animation](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#animation) on and off locally * `/bodycam overlay` Toggles the [bodycam overlay](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#body-camera-overlay) on and off locally * `/bodycam forceoff` Enables the [force-off state](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#force-off), if your server has granted you permission ![](https://docs-assets.sonoransoftware.com/sha256/77/7788e984748abdb91bfcc6ea540acd207dbf4f9b86d13b2f06bc4896c772c4e6.png) ### Keybind Users can customize a keybind to toggle their bodycams on and off. Navigate to **Settings** > **Keybinds** > **FiveM** and look for the keybind **Toggle BodyCam** under the resource `sonorancad`. ![](https://docs-assets.sonoransoftware.com/sha256/11/11ab0b96863292b86857e061ac942f45bb129ca75de3faad3238acf7a4acdb49.png) #### Body Camera Overlay The on-screen overlay has a generic camera housing, a blinking status light, and a gold/red Sonoran CAD logo by default. ![Sonoran CAD in-game body camera overlay with a gold/red logo and blinking red status light.](https://docs-assets.sonoransoftware.com/sha256/23/2392fa98bfa5b8859a872c6fe4dbaa2e74030912f44f3e5f29395a4789e540b9.gif) To swap the logo: 1. In `sonorancad/core/client_nui/img/`, copy `bodycam_logo_standard.png` (red/white), `bodycam_logo_gold.png` (gold/red), or your own transparent PNG and name the copy `bodycam_logo.png`. 2. Restart `sonorancad`. No configuration change is needed. Automatic updates preserve `bodycam_logo.png`; delete it to restore the default gold/red logo. ### Turning Off a Camera Being Viewed The normal `/bodycam` toggle cannot turn your camera off while someone is viewing it in CAD. Have all viewers close the camera window and stop viewing its live map or active-unit preview, then try again. If a viewer disconnects unexpectedly, allow a short delay for the connection to clear. If your server has granted you [force-off access](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#force-off), you can use `/bodycam forceoff` to stop it while viewers are connected. The in-game message only suggests that command when you have access; otherwise, wait until all viewers stop watching. Closing or losing one viewer does not end the camera feed for other viewers or interrupt an ongoing recording. ### Beeps The FiveM body camera plays periodic beeps while activated. These settings are separate from the desktop/web screen-sharing camera, even when CAD is opened inside an in-game tablet. Changing the CAD **Modify Identifier > Bodycam** sound settings does not change FiveM's bodycam sounds. #### Per-Player Commands * `/bodycam sound 0` or `/bodycam sound 0.0` mutes local bodycam sounds, including start/stop and reminder beeps. `/bodycam sound 0.2` restores the default 20% volume. * `/bodycam sound` displays your current volume. Values from `0` to `1` are accepted. With `beepType = "native"`, zero mutes the beeps, but nonzero values do not adjust GTA's native sound volume. * `/bodycam frequency 30` sets a 30-second interval. `/bodycam frequency 290` sets a 290-second interval. Use whole seconds from `1` to `3600`; `/bodycam frequency` displays the current value. A frequency change restarts the reminder countdown using the new interval. It applies to your camera's reminders, including the sound requests sent to nearby players; it does not change other players' camera intervals. Local muting does not prevent nearby players from hearing your camera. Your volume and interval overrides reset when you reconnect or the resource restarts. If your server renamed the `bodycam` command, use its configured name instead. These commands require the updated FiveM resource. Server administrators must install the update and restart the resource before players can use zero-volume muting or the frequency command. #### Server Configuration In `sonorancad/configuration/bodycam_config.lua`: ```lua theme={null} enableBeeps = true, beepType = "nui", beepFrequency = 60000, -- milliseconds: 60 seconds ``` * `beepFrequency` sets the default interval in **milliseconds**. Use `30000` for 30 seconds or `290000` for 290 seconds. The in-game `frequency` command uses **seconds**. * `enableBeeps = false` disables the recurring beep loop, but does not silence start/stop tones or received nearby-camera beeps. A player frequency override does not re-enable a disabled loop. * `beepRange` determines how far away nearby players can hear the camera. Restart the resource after changing its configuration. ### Automatic Activation The body camera will automatically activate when an officer activates their lights or draws a firearm. * `autoEnableWithWeapons` enables automatic activation when one of the `weapons` items are used. * `autoEnableWithLights` to enabled automatic activation when emergency lights are enabled. ### Force Off Use `/bodycam forceoff` to keep your bodycam off, including automatic activation and viewing requests. Use `/bodycam` to turn it back on. By default, force off requires the `sonorancad.bodycam.forceoff` FiveM ACE permission. CAD account permissions do not grant this access. #### Grant Access Add this example to `server.cfg` (or a permissions file executed by it), replacing `YOUR_LICENSE` with the player's license identifier: ```cfg theme={null} add_ace group.sonoran_cad_bodycam sonorancad.bodycam.forceoff allow add_principal identifier.license:YOUR_LICENSE group.sonoran_cad_bodycam ``` Repeat the `add_principal` line for each player. Restart the server to apply, or run the lines in the server console for immediate access. #### Disable the Permission Check To allow everyone to use force off, set this value in `sonorancad/configuration/bodycam_config.lua`: ```lua theme={null} forceOffAce = "", ``` Restart `sonorancad` to apply. To require a different ACE permission instead, set `forceOffAce` to that permission and use it in your `add_ace` rule. Other bodycam subcommands do not require this ACE permission. The bundled keybind permissions do not grant force-off access. ### Unit Duty Requirement By default, the `requireUnitDuty` configuration value is set to `true`. This requires the unit to be logged into the Police, EMS or Fire portions of CAD in order to activate their bodycam. ### Animation When toggling your body camera on or off an animation will play. To disable this, set `enableAnimation` to `false`. ### In-Game Recording By default, each recording includes a 30-second shadow buffer followed by 1 minute 30 seconds of video, for a maximum total length of 2 minutes. The shadow buffer length can be adjusted with `recording.shadowBufferSeconds`, but the total recording length cannot exceed 2 minutes. Recording can be started manually using a configurable keybind located under **Keybinds -> FiveM -> Sonoran CAD**. You can also enable automatic bodycam recording through `recording.autoRecordEvents`. Developers can also trigger bodycam recordings with a [client event](/cad/integration-plugins/in-game-integration/framework-development-documentation/client-events#bodycam-record-toggle). Recordings can be viewed in the CAD under **Unit Management** > **Body Cam Recordings** ![](https://docs-assets.sonoransoftware.com/sha256/b1/b1c0dc5bc502ec300f90f335da8432e68d768208196462665e8315545a631814.png) ## Attach Clips to Custom Records In **Administration > Customization > Custom Records**, edit a template, add a **Bodycam clips** field, and save. See [custom record templates](/cad/tutorials/customization/creating-custom-record-and-report-types) for setup. ![Custom record field settings with Bodycam clips selected as the type.](https://docs-assets.sonoransoftware.com/sha256/2a/2af7e4b8090583dc2c81d4c76f9951b558f969b194965f6efd41a9599e4d7e63.png) When creating or editing a record, click **Select clip**, choose a recording, then click **Attach clip**. Save the record. ![Bodycam clip picker showing a FiveM recording and the Attach clip button.](https://docs-assets.sonoransoftware.com/sha256/f7/f792a234e727f9fe8c8f5531be1eb98d06ec4a697b49b836b468cbdce0c32949.png) Play the video directly in the record. The **Paste URL** icon also accepts an HTTPS video link. ![FiveM bodycam clip playing inside a custom record.](https://docs-assets.sonoransoftware.com/sha256/1c/1c83d97d1a5a942b7ddb7f53e8274c237427b3dc11fad7c70d9e85928e9adad0.png) CAD-hosted clips expire after **24 hours**; attaching them does not extend storage. Third-party integrations can [register external clips through the API](/cad/api-integration/api-endpoints-v2/general/configuration/register-external-bodycam-recording). Those links remain usable while the host keeps the video available. ## CAD Usage ### Active Units In the active units panel, hover over the camera icon to view a preview of their bodycam. ![](https://docs-assets.sonoransoftware.com/sha256/b4/b47b25d6997ffab333a2bd4a8001d64965474b35a5f38cf8aff9a6378546a2fb.png) ### Window Click on the active unit preview or the pop out button on the live map to open a dedicated bodycam viewer window. ![](https://docs-assets.sonoransoftware.com/sha256/67/67f398613524e4c5c7872a719c60fc75bd4831d4c1434f900c42d7d8295f07ae.png) ### Live Map In the live map, selecting a unit or hovering near a unit in the 3D map will show the bodycam. ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d292bf643dfdb6ee15f56fe7d1c671c13ac46ecfd9dda29edda61b9326e7b35.png) ![](https://docs-assets.sonoransoftware.com/sha256/36/3624d36d78e1c7925a4ba4816b5232cbb5e4dd3305b52add1ea72011a6cf76e9.png) # CAD Display Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/cad-display Use your CAD on a vehicle or station laptop and let nearby players see your screen on in-game displays. ![CAD Display showing CAD on an in-game vehicle laptop and a station laptop.](https://docs-assets.sonoransoftware.com/sha256/23/23137d69730c0562e0f935d23ca5ec12632f3b2998ecfd79dfdb078a031b1efc.png) [Video tutorial](https://www.youtube-nocookie.com/embed/IZo_XOUIEMs) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > [!NOTE] > > The [tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet) must be running to use vehicle and station laptop screens. ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/caddisplay_config.lua` file. > [!NOTE] > > Notifications are handled by the Sonoran CAD core. See [Core Configuration](/cad/integration-plugins/in-game-integration/fivem-installation#4.-configure-the-resource) for settings and supported values. Start with the configuration included with your installed resource. The main settings for server owners are: | Setting | When to change it | | - | - | | `permissionMode` | Choose ACE permissions, framework jobs, or your own permission integration. | | `allowlistedCars` | Add the spawn codes of vehicles that should support CAD displays. | | `general.useAllowlistAsBlacklist` | Set to `true` to block the listed vehicles instead of allowing only those vehicles. | | `worldDisplays.enabled` | Enable or disable station displays around the map. | | `builtinScreens` | Configure a laptop screen already included in a custom vehicle. See the setup below. | | `interaction.enabled` | Set to `false` to disable the focused laptop view. Players can still use `/tablet open`. | The standard laptop includes a screen alignment profile. Custom screens may need [screen alignment](#screen-alignment-for-server-owners) before players can interact with them. ### ACE Permissions When `commands.restricted` is `true` (the default) and `permissionMode` is `"ace"` (the default), the server checks these configurable nodes: * `sonoran.caddisplay` allows a player to open the menu and use or attach a CAD display. * `sonoran.caddisplay.admin` allows menu access and saving or deleting vehicle-model placements. * `sonoran.caddisplay.world` allows saving and deleting station-display placements. If this value is blank, the current resource falls back to `aceObjectAdminUseMenu`. Station administrators also need menu access. With the default configuration, vehicle administration permission alone does not grant station administration. For example, grant access to the appropriate role instead of `builtin.everyone`: ```cfg theme={null} add_ace group.sonoran_cad_display sonoran.caddisplay allow add_ace group.sonoran_cad_display_admin sonoran.caddisplay.admin allow add_ace group.sonoran_cad_display_admin sonoran.caddisplay.world allow ``` If you use framework permissions instead, use `framework.adminJobNames` to choose which jobs can manage vehicle and station placements. ### Commands * `/caddisplay` opens the vehicle display menu when seated in a supported vehicle, or the station display menu when on foot. * `/caddisplay calibrate` opens screen alignment for display administrators. This is only needed for custom or misaligned screens. ![](https://docs-assets.sonoransoftware.com/sha256/c7/c7cc8a04a7fbf9020b131a0ec7c979c7ec5c109617ef93e613927d227593d05e.png) ### Keybind The default keys are **G** to use a nearby display or request control, **Y** to accept a control request, and **L** to deny one. Navigate to **Settings** > **Keybinds** > **FiveM** and look for the keybinds under the resource `sonorancad`. ![](https://docs-assets.sonoransoftware.com/sha256/e2/e20474e7489bd40b2b0c3d107828804d7390e65ec35041911b58813301388c7e.png) ### Usage #### a. Prop Spawning 1. Stop the vehicle and stay seated. Run `/caddisplay`, choose **Spawn CAD Display**, and select the laptop. 2. Drag the colored arrows to move the laptop, or the colored squares to move it along two directions at once. Select **Rotate** to use the rotation rings. **Snap** helps make small, even adjustments. 3. Choose **Apply to this vehicle** to use the placement on your current vehicle. Administrators can choose **Save for this vehicle model** to reuse it for future vehicles with the same spawn code. ![Vehicle CAD laptop placement editor in Move mode with colored arrows and squares](https://docs-assets.sonoransoftware.com/sha256/09/09c4295e5a72caaf68efef87c2dee47fd4cc209c8d5a60b7ec0e06f5a56abc92.png) *Move the laptop using the colored arrows and squares.* ![Vehicle CAD laptop placement editor in Rotate mode with colored rotation rings](https://docs-assets.sonoransoftware.com/sha256/b0/b0af0de0eebd90a118c635cb23f33567877d810d3bc317df17aed1b8bb14916e.png) *Select Rotate and drag the colored rings to adjust the laptop's angle.* To reposition an existing laptop, open **Attach CAD Display** and choose **Position this vehicle's display with mouse**. **Cancel** discards your preview; closing without applying does not save a new placement. Keep the vehicle stopped throughout editing. The editor opens a cabin view aimed at the laptop. These controls help check its position: | Control | What it does | | - | - | | Hold the right mouse button and drag | Look around from the cabin viewpoint. | | **Orbit laptop** | Switch right-drag to circling around the laptop. Toggle it off to look around again. | | Mouse wheel | Zoom the editor view. | | Hold the middle mouse button and drag | Lean the view a short distance. | | **Look at display** | Turn toward the laptop from your current viewpoint. | | **Cabin view** | Restore the starting view and zoom. | | **Reset** | Restore the laptop's starting placement in the editor. | These view controls do not change your normal gameplay camera settings. Built-in vehicle screens cannot be moved with the prop editor; use [screen alignment](#screen-alignment-for-server-owners) to fit the CAD to them. ![SonoranCAD - CAD Display - Menu](https://docs-assets.sonoransoftware.com/sha256/e5/e539f4719b25ba4974a9119ba5a3b3e881537556cb702941a78617eef7a72d59.png) *Sonoran CAD - CAD Display - Main Menu* #### b. Using Built-in Laptops You can also use your vehicle’s built-in laptop as the CAD Display, without spawning a separate laptop prop. Built-in screens need both the texture setup below and a [screen alignment profile](#screen-alignment-for-server-owners) for interaction. The texture name alone does not tell CAD Display where the screen is inside your vehicle. > [accordion] b. Continued > > 1. This option requires additional configuration and third-party software. To begin, navigate to the `caddisplay_config.lua` file located in the `/sonorancad/configuration` folder. The `builtinScreens` section of this configuration file is where you define vehicles equipped with built-in laptops. > 2. To obtain the `texture` name you will need to use a third-party software such as [OpenIV](https://openiv.com/). > 3. Within OpenIV, click **File** in the top-right corner, then select **Open Folder** and navigate to the folder containing your vehicle files > > ![](https://docs-assets.sonoransoftware.com/sha256/0d/0d3a601d3b1e5786cc645d2ee35fa486d7cecad8203101286e6232c3cde746dd.png) > > *OpenIV - Open Folder Button* > > ![](https://cdn.discordapp.com/attachments/871554360285474847/1460761637798809641/image.png?ex=696817ca\&is=6966c64a\&hm=f11953db0efd5c7b19642b8cdeb01bfacbcf736580d476d32b78aafc7970eda3&) > > *OpenIV - File Explorer* > > 4. Once OpenIV opens your selected folder, you will see your vehicle files. From here, open the `SPAWNCODE.ytd` file. A `.ytd` file is a texture dictionary that contains the textures used by the vehicle, such as screens, decals, and interior displays. For this tutorial, the spawn code used is `b3`. > > ![](https://cdn.discordapp.com/attachments/871554360285474847/1460762366844207248/image.png?ex=69681877\&is=6966c6f7\&hm=7d3a6488930aa32624ab94a64a8ca190e712a9dedbbe452a91d19d75211758ce&) > > *OpenIV - YTD Viewer* > > 5. Within the OpenIV Texture Viewer, scroll through the textures and locate the laptop screen texture. In the case of `b3`, the texture name is `laptop_screen`. Some vehicles may include multiple screen textures; ensure you select the one used for the in-vehicle laptop display. > > ![](https://docs-assets.sonoransoftware.com/sha256/3b/3b946b45be7ec160cc2c224deb8592a35606e7bb0c66285ef57bbf4d8d0ecf4b.png) > > *OpenIV - YTD Viewer - Laptop Screen Texture* > > 6. Now that all required information has been gathered, you can begin adding it to the configuration. Be sure to note the texture’s dimensions as shown in OpenIV, as this information is required for proper display. > > **Important**: The texture dimensions must match exactly, or the display may not render correctly. > > For the tutorial vehicle, the configuration should appear as follows: > > ```lua theme={null} > builtinScreens = { > { > vehicle = "b3", -- Vehicle spawn code > screenTexture = "laptop_screen",-- Texture name from the .ytd file > textureWidth = 256, -- Texture width (must match OpenIV) > textureHeight = 256 -- Texture height (must match OpenIV) > } > }, > ``` #### c. Using the Screen 1. Close the handheld tablet if it is open. Sit in a vehicle with a configured display, or stand close to a station laptop. 2. Press **G**. If another player controls the display, they must approve your request first. 3. Once you have control, the camera moves toward the screen. Click, scroll, and type in CAD as you would in the tablet. Your CAD login and current page stay loaded when switching between the tablet and laptop. 4. Click **Exit computer** below the screen to return to the game. If **Escape** does not close the view while you are typing inside CAD, use **Exit computer**. ![Sonoran CAD open on a vehicle laptop with the Exit computer button below the screen](https://docs-assets.sonoransoftware.com/sha256/7a/7a9ea98b7ef20b1df1050fee157c56c61eb773c18b4f9820d636ec059a082895.png) *Use CAD directly on the laptop screen and select Exit computer when finished.* You do not need to open the tablet first. `/tablet open` remains available for handheld use. Nearby players see a periodically refreshed image of the controlling player's CAD on the display. Their view can lag behind your clicks and typing. They must take control to interact with CAD themselves. The [CAD Tablet](/cad/integration-plugins/in-game-integration/available-plugins/tablet) also shows your CAD screen on the handheld prop for nearby players. #### d. Passing Laptop Control To transfer control of a laptop, have the other player press **G** while seated near the vehicle display or standing near the station display. This sends a control request to the current user. Only one player may control the laptop at a time. The current user can press **Y** to accept the request or **L** to deny it. If you are typing in CAD, click **Exit computer** first so the key is not entered into a CAD field. If accepted, the requesting player takes control using their own CAD session. ### Station CAD Display Props Station CAD Displays are saved laptops that stay in police stations or other locations around the map. 1. With station administration permission, run `/caddisplay` while on foot to open **Station CAD Displays**. You do not need to be in a vehicle. 2. Choose **Place Station Display**, or select an existing display and choose **Edit Selected Display**. 3. Use the same colored arrows and rotation rings as vehicle placement. Right-drag to orbit the laptop, middle-drag to pan, and use the mouse wheel to move closer or farther away. **Frame object** brings the laptop into view; **Original view** restores the starting camera. 4. Click **Save station display** to keep your placement, or **Cancel** to discard your changes. To remove a saved laptop, select it in the station menu and choose **Delete Selected Display**. If the menu reports missing permission, ask your server administrator to check your menu and station permissions. If station displays are disabled, enable `worldDisplays.enabled` first. ![](https://docs-assets.sonoransoftware.com/sha256/2a/2a35fec1a3d9fc13d30c2bd081551183d61f1855b3e25ea6bcd88e431e67b605.png) ![](https://docs-assets.sonoransoftware.com/sha256/9d/9d4d0ca1f5e1abbf0570c5a7313fd848cf7601560471cb3ee2162d1037de4b49.png) ### Screen Alignment for Server Owners Use this when CAD does not fit the laptop screen, or a custom screen reports a missing interaction profile. The standard laptop already includes a starting profile. 1. Close the tablet and other menus. Stand within 3 meters of the station display, or sit in the stopped vehicle containing the screen. 2. Run `/caddisplay calibrate`. You need menu access and administration permission for the vehicle or station display you are adjusting. 3. Place the four numbered markers on the visible screen corners, viewed from the front: **top-left, top-right, bottom-right, bottom-left**. Aim and click to place a marker; press **Tab** to select the next one. 4. Use the **arrow keys** and **Page Up/Page Down** to fine-tune the markers, including their depth. Hold **Shift** for smaller movements or **Ctrl** to move all four together. If clicking does not land on the screen, use these keys instead. 5. Press **Enter** to apply the alignment locally, then **G** to test it. **R** resets the corners, **F** flattens the fourth corner if needed, and **Backspace** cancels. 6. To keep the alignment for everyone, copy the block printed in the **F8 console** into your active `caddisplay_config.lua`. For a separate laptop prop, place it inside `interaction.models`. For a built-in screen, place it inside that vehicle's `builtinScreens` entry. Replace any existing profile for the same model, then restart `sonorancad`. > [!NOTE] > > Pressing **Enter** only applies a temporary test on your client. The alignment is lost after a resource restart unless you copy it into the configuration. Calibration does not save or move the laptop's placement. ### Troubleshooting Laptop Interaction * **G does not open the laptop:** close the handheld tablet and other menus, move closer, and check the on-screen notification. Server owners should confirm both `sonorancad` and `tablet` are running. * **Missing screen profile or an incorrectly aligned screen:** use the screen alignment steps above. Built-in screens need their own profile even if their texture already shows CAD. * **Laptop interaction is disabled:** the server owner can enable `interaction.enabled`. Players can use `/tablet open` in the meantime. * **Placement will not start:** stop the vehicle and close any other camera or placement mode before trying again. # Call Commands Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/call-commands Send emergency calls from in-game to the CAD. ![Call Commands showing an in-game 911 command, its notification, and the resulting emergency call in CAD.](https://docs-assets.sonoransoftware.com/sha256/cd/cd2a02329ecff9d7d0d1f18ae670805b10b3203cc5197b16dd628b0901fe6887.png) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > > \ > The [locations submodule](/cad/integration-plugins/in-game-integration/available-plugins/locations) includes required logic to send location data and is **already enabled by default**. Keep this submodule enabled to maintain functionality. > > \ > The [postals submodule](/cad/integration-plugins/in-game-integration/available-plugins/postals) is optional and also enabled by default. Keep this submodule enabled if you wish to include postal code information with emergency calls. ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/callcommands_config.lua` file. > [!NOTE] > > Notifications are handled by the Sonoran CAD core. See [Core Configuration](/cad/integration-plugins/in-game-integration/fivem-installation#4.-configure-the-resource) for settings and supported values. ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration's panic feature to work. ## Usage ### Commands In-game commands can be used to * `/panic` Activates your unit's panic status * `/911` Sends a 911 call to the CAD * `/511` Sends a 511 call to the CAD (Civil) * `/311` Sends a non-emergency call to the CAD (Civil) ![](https://docs-assets.sonoransoftware.com/sha256/d1/d14af634e62cdebda159dae86af238cec2483488d5af9914084bcedd452135ca.png) ![](https://docs-assets.sonoransoftware.com/sha256/d4/d4f22fab9c73361fe9e65ee34f0f380f62f3e460a73f456f6ee803be4ea3d8dd.png) ### Key Binds Users can customize a keybind to activate their panic status. Navigate to **Settings** > **Keybinds** > **FiveM** and look for the **Panic Button** keybind under the resource `sonorancad`. ![](https://docs-assets.sonoransoftware.com/sha256/66/661e9d63aced04e17cbc4d5b0c9a719c20b8bbfeae74ae9183a0feb6af4dd6bd.png) ### ACE Permissions The distributed `sonorancad.cfg` grants the panic command node used by the panic keybind: ```cfg theme={null} add_ace builtin.everyone command.panic allow ``` `/panic` is currently registered with ACE restriction disabled, so this bundled entry provides compatibility/default access rather than acting as an authorization boundary. The `/911`, `/311`, and `/511` commands are also registered without ACE restriction. Do not replace this line with a group grant expecting `/panic` to become role-restricted; the current source does not enforce `command.panic`. ### Call Location By default, calls responded to via the `/dn respond ` command located in [Dispatch Notify](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify) will attempt to be routed to the caller's current location, rather than the location of the call. If you would like calls to route to the location of the original call, please set `useCallLocation` to `true` # Call Templates Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/call-templates This submodule lets communities export custom dispatch call templates from the CAD, define a custom in-game command, and generate dispatch calls using that command. ![Call Templates showing an in-game command, success notification and Traffic Stop call in CAD.](https://docs-assets.sonoransoftware.com/sha256/a1/a137dcda15fcc93cc45669c86a22edc129dceae91c99f493ded2c9a863e66ebf.png) ## Call Templates This submodule lets communities export custom dispatch call templates from the CAD, define a custom in-game command, and generate dispatch calls using that command. ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > > \ > The [locations submodule](/cad/integration-plugins/in-game-integration/available-plugins/locations) includes required logic to send location data and is **already enabled by default**. Keep this submodule enabled to maintain functionality. > > \ > The [postals submodule](/cad/integration-plugins/in-game-integration/available-plugins/postals) is optional and also enabled by default. Keep this submodule enabled if you wish to include postal code information with emergency calls. ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/calltemplates_config.lua` file. ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ### Configuration > [accordion] a. Main Configuration > > | Option | Description | Default | > | - | - | - | > | `callTypeDirectory` | Location of the call type JSON file | `submodules/calltemplates/calltypes` | > | `defaultOrigin` | Call origin used if the template does not specify one | Default: `2` Options: - `0`: Caller - `1`: Radio Dispatch - `2`: Observed - `3`: Walk Up | > | `defaultStatus` | Call status used if the template does not specify one | Default: 1 Options: - `0`: Pending - `1`: Active - `2`: Closed | > | `defaultPriority` | Call priority used if the template does not specify one | `1` | > | `reloadTemplatesOnEachUse` | When true, templates are re-read every command execution (useful while editing files) | `false` | > [accordion] b. Call Type Configuration > > In the `calltemplates_config.lua` file you will find a section named `commands` . In here, you can configure each custom command that will be used to create a call. Below you will find the options you can use during configuration. > > | Option | Type | Description | > | - | - | - | > | `command` | String | The name of the command | > | `callTypeFile` | String | The name of the associated JSON file for the call type | > | `descriptionPrefix` | String | The prefix of the call description | > | `suggestionText` | String | The command suggestion text | > | `includeWraithPlate` | Boolean | Attach locked plate from wraithv2 if available | > | `includePlayerUnit` | Boolean | Attach the player's unit to the call | > | `useAcePermissions` | Boolean | Require a FiveM command ACE to use the command. The node is `command.`; the shipped `ts` and `towreq` entries default to `true`, requiring `command.ts` and `command.towreq`. | ### ACE Permissions The shipped `commands` entries enable `useAcePermissions`, so grant the exact command nodes to a role that should be able to create those calls: ```cfg theme={null} add_ace group.sonoran_cad_dispatch command.ts allow add_ace group.sonoran_cad_dispatch command.towreq allow ``` The node follows the configured `command` value. If `useAcePermissions` is omitted, the current resource defaults the registration to restricted; setting it to `false` removes the command ACE requirement for that entry. #### c. Add Call Type JSON Files Each call type requires a JSON file to be added to the directory `submodules/calltemplates/calltypes`. You can either configure this file yourself or you can download it from Sonoran CAD. This [guide](/cad/tutorials/dispatching/creating-a-call#import-export-saved-call-types) will explain how to create and export call types. ## Usage By default, this submodule comes with a `/ts` (traffic stop) and `/towreq` (tow request) commands. Example: `/ts Blue four door sedan, occupied x1` * Creates a dispatch call with the presets for a traffic stop. * Adds `Blue four door sedan, occupied x1` to the description. * Pre-fills the call's address and postal location with your in-game location. # Civilian Integration Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/civilian-integration Allows players to fetch ID information from the CAD on demand. To create a new civilian character from an in-game form, see [Civilian Registration (CivReg)](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration). ![Sonoran CAD - Civilian Integration Lookup](https://docs-assets.sonoransoftware.com/sha256/34/347912c04bcd007d8d4f317611d0fd613fdde829e1042e1e85673bd0c4497fac.png) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/civintegration_config.lua` file. ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ## Configuration > [accordion] civintegrationconfig.lua > > | Option | Description | Default Value | > | - | - | - | > | cacheTime | Time to cache characters in seconds | 3600 | > | allowCustomIds | Allow players to use /setid to set a custom name. | true | > | allowPurge | Allow players to use /refreshid to "purge" their character list from cache. | true | > | enableIDCardUI | **Recommended**: Allows for a more realistic identification ui with /showid **IF USING:** Please ensure you start the resource `sonoran_idcard` **BEFORE** `sonorancad` in your server resource start order | false | ## Usage #### Commands In-game commands can be used to * `/civid show` Show the ID of your currently selected character in the CAD to the nearest player. * If using the `/civid set` command, it will show your manually configured character info instead of from the CAD. * `/civid set` Manually enter character information for your ID. * `/civid reset` Result the manually entered character information for your ID. * `/civid refresh` Removes the "cached" characters for the client. This allows players to swap characters in the CAD without relogging or waiting for the cache timer. * `/civid help` Displays a list of commands. ![](https://docs-assets.sonoransoftware.com/sha256/56/5657a52a57a37cb26a33e2be4699bc5815c7f9d6f43e813a9702fea851d4d20a.png) ### Export You can use this export to fetch all characters for a specific player ID. This is a server-side export only. ```lua theme={null} Function: "GetCharacters" Parameters: player: the player ID callback: function to call after fetching the data. Returns an array of character objects. Example: exports["sonorancad"]:GetCharacters(playerId, function(result) -- do stuff with result, an array of character objects end) ``` This function can also be used in other submodules (without the export bit). # Civilian Registration (CivReg) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration Register characters in-game or sync character portrait images to Database Sync. ![The in-game Character Registration form.](https://docs-assets.sonoransoftware.com/sha256/69/69723779927133ddf2faecc296b74f4a17723048581ac535e6bac88fcb1f16ce.png) Civilian Registration makes character creation from in-game simple. For **standalone (menu) based servers**, a registration window with your custom character record form is shown with a single button to generate a character selfie. For **framework servers** with [DB sync](/cad/integration-plugins/database-sync-and-merge), this submodule syncs in-game selfies/mugshots to the existing *automatic* character records. ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Configure the Submodule Open `sonorancad/configuration/civreg_config.lua`. Keep `enabled = true` and `templateId = 7` for civilian character registration. ### Optional: Configure Database Sync Mode If both **Database Sync** and its **Character** mapping are enabled in CAD, CivReg uses database mode automatically. Run the [database sync AI configuration tool](/cad/integration-plugins/database-sync-and-merge#3.-automatic-ai-setup) ***after*** starting the civilian registration submodule. This will automatically map any `image` field in your character record to the newly generated `sonoran_mugshot` database column. > [accordion] Advanced: SQL Information > > On every start in database mode, CivReg runs `ADD COLUMN IF NOT EXISTS` to add a nullable `sonoran_mugshot MEDIUMTEXT` column. `MEDIUMTEXT` is required because a base64 portrait can exceed the 65,535-byte capacity of MySQL `TEXT`. > > The standard database targets are: > > | Framework | Character table | Character ID column | Portrait column | > | - | - | - | - | > | QBCore | `players` | `citizenid` | `sonoran_mugshot` | > | ESX | `users` | `identifier` | `sonoran_mugshot` | > > > [!WARNING] > > > > In database mode, CivReg does not create a second character through the CAD API. If CivReg cannot prepare portrait storage in your database, portrait updates stop and the server reports `ERR-CR-106`. > > If your framework uses a customized table or character ID column, update `databaseSync.qbCore` or `databaseSync.esx` in `civreg_config.lua`. Keep the portrait column named `sonoran_mugshot`, then use that column in the CAD field mapping. ### (Optional) Customize Your Character Template In CAD, open **Admin > Customization > Custom Records** and review the civilian character template. See [Creating Custom Record and Report Types](/cad/tutorials/customization/creating-custom-record-and-report-types) for editing fields and sections. Add an editable **Image** field if players should attach a selfie, and make that field required if a portrait is mandatory. In your database sync mapping configuration, the image field must be mapped to the `sonoran_mugshot` column that the CivReg plugin will automatically add to your players table. The [database sync AI configuration tool](/cad/integration-plugins/database-sync-and-merge#3.-automatic-ai-setup) will set this up for you automatically. In standalone mode, templates are cached for **60 seconds** by default. After saving a template change, allow the cache to expire, then close and reopen `/civreg` to load the updated form. An already-open form does not refresh automatically. ### (Optional) Configure Optional Autofill and Portrait Uploads For identity autofill, follow [Framework Autofill](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration#framework-autofill). For templates with image fields, review [Portrait Uploads](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration#portrait-uploads) and the image size limit. ## Player Guide ### Standalone Mode > [accordion] Register a Character in Standalone Mode > > 1. Run `/civreg`, or your server's configured registration command. > 2. Fill out the character record form. Click on any **image** fields to take an automatic selfie. > 3. Select **Register Character** to create the record. Users can optionally [use `/link` in-game](/cad/integration-plugins/in-game-integration/link-user-in-game) to assign the character to their CAD account in the civilian panel. > [accordion] Take a Character Selfie > > In standalone mode, finish loading your character and any appearance changes, then click an **image** field to take a fresh selfie. Avoid changing characters or clothing while the photo is being taken. If the capture fails, wait until your appearance has finished loading and click the image field again. > > The portrait shows your character without masks, hats, glasses, ear accessories, or neck accessories. Those items stay on your in-game character; you do not need to remove or re-equip them for the photo. > > ![Character Photo section with the Click to take a selfie control above Cancel and Register Character](https://docs-assets.sonoransoftware.com/sha256/0e/0e85c75cf8128c1d00434796fac508c234833d62a4599e270e88ba0b531f9bb6.jpg) > > *Scroll to an image field and select Click to take a selfie to capture your current in-game character.* ### Framework Autofill > [accordion] Configure Framework Autofill > > Autofill is optional. Players can complete the registration form without a framework. To prefill supported identity values: > > 1. Configure and enable [Framework Support (ESX/QBCore)](/cad/integration-plugins/in-game-integration/available-plugins/framework-support-esx-qbcore-and-auto-fines). > 2. Start the supported framework before Sonoran CAD and set `usingQBCore` appropriately in `frameworksupport_config.lua`. > 3. Match `autofillFieldIds` in `civreg_config.lua` to your character template's **Field Mapping ID** values. > 4. Restart Sonoran CAD and open a new registration form while playing a loaded framework character. > > The left-hand keys describe the identity values supplied by the framework. The right-hand strings identify the destination fields in CAD: > > ```lua theme={null} > autofillFieldIds = { > first = "first", > last = "last", > dob = "dob", > sex = "sex", > height = "height", > phone = "phone", > nationality = "nationality" > }, > ``` > > For example, if your first-name field has the custom Field Mapping ID `givenName`, change only that entry to `first = "givenName"`. These mappings control autofill; they do not create or rename template fields. > > | Identity value | Default destination | Notes | > | - | - | - | > | First name | `first` | Available framework first name. | > | Last name | `last` | Available framework last name. | > | Date of birth | `dob` | Dates supplied as `YYYY-MM-DD` or `YYYY/MM/DD` are converted when the CAD field uses `MM/DD/YYYY`. | > | Sex | `sex` | Values `0`, `m`, or `male` become `M`; `1`, `f`, or `female` become `F`. Match your template's choices to those values. | > | Height | `height` | Copied as supplied; the submodule does not convert height units. | > | Phone number | `phone` | Filled when the framework supplies a supported phone value. | > | Nationality | `nationality` | Filled when available from the framework. | > > Only values supplied by the framework and mapped to an existing template field are prefilled. Missing values leave the template's default or an empty field for the player to complete. Prefilled fields remain editable unless marked read-only in CAD. These autofill settings apply to the API-mode form. Database mode updates only the `sonoran_mugshot` column; your existing CAD DB Sync mappings supply the remaining character fields. ### Database Sync Mode > [accordion] Update a Character Portrait in Database Sync Mode > > If your community has database sync enabled for civilian records, the CivReg submodule will automatically switch into database sync mode on startup. > > 1. Select the character you want to play in **QBCore or ESX** and finish spawning into the server. > 2. Allow the character's face, clothing, and accessories to finish loading. CivReg waits for **10 seconds with no appearance changes** before taking a fresh portrait. Clothing changes during this wait restart it, so the photo may take longer than 10 seconds after joining. > 3. The portrait is saved to that framework character's database record for CAD to display through your existing DB Sync image mapping. > > The portrait excludes masks, hats, glasses, ear accessories, and neck accessories while leaving those items on your in-game character. If you switch characters or change your appearance during capture, the new photo is discarded and the previously saved portrait is kept. > > You do not need to run `/civreg` in this mode; it displays a reminder that registration and portraits are automatic. Selecting a character on the **CAD civilian page** does not take a new portrait. To retry an automatic capture, reselect the character in your server's character menu and let it fully load again. ### Portrait Uploads Portraits are saved directly with the character data. You do not need to set up a public image address or host the photos separately. The default maximum photo size is **1 MiB**; if a photo is rejected, retake it and review the displayed error with your server administrator. ## Configuration Reference > [accordion] Configuration Reference > > Edit `sonorancad/configuration/civreg_config.lua` and restart the resource after changes. > > | Option | Default | Description | > | - | - | - | > | `enabled` | `true` | Enables civilian registration. | > | `commandName` | `"civreg"` | Chat command without the leading `/`. Changing it changes the command players use. | > | `templateId` | `7` | CAD character template ID. Keep `7` for civilian registration; selecting a different record type changes what is submitted to CAD. | > | `templateCacheSeconds` | `60` | Shared template cache duration in seconds. `0` disables caching; frequent requests can hit the CAD template endpoint's rate limit. | > | `maxSelfieBytes` | `1024 * 1024` | Maximum decoded size of each base64 portrait upload: 1 MiB by default. | > | `databaseSync.qbCore.tableName` | `"players"` | QBCore character table updated in database mode. | > | `databaseSync.qbCore.characterIdColumn` | `"citizenid"` | QBCore column matched to the DB Sync character ID. | > | `databaseSync.esx.tableName` | `"users"` | ESX character table updated in database mode. | > | `databaseSync.esx.characterIdColumn` | `"identifier"` | ESX column matched to the DB Sync character ID. | > | `autofillFieldIds` | Mapping shown above | Maps supported framework identity values to CAD Field Mapping IDs. | > | `notificationOverride` | `"none"` | Uses the global notification choice when `none`. Supported overrides listed in the configuration are `ox_lib`, `lation_ui`, `pnotify`, and `chat`. | > | `language` | English strings below | Customizes command help, form labels, and the success notification. | ## Troubleshooting > [accordion] Troubleshooting > > | Problem | What to check | > | - | - | > | The command is unavailable | Confirm `civreg` is installed, the active configuration is named `civreg_config.lua`, `enabled` is `true`, and you are using the configured `commandName`. Restart the resource after configuration changes. | > | `/civreg` does not open the form | When CAD character database sync is enabled, this is expected. The command explains that registration and portraits are automatic. Select your character in QBCore or ESX to start an automatic portrait capture. | > | Database mode reports `ERR-CR-106` | Start QBCore or ESX and `oxmysql` or `mysql-async` before `sonorancad`. Confirm the configured character table and ID column exist, and allow the database user to alter and update that table. | > | The portrait column exists but CAD shows no image | In the CAD character DB Sync mapping, map `sonoran_mugshot` to an **Image** field. Confirm the character ID mapping matches `citizenid` or `identifier`, then reselect the character in-game and let it fully load. | > | Selecting a CAD character does not refresh its portrait | This is expected in DB Sync mode. Portrait capture starts when you select and spawn as your QBCore or ESX character in-game. Selecting a record in CAD does not take a photo. | > | The portrait is delayed or still shows an older appearance | Allow 10 seconds after the character's appearance stops changing. CivReg waits up to one minute for a character to be ready; if it cannot capture a valid new photo, the previous portrait remains. Reselect the character in-game to retry. If this keeps happening, ask your server administrator to check that the clothing or appearance resource finishes loading correctly. | > | The player is asked to link CAD | Complete [Link User In-Game](/cad/integration-plugins/in-game-integration/link-user-in-game) with the intended CAD account, then retry. | > | Repeated commands do nothing | Requests have a three-second cooldown. In API mode, a form already open will not reopen; close the current form and wait before retrying. | > | Template changes are missing | Save the template in CAD, wait for `templateCacheSeconds` to pass, then reopen the form. | > | Autofill is missing or incorrect | Check that Framework Support is enabled, the framework character is loaded, and each destination Field Mapping ID exists. Review date formats, sex choices, and height units. | > | A field or section is missing | Review its dependency rules and whether the field is supervisor-only. | > | A field cannot be edited | Check read-only settings and whether the field is an automatically managed field such as a random value or ID. | > | Selfie capture fails | Wait for the intended character and appearance to finish loading, then click the image field again without changing clothing or switching characters. If it persists, confirm the Sonoran CAD resource is up to date. For support, ask an administrator to enable Sonoran CAD debug logging, repeat the issue, and collect the player's F8 output and server console output. | > | A portrait is rejected as invalid or too large | Retake it and review the displayed error. Check `maxSelfieBytes` for the decoded size limit. | # Dispatch Notify Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify Notify officers of incoming calls, allow them to attach to them, notify the caller, and route units via GPS in real-time to calls and the lead pursuit officer...all in one! ![Dispatch Notify chat example showing an incoming 911 call, the /dn respond command, attachment confirmation, and in-game GPS routing.](https://docs-assets.sonoransoftware.com/sha256/c6/c62cf05495563b67ac9eb9001358c0fc26fa8fa6970194c73a2bafe2d6baef0c.png) This submodule: * Notifies officers of incoming calls * [Allows officers to attach to calls via command](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify#2-officer-attaches-to-the-call) * Automatically routes attached units to the postal code * Unit GPS routing is updated whenever the dispatch postal is updated * [Allows the call postal and GPS routing to be automatically updated to the primary unit's location](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify#primary-unit-tracking-pursuit) * Notifies the civilian making the emergency call when an officer is en-route. ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > > \ > The [locations submodule](/cad/integration-plugins/in-game-integration/available-plugins/locations) includes required logic to send location data and is **already enabled by default**. Keep this submodule enabled to maintain functionality. > > \ > The [call commands submodule](/cad/integration-plugins/in-game-integration/available-plugins/call-commands) includes required logic to create emergency calls and is **already enabled by default**. Keep this submodule enabled to maintain functionality. > > \ > The [postals submodule](/cad/integration-plugins/in-game-integration/available-plugins/postals) is optional and also enabled by default. Keep this submodule enabled if you wish to include postal code information with emergency calls. ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/dispatchnotify_config.lua` file. ### Ensure Players are Linked Ensure the players have already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ### Configuration Review the `dispatchnotify_config.lua` file to configure the submodule to behave how you like. The file is well documented. Please review **all** the settings! > [!NOTE] > > Notifications are handled by the Sonoran CAD core. See [Core Configuration](/cad/integration-plugins/in-game-integration/fivem-installation#4.-configure-the-resource) for settings and supported values. > [accordion] dispatchnotifyconfig.lua > > | Config Value | Description | > | - | - | > | enableUnitNotify | Enable incoming 911 call notifications | > | emergencyCallType | Specifies what emergency calls are displayed as. Some countries use different numbers (like 999) | > | civilCallType | Specifies non-emergency call types. If unused, set to blank ("") | > | dotCallType | Some communities use 511 for tow calls. Specify below, or set blank ("") to disable | > | respondCommandName | Command to respond to calls with | > | enableUnitResponse | Enable call responding (self-dispatching)If disabled, running commandName will return an error to the unit | > | dispatchDisablesSelfResponse | If a dispatcher is detected to be online, automatically disable the response command. | > | dispatchDisablesUnitNotify | If a dispatcher is detected to be online, automatically suppress incoming 911 call notifications to units. | > | enableUnitNotifyToggleCommand | Enable an in-game command to override unit 911 notifications | > | unitNotifyToggleCommand | In-game command to override unit 911 notifications | > | unitNotifyToggleAce | Ace permission allowed to use the command. Leave blank ("") to allow anyone to use the command | > | enableCallerNotify | Enable "units are on the way" notifications | > | notifyMessage | NotifyMessage: Message template to use when sending to the playerYou can use the following replacements:**\{officer}** - officer name | > | incomingCallMessage | How should officers be notified of a new 911 call? Parameters: **\{location}** - location of call (street + postal) **\{description}** - description as given by civilian **\{caller}** - caller's name **\{callId}** - ID of the call so LEO can respond with /r911 **\{command}** - The command to use | > | unitDutyMethod | How to detect if units are online? **incad**: units must be logged into the CAD **permissions**: units must have the "sonorancad.dispatchnotify" ACE permission (see docs) **esxjob**: requires esxsupport submodule, use jobs instead for on duty detection **custom**: Use custom function (defined below as unitDutyCustom) | > | esxJobsAllowed | What jobs should count as being on duty? | > | waypointType | Customise the title of a call made in the CAD **postal**: set gps to caller's postal (less accurate, more realistic) - REQUIRES [CONFIGURED POSTAL](/cad/integration-plugins/in-game-integration/available-plugins/postals)SUBMODULE **exact**: set gps to caller's position (less realistic) **none**: disable waypointing | > | waypointFallbackEnabled | Fall back to postal if exact coordinates cannot be found (for self-generated calls) | > | callTitle | Type of waypoint to use when officer is attached **Default**: OFFICER RESPONSE | > | sendNotesToUnits | Enable "the sending of notes to units" notifications | > | notifyMessage | NotifyMessage: Message template to use when sending to the playerYou can use the following replacements:**\{callid}** - The CAD Call ID**\{note}** - The Note Added | > | enableAddNote | Enable "the adding of the notes" notifications | > | addNoteCommand | Command to add notes to a call with | > | enableAddPlate | Enable "the adding of plates that are locked" notifications - REQUIRES [CONFIGURED WRAITHV2 ](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2)SUBMODULE | > | addPlateCommand | Command to add plates to a call with | ### ACE Permissions This submodule uses two separate, configurable ACE checks: * `sonorancad.dispatchnotify` is the fixed node used when `unitDutyMethod = "permissions"`; it marks players with this ACE as on duty for notification logic. The shipped `unitDutyMethod` default is `"incad"`, so this ACE mode is opt-in. * `sonorancad.dispatchnotify.toggle` is the shipped default for `unitNotifyToggleAce`. When `enableUnitNotifyToggleCommand` is enabled (the default) and this value is not blank, it controls who may use the default `/dn notify` override. Set `unitNotifyToggleAce` to `""` to allow anyone to use that override, or replace it with another ACE name. For example, grant the nodes to the roles that need them: ```cfg theme={null} add_ace group.sonoran_cad_units sonorancad.dispatchnotify allow add_ace group.sonoran_cad_dispatch_admin sonorancad.dispatchnotify.toggle allow ``` The main `/dn` command is not itself registered as an ACE-restricted command; these nodes gate the duty-detection mode and the notification-toggle branch described above. ## Commands In-game commands can be used to * `/dn respond [id`] Respond/Attach to the newly created dispatch call ID * `/dn notify [on/off/auto]` - Toggle chat alerts on, off, or auto (using the configuration file's default) * `/dn note [text]` Add a note to the current dispatch call * `/dn plate` Adds your currently locked license plate number as a note from the [Wraith ALPR](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2) submodule * `/dn gps` Toggles on/off automatic GPS routing to the call's postal code ![](https://docs-assets.sonoransoftware.com/sha256/b8/b824d4bc63c543088a4a5fed1cf315059e8e491ff3f24feede76d62a58547eba.png) ## Dispatch Call Responding ### Civilian Places a 911 Call This call can be placed from the Civilian menu of the CAD, or via the `/911` command in-game, supplied by the [callcommands](/cad/integration-plugins/in-game-integration/available-plugins/call-commands) submodule. ### Officer Attaches to the Call The unit will see a notification message of the incoming call, complete with the command to run in order to attach. ![](https://docs-assets.sonoransoftware.com/sha256/1b/1ba85dcf868cafef089a9ffd62dbb53a1d7d17c506b8fcffb49e7e5952a127ef.png) ## Primary Unit Tracking (Pursuit) Dispatch notify can also be used to track the primary unit on a call. This will automatically update the postal code on the dispatch call to the primary unit's current location. This is highly useful for pursuits, where additional units need to catch up and join the chase. ### Toggle Unit Tracking for the Primary Unit Dispatchers (or self-dispatch) can set the primary unit to any unit currently attached to the call. The slider next to the Primary Unit box will toggle tracking mode. When enabled, the postal will automatically update based on the primary unit's location and be sent to all attached units. ![](https://docs-assets.sonoransoftware.com/sha256/30/3058745d8b253d0f4c464b997a35254433ab6c95364c51e529a30c54d63e3fbf.png) ## Troubleshooting * No notifications for 911 calls * Units must be logged into the CAD (by default) or meeting the requirements depending on how the submodule is configured. * Check your notification settings in [Core Configuration](/cad/integration-plugins/in-game-integration/fivem-installation#4.-configure-the-resource). * Units do not automatically attach to calls * Ensure the players have already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. * Caller is not notified when units attach to the call * If the caller ever leaves the server and rejoins, this feature does not work. * If dispatch created the call within the CAD, there is no way to notify a caller. * Ensure you are not overriding the 911 command (default `/911`) with another resource. # Emergency Response Simulator (ERS) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/ers The Sonoran CAD ERS integration allows dispatchers to generate callouts from the live map, lookup character information, and more! ![The native ERS callout builder in Sonoran CAD.](https://docs-assets.sonoransoftware.com/sha256/72/72d0b8a9aad5f6e3fad76c1aa07c7514539d0ae1d12649bee82263eaee160da4.png) *Sonoran CAD x ERS* ## What is Emergency Response Simulator? Emergency Response Simulator is a paid, third-party script for FiveM. This advanced (co-op) PVE roleplay game mode simulates emergency service calls, where you as emergency service worker have to respond to. Whether you are a medic, firefighter, tow service operator or police officer, there is always something to do. With finetuned callouts you’ll never get bored of driving around in your service vehicle. Rush to high-priority, dangerous calls, or handle routine tasks like warning a speeder. Each callout is unique, with random outcomes that keep you curious and engaged every time you respond to an emergency. [ERS can be purchased from Nights Software.](https://store.nights-software.com/category/ersgamemode) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is included with the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). Enable it using the configuration step below. Night ERS `1.8.16` or newer is required. Start `night_ers` before `sonorancad` where possible. If ERS starts later or is restarted, the integration reconnects automatically. ### Adjust the Configuration Open `sonorancad/configuration/ersintegration_config.lua` and set `enabled = true`, then restart `sonorancad` after saving your changes. The main options are whether to create 911 calls (`create911Call`), create dispatch calls when players accept ERS callouts (`createEmergencyCall`), and automatically attach additional accepting units (`autoAddCall`). ### Ensure Players are Linked Players must [link their CAD account](/cad/integration-plugins/in-game-integration/link-user-in-game) and have an active CAD unit before accepting callouts. To receive ERS callouts assigned from CAD, they must also be on an ERS shift with a service selected. ### Update CAD Record Templates The ERS submodule comes with three record templates (character, license and vehicle registration). Importing and using these record templates will ensure ERS callout character, license, and vehicle registration records are automatically generated. These records can be located in the `/sonorancad/submodules/ersintegration/SonoranCAD Records` directory. ![](https://docs-assets.sonoransoftware.com/sha256/db/db83844f14774afa29e30f392d1a5444429492f1734e2eae873f371e1d6cdb88.png) *ERS Integration - SonoranCAD Custom Records* > [!NOTE] > > The `Civilian` and `Vehicle Registration` are default records. If you've modified them, it's recommended to replace them with the provided versions to ensure proper data import. To import in Sonoran CAD, navigate to `Admin -> Customization -> Custom Records -> Import`.\ Open each JSON file and copy/paste the contents into the CAD. ![](https://docs-assets.sonoransoftware.com/sha256/66/66f68f29b224e5fe097226ee5232d8d22b8e04c8e4e5d87330bc8fb763a4c08f.png) *Sonoran CAD - Import Record* ### Check the Connection Run `sonorancad ers` in the **server console**. It shows whether ERS is running, whether its callout list has reached CAD, and the reason for the most recent failure. Check that the integration is running and the callout catalog says `synced to CAD` before testing callouts from the live map. If a check fails, use the [troubleshooting steps below](#troubleshooting). The integration retries loading and sending the callout list automatically. ## Configuration ERS Integration is highly configurable to allow for custom records and calls. All default configuration will work with the provided CAD records seamlessly. It is only recommended to edit if you are experienced with [custom records](/cad/tutorials/customization/creating-custom-record-and-report-types). ### Default Configuration > [accordion] ersintegrationconfig.lua > > ```lua theme={null} > --[[ > Sonoran Plugins > > Plugin Configuration > > Put all needed configuration in this file. > ]] > local config = { > enabled = false, > pluginName = "ersintegration", -- name your plugin here > pluginAuthor = "SonoranCAD", -- author > configVersion = "1.4", > -- put your configuration options below > DOBFormat = "en", -- Make sure this matches | en: dd/mm/yyyy | us: mm/dd/yyyy | iso: yyyy/mm/dd > clearRecordsAfter = 30, -- Clear records after this many minutes (0 = never) > create911Call = true, -- Create a 911 call when an ERS callout is created > createEmergencyCall = true, -- Create an emergency call when an ERS callout is accepted > callPriority = 2, -- Priority of the call created in CAD (1-3) | Only used if createEmergencyCall is true > callCodes = { > ['Stolen_motorbike'] = '10-22' > }, -- Call codes for each ERS callout type | Only used if createEmergencyCall is true > autoAddCall = true, -- Automatically add members to the call when an ERS callout is accepted > customRecords = { > civilianRecordID = 7, -- Record ID for civilian records > civilianValues = { > -- Configurable mapping for SonoranCAD replaceValues. > -- The key is what SonoranCAD expects and the value is either: > -- • A string that matches a key in pedData, or > -- • A function that returns a value based on pedData. > -- • Left side of mapping is the SonoranCAD field mapping ID from Custom Records, right side is the ERS field. > ["first"] = "FirstName", > ["last"] = "LastName", > ["dob"] = "DOB", > ["age"] = function(pedData) > return returnAgeFromDobString(pedData.DOB) > end, > ["sex"] = "Gender", > ["residence"] = "Address", > ["zip"] = "PostalCode", > ["phone"] = "Phone", > ["skin"] = "Nationality", > ["img"] = "ProfilePicture" > -- Add more keys as needed: > -- email = "Email" -- Example: if pedData.Email exists. > }, > vehicleRegistrationRecordID = 5, -- Record ID for vehicle registration records > vehicleRegistrationValues = { > -- Configurable mapping for SonoranCAD replaceValues. > -- The key is what SonoranCAD expects and the value is either: > -- • A string that matches a key in pedData, or > -- • A function that returns a value based on pedData. > -- • Left side of mapping is the SonoranCAD field mapping ID from Custom Records, right side is the ERS field. > -- Registration Information > ["status"] = function(vehicleData) > if vehicleData.stolen then > return "STOLEN" > elseif not vehicleData.mot then > return "EXPIRED" > else > return "VALID" > end > end, > ["_wsakvwigt"] = function(vehicleData) > if vehicleData.stolen then > return "STOLEN" > elseif not vehicleData.mot then > return "EXPIRED" > else > return "VALID" > end > end, > ["_imtoih149"] = function(vehicleData) > return os.date("%m/%d/%Y", os.time() + (60 * 60 * 24 * 365)) -- +1 year from now > end, > -- Civilian Information > ["first"] = function(vehicleData) > return vehicleData.owner_name:match("^(%S+)") > end, > ["last"] = function(vehicleData) > return vehicleData.owner_name:match("%s(.+)$") > end, > -- Vehicle Information > ["plate"] = "license_plate", > ["model"] = "model", > ["color"] = function(vehicleData) > if vehicleData.color_secondary and vehicleData.color_secondary ~= "" then > return vehicleData.color .. ", " .. vehicleData.color_secondary > else > return vehicleData.color > end > end, > ["year"] = "build_year", > ["type"] = function(vehicleData) > local classMap = { > [0] = "SEDAN", [1] = "SEDAN", [2] = "SUV", [3] = "SUV", > [4] = "COUPE", [5] = "COUPE", [6] = "OFFROAD", [7] = "TRUCK", > [8] = "MOTORCYCLE", [9] = "MARINE", [16] = "AIRCRAFT" > } > return classMap[vehicleData.vehicle_class] or "SEDAN" > end, > -- Add more keys as needed: > -- owner = "Owner" -- Example: if pedData.Owner exists. > }, > licenseRecordId = 4, -- Record ID for license records > licenseTypeField = "7eddab31daf4a0182", -- Field ID for license type > licenseTypeConfigs = { > DRIVER = { > type = "DRIVER", > is_valid = "License_Car_Is_Valid", > license = "License_Car", > }, > MOTORCYCLE = { > type = "MOTORCYCLE", > is_valid = "License_Bike_Is_Valid", > license = "License_Bike", > }, > BOAT = { > type = "BOAT", > is_valid = "License_Boat_Is_Valid", > license = "License_Boat", > }, > PILOT = { > type = "PILOT", > is_valid = "License_Pilot_Is_Valid", > license = "License_Pilot", > }, > CDL = { > type = "CDL", > is_valid = "License_Truck_Is_Valid", > license = "License_Truck", > }, > }, > licenseRecordValues = { > -- License Information > ["252c4250da9421cbd"] = function(pedData, ctx) > return pedData[ctx.is_valid] and "VALID" or "SUSPENDED" > end, > ["878766af4964853a7"] = function(pedData, ctx) > return pedData[ctx.is_valid] and "VALID" or "EXPIRED" > end, > ["_54iz1scv7"] = function(pedData, ctx) > if pedData[ctx.license] == "Expired" then > return os.date("%m/%d/%Y", os.time() - (60 * 60 * 24 * math.random(1, 365))) -- Within the last year > end > > return os.date("%m/%d/%Y", os.time() + (60 * 60 * 24 * math.random(1, 365))) -- Within a year > end, > -- Civilian Information > ["first"] = "FirstName", > ["last"] = "LastName", > ["mi"] = "", -- No M.I. mapped > ["dob"] = "DOB", > ["age"] = function(pedData) > return returnAgeFromDobString(pedData.DOB) > end, > ["sex"] = "Gender", > ["residence"] = "Address", > ["zip"] = "PostalCode", > }, > boloRecordID = 3, -- Record ID for BOLO records > boloRecordValues = { > ['_olgxdruc3'] = 'bolo_description' > }, > warrantRecordID = 2, -- Record ID for warrant records > warrantDescription = '_avb6wvgyi', -- Field ID for warrant description > warrantFlags = '_hlshajq0f' -- Field ID for warrant flags > } > > } > > if config.enabled then Config.RegisterPluginConfig(config.pluginName, config) end > > function returnAgeFromDobString(dobString) > local day, month, year > > if config.DOBFormat == "en" then -- dd/mm/yyyy > day = tonumber(dobString:sub(1,2)) > month = tonumber(dobString:sub(4,5)) > year = tonumber(dobString:sub(7,10)) > > elseif config.DOBFormat == "us" then -- mm/dd/yyyy > month = tonumber(dobString:sub(1,2)) > day = tonumber(dobString:sub(4,5)) > year = tonumber(dobString:sub(7,10)) > > elseif config.DOBFormat == "iso" then -- yyyy/mm/dd > year = tonumber(dobString:sub(1,4)) > month = tonumber(dobString:sub(6,7)) > day = tonumber(dobString:sub(9,10)) > else > errorLog("Unsupported DOB format: " .. tostring(config.DOBFormat)) > end > > local today = os.date("*t") > local age = today.year - year > > if today.month < month or (today.month == month and today.day < day) then > age = age - 1 > end > > return tostring(age) > end > > ``` ### Configuration Values > [accordion] Default Configuration Values > > | Value | Type | Description | > | - | - | - | > | `DOBFormat` | `string` | Language code for the DOB format. Available options can be found in the configuration file | > | `clearRecordsAfter` | `integer` | Number of minutes to clear records after \| 0 to never delete | > | `create911Call` | `bool` | Create a 911 call when an ERS callout is created | > | `createEmergencyCall` | `bool` | Create an emergency call when an ERS callout is accepted | > | `callPriority` | `integer` | Priority of the call created in CAD (1-3) | > | `callCodes` | `array` | Call codes for each ERS callout type. \| Left side is the callout ID and right side is the corresponding 10 code | > | `autoAddCall` | `bool` | Automatically add members to the call when an ERS callout is accepted | > | `customRecords` | `array` | Array of record customization for CAD records. Please see comments in file for more information on record customization | ## Features ### Live Map Callout Generation Dispatchers can use the live map to create a new ERS callout at a specific location. Drag-and-drop the `ERS` icon from the toolbar to a location on the map. Clicking the new ERS map icon will allow you customize the callout and settings. ![](https://docs-assets.sonoransoftware.com/sha256/f3/f30d3de2901d24990f0457b2662c378de09fa33ef96c4250daa75777a0e47140.gif) *Sonoran CAD: ERS Callout Creation* ### Record Lookups Use ERS to request a person's information or a vehicle's information. When ERS returns that information, the integration creates the corresponding CAD records for lookups. Accepting a callout alone does not create every person and vehicle record for that call. ### Automatic Call Generation and Assignment #### ERS to CAD 1. With `create911Call` enabled, an ERS callout offer creates a mapped 911 call in CAD. 2. A linked player with an active CAD unit accepts the callout **inside ERS**. 3. With `createEmergencyCall` enabled, Sonoran CAD creates the dispatch call and attaches that player's unit. With `autoAddCall` enabled, additional players who accept the same callout are attached to that call too. > [!NOTE] > > Using `/dn respond` on a Sonoran dispatch notification does not accept the callout inside ERS. Use ERS's own callout controls to accept it. #### CAD to ERS 1. A dispatcher attaches another online unit to that ERS-generated dispatch call in Sonoran CAD. 2. The integration sends the matching callout to that player's ERS session. 3. The player can see and continue the callout in-game. This only applies to dispatch calls generated by the ERS integration. The player must be online, linked to Sonoran CAD, and on an ERS shift with a service selected. ### Call Locations and Postals ERS calls use your [Sonoran CAD postals](/cad/integration-plugins/in-game-integration/available-plugins/postals) when available, including custom postal files. If that lookup is unavailable, the integration tries your postal resource when using resource mode, then a postal supplied by ERS. A call can still be created with `Unknown postal` if none are available. If postals differ between CAD and the game, check that the CAD postal settings use the map data your community expects. ## Troubleshooting Start with `sonorancad ers` in the **server console**. It shows enabled features, connection status, callout-list status, and the last failure so you can check the part that is failing. | Problem | What to check | | - | - | | The integration is disabled or ERS is not started | Set `enabled = true` in `ersintegration_config.lua`, restart `sonorancad` after changing it, and confirm `night_ers` is started. | | The ERS version is too old | Update Night ERS to `1.8.16` or newer and restart it. Older versions are blocked. An unverified version is a warning; confirm your installed ERS version before continuing. | | Callouts are missing from the CAD live map | Confirm ERS has callouts enabled and loaded. If the callout list could not be sent to CAD, check the CAD connection and configured server ID. The integration retries automatically. | | A 911 call appears, but no dispatch call appears | Enable `createEmergencyCall`, link the accepting player to CAD, and have them clock in with a CAD unit before accepting the callout inside ERS. | | A unit assigned in CAD does not receive the ERS callout | Confirm the player is in game, linked to CAD, and on an ERS shift with a service selected. The CAD call must have been generated by this integration. | | Calls work, but person or vehicle lookups do not | Request the information through ERS first. Check the imported CAD record templates and any record configuration issues reported by `sonorancad ers`. Database Sync communities also need the option below. | | A record is rejected because a value already exists | Check the relevant CAD template's unique fields, such as a plate number. Correct the duplicate value or template setup; a failed record does not necessarily mean call creation is broken. | If the issue continues, give [Sonoran support](https://support.sonoransoftware.com) the action that failed and the error code shown. When support supplies an ID, run `sonorancad support ` in the server console. The report includes ERS connection and failure details. Support may also request `sonorancad getclientlog ` for a player who did not receive a callout. ## Limitations ### Database Sync When a community uses database sync, all record lookups run against that community’s external database. The ERS integration automatically creates characters and vehicles in the CAD database through the API, so these records must be included alongside the external database results. To enable this, turn on [**Include CAD API records in DB Sync lookups**](/cad/integration-plugins/database-sync-and-merge#2.-combine-api-and-db-sync-records). # FivePD (Legacy, Unsupported) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/fivepd Automatic CAD calls and NPC records for FivePD. ![Sonoran CAD FivePD integration: automatic callouts and NPC and vehicle records.](https://docs-assets.sonoransoftware.com/sha256/e2/e2c3e012b2a478dc930788d7a659313de5d417d6b465ca1b7e57167b268f9898.png) *FivePD integration - illustrative promotional artwork* > [!WARNING] > > **FivePD 1.5.x has gone years without updates or support from its developers.** We have integrated as much as we can using its available API and source material, without support from the FivePD developers. Further functionality and compatibility fixes are limited by what FivePD exposes. > > This CAD integration is **unofficial, unsupported, and not maintained**, and is provided as-is for existing FivePD servers. Sonoran Software support does not troubleshoot it, and future compatibility updates are not planned. FivePD is listed with the FiveM submodules for discovery, but is installed as a **separate resource and a FivePD plugin DLL**. It is not bundled with Sonoran CAD and does not go in `sonorancad/submodules/`. ## Features | In FivePD | In Sonoran CAD | | - | - | | Accept a callout | Creates a shared dispatch call and attaches the responding officer. Other officers accepting the same callout join that CAD call. | | NPCs and vehicles become available during an accepted callout | Automatically imports discoverable callout entities, including later spawns. | | Make a traffic stop | Imports the stopped vehicle, driver, and passengers. | | Arrest an NPC | Imports the NPC's records. | | Complete a callout or request a service | Adds completion or service-request notes to the imported CAD call. | NPC imports include civilian information, available driver/hunting/weapon licenses, and warrant text. Vehicle imports include plate, owner, model, color, and registration status. NPC portraits are not imported. ## Installation ### Download the Integration Download **sonoran\_fivepd.zip** from the [latest release](https://github.com/Sonoran-Software/sonoran_fivepd/releases/latest). Use the installation ZIP, not GitHub's source-code download. The DLL is already compiled. ### Copy the Two Components | From the ZIP | Destination | | - | - | | The entire `sonoran_fivepd` folder | Your server's `resources` directory. Keep the folder name `sonoran_fivepd`. | | `put_in_fivepd_plugins/SonoranPlugin.net.dll` | The `plugins` folder inside your existing FivePD resource: `fivepd/plugins/SonoranPlugin.net.dll`. | > [!WARNING] > > **Both components are required.** Starting the standalone resource without placing the DLL in FivePD will not import callouts or records. Keep FivePD's own API DLLs in place and do not install duplicate copies of this plugin DLL. ### Review the Configuration Open `sonoran_fivepd/config.lua`. Automatic callout imports and civilian, vehicle, license, and warrant records are enabled by default. The mappings match CAD's default record templates; customized communities should check [Record Mappings](/cad/integration-plugins/in-game-integration/available-plugins/fivepd#record-mappings). ### Set the Start Order In `server.cfg`: ```cfg theme={null} # Start the sonorancad resource and other bundled resources # ONLY use this line for the entire Sonoran CAD resource, you do not need to ensure anything else. exec @sonorancad/sonorancad.cfg # Start FivePD and the CAD integration AFTER the Sonoran CAD exec line above ensure fivepd ensure sonoran_fivepd ``` ### Link In-Game Restart the server and reconnect. Go on duty in CAD and FivePD, then accept a callout or make a traffic stop. Units must [link their CAD account in-game](/cad/integration-plugins/in-game-integration/link-user-in-game) with the `/link` command. ## Configuration | Setting in `config.lua` | Default / behavior | | - | - | | `automaticCalloutRecords` | `true`: discover NPCs and vehicles in accepted callouts. Traffic-stop and arrest imports are separate triggers. | | `deleteAfterMinutes` | `60`: CAD deletes imported calls and records after this interval. Accepts whole numbers from `1` to `1440`. | | `records..enabled` | Enables or disables civilian, vehicle, license, or warrant imports. | | `callouts`, `completionNotes`, `serviceNotes` | Enable dispatch calls and the corresponding notes. | | `acePermission` | Empty by default. Set an ACE such as `sonoran_fivepd.use` and grant it to your officer group to restrict access further. | ### Record Mappings Default record type IDs are civilian `7`, vehicle `5`, license `4`, and warrant `2`. 1. In CAD's **Admin** area, open **Custom Records** and select a template. The number beside its name is its `recordTypeId`. 2. Click the destination field, then open **Advanced -> Mapping -> Field Mapping ID** in the field settings panel. Scroll the panel if necessary. 3. Copy that ID into the corresponding key in `records..fields` in `config.lua`. Keep the right-hand FivePD field name or mapping function. Change `recordTypeId` if your template uses a different number. 4. Restart `sonoran_fivepd`. For example, the default license **Type** mapping is: ```lua theme={null} ['7eddab3-1daf-4a01-82'] = 'LicenseType', ``` ![Default license template with Type selected and its Field Mapping ID visible under Advanced and Mapping.](https://docs-assets.sonoransoftware.com/sha256/b8/b8b5436166b4fbf4e191fcd7c540958936cfbadf7eff2c9f91c72ed58f699734.jpg) *Copy the field's mapping ID into the plugin configuration. Example uses default templates, not player data.* Copy IDs exactly. The supplied license `fieldAliases` handles default IDs. Replace the IDs as needed for custom fields. Dropdown values must also match your template's options. Fishing licenses are not in CAD's default license Type dropdown. Add `FISHING` to that dropdown and `Fishing = 'FISHING'` to `records.license.types` to import them. Dates are copied from FivePD; use a mapping function if your CAD template requires a different format. For communities using database sync, enable **Include CAD API records in DB Sync lookups**, described under **Combine API and DB Sync Records** in the [database sync guide](/cad/integration-plugins/database-sync-and-merge), so imported FivePD records can appear alongside external database results. ## Limitations and Troubleshooting * **Automatic discovery depends on the callout.** Entities must exist and be networked on the officer's client. Custom callouts that hide entities inside helper objects, static fields, or computed properties may need the fallback commands: `/fivepdcadped` for the nearest NPC within 5 metres, or `/fivepdcadvehicle` for the nearest vehicle within 15 metres. * **No world-wide scanning.** Only accepted callouts and the encounter triggers above are imported. Merely generating or offering a callout does not create a CAD call. This integration does not create FivePD callouts from CAD or sync CAD edits back into FivePD. * **Completion adds a note; it does not close the CAD call.** Dispatch manages the call's status. Service notes do not dispatch CAD units. # Force Register (ForceReg) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/forcereg Requires players to register on the CAD via a nag screen or freezing them. This can be restricted to specific jobs or ACE permissions. ![Force Register in-game CAD account linking warning](https://docs-assets.sonoransoftware.com/sha256/ff/ffe31305c8fae7c59b6a1dc7acf663325825b1b87052e8a23de6c34085420e95.png) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/forcereg_config.lua` file. ### (OPTIONAL) Utilize the Tablet's Auto Link The [tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet) can be configured to automatically link the user when they login, removing the need for users to manually type this in. ## Configuration > [accordion] forceregconfig.lua > > | Option | Description | Default Value | > | - | - | - | > | captiveOption | The mode to use for telling players to sign up. | Nag | > | captiveMessage | Message to show to the player. | See Config | > | verifyMessage | Message to show how to confirm the player registered. | See Config | > | whitelist.enabled | Restrict forcing registration to only the configured people | `false` | > | whitelist.mode | What the whitelist will use to check if a player is whitelisted | `qb-core` Options: `qb-core`, `esx`, `ace` | > | whitelist.aces | Ace permissions that will pass the whitelist and will get the ForceReg notifications if `whitelist.mode` is set to `ace`. | `forcereg.whitelist` | > | whitelist.jobs | QBCore of ESX jobs that will pass the whitelist and get the ForceReg notifications if `whitelist.mode` is set to `qb-core` or `esx`. | `police` | ### ACE Permissions The ACE whitelist is inactive with the shipped defaults (`whitelist.enabled = false` and `whitelist.mode = "qb-core"`). To use ACE access, enable the whitelist and set `whitelist.mode = "ace"`. The default `whitelist.aces` entry is `forcereg.whitelist`, and the list is configurable; any listed node can pass the whitelist. For example: ```cfg theme={null} add_ace group.sonoran_cad_linked forcereg.whitelist allow ``` Grant this node only to the role that should receive ForceReg registration notifications when the ACE whitelist is enabled. ## Commands In-game commands can be used to * `/link` Opens the link menu in-game ![](https://docs-assets.sonoransoftware.com/sha256/9f/9f23af08d0281550e354d28d96b59e676ee4b698c1520c351deff8c63230b18a.png) ## Modes In the configuration file, the `captiveOption` can be set to `Nag` or `Freeze`. This changes the behavior of the [link menu](/cad/integration-plugins/in-game-integration/available-plugins/forcereg#link-menu) popup. > [accordion] Nag Mode > > When the `captiveOption` is set to `Nag` an in-game text message will display at the top, informing the user to run the `/link` command to connect to the CAD. > > ![](https://docs-assets.sonoransoftware.com/sha256/3e/3e452fe4a29eb3d337487612d7a2ae4c9557f1e63341610c819f3d3cc3e4a4f0.png) > [accordion] Freeze Mode > > When the `captiveOption` is set to `Freeze` the link menu will be automatically displayed and users will be unable to close it until they have linked their CAD account. ### Link Menu The link menu displays a code and button to link. Selecting the **Link CAD** button will automatically open sonorancad.com/id in an external browser, with the code already entered. If the user is not yet logged into Sonoran CAD in their browser, they must do so first. After linking, the user will be automatically joined to the CAD community if not already. ![](https://docs-assets.sonoransoftware.com/sha256/b7/b7562ac2fa174f3b920bc2245b70995490435758e7cea465cbc4b4b767e52889.png) ### Event This event is sent to the **client** after the check is completed. ```lua theme={null} Event: "SonoranCAD::forcereg:PlayerReg" Parameters: identifier: The identifier checked exists: true/false, if the identifier is linked to a CAD account ``` # Framework Support (ESX/QBCore) and Auto Fines Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/framework-support-esx-qbcore-and-auto-fines Adds support for ESX and QBCore automatic in-game fines. > [!NOTE] > > ESX v2 is not supported by this submodule and will not function. Only ESX v1 is supported. ![A CAD citation and an in-game fine notification.](https://docs-assets.sonoransoftware.com/sha256/bb/bbbc000b80a64a66b7f2e99fd72a6e1af646a6cba920f871e324dcb3f0763f04.png) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/frameworksupport_config.lua` file. ### Ensure Players are Linked Ensure the players have already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ### Configuration Review the `frameworksupport_config.lua` file to configure the submodule to behave how you like. The file is well documented. Please review **all** the settings! > [accordion] frameworksupportconfig.lua > > | Config Value | Description | > | - | - | > | identityType | Newer ESX version use license instead of steam for identity. | > | usePrefix | Some ESX versions don't use the prefix (such as license:abc) with the identity, set to false to disable the prefix. | > | usingQBCore | If you are using QBCore set this to true. | > | usingQBManagement | Set to true if you want to use qb-management accounts to receive fine payments. | > | qbManagementAccountNames | A table of department abbreviations to qb-management account names, see examples present in config | > | qbNotifyFinedPlayer | Set to true to notify only the fined individual of the fine | > | qbFineMessage | The message sent to notify the user of the fine. The placeholders are $AMOUNT and $OFFICER\_NAME where $AMOUNT is the fine total and $OFFICER\_NAME is the Unit Name of the officer issuing the fine | > | issueFines | Whether to issue fines to players for finable reports/forms | > | fineNotify | Whether to send a message in chat when a player is issued a fine | > | fineableForms | A list of the names of forms that should issue fines to players. | > | legacyESX | Set to true if default settings do not get character name properly (older esx\_identity/ESX legacy versions) created for and tested with: ESX v1.1.0 esx\_identity v1.0.2 | ### Auto-Fines Civilians in-game can be automatically fined for the crimes they commit based on fineable forms submitted. To do so, simply enable `issueFines` in the config and add a list of custom record types to the `fineableForms` array. Ex: `fineableForms = {"Arrest Report", "Speeding Citation"}` The fines are pulled from your custom records: * `Charges` section -> `Fine` field * `Speed` section -> `Fine` field ## Usage This submodule can be used to issue fines to players when reports/records are entered into the CAD that include fines. You can configure the reports/records that are finable in the configuration. This submodule also adds support for ESX that other submodules can take advantage of. Currently, the following submodules are supported: * [dispatchnotify](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify) * Adds the ability to show character names in dispatch responses (officer names) * Adds the ability to restrict functionality to certain jobs (like police). See the [dispatchnotify documentation](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify) for how to do this. * [callcommands](/cad/integration-plugins/in-game-integration/available-plugins/call-commands) * Adds the ability to show character names for the caller when they use /911. This is automatic when the submodule is installed. * [livemap](/cad/integration-plugins/in-game-integration/available-plugins/live-map) * Adds the ability to show character names on the map. ### Legacy ESX Support > [!WARNING] > > Legacy ESX Support utilizes MySQL-Async in order to get character information from your database directly. ESX requires this in older versions so this shouldn't be an issue. This is mainly for ESX v1 releases that were made before the character system implementation using only the `users` database table. These versions of ESX used the `users` table only for player information of active characters and a `characters` table that held all character information (active and secondary characters of your players). Due to different handling of character information such as first name and last names, this option allows you to use esxsupport submodule with older "Legacy" ESX v1 releases. Simply set `legacyESX` to true in your `config_esxsupport.lua` # Depreciated: ESX Support Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/framework-support-esx-qbcore-and-auto-fines/esx-support Adds support for ESX, QBCore and QBUS to other submodules, as well as the ability to issue fines automatically to users in-game. > [!WARNING] > > This submodule is being phased out in favor of the newer [frameworksupport](/cad/integration-plugins/in-game-integration/available-plugins/framework-support-esx-qbcore-and-auto-fines) support submodule. Please begin using that instead. > [!WARNING] > > This submodule only functions with other submodules that require the **standard** version of Sonoran CAD or higher. The auto-fine functionality requires the **pro** version. > > For more information, view our [pricing ](/cad/pricing/faq)page. > [!NOTE] > > ESX v2 is not supported by this submodule and will not function. Only ESX v1 is supported. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). ## Activation Guide ### Download and Install the Core If you haven't already, be sure to install and configure the [SonoranCAD Core](/cad/integration-plugins/in-game-integration/fivem-installation) first. ### Activate the Submodule and all Dependencies Follow the [submodule activation guide](/cad/integration-plugins/in-game-integration/submodule-configuration#activating-a-submodule) for the `callcommands`, `locations`, and `postals` submodules. ### \[Optional] Add your Game Server IP and Port *This step is only required if you wish to use the automatic fine capability.* Be sure to have your game server IP and port set in the admin panel under `Advanced` > `In-Game Integration` > `Server Events and Integrated Live Map` ![Sonoran CAD - Server IP and Port](https://docs-assets.sonoransoftware.com/sha256/d7/d7aed287e46cdfede3958ecdd95e8e537a8bcc2efcc1a2461248abcdae44c2b3.png) ### Set Your API ID Don't forget to set your account [API ID](/cad/api-integration/getting-started/setting-your-api-id) to properly link your in-game user to the CAD. ### Configuration Review the `config_esxsupport.lua` file to configure the submodule to behave how you like. The file is well documented. Please review **all** the settings! ## Auto-Fines Civilians in-game can be automatically billed with esx\_billing. To do so, simply enable `issueFines` in the config and add a list of custom record types to the `fineableForms` array. Also, be sure that you have [configured your server IP and port](/cad/integration-plugins/in-game-integration/available-plugins/framework-support-esx-qbcore-and-auto-fines/esx-support#4-optional-add-your-game-server-ip-and-port) in the admin menu. Ex: `fineableForms = {"Arrest Report", "Speeding Citation"}` The fines are pulled from your custom record's: * `Charges` section -> `Fine` field * `Speed` section -> `Fine` field ## Usage This submodule can be used to issue fines to players when reports/records are entered into the CAD that include fines. You can configure the reports/records that are finable in the configuration. This submodule also adds support for ESX that other submodules can take advantage of. Currently, the following submodules are supported: * [dispatchnotify](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify) * Adds the ability to show character names in dispatch responses (officer names) * Adds the ability to restrict functionality to certain jobs (like police). See the [dispatchnotify documentation](/cad/integration-plugins/in-game-integration/available-plugins/dispatch-notify) for how to do this. * [callcommands](/cad/integration-plugins/in-game-integration/available-plugins/call-commands) * Adds the ability to show character names for the caller when they use /911. This is automatic when the submodule is installed. * [livemap](/cad/integration-plugins/in-game-integration/available-plugins/live-map) * Adds the ability to show character names on the map. ## Legacy ESX Support > [!WARNING] > > Legacy ESX Support utilizes MySQL-Async in order to get character information from your database directly. ESX requires this in older versions so this shouldn't be an issue. This is mainly for ESX v1 releases that were made before the character system implementation using only the `users` database table. These versions of ESX used the `users` table only for player information of active characters and a `characters` table that held all character information (active and secondary characters of your players). Due to different handling of character information such as first name and last names, this option allows you to use esxsupport submodule with older "Legacy" ESX v1 releases. Simply set `legacyESX` to true in your `config_esxsupport.lua` ## Configuration | Config Value | Description | | - | - | | identityType | Newer ESX version use license instead of steam for identity. | | usePrefix | Some ESX versions don't use the prefix (such as license:abc) with the identity, set to false to disable the prefix. | | usingQbus | If you are using Qbus/QBCore set this to true. | | QbusEventName | Change to the prefix to the name of the event you are using for Qbus/QBCore (NOTE: this is primarily used for renamed QBCore frameworks) | | issueFines | Whether to issue fines to players for finable reports/forms | | fineNotify | Whether to send a message in chat when a player is issued a fine | | fineableForms | A list of the names of forms that should issue fines to players. | | legacyESX | Set to true if default settings do not get character name properly (older esx\_identity/ESX legacy versions) created for and tested with: ESX v1.1.0 esx\_identity v1.0.2 | # Kick Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/kick This submodule kicks police, fire, EMS, and Dispatch users from the CAD when they disconnect from your server. ![The CAD community menu with an automatic disconnect notification.](https://docs-assets.sonoransoftware.com/sha256/a2/a22d95065c43dfe4af890303d3d35d2a834ed8efbe613717e29b163992b74e56.png) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/kick_config.lua` file. ### Ensure Players are Linked Ensure the players have already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ## Usage When a [linked player](/cad/integration-plugins/in-game-integration/link-user-in-game) disconnects from the FiveM server, their unit will be automatically disconnected from the CAD. # LB Phone App Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/lb-phone-app View the Sonoran CAD app in-game on LB Phone! > [!WARNING] > > LB Phone is a paid, third-party script. For support or questions on LB Phone, please contact their support team. ![The Sonoran CAD app entry and icon on an in-game LB Phone.](https://docs-assets.sonoransoftware.com/sha256/c6/c67ea518c2fb334bcfba6ab7745169d2992d19a8db0f7f3dcc97966c01f3a675.png) ## LB Phone App [LB Phone](https://lbscripts.com/phone) is a popular, in-game phone script for FiveM. LB Phone allows you to configure custom applications (like Sonoran CAD) to add and view on the in-game phone. [LB Phone must be purchased from LB Scripts](https://lbscripts.com/phone). ## Activation Guide ### Add the Custom App to LB In the `lb-phone/config/config.lua` file, add a new entry to the array of `Config.CustomApps`. The example below shows the `Config.CustomApps` with a single, custom Sonoran CAD application. > [accordion] Custom Sonoran CAD App > > ``` > Config.CustomApps = { > -- START COPY HERE -- > ["sonorancad"] = { -- A unique identifier for the app, not shown to the user > name = "Sonoran CAD", -- The name of the app, shown to the user > description = "Sonoran CAD is a state of the art, cross-platform, computer automated dispatching and records management system for gaming communities", -- The description of the app, shown to the user > developer = "Sonoran Software Systems", -- OPTIONAL the developer of the app > defaultApp = false, -- OPTIONAL if set to true, app should be added without having to download it, > game = false, -- OPTIONAL if set to true, app will be added to the game section > size = 59812, -- OPTIONAL in kB > images = { "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource221/v4/7e/be/65/7ebe6512-9c4a-161f-8108-5a844e16914e/b916289b-fc06-49fe-9ae3-347c6f49a23d_activeunits.png/230x0w.webp", "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource211/v4/40/cf/ba/40cfba85-925a-5b6b-ce46-e1164a13adb5/45ffeb07-5b14-47af-bf99-ebf3473f1188_customrec.png/230x0w.webp", "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource211/v4/d9/b4/09/d9b40925-3b97-7bce-fa92-6c80644c21bb/b0ff740c-e590-499e-aada-fcdb7f818252_dispatch.png/230x0w.webp", "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource211/v4/39/ab/e3/39abe3e6-2ae4-adde-6070-322601145326/ba8def97-a711-44cb-8303-bde8e066fe9d_integrations.png/230x0w.webp", "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource221/v4/39/28/cc/3928cc44-4419-2177-b166-11a0a19b3498/a147df6d-ee3d-4f76-aa44-481da34d02de_livemap.png/230x0w.webp" }, -- OPTIONAL array of images for the app on the app store > ui = "https://sonorancad.com/", -- OPTIONAL > icon = "http://s3.sonorancad.com/icon_white_bkg.png", -- OPTIONAL app icon > price = 0, -- OPTIONAL, Make players pay with in-game money to download the app > landscape = false, -- OPTIONAL, if set to true, the app will be displayed in landscape mode > keepOpen = true, -- OPTIONAL, if set to true, the app will not close when the player opens the app (only works if ui is not defined) > onUse = function() -- OPTIONAL function to be called when the app is opened > -- do something > end, > onServerUse = function(source) -- OPTIONAL server side function to be called when the app is opened > -- do something > end > } > -- END COPY HERE -- > } -- https://docs.lbscripts.com/phone/custom-apps/ > ``` ### Restart LB Phone Restart LB phone and you can now "install" Sonoran CAD on the LB Phone from the App Store. ![](https://docs-assets.sonoransoftware.com/sha256/d4/d4a91b0681076152aca76c790ce31a483328e1126f93839d36f282bba8d75347.png) ![](https://docs-assets.sonoransoftware.com/sha256/a8/a81df9ef9a54c7e843aa50e7f4f7a2ef265189e4bae57335c959f8eba427eee7.png) # Live Map Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/live-map Sonoran CAD's 2D and 3D interactive live map allows you to update and view live unit locations, emergency calls, in-game road signs, and more! ![Sonoran CAD 3D live map with units and an emergency call](https://docs-assets.sonoransoftware.com/sha256/7c/7c1186fa78721a60c4f9cdb3735c123c98f345ebc59389931a876f4cfc8bc557.png) *Sonoran CAD - Live Map* > [!NOTE] > > This submodule is built into the Sonoran CAD FiveM resource and requires no additional configuration. ### 2D Map Selection In the admin panel, navigate to **Advanced** > **In-Game Integration** > **Live Map** Here, you can enable and select a default map option for GTA, Roblox, or others. Additionally, pro communities can [upload a custom map](/cad/integration-plugins/in-game-integration/available-plugins/live-map#using-a-custom-map-fivem). ![](https://docs-assets.sonoransoftware.com/sha256/93/93321c2aa020126a81db0d50ef0bfc0f7fb5b384a75828c2a67512d187500462.png) *Sonoran CAD - Live Map Type Selection* ### Link In-Game Don't forget to have each community member link their in-game user to the CAD. [For FiveM users, run `/link` in-game.](/cad/integration-plugins/in-game-integration/link-user-in-game) For Roblox users, ensure your [Roblox account is linked to your Sonoran account](/cad/integration-plugins/erlc/getting-started#linking-your-roblox-account). ### User Access Permission Users will need to be granted access to view the live map. This can be done via [Discord role sync](/cad/integration-plugins/discord-bot-integration/role-sync), [permission key](/cad/tutorials/getting-started/permissions#permission-keys), or by [manually granting permissions](/cad/tutorials/getting-started/permissions#manually-granting-permissions) in the admin menu. ### **4. Enjoy!** In the Police, Fire, EMS, or Dispatch window you can now click the "Live Map" button to view your new live map! Selecting a blip will show it's updated position and unit information. This is found in the task bar's start menu under **Unit Management** > **Live Map**\ You can also [pin the live map button to your taskbar](/cad/tutorials/customization/customizing-your-layout#7-tab-system) for easy access. > [!NOTE] > > The live map will only show units that are in your server and also actively logged into the police, fire, or EMS panel in the CAD. Be sure to have your [API ID](/cad/api-integration/getting-started/setting-your-api-id) set. ![](https://docs-assets.sonoransoftware.com/sha256/b0/b0be37d108f7da1e1ca84a90c0fce953e97466d2811678d67a5f31d1a1a20c49.png) ## **Using the Live Map** ### **Map Controls** #### **Postal and Location Search** > [!WARNING] > > The postal search functionality requires the **Pro** version of Sonoran CAD. > > For more information, view our [pricing](/cad/pricing/faq) page. With the [postals](/cad/integration-plugins/in-game-integration/available-plugins/postals) submodule configured, you can manually enter and search for a postal code on the live map. Units, emergency calls, and dispatch calls with locations will also display a red pin icon. Clicking the icon will open the map and zoom to the location. ![](https://docs-assets.sonoransoftware.com/sha256/4f/4f4c3b199277fa3a86b4bd7d6cc0a3663fe25a283ff5f3f623d215ebdcd10812.gif) #### Blip Customization You can toggle specific blips visibility and outline colors for police, fire, EMS, and dispatch. ![Live Map - Blip Customization](https://docs-assets.sonoransoftware.com/sha256/c2/c2ec15cb456bf2319f87da7983e2cd73b75cb1883c722cd220a0fd1c26098871.png) ### **Unit Blips** Unit blips display the live location of all police, fire, EMS, and dispatch units in-game. You can hover over a unit for brief details, or click on one for more options. You can also easily filter the map to specific units by selecting them in the active units panel. ![Live Map - Unit Filter](https://docs-assets.sonoransoftware.com/sha256/00/008b7945f6e45d84e1b05b527477d83bbea703401d7721a135b41b0e5f5a853c.gif) #### Menu Options Clicking on a unit blip allows you to add the unit to a call, add the unit to a group, send the unit lookup results, edit the unit's information, toggle their panic state, and more. ![Live Map - Unit Blip Options](https://docs-assets.sonoransoftware.com/sha256/36/364e97ad74101129c254a5762d1d82255da4fc830472e7aa048e07d9b0236246.png) #### Drag-and-Drop > [tab] Roblox 2D > > Unit Blips Support: > > * Drag to the call editor > * Drag to an active call > * Drag to a unit group > * Drag to the unit group header to create a new group > * Drag to the lookup window or minimized tab > * Drag to the timer window or minimized tab > * Drag to the tone board window or minimized tab > [tab] FiveM 2D > > * Drag-and-drop an ERS Callout > * Drag-and-drop a dispatch call to a location > * Drag-and-drop a dispatch call to the editor > [tab] FiveM 3D > > * Drag-and-drop an ERS Callout > * Drag-and-drop a dispatch call ### Emergency Call Blips Emergency calls placed in-game will also appear on the live map. You can hover over the blip for the call details. #### Menu Options Clicking on the emergency blip allows you to import the call to your editor or remove the emergency call. ![Live Map - Emergency Call Blip](https://docs-assets.sonoransoftware.com/sha256/35/3549b4ef4dc10151b0d228490f9e70e59ae4e3af27a5c3b4b1c29234e17f18ac.png) ### Sonoran Street Signs [Sonoran Street Signs](/cad/integration-plugins/in-game-integration/available-plugins/smart-signs) adds custom Live Map markers that open each sign's Integration Panel editor. Give CAD roles access to the overview and individual sign controllers. See the [Street Signs integration guide](/store/street-signs/integrations-and-webhooks) for setup and permissions. ## FiveM Custom Map > [!WARNING] > > This feature requires the **pro** version of Sonoran CAD.\ > For more information, view our [pricing](https://sonorancad.com/pricing) page. Sonoran CAD allows communities to upload custom map images to the integrated, hosted live map. If your community does not use one of the map types provided, you can upload the images manually. > [accordion] Extract Images > > Extract the images from the YTD files with a program like OpenIV.\ > **You will need six files named exactly as follows:**\ > `minimap_sea_0_0.png`\ > `minimap_sea_0_1.png`\ > `minimap_sea_1_0.png`\ > `minimap_sea_1_1.png`\ > `minimap_sea_2_0.png`\ > `minimap_sea_2_1.png` > > ![OpenIV - Extract Images](https://docs-assets.sonoransoftware.com/sha256/75/75dae421d5f019bb2ae1fe0c018e754cc773b7c9898165374d08d4821af6ffd6.png) > > ![OpenIV - Save Images](https://docs-assets.sonoransoftware.com/sha256/a0/a0286b801e260d9a94b2934c4658916aeaa6472dce288573468e17ac1c2c812a.png) > [accordion] Upload Images > > Navigate to Admin > Advanced > In-Game Integration > Live Map and Push Events\ > Select "Upload Custom" and upload all six correctly named files. > > ![Live Map - Custom Map Uploader](https://docs-assets.sonoransoftware.com/sha256/73/73c447e325d19df97fa4ce0b927fcf2144e2a8d679875b12d9b712cd88994d3f.png) > [accordion] File Size > > Custom map images are limited to 30MB each. **However, if you are uploading more than 100MB of images total, you will need to upload in separate batches.** ### Roxwood Expansion > [accordion] Roxwood Expansion > > If your community is utilizing the Roxwood map expansion, there will be additional tiles to upload. > > * `minimap_sea_-1_-1.png` > * `minimap_sea_-1_0.png` > * `minimap_sea_-1_1.png` (Optional, blank tile to the right) > > Additionally, two existing map tiles will need to be updated, as they contain parts of both the main island and the Roxwood expansion. > > * `minimap_sea_0_-1.png` > * `minimap_sea_0_0.png` > * `minimap_sea_0_1.png` > > ![](https://docs-assets.sonoransoftware.com/sha256/ed/ed40d954544453fd5e69ba6eaec8d1cd6a62cd2a7440c2a764c001be3355edf4.png) ### Cayo Perico Expansion > [accordion] Cayo Perico Expansion > > If your community is utilizing the Cayo Perico map expansion, there will be extra tiles to upload. Ensure these are named as: > > * `minimap_sea_2_1.png` > * Bottom right of the main island + top right of Cayo Perico > * `minimap_sea_2_2.png` > * `minimap_sea_3_1.png` > * `minimap_sea_3_2.png` > > ![](https://docs-assets.sonoransoftware.com/sha256/14/14597b230775a55b9bbf4fa485a9d8c4378667cc7a7fbc27dfafa67a60d95aac.png) ## Roblox Custom Maps > [card] [3D Live Map](/cad/integration-plugins/erlc/3d-live-map) ## Troubleshooting ### 3D Live Map not Loading The 3D live map uses WebGL, an open source something. In Chrome, navigate to `chrome://gpu/` and check if `WebGL` is **Disabled**. If so, try the following steps: ![](https://docs-assets.sonoransoftware.com/sha256/b2/b2eeac1e5dbfe3394f1f184682de27a2ade9ca9f5fcfe6c9cae5d34469b0d07f.png) * **Chrome** > **Settings** > **System** > **Use Graphics Acceleration When Available** * Ensure Graphics Drivers are Up-to-Date * Fully restart your web browser ### Custom Blip Integration Panels Custom blips can display interactive [Integration Panels](/cad/api-integration/api-endpoints-v2/integration-panels) inside their menus in both 2D and 3D map views. Click a configured custom blip to view its controls. The connected integration must publish the panel and its state, process actions, and send back the updated result. Developers can attach a panel and instance using the blip's `data` entries. The [Smart Signs example](/cad/api-integration/api-endpoints-v2/integration-panels/examples/smart-signs) shows an individual sign editor, including the API setup and action handling. This is a custom integration example; adding a blip alone does not implement the game-side controls. # Local Callers Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/local-callers Nearby witnesses will send an emergency call during car jackings, weapons being brandished, and more! Stop or cut their descriptions short by killing them in time! ![GTA V witness calling in an emergency with a CAD call result](https://docs-assets.sonoransoftware.com/sha256/49/49059a9cb994dcdcb4b1e5207c0e25f8cd4343bab8b524549c99aa0685504b31.png) ## Promo Video [Video tutorial](https://www.youtube-nocookie.com/embed/BJHeFP5j3qY) ## Installation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > > \ > The [locations submodule](/cad/integration-plugins/in-game-integration/available-plugins/locations) includes all logic required to send bodycam images to the CAD and is **already enabled by default**. Keep this submodule enabled to maintain functionality. ### Adjust the Configuration The bodycam settings are stored inside of the `/configuration/localcallers_config.lua` file. ### Configuration > [accordion] localcallersconfig.lua > > | Variable | Type | Description | > | - | - | - | > | `callCoolDown` | `int` | How long in between calls for the same player | > | `clearRecordsAfter` | `int` | Time in minutes to clear records after a call is made \| 0 will disable this feature | > | `callTypes` | `table` | Events that will trigger a 911 call. `gun` Will trigger based on brandishing or shooting a firearm. `carJacking` will trigger if you are trying to steal a car. `death` will trigger if a player dies | > | `localRunTime` | `int` | Time in seconds for how long "locals" will run towards the player to show interest in the call, `0` will disable this feature | > | `callTimers` | `table` | How long each call type will take to put through | > | `whitelistZones` | `table` | Zones where only specific call types will trigger. (I.e. A shooting range won't trigger a brandishing call) | > | `language` | `table` | Translations | > | `clothingConfig` | `table` | Configure clothing colors and names if you have custom EUP as well as whitelist certain EUP items or peds to not trigger calls | > | `weaponConfig` | `table` | Configure custom caller descriptions for weapons. | ## Usage #### Emergency Calls When near an AI "local/ped" in-game, they will automatically pull out their phone and begin to place an emergency call if you are spotted committing one of the configured crimes. #### Emergency Call Information While the local caller is placing the emergency call, killing them before the configured timer expires will only send a partial report—making it harder for police to get a full description of you. Descriptions from the caller are based on clothing items. These can be configured and improved in the `clothingConfig` for custom items. # Unit Locations Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/locations Automatically sends linked units' in-game locations to Sonoran CAD. The Unit Locations submodule automatically sends a unit's current street, coordinates, vehicle type, and emergency-light state to Sonoran CAD. Dispatchers and other supported CAD panels can then see the unit's current location. This submodule is included with the core Sonoran CAD FiveM resource and is enabled by default. Players only need to [link their in-game user to Sonoran CAD](/cad/integration-plugins/in-game-integration/link-user-in-game). No separate installation is required. ## Automatic Street Names By default, the integration uses FiveM's native street-name lookup. Standard GTA street names work automatically. Some custom HUD resources replace FiveM's game-wide text entries with their custom street names. These custom names also work automatically because the native lookup returns the updated name. Other HUD resources keep custom names inside their own configuration. Those names are only visible to that HUD and cannot be detected automatically by other resources. For these HUDs, copy the HUD's street hash and name pairs into the Unit Locations configuration. ## Custom Street Names Open `/sonorancad/configuration/locations_config.lua` and enable `customStreetNames`. Add the same hash and display-name pairs used by your HUD: ```lua theme={null} customStreetNames = { enabled = true, names = { [0xAC9F694E] = "Custom Freeway Name", ["0x10A6E7C9"] = "Custom Street Name" } } ``` Both the primary street and the nearest crossing can be replaced. Numeric hashes, signed decimal hashes, and quoted hexadecimal hashes are supported. If a street hash is not listed, the integration falls back to the normal FiveM street name. If `customStreetNames` is disabled or is not present in an older configuration file, unit locations continue working normally with native street names. > [!NOTE] > > If your HUD has an option to update custom names game-wide or update game text entries, enable that option instead. The Unit Locations submodule will then receive those names automatically, without duplicating the list in both configurations. ## Configuration | Option | Description | Default | | - | - | - | | `clientCheckTime` | How often the client checks whether location data changed. | `250` ms | | `prefixPostal` | Prefixes the location with the nearest postal when the Postals submodule is available. | `true` | | `customStreetNames.enabled` | Enables the custom street hash override list. | `false` | | `customStreetNames.names` | Maps FiveM street hashes to custom display names. | Empty | # Lookups Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/lookups Implements name and plate lookups via the CAD. > [!WARNING] > > This submodule utilizes API endpoints that require the **plus** version of Sonoran CAD or higher. For more information, view our [pricing ](/cad/pricing/faq)page. > [!WARNING] > > This submodule is currently only used as a dependency for other submodules , and **does not have any in-game commands for general player usage**. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). This submodule Implements name and plate lookups via the CAD. ## Activation Video Click to view our [WraithV2 plate reader and lookup installation video](https://youtu.be/IgaISh1CykE). ## Activation Guide ### Download and Install the Core If you haven't already, be sure to install and configure the [SonoranCAD Core](/cad/integration-plugins/in-game-integration/fivem-installation) first. ### Activate the Submodule and all Dependencies Follow the [submodule activation guide](/cad/integration-plugins/in-game-integration/submodule-configuration#activating-a-submodule) for the required submodules. ### Set Your API ID Don't forget to set your account [API ID](/cad/api-integration/getting-started/setting-your-api-id) to properly link your in-game user to the CAD. ## Configuration > [!WARNING] > > Do not set the cache timer too low or you may run into rate limiting. | Option | Description | Default | | - | - | - | | maxCacheTime | How long to cache a looked-up plate. | 120 seconds | | stalePurgeTimer | How long between "stale" plate cleanups (keep unscanned plates) | 600 seconds (10 minutes) | ## Usage ### Exported Functions NOTE: For return object definitions, see the [Developer Documentation](/cad/api-integration/api-endpoints-v2/general/lookups/lookup-name-or-plate). | Function | Arguments | Description | Returns | | - | - | - | - | | cadNameLookup | FirstName, MiddleInitial, LastName, callback | Looks up a character based on the arguments specified. | Objects containing character data and all associated objects. | | cadPlateLookup | plate, basicFlag, callback, autoLookup | Looks up a vehicle based on specified plate number. | Objects containing vehicle data and all associated objects. | #### Function Details ```lua theme={null} --[[ cadNameLookup first: First Name last: Last Name mi: Middle Initial callback: function called with return data ]] function cadNameLookup(first, last, mi, callback) --[[ cadPlateLookup plate: plate number basicFlag: true returns cached record if possible which only contains vehicleRegistrations object, false calls the API callback: the function called with the return data autoLookup: when populated with an API ID, pops open a search window on the officer's CAD (optional) ]] function cadPlateLookup(plate, basicFlag, callback, autoLookup) ``` ## For Developers This plugin also adds the commands `namefind` and `platefind` which takes the above arguments and prints the returned JSON object to the console. ### ACE Permissions These developer commands are registered with FiveM command restriction enabled. Grant the exact nodes to a restricted developer or support role: ```cfg theme={null} add_ace group.sonoran_cad_debug command.namefind allow add_ace group.sonoran_cad_debug command.platefind allow ``` The command names are fixed in the current resource and are not configurable. They are intended for developer use, not general player access. # Pager Reborn Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/pager-reborn We've teamed up with Inferno Collection to integrate with Pager Reborn, and offer the script FREE to Sonoran CAD Pro communities! ![An in-game Pager Reborn displaying the same message entered in the adjacent CAD pager controls.](https://docs-assets.sonoransoftware.com/sha256/60/6029bec089eceb6c29c38a8b5765ec1cc0c764f655176da933be7a860923bd23.png) > [!WARNING] > > This third-party resource from Inferno Collection is provided **free** only with the **Pro** version of Sonoran CAD and is a **separate download**. > > If your community is not on the **Pro** version, you may still purchase the paid resource from Inferno Collection to use with any version of Sonoran CAD. ## Promotional Video > [accordion] Watch the Promotional Video > > [Video tutorial](https://www.youtube-nocookie.com/embed/z_4yNaRmlpQ) ## Installation Guide ### Download the Resource Users can get the Pager Reborn resource from Inferno Collection. * For Sonoran CAD **Pro** users, [download the FREE Pager Reborn (Sonoran Edition) package](https://sonoran.link/zHDYzuDv). * For all other Sonoran CAD users, [purchase the paid Pager Reborn package](https://sonoran.link/5cbe5kNZ). This resource is managed through Tebex and will require you to login with FiveM. Be sure to login **using the account that has the keymaster license** for your server. Once purchased you can [download the resource from the CFX.re portal](https://portal.cfx.re/assets/granted-assets?search=Pager+Reborn). ### Install the Resource We suggest installing the `inferno-pager-reborn` folder within the `[sonorancad]` folder your integration framework is installed in. The final result would look like the image below: ![](https://docs-assets.sonoransoftware.com/sha256/87/87f1ce4a4bac9ebfb7d984c1d627542b4e4f60ccf7aef6b6c55427cd20d7f61a.png) ### Start the Resource In your `server.cfg` add the following new lines: ``` exec @inferno-pager-reborn/config.cfg ensure inferno-pager-reborn ``` ### Configuration Options #### Create a Pager Network Before using the resource you will need to create a pager network under **Admin** > **Customization** > **Inferno Pagers** Your configuration will automatically save after closing the popup modal. ![](https://docs-assets.sonoransoftware.com/sha256/9b/9b4f03ed88d9b5234eeeb4433f7408a32f228323013ca10110212614f398a991.png) ![](https://docs-assets.sonoransoftware.com/sha256/52/52c2b14aedf998661fd06c45d15ac063906fca847a00452316c043adec345067.png) [Learn more about creating a pager network here.](https://docs.inferno-collection.com/resources/pager-reborn/developers/start-here/) #### In-Game Usage [View the Usage Quick Start Guide](https://docs.inferno-collection.com/resources/pager-reborn/usage/quick-start) to learn how to use the pager in-game. #### Resource Configuration [The configuration documentation](https://docs.inferno-collection.com/resources/pager-reborn/config) provides further customization options. ## Usage ### In-CAD Add the **Inferno Pager** panel in your custom layout. **Addresses** * Select specific pager nodes from the network to send the page to. **Units** * Optionally select specific units to page directly in-game. * Active units can also be dragged-and-dropped into the pager panel. **Type** * Select the pager type of **Emergency**, **Non-Emergency**, or **Administrative**. **Body** * Enter the text to send to units in-game. ![](https://docs-assets.sonoransoftware.com/sha256/55/55a99785b006cab90fc7b8d1d5f82b017a9734ba37652bcef681d007cc4e3336.png) ### In-Game Units in-game will receive the page with audio alerts. ![](https://docs-assets.sonoransoftware.com/sha256/9f/9f9a37f2f43accec49ad2b07190e769019b0094777622018dff90b0217e51085.png) # Postals Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/postals Allows sending nearest postal to the CAD via the location field. Also enables postal auto-fill for new dispatches and calls. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). ## Activation Video Click to view our [locations and postal install video](https://youtu.be/Rc6MT0D6rcI). ## Activation Guide ### Download and Install the Core If you haven't already, be sure to install and configure the [SonoranCAD Core](/cad/integration-plugins/in-game-integration/fivem-installation) first. ### Activate the Submodule and all Dependencies Follow the [submodule activation guide](/cad/integration-plugins/in-game-integration/submodule-configuration#activating-a-submodule) for the required submodules. ### Configure Postal Script and Exports 1. If you're using the publicly available [nearest-postal script](https://forum.cfx.re/t/release-nearest-postal-script/293511), you will need to follow the steps in the [usage](/cad/integration-plugins/in-game-integration/available-plugins/postals#using-nearest-postal) section below. 2. If you're using a custom postal codes file, you will need to add the file to the plugin and Sonoran CAD's fxmanifest as shown in the [usage ](/cad/integration-plugins/in-game-integration/available-plugins/postals#custom-postal-codes-file)section below. 3. If you're using an event triggered by a custom postals script, you must configure it as explained in the [usage](/cad/integration-plugins/in-game-integration/available-plugins/postals#custom-postal-events) section below. > [!WARNING] > > nearestPostalResourceName should **ONLY** be filled out if you're using [our specific nearest postal script](https://forum.cfx.re/t/release-nearest-postal-script/293511). In other words, **do not** put the name of your HUD script here, as **that will not work**. ## Configuration | Option | Description | Default | | - | - | - | | sendTimer | Time between sending postal updates to the server. | 950 ms | | shouldSendPostalData | Toggles the plugin on/off | True | | nearestPostalResourceName | If using our [nearest-postal](https://forum.cfx.re/t/release-nearest-postal-script/293511) script, specify the name of its folder here | nearest-postal | | mode | Specify what "mode" this plugin should use to determine postals. If using nearest-postal, set this to `resource`. If using an event fired by another resource, set this to `event`. If using a custom postals file, set this to `file`. | resource | | nearestPostalEvent | If you've set `mode` to `event`, specify the name of the event fired by your postals resource here | | | customPostalCodesFile | If you've set `mode` to `file`, copy your custom postal codes file to the postals plugin folder, and add the name of that file here. | | ## Usage > [!NOTE] > > If the configured postal resource or custom postal data is unavailable at runtime, SonoranCAD will now continue sending regular street names and coordinate-based location updates without a postal prefix. Check the troubleshooting error codes `ERR-LOC-104`, `ERR-LOC-105`, and `ERR-LOC-106` if postal data is missing or failing. ### Using [Nearest-Postal](https://forum.cfx.re/t/release-nearest-postal-script/293511) > [!WARNING] > > The plugin only supports 1.5.0 or higher of the nearest-postal plugin. Be sure to download the latest version before using. If you're using the publicly available [nearest-postal script](https://forum.cfx.re/t/release-nearest-postal-script/293511), some minor configuration is required. #### Set the Resource Name In the Sonoran CAD postals plugin config, change the `nearestPostalsResourceName` value to the ***exact*** name of your nearest postals resource.\ \ Ex: `nearest-postals-1.5` #### Ensure Proper Startup Order Be sure that you are starting the nearest-postals addon/resource **before/above** where you `ensure sonorancad` in your `server.cfg`. Be sure to restart both the Sonoran CAD resource and the nearest-postal script, or restart your server entirely to apply the changes made. ### Custom Postal Codes File If you want to use your own custom postal codes file with this plugin, open the config and change `mode` to `file`. Next, copy your custom postal codes file to the `submodules/postals` folder, and set the value of `customPostalCodesFile` to the name of this file. Include the .json file extension in the name. ### Custom Postal Events If you're not using the nearest-postal script or a custom postal codes file, you will need to create a export in your postals script, and have it return the player's current postal as a string. Additionally, you will need to edit the config to set `mode` to `event`, then specify the name of this event in `nearestPostalEvent`. Need help? You can always [hire a developer](https://support.sonoransoftware.com/#/). ## Troubleshooting If postal lookup fails, location updates for units will still continue using normal street/location data. Postal-specific failures now surface through the troubleshooting codes below instead of stopping all location updates: * `ERR-LOC-104`: postal resource unavailable * `ERR-LOC-105`: configured postal file missing or invalid * `ERR-LOC-106`: postal lookup failed at runtime See the [FiveM error codes reference](/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting/error-codes) for the full descriptions and recommended fixes. ### The configured postals file (postals\_file.json) was not found This error may be seen by users attempting to set up the plugin to use a [custom postal codes file](/cad/integration-plugins/in-game-integration/available-plugins/postals#custom-postal-codes-file). Specifically, the error will look something like this, substituting `postals_file.json` for whatever you've named your custom postal codes file to: ``` The configured postals file (postals_file.json) was not found. Please check it. ``` This means that either the postal codes file has not been correctly added to the fxmanifest, or that it has not been added at all. Please reference the above instructions on how to do so. We recommend replacing the `files { }` section of your fxmanifest with the given code snippet, then changing `postals_file.json` to match the name of whatever postals file you're using. If you've manually entered the line, verify that all the lines in the section **except for the last** are followed with a comma to ensure that the system can properly read it. # Record Printer Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/record-printer Print CAD PDF records to viewable, sharable, in-game inventory items! ![An in-game character holding a printed CAD record and the record document.](https://docs-assets.sonoransoftware.com/sha256/a4/a48a3233596d51c207e6c0f47e8869be7134ad05482adaf62d6ba301d167a1d7.png) ## What is the Record Printer? Sonoran CAD’s Record Printer seamlessly connects CAD records with the in-game world, enabling officers to generate and view official documents directly through an interactive in-game printer. Records can be **printed at configurable printer objects or within vehicles**, shared as **inventory items**, and **viewed entirely in-game**. ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/recordPrinter_config.lua` file. > [!NOTE] > > Notifications are handled by the Sonoran CAD core. See [Core Configuration](/cad/integration-plugins/in-game-integration/fivem-installation#4.-configure-the-resource) for settings and supported values. ### Ensure Players are Linked Ensure the players have already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ### Configuration The record printer settings are stored inside of the core configuration file. > [accordion] recordPrinterconfig.lua > > | Variable | Description | > | - | - | > | `recordPurgeDays` | The number of days that the downloaded PDF's will be stored on the local server | > | `commandPrefix` | Base command prefix, e.g. /printer queue, /printer print, /printer share | > | `printQueueCommand` | Command the view the print queue | > | `printCommand` | Command used to print PDF's in-game | > | `clearPrintQueueCommand` | Command to clear the print queue | > | `shareCommand` | Command to share a queued or printed record with other players | > | `acceptShareCommand` | Command to accept a shared record into your queue or your hand | > | `maxPrintsPerQueue` | Max number of print requests a user can have in their queue at a time | > | `vehicleConfig` | Configuration of LEO vehicles that have a printer | > | `printerObjects` | Array of in-game printer objects that can be walked up to and print records | > | `printerCoords` | Array of specific in-game coordinates where a print station is | > | `frameworks` | Framework activation configuration | > | `translations` | List of translations | ## Commands In-game commands can be used to * `/printer queue` Opens the print queue * `/printer print [id]` Print a specific record from the queue * `/printer clearqueue` Clears the current print queue * `/printer recordshare` Shares a record with the closest player * `/printer accept` Accepts a record share from another user ![](https://docs-assets.sonoransoftware.com/sha256/b8/b8b5d4f80d4f784ca7c546ed1ad2085a9f76b6898f1de8d3a5d04cac7cdc3b97.png) ## In-Game Usage ### Sending Files From Sonoran CAD When in-game, units must also be actively signed into the dispatch, police, fire, or EMS panel. Using the records section in CAD, navigate to the record you would like to print, click the **down arrow** next to the blue **PDF** button and press **Print In-Game**. ![](https://docs-assets.sonoransoftware.com/sha256/ef/ef413f8372d67db97a4d39b37bf889e047e30e55f5f54a79884e3db5e2c6e682.png) *Sonoran CAD - Print Record Option* ### Printing In-Game After selecting **Print In-Game**, an in-game notification will appear stating "**You have a new record to print. Use `/printer queue` to view queue**". You can print this file by using the command `/printer print ` near a configured printer (`printerObjects`) or inside a configured vehicle (`vehicleConfig`). Once printed, the PDF will be placed in your hand with a viewer shown on your in-game screen. Buttons on-screen will allow you to maximize, minimize, and exit the window. If configured, closing the record will [place it in your player inventory](/cad/integration-plugins/in-game-integration/available-plugins/record-printer#inventory-support). Otherwise, the record will be deleted. ![](https://docs-assets.sonoransoftware.com/sha256/93/935f0a42a43f4c76114f6a4e18f8f372d700083ebde44deda9fc6639512e4b8b.png) ![](https://media.discordapp.net/attachments/624489051172503555/1430304995680714873/image.png?ex=68fb4514\&is=68f9f394\&hm=2ad7541a1e41ee61844b25fc133e110c058263a66a9f516212f6699953935f83&=\&format=webp\&quality=lossless\&width=3456\&height=1944) ![](https://docs-assets.sonoransoftware.com/sha256/7f/7ff4a03d766c5fbd40d4ba7d3a1f924abc450567459166f63a40bc7f6d6940b1.png) ### Drop Record on Ground In standalone mode, selecting the **Drop on Ground** icon will drop the item on the ground. Other users can interact with the drop to pick it up and view the record. ![](https://docs-assets.sonoransoftware.com/sha256/c1/c1516b484c54e30d65652623a0c3f810a5af8cdef69c99f9b841d3ee77242a9f.png) ![](https://docs-assets.sonoransoftware.com/sha256/39/3950099268ba7806371757ca104a66efad0854fa1251e64eda8e77e2fad6dd32.png) ### Inventory Support Records can be stored and shared as an inventory item. The `frameworks` configuration item allows for inventories like ESX, QB Core, OX Inventory, and more. > [accordion] Optional: Ox Inventory Support > > If you are using `ox_inventory` on the ESX Framework you must add the following to your `ox_inventory/data/items.lua` file in order for records to work properly: > > ```lua theme={null} > ["sonoran_evidence_pdf"] = { > label = "Police Record", > weight = 1, > stack = false, > close = true, > consume = 0, > server = { > export = 'sonorancad.sonoran_evidence_pdf' > }, > }, > ``` ### Sharing Records on Non-Framework Servers You can now share records on non-framework servers via the newly added commands `/printer recordshare` and the target user can use the command `/printer accept` to accept a PDF. If you are in front of someone you can directly hand them the PDF in your hand, or you can "email" the record to their print queue from anywhere on the map. The record must be in your print queue in order to email it. # Street Signs Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/smart-signs Our free street signs integration resource allows you to update roadway signs in-game directly from the CAD! ![An in-game roadway sign and its matching CAD controls.](https://docs-assets.sonoransoftware.com/sha256/bb/bbdceeb8e39bbae763e43bbfb69c7c0adaf74423fd710d28ac52d70c52750f76.png) ## Get Street Signs for Free on Sonoran.Store [Click here to download.](https://sonoran.store/packages/7723108-street-signs) [Click here for documentation.](/store/street-signs) ![](https://docs-assets.sonoransoftware.com/sha256/76/76884ab8a63abbf6076b069c696be55511c531e09665c95b22be0f36339fcb83.png) # Sonoran Radio (sonrad) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/sonoran-radio-sonrad Connects Sonoran Radio with CAD > [!NOTE] > > This submodule connects Sonoran CAD to [Sonoran Radio](https://sonoranradio.com/), a separate resource and system. ![The Sonoran Radio handheld displaying CAD call information.](https://docs-assets.sonoransoftware.com/sha256/77/7771268215cb3c86b7bdd967178ebc147015774a68109666b1f5d61ae7be655f.png) *Sonoran CAD x Sonoran Radio* ## Activation Guide ### Download and Install the Resource If you have not already, install the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). Then, [enable the `sonrad` plugin](/cad/integration-plugins/in-game-integration/submodule-configuration). ### Adjust the Configuration The CAD display settings are stored inside of the `/configuration/sonrad_config.lua` file. ### Ensure Players are Linked Ensure the players have already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ## Usage [Learn more about the Sonoran Radio integration here!](/radio/tutorials/integrations/sonoran-cad-integration) # Station Alert Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/station-alert Our Station Alert integration resource allows you to toggle fire station doors, lights, and send text-to-speech messages directly from the CAD! ![In-game fire station bay doors opening with a red warning light, beside CAD station alert controls.](https://docs-assets.sonoransoftware.com/sha256/00/00034309b868642d7366d0a979c96ba271816a1759783ed76f0fa76a6c1c1e0d.png) *Sonoran CAD x Inferno Collection* > [!WARNING] > > This third-party resource from Inferno Collection is provided **free** only with the **Pro** version of Sonoran CAD and is a **separate download**. > > If your community is not on the **Pro** version, you may still purchase the paid resource from Inferno Collection to use with any version of Sonoran CAD. ## Promotional Video > [accordion] Watch the Promotional Video > > [Video tutorial](https://www.youtube-nocookie.com/embed/V0MBgqLFetA) ## Installation Guide ### Download the Resource Users can get the Station Alert resource from Inferno Collection. * For Sonoran CAD **Pro** users, [download the FREE Station Alert (Sonoran Edition) package](https://sonoran.link/FtMqEnXF). * For all other Sonoran CAD users, [purchase the paid Station Alert package](https://sonoran.link/AUd3Abat). This resource is managed through Tebex and will require you to login with FiveM. Be sure to login **using the account that has the keymaster license** for your server. Once purchased you can [download the resource from the CFX.re portal](https://portal.cfx.re/assets/granted-assets?search=Station+Alert). ### Install the Resource We suggest installing the `inferno-station-alert` folder within the `[sonorancad]` folder your integration framework is installed in. The final result would look like the image below: ![](https://docs-assets.sonoransoftware.com/sha256/d6/d642ff7589ce6c1c6e1732992f197cf8ea32e5ea34ec949347f71f8ce23ab4cc.png) *Station Alert: CAD Installation* ### Start the Resource In your `server.cfg` add the following new lines: ```lua theme={null} exec @inferno-station-alert/config.cfg ensure inferno-station-alert ``` ### Configuration Options Information on adding stations, lights, speakers, and more can be found in the [quick start guide](https://docs.inferno-collection.com/resources/station-alert/usage/). The [configuration documentation](https://docs.inferno-collection.com/resources/station-alert/config/) provides further customization options. ## Usage ### 🌎 Live Map On the live map, ensure you toggle station blips on. Clicking on a station will open the alert panel. The following example: * Opens doors `1` and `2`, closes door `3` at the `Roxwood` station * Sets the station indicator lights to red and magenta at the `Roxwood` station * Plays `Example Message` as text-to-speech at station `Roxwood` * Plays `EMS Priority 1` from the station alert resource tones at station `Roxwood` ![](https://docs-assets.sonoransoftware.com/sha256/57/5779781ea2b715c583afaa59568be69aa9e9e681fa90523d73e1ba0fbb996514.png) ### 🚨 Station Alert Panel Dispatchers can also add the dedicated `Station Alert` panel in their custom layouts. Here, you can type-to-filter and select multiple stations at once. ![](https://docs-assets.sonoransoftware.com/sha256/86/86c9ab21359e6ae25e246903ad4236607082295a09834efb0f2cef6429005d46.png) ### 📞 Dispatch Call Editor The dispatch call editor has a shortcut to quickly access nearby stations from an emergency call. When an emergency call from in-game is imported into the dispatch editor, the `Nearby Stations` icon will be available. Selecting one of these nearby stations will prefill call information into the station alert builder panel in your layout. ![](https://docs-assets.sonoransoftware.com/sha256/a6/a6a75c68155b7ad22380703dcf54875cfd86d902db3857cd5957c0d41287b755.png) # Tablet & Mini-CAD Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/tablet Utilize an in-game overlay to attach to calls, view information, and more. Or, use the dedicated tablet item to access your full CAD screen. ![The FiveM CAD tablet and compact Mini-CAD call details.](https://docs-assets.sonoransoftware.com/sha256/91/91ee15814872100522c7621b7114387c7322e4ba90e5a70fc703f11b765a9700.png) *Sonoran CAD - Mini-CAD* ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This resource is already **enabled by default** inside of the `sonorancad.cfg` when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > [!NOTE] > > The tablet resource must be running to use vehicle and station laptop screens with [CAD Display](/cad/integration-plugins/in-game-integration/available-plugins/cad-display). ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ## Configuration > [accordion] Optional: URL Convar > > If you wish to use a custom login page, you can set a convar in your server.cfg.\ > \ > The easiest way to show your [custom login page](/cad/tutorials/customization/custom-login-page) is to use a query string. > > `"https://sonorancad.com/?comid=YOUR_COMMUNITY_ID_HERE"` > > Simply replace `YOUR_COMMUNITY_ID_HERE` in the URL with your [community ID](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code).\ > EX: `https://app.sonorancad.com/?comid=midwestrp` > > Add the following to your server.cfg **before** starting the tablet resource: > > ``` > setr sonorantablet_cadUrl "YOUR_URL_HERE" > ``` > > Fill in with your actual URL above with the comid you want. ## Keybinds Users can customize keybinds for the tablet and Mini-CAD. Navigate to **Settings** > **Keybinds** > **FiveM** and look for the keybinds under the resource `tablet`. The optional **Mini CAD** keybind toggles the overlay open and closed. It is unbound by default; assign a key here to use it. ![Tablet and Mini-CAD controls in the FiveM keybind settings.](https://docs-assets.sonoransoftware.com/sha256/dc/dc0b5032a70f1788e9b55b7251c049288db17a153fc2abff048941d9aaa79c70.png) ## Commands The commands below use the default `/tablet` command. Running `/tablet` by itself shows command help; use `/tablet open` to open the handheld tablet. * `/tablet open` Opens the in-game tablet * `/tablet size [width] [height]` Resize the tablet to best fit your screen. This size persists on reload of the client. * `/tablet checklink` Checks again whether your CAD account is linked to the server's community. * `/tablet refresh` Force-refresh the page when it's not loading properly. * `/tablet mini open` Opens the mini-CAD * `/tablet mini close` Closes the mini-CAD * `/tablet mini toggle` Toggles the mini-CAD open or closed * `/tablet mini help` Displays a list of commands for the mini-CAD * `/tablet mini prev` Pages to the previous dispatch call on the mini-CAD * `/tablet mini next` Pages to the next dispatch call on the mini-CAD * `/tablet mini attach` Attaches to the dispatch call on the mini-CAD * `/tablet mini detail` Toggles expanded information on the mini-CAD * `/tablet mini refresh` Manually refresh the call information on the mini-CAD * `/tablet mini size [width] [height]` Resize the mini-CAD to best fit your screen. This size persists on reload of the client. * `/tablet mini rows [count]` Sets how many of the newest call notes appear. ## Mini-CAD Usage The mini-CAD displays as an overlay in-game. Long codes and locations use an ellipsis; titles show up to two lines. Open **Details** or press **L** to see the full code, title, and location. Descriptions, notes, and unit lists scroll when needed. ![Compact Mini-CAD showing a call, assigned units, and attach controls.](https://docs-assets.sonoransoftware.com/sha256/e6/e6ef850cfb3599e79cd55d6e23d3f708abf625ba8402a7719fc885204d865872.png) ![Mini-CAD with call details and notes expanded.](https://docs-assets.sonoransoftware.com/sha256/3c/3c4435ea4443770dfdd3786aab3d56ee76b05a8f9a6eba77fa4f5857f0a73598.png) #### Move and Close Close the Mini-CAD with `/tablet mini close`, or use `/tablet mini toggle` or your assigned **Mini CAD** keybind to toggle it open and closed. To move the Mini-CAD, open the tablet with `/tablet open` to get a cursor, then drag the Mini-CAD header. You can also click the **×** in its header to close it. #### Controls * Use the `Left Arrow Key` to display the previous call. * Use the `Right Arrow Key` to display the next call. * Use the `K` key to attach or detach to/from the displayed call. * Use the `L` key to toggle display of the call details. * **These keybinds can be changed from the Keybinds menu.** ## Tablet Usage When in-game, the tablet can be used to view your unit's Sonoran CAD police, fire, ems, or dispatch panel. Click **Close tablet** below the screen to return to the game even after clicking or typing in CAD; **Escape** also works when the tablet area outside CAD has focus. With the [CAD Display submodule](/cad/integration-plugins/in-game-integration/available-plugins/cad-display) enabled, nearby players can see a periodically refreshed image of your CAD on the handheld tablet prop. Their view may lag behind what you are doing. ### Using a Vehicle or Station Laptop With [CAD Display](/cad/integration-plugins/in-game-integration/available-plugins/cad-display) enabled, you can use CAD directly on a configured vehicle or station laptop: 1. Close the handheld tablet, then press **G** while seated near the vehicle display or standing near the station laptop. 2. If another player controls the laptop, wait for them to accept your request. Once you have control, the camera moves toward the laptop screen. 3. Click, scroll, and type normally in CAD. Your login and current page carry over between the handheld tablet and laptop. 4. Click **Exit computer** beneath the screen when you are finished. Use this button if **Escape** does not respond while a CAD text field has focus. You do not need to open the handheld tablet before using a laptop. Your saved tablet size and position are kept when you leave the laptop view. Only the controlling player can interact; nearby players see a periodically refreshed image of that player's screen. See [CAD Display](/cad/integration-plugins/in-game-integration/available-plugins/cad-display) for laptop placement, control requests, permissions, and screen alignment. ## Auto User Link When a user signs into the CAD using the in-game tablet, their account will be [automatically linked](/cad/integration-plugins/in-game-integration/link-user-in-game). If your account is not recognized, run `/link` in game and follow the linking instructions, then run `/tablet checklink`. ## Known Issues ### Timeout SonoranCAD::mini:CallSync > [accordion] Timeout SonoranCAD::mini:CallSync > > Some users may see `SonoranCAD::mini:CallSync` listed multiple times after recieving a timeout. > > When your client recieves a timeout from the server for any reason, it will display a list of the most recent requests. Because Sonoran's Mini-CAD runs frequent sync requests, these will consequenty be displayed. > > **This is not an issue with or related to Sonoran CAD**. This is a general timeout between the client and server listing all recent calls as diagnostic information. > > ![Sonoran CAD Mini - Timeout Debug](https://docs-assets.sonoransoftware.com/sha256/01/01d4a801562c1639392e1fb5b9e5c47212273de992594ba7ff56e45420c9c03d.png) ### Tablet Showing Grey > [accordion] Tablet Showing Grey > > Some users may get a grey, black or blank screen when using the Sonoran Login method before and then opening the tablet and it just being a grey screen. > > To resolve this, close FiveM, then to go to your `FiveM Application Data` folder then to `data` and then delete the `nui-storage` folder. > > If you still are having issues reach out to our [support team](https://support.sonoransoftware.com). > > ![Sonoran CAD Tablet - Blank Screen Issue](https://docs-assets.sonoransoftware.com/sha256/11/115bdd51a6290a4bc78ce73558885633ebddf6e6936117f96edfd52dcebd36a5.png) # TeamSpeak 3 Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/teamspeak-3 The TeamSpeak 3 integration submodule requires that users must be logged into the CAD police, fire, EMS, or Dispatch page in order to access specific voice channels. > [!WARNING] > > This submodule utilizes API endpoints that require the **plus** version of Sonoran CAD or higher. For more information, view our [pricing ](/cad/pricing/faq)page. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). ## Activation Guide ### Download and Install the Core If you haven't already, be sure to install and configure the [SonoranCAD Core](/cad/integration-plugins/in-game-integration/fivem-installation) first. ### Activate the Submodule and all Dependencies Follow the [submodule activation guide](/cad/integration-plugins/in-game-integration/submodule-configuration#activating-a-submodule) for the required submodules. ### Configure your TeamSpeak Connection Your TeamSpeak server credentials can either be set in the config or as [convars](/cad/integration-plugins/in-game-integration/available-plugins/teamspeak-3#advanced-configuration) in your `server.cfg` file. In the `ts3integration_config.json` file, you can modify the following settings: | | | | - | - | | ts3server\_host | TS3 Public Server IP | | ts3server\_port | Public connection portDefault is `9987` | | ts3server\_qport | Sever Query PortDefault is `10011` | | ts3server\_user | Typically, this will be your server admin username.If you do not have one, you [can create a new one](https://www.teamspeak3.com/support/teamspeak-3-add-server-query-user.php). | | ts3server\_pass | Typically, this will be your server admin password.If you do not have one, you [can create a new one](https://www.teamspeak3.com/support/teamspeak-3-add-server-query-user.php). | | onduty\_servergroup | Name of the server group that the submodule will grant users when they're on duty.You will need to configure this server group with permissions to join specific channels, etc. | | enforced\_channels | A list of channels that units will be kicked from if they log out of the CAD | | logoutGraceTime | The amount of time between the user logging out of the CAD and being kicked from the TS3 `enforced_channels`.This prevents brief internet disconnections from the CAD from continually kicking users out of their channel. | ![TS3 - Integration Config](https://docs-assets.sonoransoftware.com/sha256/88/88a9e3de2d8bfe25c2b1abd08f2a9b7d1cc380f32afd575eeccf6103e70ad8d0.png) ### Retrieve Your Individual TS3 ID Every member from your community will need to retrieve their unique TS3 ID.\ This is found in TS under Tools > Identities > Default > Unique ID ![TS3 - Retrieve your unique ID](https://docs-assets.sonoransoftware.com/sha256/ae/ae67aea2f8d4e9571c86d18a89c454c543d6614543086bc5561e1001c63008f0.png) ### Add your TS3 ID as an API ID Paste in this TS3 unique ID as a [new API ID in the CAD](/cad/api-integration/getting-started/setting-your-api-id). > [!WARNING] > > Every member of your community will need to add their unique ID to their CAD account in your community. ![API ID - Paste New ID](https://docs-assets.sonoransoftware.com/sha256/c3/c37bc3c3373edcb7a3ebfa19c7cfbb85dbd1d5ddf5287d3b7cdb938e7b61ac69.png) ### Utilize the TS3 Integration Once configured, when the user joins the TS3 server they will be granted the `onduty_servergroup` once they sign into the police, fire, EMS, or dispatch page. Signing out of or exiting the CAD will result in the user being kicked from any of the `enforced_channels` from the config. ![TS3 - Server Group Granted](https://docs-assets.sonoransoftware.com/sha256/e9/e964cb9636d2eadc416d08996e275d4b16c44cddecff47a1fd3db5f01c5f7874.png) ![TS3 - Channel Kicked](https://docs-assets.sonoransoftware.com/sha256/d5/d5ee342290f7979bbfad62375b656d7a57c91506fec9c9304b12fa725fd3be09.png) ## Advanced Configuration You may utilize [convars](https://docs.fivem.net/docs/scripting-reference/convars/) in your `server.cfg` if you wish to store your TS3 connection info there instead. There is no default version of these convars preset. If you wish to use convars in your `server.cfg` instead of your config file please **LEAVE ts3server\_user BLANK** in your config file. Convars are as follows: | Convar Name | Config Equivelant | | - | - | | `sonorants3_server_host` | `ts3server_host` | | `sonorants3_server_port` | `ts3server_port` | | `sonorants3_server_qport` | `ts3server_qport` | | `sonorants3_server_user` | `ts3server_user` | | `sonorants3_server_pass` | `ts3server_pass` | They can be set in your `server.cfg` following the format of `set [convar] "value"` # Traffic Stop Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/traffic-stop Allows law enforcement to start a traffic stop which will automatically add a new call and attach the unit in the CAD. > [!WARNING] > > This submodule utilizes API endpoints that require the **plus** version of SonoranCAD or higher. For more information, view our [pricing ](/cad/pricing/faq)page. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). ## Activation Video Click to view our [traffic stop installation guide](https://youtu.be/QmI7Wst2ytY). ## Activation Guide ### Download and Install the Core If you haven't already, be sure to install and configure the [SonoranCAD Core](/cad/integration-plugins/in-game-integration/fivem-installation) first. ### Activate the Submodule and all Dependencies Follow the [submodule activation guide](/cad/integration-plugins/in-game-integration/submodule-configuration#activating-a-submodule) for the required submodules. ### Configuration | Option | Description | Default | | - | - | - | | enablets | Enables the submodule. | True | | origin | Origin of the new call. | 2 (OBSERVED) | | status | Status of the new call | 1 (ACTIVE) | | priority | Priority of the new call | 1 | | title | Title of the call when created. | Traffic Stop | | code | The 10-code for the traffic stop. | 10-11 - Traffic | ### Enable User Permissions The default command ships with [ACE permission checks](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917) enabled. **You will need to allow `command.ts` for who you want to use this command.** **Example** `add_ace builtin.everyone command.ts allow` This line in your `config.cfg` file will allow everyone to access the command. We highly reccomend creating [proper ace permission groups](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917) to prevent users from spamming. ### Set Your API ID Don't forget to set your account [API ID](/cad/api-integration/getting-started/setting-your-api-id) to properly link your in-game user to the CAD. ## Usage | Command | Description | | - | - | | ts | Send a new dispatch to dispatch regarding the TS | ## Custom Events Event is sent when the /ts command is processed. ``` EVENT: SonoranCAD::trafficstop:cadIncomingTraffic PARAMS: origin =(1 = CALLER / 2 = RADIO DISPATCH / 3 = OBSERVED / 4 = WALK_UP status = 1 = PENDING / 2 = ACTIVE / 3 = CLOSED priority = 1, 2, or 3 title = Title that will appear in CAD code = 10 code that will be used for the new dispatch address = street / cross street string postal = postal of the call description = description of Traffic Stop notes = notes for the call source = playerId ``` # Unit Status Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/unit-status Allows you to change a unit's status in the CAD. ![Unit Status showing status commands and a CAD unit marked AVAILABLE.](https://docs-assets.sonoransoftware.com/sha256/c6/c6eeb9fc952507e09f4db9385596d443bd1ca7fcad8916aa39e8077f1f6a1d47.png) ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Adjust the Configuration The unit status settings are stored inside of the `/configuration/unitstatus_config.lua` file. > [accordion] unitstatusconfig.lua > > | 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 | > | enableAceCheck | Require the server-side ACE check before a status update. | `true` | ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ### Setup User Permissions When `enableAceCheck` is `true` (the default), players using the status command need the literal `command.setstatus` [ACE permission](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917). The current server-side check is not derived from `setStatusCommand`, so changing the client command name does not change this permission node. **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. ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d5460963e66f1947e74f669d4383f56b284f9a8401387e0a1b7ae0251dcbe41.png) ## Function This is a server-side function only and is exported as `cadSetUnitStatus`. Use `setUnitStatus` if using with other submodules. ```lua theme={null} cadSetUnitStatus(, , [player]) ``` * 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 ```lua theme={null} --[[ Event Name: SonoranCAD::unitstatus:UpdateStatus Arguments: statusText: Text or number of the status to set ]] ``` # Vehicle Register (VehReg) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/vehreg Register a vehicle with a single in-game command! ![A vehicle registration command, success notification and CAD vehicle result.](https://docs-assets.sonoransoftware.com/sha256/76/767e5ba098a0d1b2ec4885f8739a3eef12723669f931bed5e2d35e5e84eac72d.png)## Activation Guide### Download and Install the Resource> [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation).### Adjust the ConfigurationThe bodycam settings are stored inside of the `/configuration/vehreg_config.lua` file. \> [accordion] vehregconfig.lua \> \> | Option | Description | Default | \> | - | - | - | \> | reigsterCommand | The command used to register current vehicle | reg | \> | defaultRegExpire | The default date that all registrations will expire | 01/02/2030 | \> | defaultRegStatus | The default status that all registrations will have \\| MUST BE IN CAPS | VALID | \> | language | Array of language used within the script | English | \> | recordData | Array of field UID's based on your vehicle registration record | Default from CAD | \> | customData | Array of preset vehicle information, commonly used for addon vehicles where names may not be present |
`customData = {     {
\>         spawncode = "adder",
\>         model = "Adder",
\>     },     {
\>         spawncode = "blista",
\>         model = "Blista",
\>     }
\> }
\> `
| ### Ensure Players are LinkedEnsure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work.### Configure Custom Record FieldsWhen a player registers a vehicle in-game, the submodule must know what fields in your custom vehicle registration to enter the vehicle information into. The `recordData` portion of the config contains the `Field Mapping ID` for the default vehicle record template.Custom record templates are found in `Admin` > `Customization` > `Custom Records`If you have modified the [vehicle registration template](/cad/tutorials/customization/creating-custom-record-and-report-types), update the `recordData` configuration accordingly.![](https://docs-assets.sonoransoftware.com/sha256/c9/c9cca0995565d1e3a0a9c58f0a84968b9b4af923a76c6ee8bf537c702b9ea30e.png)*Vehreg: Custom Record Field Mapping*## CommandsIn-game commands can be used to- `/reg` Registers the vehicle you are currently sitting inside to your currently selected CAD character![](https://docs-assets.sonoransoftware.com/sha256/63/6371b90ace1d6ab6d9efdc58265cf1c66461d3962c990237807e63c20196897d.png)## Developer DocumentationYou can now implement our vehicle registration system into your own scripts by simply calling a server event! See our [Server Events documentation](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-events#sonorancad-registervehicle) for usage. # WraithV2 Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/available-plugins/wraithv2 Implements the Wraith ARS 2X plate reader for automated plate reading. ![Wraith radar, plate reader and remote controller in GTA V](https://docs-assets.sonoransoftware.com/sha256/cf/cfc4d29f8f572f8277039a2aeba2722bb9878f181b515dad5ca57065123c6464.png) ## Showcase Video View our [WraithV2 showcase video](https://www.youtube.com/watch?v=5oL7Mg6LQgg)! ## Activation Guide ### Download and Install the Resource > [!NOTE] > > This submodule is already **enabled by default** when installing the [Sonoran CAD FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). > > \ > The [locations submodule](/cad/integration-plugins/in-game-integration/available-plugins/locations) includes all logic required to send bodycam images to the CAD and is **already enabled by default**. Keep this submodule enabled to maintain functionality. > [!NOTE] > > Use of this submodule requires the Sonoran version of [Wraith ARS 2X](https://github.com/sonoran-Software/wk_wars2x)[ ](https://github.com/Sonoran-Software/wk_wars2x)radar and plate reader to function. This resource is bundled with the [Sonoran CAD FiveM Resource](/cad/integration-plugins/in-game-integration/fivem-installation) as `wk_wars2x`. ### Adjust the Configuration The bodycam settings are stored inside of the `/configuration/wraithv2_config.lua` file. > [!NOTE] > > Notifications are handled by the Sonoran CAD core. See [Core Configuration](/cad/integration-plugins/in-game-integration/fivem-installation#4.-configure-the-resource) for settings and supported values. > [accordion] wraithv2config.lua > > | Config Option | Description | > | - | - | > | useExpires | use vehicle registration expirations, or not | > | useMiddleInitial | use middle initials? | > | alertNoRegistration | alert if no registration was found on scan? | > | statusUid | Custom record field UID containing the status | > | expiresUid | Custom record field UID containing the expiration date | > | flagOnStatuses | List of statuses to flag/alert on | > | vehTypeFilter | List of Classes that will NOT get ran through CAD | > | notificationTimers | Time in MS, for how long each alert type will last | > | customFields | Additional custom fields to show in your ALPR messages, such as insurance expiration, etc. | ### Ensure Players are Linked Ensure the player has already [linked their CAD](/cad/integration-plugins/in-game-integration/link-user-in-game) for this integration to work. ### Custom Record Handling The in-game radar can alert you about expired registrations, BOLOs, warrants, and more: > [accordion] Alert on Vehicle Status (Expired, Stolen, etc.) > > When a vehicle is scanned by your radar, you can be notified if the vehicle registration status is inactive, expired, etc. > > **1. Get the Status field ID** > > In the custom record configuration panel, copy the field ID for your vehicle registration's status field. Typically this would be a dropdown (or "select") type field with options like "Active", "Pending", "Expired", etc. > > ![](https://docs-assets.sonoransoftware.com/sha256/fa/faf42eaa4f17593c716e7b9777b37cd43471d9c7aa852d04456a1a2faa294dc6.png) > > **2. Set the Field ID in your Config** > > Ensure the `statusUid` configuration value matches your status field ID from the custom record. > > If your vehicle registration record has an expiration date value in it, be sure to set the `expiresUid` value to its field ID and set `useExpires` to `true`. This will display the registration expiration date in the notifications. > > ![](https://docs-assets.sonoransoftware.com/sha256/d4/d482c0bd19835449c66e9098e2bacc7c91acde44fa271c33a7fa56758b75a32a.png) > > **3. Set Status Flag Options** > > Customize the `flagOnStatuses` list to configure which vehicle registration statuses your radar will alter you on. > > If the vehicle registration's status field (the record field ID that matches your `statusUid`) matches one of the `flagOnStatuses` values, your in-game radar will alert you. > > ![](https://docs-assets.sonoransoftware.com/sha256/44/44db054e6e621b75e7efaef327d2f51c7c02faf4042db242e927e48a090bd996.png) > [accordion] Alert on BOLO or Warrant > > When a vehicle is scanned by your radar, you can be notified of any active warrant or BOLO record with that license plate on it. > > **1. Ensure your Warrant or BOLO Record has a Status Field** > > In order for the radar to determine if the warrant or BOLO record is active, ensure your custom record has a `status` type field on it. > > ![](https://docs-assets.sonoransoftware.com/sha256/8e/8e09900e1e02c1cebd3c617d7d0274dac5e8bb07ee1335b93c0981365f92ab84.png) > > **2. Ensure your Warrant or BOLO Record has a Plate Field** > > In order to match the vehicle plate with a record, ensure your custom record has a field with the field ID set to `plate`. > > ![](https://docs-assets.sonoransoftware.com/sha256/cf/cf245ac6d8dc84d167a2c43f1f8554cc788edcff72a8be1f264c977e7bc65851.png) > > **3. Receive In-Game Alerts** > > Your radar will alter you when a scanned vehicle matches: > > * A Warrant or BOLO record with the `status` type field of `ACTIVE` > * A license plate matching the `plate` field ID of one of those active records ### Custom Field Display You can configure custom fields to display in the Wraith ALPR notification. The fields are configured in the `wraithv2_config.lua` under the `customFields` section. You can get your custom field ID's from the Sonoran CAD Admin menu > Customize > [Custom Records](/cad/tutorials/customization/creating-custom-record-and-report-types) section. ![](https://docs-assets.sonoransoftware.com/sha256/60/601dc6ac8472294789efd92c57fb5a1298a4885309fc17e36befd8f3e112388f.png) *SonoranCADFiveM - WraithV2 Configuration* ![](https://cdn.discordapp.com/attachments/630973482221436938/1440107400320516196/image.png?ex=691cf408\&is=691ba288\&hm=c7286089dfef9cb96efe48fc74d591f9a4b0ed24e8aa864115d71918282b2b49&) *Sonoran CAD - Custom Records* ## Usage For more information on using the in-game UI, please view the Sonoran version of the [Wraith ARS 2X](https://forum.cfx.re/t/release-wraith-ars-2x-police-radar-and-plate-reader-v1-2-4/1058277)[ ](https://github.com/Sonoran-Software/wk_wars2x)release information.\ **Results are sent directly to your CAD when a license plate is locked.** WraithV2 now reuses a shared plate lookup cache. When a plate is scanned or locked, SonoranCAD caches the parsed plate result for 60 seconds and reuses it for repeat scans of the same normalized plate instead of running the full CAD lookup each time. ### Developer Usage If you are building your own server-side resource and want the same parsed data that Wraith uses, call the shared export documented in [Server Functions](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#cadgetplateinformation): ```lua theme={null} exports.sonorancad.cadGetPlateInformation("ABC123", function(regData, vehData, charData, boloData, warrantData) local registration = regData[1] local vehicle = vehData[1] local owner = charData[1] print(json.encode({ registration = registration, vehicle = vehicle, owner = owner, boloData = boloData, warrantData = warrantData })) end, { autoLookup = "123456789123456789", cacheTtlMs = 60000 }) ``` Use `forceRefresh = true` in the options table if you need to bypass the existing cached result and pull fresh data immediately. ![Wraith ARS 2X Controls](https://docs-assets.sonoransoftware.com/sha256/f6/f6224541d28f1b2797160d2951c6265ab1889b3a036c5822381a596910b2b0c2.png) ## Sonoran wk\_wars2x > [!NOTE] > > These features are not found in the original wk\_wars2x resource, and only come packaged with our [Sonoran CAD FiveM Resource](/cad/integration-plugins/in-game-integration/fivem-installation). ### Additional Features * Added the ability to blacklist certain vehicle classes via the config.lua, these blacklisted vehicles will show on the plate reader as the `CONFIG.noPlateValue` value (default: "NO PLATE"). * Added the feature `CONFIG.realisticPlateScanning`. This feature is disabled by default due to certain vehicles having incorrect metadata causing this feature to display `CONFIG.noPlateValue` falsely. Behavior when enabled: when you are traveling toward/away from a vehicle that does not have a front/back plate the plate reader will not be able to scan it and will display the `CONFIG.noPlateValue` value. * Added custom sounds when a BOLO, Warrant or unregistered vehicle plate is scanned. ### Realistic Plate Scanning Set `CONFIG.realisticPlateScanning` to `true` to enable only scanning vehicles with the ALPR when they have a plate. Note: Some vehicles may show a plate due to missing vehicle metadata or being able to remove the plate with extras. ![](https://docs-assets.sonoransoftware.com/sha256/26/269e9bebc2af607f60feaf4f8020abdb6a1eaad1cf825cf3bd078c636966508e.png) *Sonoran wk\_wars2x - Additional Config Options* ### Custom Alert Tones Custom tones will now play when you scan a plate that is has either a BOLO, Warrant or is unregistered. These tones can be customized by replacing the existing files in the `/sonorancad/submodules/wraithv2/sfx` folder with your own. **Please note the files names need to be the same as the ones you are replacing** ### Doppler Sounds The Doppler Effect allows the radar to automatically capture vehicle speeds while in motion. As patrol speed increases, the radar adjusts its frequency shift calculations to accurately track and lock moving targets in front of or behind the unit—enabling reliable speed detection without requiring the officer to remain stationary. The doppler effect can be adjusted by opening the **controller** (F5 by default) > **Menu** ![](https://docs-assets.sonoransoftware.com/sha256/96/9628f3e70160c937161e4758949f101f9eddcf4b8839011584a8543d18c71851.png) The doppler effect can be adjusted per client from a volume of 0 (off) to 5 (max volume). Additionally servers can disable the entire system via the configuration option `CONFIG.enable_doppler` ![](https://docs-assets.sonoransoftware.com/sha256/93/9349961c9ac97eeb47ac415762b9be8e3302a343b733985d20e2fd17d2d135cb.png) *Sonoran CAD - Wraith WkWars2x - Doppler Off* ![](https://cdn.discordapp.com/attachments/871554360285474847/1468339426567655475/image.png?ex=6983a927\&is=698257a7\&hm=185cbe9959a1c6bf0c74d41335e06ac94819dc1c41553275b3648d2c954c3bc8&) *Sonoran CAD - Wraith WkWars2x - Doppler Max Volume* #### Doppler Direction You can customize the antenna that will trigger the doppler noise via the client settings menu between the options of "btH" (both), "rEr" (rear) or "FNt" (front). This will create the doppler audio effect based upon a vehicles speed in the respective antenna ![](https://docs-assets.sonoransoftware.com/sha256/1a/1a08259b950593dc9c17abd16dea968f946706474f13127766cf47216cba1246.png) *Sonoran CAD - Wraith WkWars2x - Front Only* ![](https://cdn.discordapp.com/attachments/871554360285474847/1468340770007285873/image.png?ex=6983aa68\&is=698258e8\&hm=5e561a7c6de7e7abfd76fb3617d9c188f1181e87f5649c5349ab5b915061f4a6&) *Sonoran CAD - Wraith WkWars2x - Both Antennas* ![](https://cdn.discordapp.com/attachments/871554360285474847/1468340770363674827/image.png?ex=6983aa68\&is=698258e8\&hm=540beada2276ca6ae389cd118061d15273004f60076545ddd45c112c8f2842e6&) *Sonoran CAD - Wraith WkWars2x - Rear Only* ## Troubleshooting ### AI Cars are Spamming the Reader The framework ships with the `wk_wars2x` plate reader included. This will have the `config.use_sonorancad` set to `true`. When enabled, the plate reader will not run a lookup on any AI vehicle. ![Wraith - Use Sonoran CAD Config Option](https://docs-assets.sonoransoftware.com/sha256/c0/c05adf327598d3ce2c57d1d84f15714ba41647394888e156f8295c666fcfd00c.png) ### Vehicles Aren't Being Flagged #### Status Keep in mind that AI vehicles won't display or be ran unless there's a vehicle registration record added to the CAD with that plate. Ensure that you've correctly followed [step 5](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2) and the `statusUid` and `expirationUid` fields have been set correctly, both in the CAD record template and the submodule config. Ensure that the `flagOnStatuses` array has the exact string/text values that match the options in your custom record template. #### BOLO and Warrant Ensure that your custom BOLO and Warrant records have a field with the `type` set to `status`. Otherwise, there's no way to determine if the BOLO/Warrant is active, closed, etc. The plate reader will warn of any active BOLO or Warrant records with the vehicle plate attached *and* the `status` type field set to active/open. ### Error: attempt to index a nil value (local 'vehicle') Some servers will see this error in their server console: ``` sv_wraithv2.lua:112 - attempt to index a nil value (local 'vehicle') ``` To fix this, navigate to your `[sonorancad]/wk_wars2x` folder, and rename `config.dist.lua` to just `config.lua` The config not being renamed is the most common cause of this error, however, if for some reason that doesn't fix it, feel free to open a [support ticket](https://support.sonoransoftware.com) with us. # FiveM Installation Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation Sonoran CAD's Integration Core imports common API method wrappers and functionality. Installing our integration framework is easy! Learn more below. ## A. One-Click Installation (RocketNode) We've partnered with Rocket Node to bring you one-click Sonoran CAD installation for FiveM — making it easier than ever to host your community and connect with Sonoran CAD. * [Purchase your FiveM Game Server!](https://sonoran.link/v2E9hKGm) * Use code `SONORAN`to save big! [Video tutorial](https://www.youtube-nocookie.com/embed/h8Ftx14j8l8) The Sonoran CAD FiveM resources has multiple "submodules" for every integration feature. [These are easily enabled and configured](/cad/integration-plugins/in-game-integration/submodule-configuration) in the `/configuration` folder. > [card] [submodule-configuration](/cad/integration-plugins/in-game-integration/submodule-configuration) *** ## B. Pre-Configured Resource Installation [Video tutorial](https://www.youtube-nocookie.com/embed/QimkcbTPl44) ### Download the ZIP Download a pre-configured version of the in-game integration resource from the panel. This download will already have your community ID and API Key in the `config.lua` file in addition to file renaming done for you. Navigate to `Admin` -> `Advanced` -> `In-Game Integration` -> `FiveM` ![](https://docs-assets.sonoransoftware.com/sha256/07/07488efe151f709d6bfb98b930551a1477a47b0ef08ddb72fc3e0d286fe19990.png) *Sonoran CAD: FiveM Resource Download* ### Extract the ZIP File Extract the `.zip` file into your resources directory. Place the `[sonorancad]` folder directly in the resources root directory. ![](https://docs-assets.sonoransoftware.com/sha256/d3/d3d7210ee40bcc6a1d72026954c12bdc99d30e5c4c0bb19c03c23062ff9785d6.png) *Sonoran CAD - Folder Structure* ### Update Your Server Config In your `server.cfg` file, simply add the following line: **This is the** 🌟**only**🌟 **line that you need to add to your `server.cfg` file. Do not ensure any other part of the resource.** ``` exec @sonorancad/sonorancad.cfg ``` > [!WARNING] > > It is very important that the `sonoran_updatehelper` resource is not started manually. Doing so may cause a server crash if updates are available due to a race condition. > > **DO NOT** start the whole \[sonorancad] folder as that will also start the sonoran\_updatehelper which might cause crashing if it is started manually. Example of not what to do `ensure [sonorancad]` > [accordion] Advanced - Remove Tablet, pNotify, etc. > > Adding the `exec @sonorancad/sonorancad.cfg` starts multiple resources bundled with the download. If you wish to not use one or more of the resources (or with a different name) you will need to: > > * Copy/paste the contents of `sonorancad.cfg` to your `server.cfg` > * Remove the `exec @sonorancad/sonorancad.cfg` line from your `server.cfg` > > Do not update the contents of `sonorancad.cfg` as it will be overwritten on resource updates. ### Configure the Resource Modify the `/configuration/config.json`file for any additional configuration values. This is also where the global FiveM notification backend is configured. Set `notificationSystem` to one of: * `auto` * `ox_lib` * `lation_ui` * `pnotify` * `chat` When `notificationSystem` is `auto`, Sonoran CAD selects the first available system in this order: 1. `ox_lib` 2. `lation_ui` 3. `pnotify` 4. `chat` ### Configure the Submodules The Sonoran CAD FiveM resources has multiple "submodules" for every integration feature. [These are easily enabled and configured](/cad/integration-plugins/in-game-integration/submodule-configuration) in the `/configuration` folder. > [card] [available-plugins](/cad/integration-plugins/in-game-integration/available-plugins) ### Configure the Auto-Updater The Sonoran CAD FiveM resource contains an auto-updater that will override all non-configuration files when a new version of Sonoran CAD is released. #### Whitelist Specific Files Some communities have custom files inside the `[sonorancad]` folder they don't wish to have overwritten, like custom plate reader images. Simply add the direct path to the directory or individual files to the `sonorancad/configuration/updaterIgnore.json` file. #### Disable Automatic Updates To disable this auto-update entirely set `allowAutoUpdate` to `false` in the `config.json`. *** ## Additional Configuration ### Convar Overrides > [accordion] Convar Overrides > > Starting with framework version 2.6.2, you can override any configuration option in your `config.json` file by specifying a convar before the sonorancad resource starts. > > > [!WARNING] > > > > This feature does not work with arrays (like statusLabels). Any other configuration option can be set using the `sonoran_` format. ### Manual IP:Port Push Events > [accordion] Manual IP:Port Push Events > > The FiveM resource uses a [websocket](/cad/api-integration/websocket-api) to stream all events from the CAD to your local FiveM server. In the event that this websocket is not connected (games outside of FiveM) it will fall back to an optional `http://ip:port/sonorancad/event` POST method. > > In the CAD admin panel, navigate to: Advanced > In-Game Integration\ > Expand the "Server Events and Integrated Live Map" section. > > Enter your server's public IP address and your game server's port. By default, this is port `30120`. > > **Forward Push Events to an External Server** > > You may wish to also send push events to another external web server, like a Discord bot. > > In the framework configuration file, simply set `enablePushEventForwarding` to `true` and `pushEventForwardUrl` to your web server address. ### Steam API Key > [accordion] Steam API Key > > If your framework has the `primaryIdentifier` set to `steam` in the [configuration](#4.-configure-the-resource) (used for your API ID type), you'll need to ensure a Steam API key is set in your `server.cfg` file. > > You can register a new Steam API Key at [http://steamcommunity.com/dev/apikey](http://steamcommunity.com/dev/apikey) > > Then, paste it into your `server.cfg` > > ``` > # Steam Web API key > # If you want to use Steam authentication (https://steamcommunity.com/dev/apikey) # -> replace "" with the key > set steam_webApiKey "YOUR_KEY_HERE" > ``` ## Updates Sonoran CAD's integration framework and submodules will automatically update with the latest features, fixes, and changes! Or, run `sonorancad update` to instantly check and apply any updates for the framework core. ## Commands The Sonoran CAD integration framework comes with several commands. These commands can be run in your server console to provide information, update submodules , and more. | Command | Description | | - | - | | `sonorancad help` | Display list of commands | | `sonorancad update` | Run core/framework updater | | `sonorancad debugmode` | Toggle debug mode on/off | | `sonorancad info` | Dump version info and configuration data | | `sonorancad support ` | Send diagnostic information using the ID provided by Sonoran support | | `sonorancad ers` | Show ERS connection status, callout-list status, and the latest failure | For ERS issues, start with the [ERS troubleshooting guide](/cad/integration-plugins/in-game-integration/available-plugins/ers#troubleshooting). Support reports include ERS status and failure details automatically. ## Troubleshooting > [card] [troubleshooting](/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting) ### Server Crashes 1\. Check to make sure `sonoran_updatehelper` or `[sonorancad]` is not being started in your server.cfg. > [!WARNING] > > It is very important that the `sonoran_updatehelper` resource is not started manually. Doing so may cause a server crash if updates are available due to a race condition. > > **DO NOT** start the whole \[sonorancad] folder as that will also start the sonoran\_updatehelper which might cause crashing if it is started manually. Example of not what to do `ensure [sonorancad]` > [!NOTE] > > We have gotten isolated reports of servers crashing with the following error, this is assumed to be related to having lower end VPS hardware specs and txadmin rebooting the server because the update process is taking too long. ![](https://docs-assets.sonoransoftware.com/sha256/e8/e898b873a1033e56188089fa8fc02d36356f0b160b9aab99aa051b6d1c64a60c.png) ### Warning: Could not find file X 1.) Check that the file in question is actually present in the specified file path. To find the correct path please read the example below: ``` Started resource sonorancad (3 warnings) ^3Warning: Could not find file `html/config.js` (defined in fxmanifest.lua:16^7 ``` In this example, you would navigate to the `sonorancad` **resource**, open the `html` **folder** and ensure the **file** `config.js` is present. > [!NOTE] > > This is simply a **WARNING**, if the resource works **AS EXPECTED**, you can simply ignore the warning and continue # FiveM Resource Migration (v4) Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation/fivem-resource-migration-v4 Sonoran CAD's FiveM resource is moving from v3 to v4, requiring a manual update. FiveM integration is now available for FREE with easier integration than ever before. ## FiveM CAD v4 Resource Available As of 4/27/2026 our Sonoran CAD FiveM v4 resource is now available. This resource: * Migrates all API usage to our new v2 endpoints * Allows full API and FiveM integration with the **free version** of Sonoran CAD * Includes expanded and improved developer documentation, rate limits, and more. ## CAD FiveM v3 Depreciation With the release of our all new v2 API and corresponding FiveM resource v4, we will be depreciating the CAD FiveM v3 and API v2 endpoints on **June 15th, 2026** (\~45 days from announcement). Communities must update from the v3 to v4 CAD resource by **June 15th, 2026** before the v3 resource no longer works at all. Support will not be provided to communities on the old v3 resource. ## Migrating to FiveM CAD v4 1. Backup your existing CAD v3 resource and configuration files. 2. [Download a new, pre-configured CAD resource and install it as normal.](/cad/integration-plugins/in-game-integration/fivem-installation) 3. Carefully, manually migrate configuration settings for each submodule from v3 to v4. 1. Note: Some submodule configuration files have changed from v3 to v4. **Do not just copy the old v3 configs to v4** as some names have changed. 4. Review updated in-game command names. 1. Use `/sonorancad help` in-game to view all 2. Review the [submodule documentation pages](/cad/integration-plugins/in-game-integration/available-plugins) for more information. Having trouble? Contact our [customer support team](https://support.sonoransoftware.com/). # Troubleshooting Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting Troubleshooting guides for Sonoran CAD FiveM installation issues. If you run into issues while installing or updating the Sonoran CAD FiveM resource, use the guides below. > [card] [Read and Write Permissions](/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting/read-and-write-permissions) # Error Codes Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting/error-codes ## Error and Warning Codes SonoranCAD FiveM uses structured `ERR-XX-###` and `WRN-XX-###` codes that point back to this document. You can link directly to any code by appending it as a fragment identifier. Example: `sonorancad.com/error/WRN-CORE-001` Warnings use a `WRN-*` prefix. Errors use an `ERR-*` prefix. Some warning-level log paths still intentionally reference `ERR-*` codes when the condition represents a real support issue even if the integration can keep running. ### Core Errors #### ERR-CORE-001 **Key:** `STEAM_ERROR` **What it means:** SonoranCAD is configured to use Steam identifiers, but the FXServer Steam Web API key is missing. **How to fix it:** Set `steam_webapiKey` in your server configuration or switch `primaryIdentifier` away from `steam`. #### ERR-CORE-002 **Key:** `PORT_MISSING_ERROR` **What it means:** The configured CAD server entry could not be found for the active `serverId`. **How to fix it:** Verify the `serverId` in `config.json` or your convars and confirm that the same server exists in the CAD server list. #### ERR-CORE-003 **Key:** `PORT_CONFIG_ERROR` **What it means:** The game server port does not match the port configured in CAD. **How to fix it:** Align the FXServer `netPort` with the CAD server entry, or allow the integration to auto-correct the CAD entry. #### ERR-CORE-004 **Key:** `MAP_CONFIG_ERROR` **What it means:** The live map port configured in CAD does not match the server configuration. **How to fix it:** Update the CAD map or listener port for the affected `serverId` so it matches the actual server port. #### ERR-CORE-005 **Key:** `PORT_OUTBOUND_ERROR` **What it means:** The detected outbound IP does not match the configured CAD IP. **How to fix it:** Update the CAD server IP or outbound IP settings so they match the actual public IP used by the server. #### ERR-CORE-006 **Key:** `PORT_OUTBOUND_MISMATCH` **What it means:** SonoranCAD detected an IP mismatch between runtime networking and CAD configuration. **How to fix it:** Review `mapIp`, `outboundIp`, and `differingOutbound` in the CAD server entry and correct them. #### ERR-CORE-007 **Key:** `CONFIG_ERROR` **What it means:** The core configuration could not be loaded or parsed. **How to fix it:** Ensure `sonorancad/configuration/config.json` exists, contains valid JSON, and was not accidentally renamed to something like `config.json.json`. #### ERR-CORE-008 **Key:** `API_ERROR` **What it means:** The integration could not retrieve version information from the CAD API. **How to fix it:** Check the API key, community ID, outbound connectivity, and SonoranCAD API status, then restart the resource. #### ERR-CORE-010 **Key:** `ERROR_ABORT` **What it means:** Startup was aborted because one or more critical errors were encountered. **How to fix it:** Review the earlier `ERR-*` entries in the console or log output, correct the first critical failure, and restart the resource. #### ERR-CORE-011 **Key:** `PLUGIN_DEPENDENCY_ERROR` **What it means:** A submodule was enabled but one of its required dependencies was not loaded. **How to fix it:** Install or start the missing dependency resource, or disable the submodule that requires it. #### ERR-CORE-012 **Key:** `PLUGIN_VERSION_MISMATCH` **What it means:** A submodule requires a newer version of another plugin or resource than is currently installed. **How to fix it:** Update the named plugin or resource to the required version, or disable the dependent submodule until versions match. #### ERR-CORE-013 **Key:** `PLUGIN_CONFIG_OUTDATED` **What it means:** A submodule configuration file is older than the current template version. **How to fix it:** Compare your `*_config.lua` with the matching `*_config.dist.lua` and carry forward any missing options. [Learn more about this process here](/cad/integration-plugins/in-game-integration/submodule-configuration/submodule-configuration-updates). #### ERR-CORE-014 **Key:** `PLUGIN_CORE_OUTDATED` **What it means:** A plugin requires a newer SonoranCAD core version than the one currently installed. **How to fix it:** Update the SonoranCAD core resource to the required version. #### ERR-CORE-015 **Key:** `CUSTOM_POSTALS_FILE_NOT_FOUND` **What it means:** The configured custom postals file could not be found. **How to fix it:** Place the referenced file in the expected postals directory or update the configuration to point to the correct filename. #### ERR-CORE-016 **Key:** `POSTAL_RESOURCE_MISSING` **What it means:** The configured postal resource name does not exist on the server. **How to fix it:** Correct the resource name in configuration or install the missing postal resource. #### ERR-CORE-017 **Key:** `POSTAL_RESOURCE_STOPPED` **What it means:** The postal resource exists but is not started. **How to fix it:** Add the postal resource to your startup config and ensure it starts before players connect. #### ERR-CORE-018 **Key:** `POSTAL_RESOURCE_BAD_STATE` **What it means:** The postal resource is present but in an invalid runtime state. **How to fix it:** Inspect that resource for startup errors, fix them, and restart it before starting SonoranCAD features that rely on it. #### ERR-CORE-019 **Key:** `POSTAL_FILE_READ_ERROR` **What it means:** SonoranCAD could not read the configured postal data file. **How to fix it:** Verify the file exists, is readable by the server process, and is valid for the selected postal mode. #### ERR-CORE-020 **Key:** `POSTAL_CUSTOM_RESOURCE_FILE_ERROR` **What it means:** A custom postal resource did not expose the expected postal file metadata. **How to fix it:** Add the expected `postal_file` metadata to that resource's `fxmanifest.lua` or use a supported postal resource. #### ERR-CORE-021 **Key:** `IDCARD_RESOURCE_NOT_STARTED` **What it means:** The `sonoran_idcard` resource is installed but not running. **How to fix it:** Start `sonoran_idcard` in your server config before using civilian ID display features. #### ERR-CORE-022 **Key:** `IDCARD_RESOURCE_MISSING` **What it means:** The `sonoran_idcard` resource could not be found. **How to fix it:** Install the correct `sonoran_idcard` resource and keep the resource name exact. #### ERR-CORE-023 **Key:** `IDCARD_RESOURCE_BAD_STATE` **What it means:** The ID card resource exists but is not in a usable runtime state. **How to fix it:** Check that resource for load errors and fix them before enabling ID card UI integration. #### ERR-CORE-024 **Key:** `INCORRECT_WKWARS2X_VERSION` **What it means:** The installed `wk_wars2x` resource version is incompatible with this integration. **How to fix it:** Replace it with the supported version from Sonoran Software's repository. #### ERR-CORE-025 **Key:** `CAD_API_DISABLED` **What it means:** API sending is disabled by configuration or a runtime toggle. **How to fix it:** Re-enable API sending in config or convars, or stop using features that require outbound CAD API requests. #### ERR-CORE-026 **Key:** `UPDATE_CHILD_PERMISSION` **What it means:** Auto-update failed because FiveM child-process permission was not granted. **How to fix it:** Run `exec sonorancad.cfg` or add the required child-process ACE permission for SonoranCAD's updater. #### ERR-CORE-027 **Key:** `INVALID_API_MODE` **What it means:** The configured SonoranCAD API mode was invalid and the resource fell back to production. **How to fix it:** Set `mode` to a supported value such as `production` or `development`. #### ERR-CORE-028 **Key:** `FILE_WRITE_FAILED` **What it means:** The resource failed to write a required file to disk. **How to fix it:** Check folder permissions, available disk space, and whether the target path is writable by the server process. #### ERR-CORE-029 **Key:** `CAD_API_REQUEST_FAILED` **What it means:** A request to the Sonoran CAD API failed. **How to fix it:** The API call failed for some reason. This could be a bad API payload format from the resource or an issue with the backend. Double-check for other errors related to a bad API key. Otherwise, enable debug mode to capture the full API payload being sent at the same time as the error occurs and provide that to the support team/developers. #### ERR-CORE-030 **Key:** `TABLET_RESOURCE_NOT_STARTED` **What it means:** The `tablet` resource is installed but not running. **How to fix it:** Use `exec sonorancad.cfg` and make sure `sonorancad.cfg` contains `ensure tablet` before `ensure sonorancad`. #### ERR-CORE-031 **Key:** `TABLET_RESOURCE_MISSING` **What it means:** The `tablet` resource could not be found. **How to fix it:** Use the bundled `sonorancad.cfg`, confirm it contains `ensure tablet`, and install the resource with the exact name `tablet`. #### ERR-CORE-032 **Key:** `TABLET_RESOURCE_BAD_STATE` **What it means:** The `tablet` resource exists but is not in a usable runtime state. **How to fix it:** Use `exec sonorancad.cfg`, confirm it contains `ensure tablet`, and fix the startup errors reported by `tablet`. #### ERR-CORE-033 **Key:** `LOCAL_NETWORK_TIMEOUT` **What it means:** The local FiveM server network timed out while connecting to Sonoran CAD. **How to fix it:** If you are seeing this routinely, contact your server host. The network may be overwhelmed or experiencing degraded performance. This suggests your FiveM server is getting timeouts and connection drops. #### ERR-CORE-034 **Key:** `LOCAL_NETWORK_CONNECT_TIMEOUT` **What it means:** The local FiveM server connection to Sonoran CAD timed out. **How to fix it:** If you are seeing this routinely, contact your server host. Check the server host, firewall, proxy, or upstream network connection for connection setup delays or blocked outbound traffic. #### ERR-CORE-035 **Key:** `CAD_RECORD_UNIQUE_CONFLICT` **What it means:** A CAD record create or edit request failed because one of the fields marked unique already has the same value on another record. **How to fix it:** Find the unique field value in the record payload, choose a value that is not already used, or update the existing CAD record instead of creating a duplicate. #### ERR-CORE-036 **Key:** `APIKEY_CONVAR_UNINITIALIZED` **What it means:** SonoranCAD was started without the required convar and permission setup from the bundled `sonorancad.cfg`. This can break SonoranCAD updates and third-party integrations. **How to fix it:** In `server.cfg`, remove every `ensure sonorancad` line, use `exec @sonorancad/sonorancad.cfg` instead, and then fully restart FXServer. #### ERR-CORE-900 **Key:** `UNHANDLED_SERVER_ERROR` **What it means:** An unexpected server-side error occurred and was normalized into a generic coded failure. **How to fix it:** Use the support reference in the logs to find the exact exception details and fix the underlying code path or bad input. #### ERR-CORE-901 **Key:** `UNHANDLED_WARNING` **What it means:** A warning occurred that did not map to a more specific registered error code. **How to fix it:** Review the warning text and support reference in the logs. This usually indicates degraded behavior rather than a full failure. #### ERR-CORE-902 **Key:** `INVALID_COMMAND_ARGUMENT` **What it means:** A command was called with missing or invalid arguments. **How to fix it:** Re-run the command with the documented arguments, or update the calling script or UI if it is sending malformed parameters. #### ERR-CORE-903 **Key:** `FEATURE_UNAVAILABLE` **What it means:** The requested feature cannot be completed in the current state. **How to fix it:** Confirm required caches, resources, and dependent subsystems are available, then retry. #### ERR-CORE-904 **Key:** `MALFORMED_PAYLOAD` **What it means:** SonoranCAD received incomplete or invalid structured data. **How to fix it:** Validate the event payload, HTTP body, or NUI or client request that triggered the error. #### ERR-CORE-905 **Key:** `PERMISSION_DENIED` **What it means:** The user or command source does not have permission for the requested action. **How to fix it:** Grant the necessary ACE permission or disable the permission gate for that feature if appropriate. #### ERR-CORE-906 **Key:** `CLIENT_RUNTIME_ERROR` **What it means:** A client-side runtime or NUI or browser-side error was caught and sanitized before raw error details could be dumped to the player console. **How to fix it:** Check the matching support reference in the server and client logs, then verify the affected UI or runtime dependency is loaded and the triggering state is valid. ### CAD Errors #### ERR-CAD-101 **Key:** `PLAYER_NOT_LINKED` **What it means:** The player does not have a linked CAD account. **How to fix it:** Run the configured link command, complete the link flow, and verify the link exists in CAD. #### ERR-CAD-102 **Key:** `PLAYER_NOT_ONLINE` **What it means:** The player is linked but not currently logged into a CAD unit or profile. **How to fix it:** Log into an eligible CAD profile before using the feature. #### ERR-CAD-103 **Key:** `PLAYER_NOT_IN_CAD` **What it means:** The player must be both linked and active in CAD before the feature can be used. **How to fix it:** Link the account first, then log into a valid CAD character or unit. ### Support Errors #### ERR-SUP-101 **Key:** `SUPPORT_INVALID_ID` **What it means:** The provided support upload or request ID was invalid. **How to fix it:** Use the correct numeric support request ID from Sonoran support. #### ERR-SUP-102 **Key:** `SUPPORT_UPLOAD_FAILED` **What it means:** Support logs could not be uploaded. **How to fix it:** Retry the upload, then verify outbound API access and the validity of the support request ID. #### ERR-SUP-103 **Key:** `SUPPORT_UPLOAD_SUCCESS` **What it means:** Support logs were uploaded successfully. **How to fix it:** No action is required. Provide the generated support reference and upload context to support if requested. ### Bodycam Errors #### ERR-BC-101 **Key:** `BODYCAM_FORCEOFF_PERMISSION` **What it means:** The user attempted to use the bodycam force-off command without permission. **How to fix it:** Grant the configured bodycam force-off ACE permission to the appropriate staff group. #### ERR-BC-102 **Key:** `BODYCAM_CHILD_PERMISSION` **What it means:** Bodycam recording could not start because child-process permission was missing. **How to fix it:** Add the required child-process permission or use the bundled `sonorancad.cfg` permissions. #### ERR-BC-104 **Key:** `BODYCAM_F8_PERMISSION` **What it means:** The bodycam keybind commands are blocked by ACE permissions. **How to fix it:** Allow `command.SonoranCAD::bodycam::Keybind` and `command.SonoranCAD::bodycam::RecordingKeybind` for the intended player group. #### ERR-BC-105 **Key:** `BODYCAM_NOT_ON_DUTY` **What it means:** The player must be online in CAD before toggling bodycam. **How to fix it:** Log into CAD duty first, then toggle bodycam again. #### ERR-BC-106 **Key:** `BODYCAM_UPLOAD_TOKEN_INVALID` **What it means:** The bodycam upload token was invalid, expired, or belonged to a different player or session. **How to fix it:** Reinitialize bodycam upload configuration and retry with a fresh token. #### ERR-BC-107 **Key:** `BODYCAM_UPLOAD_INIT_FAILED` **What it means:** Bodycam upload setup failed before file chunks could be accepted. **How to fix it:** Check temporary file creation, upload parameters, and server write permissions. #### ERR-BC-108 **Key:** `BODYCAM_UPLOAD_CHUNK_FAILED` **What it means:** A bodycam upload chunk could not be appended to the target file. **How to fix it:** Check disk permissions, available disk space, and whether the temporary recording path is writable. #### ERR-BC-109 **Key:** `BODYCAM_UPLOAD_INCOMPLETE` **What it means:** The upload completion request arrived before all expected chunks were received. **How to fix it:** Retry the upload and inspect client or network interruptions that may have dropped chunks. #### ERR-BC-110 **Key:** `BODYCAM_TURN_FAILED` **What it means:** TURN credentials for bodycam streaming could not be retrieved. **How to fix it:** Verify the CAD API is reachable, the API key is valid, and any TURN-related configuration overrides are correct. #### ERR-BC-111 **Key:** `BODYCAM_RECORDINGS_UNWRITABLE` **What it means:** The bodycam recordings directory could not be written by the server process, so upload setup or clip finalization could not save the recording file. **How to fix it:** Set `sonorancad/submodules/bodycam` and its `recordings` directory to permission mode `777`, then retry the upload. #### ERR-BC-112 **Key:** `BODYCAM_RECORDING_ACTIVE` **What it means:** A start-recording request was ignored because a recording was already in progress. **How to fix it:** Stop the active recording before starting another one, or debounce duplicate start requests in the caller or UI. #### ERR-BC-113 **Key:** `BODYCAM_RECORDING_BLOCKED` **What it means:** Bodycam recording was blocked by a privacy override or an invalid runtime state. **How to fix it:** Remove the privacy override or restore the bodycam or stream state required for recording. #### ERR-BC-114 **Key:** `BODYCAM_RECORDING_INACTIVE` **What it means:** A stop or cancel request was made when there was no active recording to stop. **How to fix it:** Start a recording first, or suppress duplicate stop or cancel requests in the caller or UI. #### ERR-BC-115 **Key:** `BODYCAM_RECORDING_FAILED` **What it means:** The bodycam recording pipeline failed before the clip could be finalized successfully. **How to fix it:** Review the support reference, then verify the bodycam stream, recorder pipeline, duration or size limits, and upload handoff path. #### ERR-BC-116 **Key:** `BODYCAM_NOT_WORN` **What it means:** The player attempted to enable bodycam without matching the configured clothing or bodycam requirements. **How to fix it:** Equip the required bodycam clothing or components, or relax the configured clothing validation. #### ERR-BC-117 **Key:** `BODYCAM_WATCH_ACTIVE` **What it means:** Bodycam disable was blocked because the bodycam is currently being watched. **How to fix it:** Wait until everyone stops watching, then try again. If you have force-off permission, the notification shows the command to use (`/bodycam forceoff` by default). If no force-off command is offered, contact your server administrator. See [Turning Off a Camera Being Viewed](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#turning-off-a-camera-being-viewed). #### ERR-BC-118 **Key:** `BODYCAM_SOUND_LEVEL_INVALID` **What it means:** The requested bodycam sound level was not a valid number within the accepted range. **How to fix it:** Pass a numeric value greater than `0` and less than or equal to `1`. #### ERR-BC-119 **Key:** `BODYCAM_UPLOAD_FAILED` **What it means:** The finalized bodycam clip failed to upload to CAD. **How to fix it:** Check API connectivity, authentication, upload endpoint availability, and the support reference for the upload failure context. #### ERR-BC-120 **Key:** `BODYCAM_RECORDING_START_TIMEOUT` **What it means:** A recording start request timed out while waiting for bodycam initialization, display activation, or the client media stream to become ready. **How to fix it:** Review the state details printed with the error and the matching `[bodycam-recording]` server warning. Verify bodycam initialization, CAD duty state, TURN connectivity, and the reported NUI stream reason. ### CAD Display Errors #### ERR-CD-101 **Key:** `CADDISPLAY_F8_PERMISSION` **What it means:** CAD display keybind commands are blocked by ACE permissions. **How to fix it:** Grant the listed CAD display command permissions to players who should be able to use them. #### ERR-CD-102 **Key:** `CADDISPLAY_FRAMEWORK_UNAVAILABLE` **What it means:** CAD display could not access the configured framework export. **How to fix it:** Confirm the selected framework resource is started and that its export name matches the integration configuration. #### ERR-CD-103 **Key:** `CADDISPLAY_PLACEMENT_INVALID` **What it means:** CAD display placement data could not be loaded or parsed. **How to fix it:** Repair the placement file JSON or Lua data, or delete the bad saved placement data so defaults can be rebuilt. #### ERR-CD-104 **Key:** `CADDISPLAY_VEHICLE_UNIDENTIFIED` **What it means:** CAD display could not determine which vehicle the player was targeting. **How to fix it:** Retry while targeting a valid supported vehicle and verify the display interaction logic has the correct entity context. ### Call Errors #### ERR-CALL-101 **Key:** `CALL_MISSING_DETAILS` **What it means:** A call-related command was used without the required details. **How to fix it:** Re-run the command with the required message, description, or argument payload. #### ERR-CALL-102 **Key:** `CALL_SEND_FAILED` **What it means:** A call could not be sent to CAD. **How to fix it:** Check the support reference, then verify CAD API availability, call payload validity, and that API sending is enabled. #### ERR-CALL-103 **Key:** `CALL_TEMPLATE_INVALID` **What it means:** The configured call template file is missing or invalid. **How to fix it:** Verify the template file exists, contains valid JSON, and matches the configured filename or path. #### ERR-CALL-104 **Key:** `PANIC_F8_PERMISSION` **What it means:** The panic keybind command is blocked by ACE permissions. **How to fix it:** Allow `command.panic` for the intended players in ACE permissions. #### ERR-CALL-105 **Key:** `CALL_CREATE_FAILED` **What it means:** A dispatch call creation operation failed before returning a valid call ID. **How to fix it:** Inspect the payload fields sent to CAD and verify API availability and permissions. #### ERR-CALL-106 **Key:** `CALL_UNEXPECTED_RESPONSE` **What it means:** CAD returned a success path without the expected data, such as a missing call ID. **How to fix it:** Review the API response body and confirm the integration and API versions are compatible. ### Vehicle Registration Errors #### ERR-VR-101 **Key:** `VEHREG_NO_CHARACTER` **What it means:** No active CAD character was found for the vehicle registration action. **How to fix it:** Log into a CAD character first, then retry the registration action. #### ERR-VR-102 **Key:** `VEHREG_CREATE_FAILED` **What it means:** The vehicle registration record could not be created in CAD. **How to fix it:** Check record template or configuration values, payload data, and CAD API availability. #### ERR-VR-103 **Key:** `VEHREG_PLATE_TAKEN` **What it means:** The requested plate is already registered in CAD. **How to fix it:** Choose a different plate or locate and update the existing CAD registration record. ### Unit Status Errors #### ERR-US-101 **Key:** `UNITSTATUS_INVALID_STATUS` **What it means:** The requested unit status does not exist in configuration or is outside the supported range. **How to fix it:** Use a configured status name or number and verify `unitstatus` status mappings in its config file. ### API WebSocket Errors #### ERR-WS-101 **Key:** `APIWS_DEPENDENCY_MISSING` **What it means:** The SignalR dependency required for API WebSocket connectivity is missing. **How to fix it:** Install the missing package in the `sonorancad` resource, typically `@microsoft/signalr`, and restart the resource. #### ERR-WS-102 **Key:** `APIWS_AUTH_FAILED` **What it means:** The API WebSocket hub rejected authentication. **How to fix it:** Verify `communityID`, `apiKey`, and `serverId`, then confirm the key is valid for the target community. #### ERR-WS-103 **Key:** `APIWS_CONFIG_MISSING` **What it means:** The API WebSocket connection could not start because required configuration values were missing. **How to fix it:** Ensure `communityID`, `apiKey`, and `serverId` are all present and loaded before WebSocket startup. #### ERR-WS-104 **Key:** `APIWS_CONNECTION_FAILED` **What it means:** The API WebSocket transport could not establish a connection. **How to fix it:** Check outbound HTTPS and WebSocket connectivity, API URL correctness, and any firewall or proxy rules. #### ERR-WS-105 **Key:** `APIWS_RECONNECT_FAILED` **What it means:** Reconnect attempts to the API WebSocket hub are repeatedly failing. **How to fix it:** Treat this as a persistent connectivity or authentication problem, then review the first connection failure and fix that root cause. #### ERR-WS-106 **Key:** `APIWS_PUSH_EVENT_FAILED` **What it means:** A push event delivered over the WebSocket connection could not be decoded or processed. **How to fix it:** Validate the incoming event payload shape and inspect the support reference for the handler that failed. #### ERR-WS-107 **Key:** `APIWS_SEND_FAILED` **What it means:** A message could not be sent over the API WebSocket connection. **How to fix it:** Confirm the WebSocket connection is active and authenticated before sending unit or call updates. ### Plugin Loader Errors #### ERR-PLUG-101 **Key:** `PLUGIN_VERSION_FILE_LOAD_FAILED` **What it means:** The local plugin version file could not be loaded from disk. **How to fix it:** Confirm `sonorancad/version.json` exists and is readable. #### ERR-PLUG-102 **Key:** `PLUGIN_VERSION_FILE_PARSE_FAILED` **What it means:** The local plugin version file exists but could not be parsed. **How to fix it:** Repair malformed JSON in `version.json` or replace it with a clean release copy. #### ERR-PLUG-103 **Key:** `PLUGIN_UPDATER_RESPONSE_INVALID` **What it means:** The remote updater responded with invalid or unusable data. **How to fix it:** Retry later and verify outbound network access to GitHub or raw content endpoints. #### ERR-PLUG-104 **Key:** `PLUGIN_NOT_FOUND` **What it means:** A requested plugin or submodule could not be found locally. **How to fix it:** Verify the plugin name, installation path, and that its configuration or resource files exist. #### ERR-PLUG-105 **Key:** `PLUGIN_MANIFEST_ENTRY_MISSING` **What it means:** A local submodule was not present in the remote updater manifest. **How to fix it:** If it is a custom submodule this may be expected, otherwise update to an official supported submodule build. #### ERR-PLUG-106 **Key:** `PLUGIN_MANIFEST_VERSION_MISSING` **What it means:** A remote updater manifest entry was missing a version field. **How to fix it:** Replace the manifest source with a valid upstream release or retry after the remote manifest is corrected. #### ERR-PLUG-107 **Key:** `PLUGIN_CONFIG_VERSION_MISSING` **What it means:** A plugin config did not declare its current config version. **How to fix it:** Update the plugin config from the latest `*_config.dist.lua` and ensure the version field is present. #### ERR-PLUG-108 **Key:** `PLUGIN_CONFIG_BACKUP_FAILED` **What it means:** The plugin updater could not create a config backup before modifying files. **How to fix it:** Check write permissions for the SonoranCAD configuration directory and available disk space. #### ERR-PLUG-109 **Key:** `PLUGIN_CONFIG_PARSE_FAILED` **What it means:** A plugin or submodule configuration file could not be parsed, compiled, or executed safely. **How to fix it:** Repair the matching `*_config.lua` file so it defines a valid `local config = {}` table and contains no Lua syntax or runtime errors. ### Civilian Integration Errors #### ERR-CIV-101 **Key:** `CIV_NO_CHARACTERS_FOUND` **What it means:** No CAD character records were found for the player. **How to fix it:** Ensure the player is linked and has at least one valid CAD character, or enable custom IDs if you want a fallback workflow. #### ERR-CIV-102 **Key:** `CIV_CUSTOM_IDS_DISABLED` **What it means:** The server has disabled custom civilian IDs. **How to fix it:** Enable `allowCustomIds` in the civilian integration configuration if that workflow should be allowed. #### ERR-CIV-103 **Key:** `CIV_REFRESH_DISABLED` **What it means:** Manual character cache refresh is disabled. **How to fix it:** Enable the purge or refresh option in configuration if players should be allowed to force-refresh ID data. #### ERR-CIV-104 **Key:** `CIV_UNKNOWN_SUBCOMMAND` **What it means:** An invalid civilian ID command subcommand was used. **How to fix it:** Use `/id help` and re-run the command with a supported subcommand. #### ERR-CIV-105 **Key:** `CIV_NO_NEARBY_PLAYERS` **What it means:** The player attempted to show an ID but no nearby viewers were found. **How to fix it:** Move closer to another player and retry the `show` action. ### Civilian Registration Errors See [Civilian Registration (CivReg)](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration) for setup, usage, and base64 portrait uploads. #### ERR-CR-101 **Key:** `CIVREG_TEMPLATE_FAILED` **What it means:** The live CAD character template could not be loaded or did not contain the expected sections. **How to fix it:** Check the CAD connection and `templateId` in `civreg_config.lua` (`7` for the civilian character template). Review the accompanying API error, keep template caching enabled, and retry after any rate limit has cleared. #### ERR-CR-102 **Key:** `CIVREG_SUBMISSION_INVALID` **What it means:** The registration form expired or contains invalid data, such as a missing required value, an invalid field format, or malformed or oversized base64 portrait data. **How to fix it:** Correct the validation message shown in the form. For an invalid portrait, retake it and check the decoded image size against `maxSelfieBytes` (1 MiB by default). If the session expired, close it and reopen `/civreg`, or the configured registration command. Registration sessions last 10 minutes. #### ERR-CR-103 **Key:** `CIVREG_SELFIE_URL_MISSING` **What it means:** CivReg could not determine a public image address for a portrait. This code is inactive in the current resource. **How to fix it:** If this code appears, contact [Sonoran support](https://support.sonoransoftware.com) with the error code and your installed resource version. See [Portrait Uploads](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration#portrait-uploads) for portrait setup. #### ERR-CR-104 **Key:** `CIVREG_SELFIE_SAVE_FAILED` **What it means:** CivReg could not validate or save a portrait image. This code is inactive in the current resource. **How to fix it:** If this code appears, contact [Sonoran support](https://support.sonoransoftware.com) with the error code and your installed resource version. For portrait validation errors, see [ERR-CR-102](#err-cr-102). #### ERR-CR-105 **Key:** `CIVREG_CREATE_FAILED` **What it means:** CAD could not create the civilian character from the submitted form. **How to fix it:** Review the accompanying API failure in the server console. Confirm the linked CAD account and character template, correct the reported issue, and retry the registration. #### ERR-CR-106 **Key:** `CIVREG_DB_SYNC_FAILED` **What it means:** CivReg detected CAD character database sync but could not initialize or update the configured framework character table. **How to fix it:** Start QBCore or ESX and `oxmysql` or `mysql-async` before `sonorancad`. Confirm the CivReg database sync table and character ID column match the CAD DB Sync character mapping, and allow the database user to alter and update the character table. ### Dispatch Errors #### ERR-DISP-101 **Key:** `DISPATCH_CALL_NOT_FOUND` **What it means:** A dispatch action referenced a call that was not present in cache. **How to fix it:** Verify the call ID is current and that call cache synchronization is working before retrying the action. ### ERS Integration Errors Run `sonorancad ers` in the **server console** to check the ERS connection, callout list, and latest failure. See the [ERS troubleshooting guide](/cad/integration-plugins/in-game-integration/available-plugins/ers#troubleshooting) for common setup checks. #### ERR-ERS-101 **Key:** `ERS_MAPPING_FAILED` **What it means:** ERS field mapping logic failed while converting ERS data into CAD payload fields. **How to fix it:** Review custom mapping functions and field names in the ERS integration configuration for `nil` values or bad return types. #### ERR-ERS-102 **Key:** `ERS_PAYLOAD_MALFORMED` **What it means:** An ERS event payload was missing required top-level fields or had an invalid structure. **How to fix it:** Validate the ERS event payload contract and adjust any custom hooks that modify it. #### ERR-ERS-103 **Key:** `ERS_COORDS_MISSING` **What it means:** An ERS event did not provide usable coordinates for the CAD action. **How to fix it:** Ensure the originating ERS event includes proper coordinates and that any transform step preserves them. #### ERR-ERS-104 **Key:** `ERS_CALL_ID_INVALID` **What it means:** ERS attempted to update or attach to a call using an invalid stored call ID. **How to fix it:** Check the local saved-call cache and ensure the create-call step succeeded before later actions reference it. #### ERR-ERS-105 **Key:** `ERS_RESOURCE_NOT_STARTED` **What it means:** The Night ERS resource required by the integration is not started. **How to fix it:** Start `night_ers`. The integration reconnects when ERS starts or restarts. Use `sonorancad ers` in the server console to check its status. #### ERR-ERS-106 **Key:** `ERS_VERSION_TOO_OLD` **What it means:** Night ERS is older than the required version `1.8.16`, or its version could not be confirmed. An older version blocks the integration; an unverified version allows it to run with a warning. **How to fix it:** Update Night ERS to `1.8.16` or newer and restart it. If you already have a supported version, check the detected version and status with `sonorancad ers` and contact support if the warning continues. #### ERR-ERS-107 **Key:** `ERS_CONFIG_INVALID` **What it means:** An ERS setting or CAD record setup is missing or invalid. Some record setup problems affect lookups while calls can still work. **How to fix it:** Run `sonorancad ers` and correct the settings named under `configIssues`. ERS options are in `ersintegration_config.lua`; the CAD `serverId` is in `config.json`. Confirm that the supplied record templates are imported into CAD, then restart `sonorancad` after changing the configuration. #### ERR-ERS-108 **Key:** `ERS_CATALOG_FAILED` **What it means:** The integration could not load ERS's callout list or send it to CAD. **How to fix it:** Confirm ERS has callouts enabled and loaded. Run `sonorancad ers` to see whether loading the list or sending it to CAD failed. For a CAD connection failure, check the connection and configured server ID. The integration retries automatically. #### ERR-ERS-109 **Key:** `ERS_CALLOUT_CREATE_FAILED` **What it means:** ERS could not confirm creation of a callout requested from CAD. **How to fix it:** Check that the selected callout is available in ERS and that the chosen location is valid. Check the latest failure with `sonorancad ers`; if it continues, send support the callout name, location, and error code. #### ERR-ERS-110 **Key:** `ERS_CAD_REQUEST_FAILED` **What it means:** A 911 or dispatch call from ERS could not be created in CAD. **How to fix it:** Check the CAD connection and configured server ID. Run `sonorancad ers` for the failed step and reason, then correct the reported issue before testing another callout. #### ERR-ERS-111 **Key:** `ERS_RECORD_ID_INVALID` **What it means:** CAD reported that a person or vehicle record was created but did not return its record number. **How to fix it:** Check whether the record already appears in CAD before repeating the lookup. The integration pauses repeat creation for five minutes to help prevent duplicates. If the error continues, send support the error code and the latest failure shown by `sonorancad ers`. #### ERR-ERS-112 **Key:** `ERS_OFFER_FAILED` **What it means:** A player assigned to an ERS-generated CAD call could not receive the matching callout in game. **How to fix it:** Confirm the player is online, linked to CAD, has an active CAD unit, and is on an ERS shift with a service selected. Check `sonorancad ers`. If the server sent the callout but the player did not receive it, support may request `sonorancad getclientlog ` from the server console. ### Framework Errors #### ERR-FW-101 **Key:** `FRAMEWORK_RESOURCE_MISSING` **What it means:** A required framework resource such as `qb-core` or `es_extended` is not running. **How to fix it:** Start the configured framework resource and verify the integration is targeting the correct framework. #### ERR-FW-102 **Key:** `FRAMEWORK_IDENTITY_MISSING` **What it means:** Framework identity or player data could not be retrieved. **How to fix it:** Check that the player is fully loaded into the framework and that the expected identity export or event is available. #### ERR-FW-103 **Key:** `FRAMEWORK_QUERY_INVALID` **What it means:** A framework SQL query or parameter set was invalid and was rejected before execution. **How to fix it:** Ensure the query is a non-empty string and the parameters are passed as a key or value table rather than an array. ### Locations and Livemap Errors #### ERR-LOC-101 **Key:** `LOCATIONS_CONFIG_MISSING` **What it means:** The locations or livemap vehicle model configuration file could not be found. **How to fix it:** Restore the missing configuration file or update the configured path to a valid file. #### ERR-LOC-102 **Key:** `LOCATIONS_CONFIG_INVALID` **What it means:** The locations or livemap configuration file exists but could not be decoded. **How to fix it:** Repair malformed JSON in the vehicle model configuration file. #### ERR-LOC-103 **Key:** `LOCATIONS_CLIENT_ERROR` **What it means:** A client reported an error while sending location data. **How to fix it:** Check client logs for the specific failure and verify required dependencies such as postals and location hooks are configured. #### ERR-LOC-104 **Key:** `POSTALS_RESOURCE_UNAVAILABLE` **What it means:** A client-side feature requested postal data, but the configured postal source was unavailable. **How to fix it:** Start the configured postal resource or switch to a valid postal mode or source in configuration. #### ERR-LOC-105 **Key:** `POSTALS_FILE_INVALID` **What it means:** The configured client-side postal file was missing or invalid. **How to fix it:** Restore the referenced postal file, validate its JSON, and confirm the configured filename is correct. #### ERR-LOC-106 **Key:** `POSTALS_LOOKUP_FAILED` **What it means:** Client-side postal lookup failed at runtime, but Sonoran CAD continued sending location updates without a postal prefix. **How to fix it:** Sonoran CAD comes bundled with the `nearest-postals` resource. Ensure your community is only using the bundled nearest-postals resource and NOT a duplicate or copied version that may be out of date. You can check where your `nearest-postals` resource is running inside of TxAdmin > Resources. It should be running inside of the `[sonorancad]` folder. Additionally, startup order matters. The Sonoran CAD resource is started by adding the following line to your `server.cfg`: ``` exec @sonorancad/sonorancad.cfg ``` The `exec` command above runs a script to ensure the Sonoran CAD resource, the bundled nearest-postals resource, and more in a specific order. If your `server.cfg` contains anything like `ensure sonorancad` or `ensure nearest-postals` remove those and **only** use the `exec` command listed above. ### Record Printer Errors #### ERR-RP-101 **Key:** `RECORDPRINTER_UNIT_MISSING` **What it means:** Record printer could not resolve the player to an active CAD unit. **How to fix it:** Ensure the player is logged into CAD and present in the unit cache before printing. #### ERR-RP-102 **Key:** `RECORDPRINTER_DIRECTORY_FAILED` **What it means:** Record printer could not create or resolve its output directory. **How to fix it:** Check write permissions and folder creation behavior for the record printer output path. #### ERR-RP-103 **Key:** `RECORDPRINTER_SAVE_FAILED` **What it means:** Record printer failed to save the generated PDF. **How to fix it:** Verify write permissions, available disk space, and that the generated PDF data is valid. #### ERR-RP-104 **Key:** `RECORDPRINTER_SHARE_INVALID` **What it means:** Record printer rejected a share request because the URL or target list was invalid. **How to fix it:** Validate the shared URL and ensure at least one valid target player or identifier is supplied. #### ERR-RP-105 **Key:** `RECORDPRINTER_FILESYSTEM_PERMISSION` **What it means:** The FXServer process does not have permission to create or write record printer PDF files. **How to fix it:** Grant the FXServer process write access to `sonorancad/submodules/recordPrinter/pdfs`, then restart the Sonoran CAD resource. ### Sonrad Errors #### ERR-SR-101 **Key:** `SONRAD_CALLCOMMANDS_MISSING` **What it means:** Sonrad attempted an action that depends on the `callcommands` submodule. **How to fix it:** Enable or start the `callcommands` submodule before using Sonrad panic or call features. #### ERR-SR-102 **Key:** `SONRAD_CONFIG_MISSING` **What it means:** Critical Sonrad configuration values are missing. **How to fix it:** Update `sonrad_config.lua` from the latest template and fill in the missing required values. ### Kick Module Errors #### ERR-KICK-101 **Key:** `KICK_QUEUE_UNAVAILABLE` **What it means:** The kick module could not queue a CAD logout or kick for the player. **How to fix it:** Ensure the player is linked and currently represented by an active unit before the kick action runs. ### Warning Codes #### WRN-CORE-001 **Key:** `INVALID_API_MODE` **What it means:** The configured SonoranCAD API mode was invalid, so the resource fell back to production mode. **How to fix it:** Set `mode` to a supported value such as `production` or `development`. #### WRN-CORE-002 **Key:** `DEPRECATED_DEBUGPRINT` **What it means:** Deprecated logging helper `debugPrint` was used somewhere in the runtime path. **How to fix it:** Replace `debugPrint(...)` calls with `debugLog(...)` in custom integrations or older submodule code. #### WRN-CORE-003 **Key:** `JSON_DECODE_FAILED` **What it means:** SonoranCAD failed to decode a JSON string and continued with a default or empty value. **How to fix it:** Validate the JSON source that triggered the warning and correct malformed payload or file contents. #### WRN-CORE-004 **Key:** `JSON_ENCODE_FAILED` **What it means:** SonoranCAD failed to encode a Lua value into JSON and continued with a fallback value. **How to fix it:** Check the table being encoded for unsupported values such as functions, userdata, or recursive structures. #### WRN-CORE-005 **Key:** `APIKEY_CONVAR_UNINITIALIZED` **What it means:** Older SonoranCAD versions reported missing `sonorancad.cfg` startup setup with this warning. Current versions report the same condition as `ERR-CORE-036` because it can break SonoranCAD updates and third-party integrations. **How to fix it:** In `server.cfg`, remove every `ensure sonorancad` line, use `exec @sonorancad/sonorancad.cfg` instead, and then fully restart FXServer. #### WRN-CORE-006 **Key:** `OLD_FXSERVER_VERSION` **What it means:** The running FXServer build is older than the version this SonoranCAD release was tested against. **How to fix it:** Update FXServer to the tested version or newer before troubleshooting feature regressions. #### WRN-CAD-101 **Key:** `PLAYER_IDENTIFIER_MISSING` **What it means:** A player connected without the configured primary identifier, so some CAD features may not work for that player. **How to fix it:** Ensure the configured identifier type is actually available on your server and that the player is connecting through the expected identity provider. #### WRN-CAD-102 **Key:** `PLAYER_LINK_REQUIRED` **What it means:** A player attempted a CAD-linked workflow without having a linked CAD account. **How to fix it:** Have the player run the configured link command, complete the link flow, and retry after the CAD link exists. #### WRN-WS-101 **Key:** `LEGACY_HTTP_PUSH_EVENT` **What it means:** SonoranCAD received a legacy HTTP push event on `/event` while WebSocket push delivery is preferred. **How to fix it:** Review your CAD or server push-event configuration and move the server onto the API WebSocket push path where available. #### WRN-CORE-900 **Key:** `UNHANDLED_WARNING` **What it means:** A warning was logged without a more specific registered warning code, so it was normalized into the generic warning bucket. **How to fix it:** Use the support reference and warning text in the logs to identify the exact caller, then register a dedicated warning code if the condition needs clearer support guidance. # Read and Write Permissions Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting/read-and-write-permissions Fix Sonoran CAD FiveM issues caused by read-only files or missing write permissions on Windows and Linux hosts. ![](https://docs-assets.sonoransoftware.com/sha256/62/62263df0d448c873b3de4c9ed180b062f0b066391ba0e37734453d23e8323ff5.png) ## Sonoran CAD FiveM - Fix file permission issues If the `sonorancad` resource cannot create, rename, or update files, you may see startup issues like: * `Failed to create target file` * `Failed to rename ..._config.dist.lua to ..._config.lua` * `Unable to open config backup file` * Changes not saving after updates or restarts These usually mean your host has marked the resource files as read-only, or the server process does not have permission to write to them. ## Host Restrictions Some game panel hosts (Ex: ZAP Hosting) do not allow FiveM resources to programmatically modify other files. This blocks the Sonoran CAD resource from updating itself. In this case, you must disable automatic updates and manually install updated versions of the resource as they release. To disable automatic updates navigate to your config file: `[sonorancad]/sonorancad/configuration /config.json` and change `allowAutoUpdate` from `true` to `false`. Looking for a server host? Learn more about our [one-click installation here](/promotions/fivem-hosting). ## Step 1: Open your game panel Log into the panel where your FiveM server is hosted, such as `txAdmin`, `Pterodactyl`, `ZAP-Hosting`, `Gamepanel`, or your VPS file manager. ## Step 2: Locate the Sonoran CAD resource Check the main Sonoran CAD resource folder and configuration folder: ``` resources/[sonorancad]/sonorancad/ resources/[sonorancad]/sonorancad/configuration/ ``` Pay special attention to: ``` resources/[sonorancad]/sonorancad/configuration/config.json resources/[sonorancad]/sonorancad/configuration/*_config.lua ``` ## Linux Hosts (Game Panels) > [accordion] Linux Hosts > > ### Locate the resource files > > Open your host panel or file manager and navigate to: > > ``` > resources/[sonorancad] > ``` > > ### Fix file permissions > > Navigate to the specific file mentioned in the error code and update the permissions. > > Recommended file permissions: > > * `766` > * If that fails, try `666` > > If your panel supports permission changes: > > 1. Right-click the `configuration` folder or affected file > 2. Select **Permissions** > 3. Apply the updated permissions > > ![](https://docs-assets.sonoransoftware.com/sha256/25/25a2ff858dd565d8562df08116c2a3a957182fe1541ed3203ac1303c70644dfe.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/ff/ff0c8a7b60f15ee58ee4f2054220d1ce3896801c7c38b200b2d0fcb0f45cd2f0.png) > > [If your host does not allow permission changes](/cad/integration-plugins/in-game-integration/fivem-installation/troubleshooting/read-and-write-permissions#host-restrictions), contact the hosting provider and ask them to make the Sonoran CAD resource writable. > > ## Quick permission reference > > Each permission digit is the sum of: > > * `4` = read > * `2` = write > * `1` = execute > > Common values: > > * `4` = read only > * `6` = read + write > * `7` = read + write + execute ## Windows Hosts > [accordion] Windows > > ### Open the file or folder properties > > Start with the `configuration` folder. If needed, also check the full `sonorancad` folder. > > ``` > resources\[sonorancad]\sonorancad\configuration\ > ``` > > 1. Right-click the folder or affected file > 2. Click **Properties** > > ### Allow read and write access > > Under the **General** tab: > > 1. Uncheck **Read-only** > 2. Click **Apply** > 3. Choose to apply changes to this folder, subfolders, and files if prompted > 4. Click **OK** > > If you only changed a single file and the issue comes back, repeat the process on the entire `sonorancad` folder. ## Final step: restart the resource After updating permissions, restart the Sonoran CAD resource or your full server: ``` exec @sonorancad/sonorancad.cfg ``` If the issue continues, verify the files are named correctly and were not saved with extra extensions such as `config.json.json`. # FiveM Development Documentation Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation FiveM developer documentation for server, client, and shared functions, exports, and events. # Client Events Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation/client-events This page will explain all client events from the SonoranCAD Core that can be used on the client side ### Bodycam Record Toggle This client event triggers a bodycam recording using a custom trigger name. This event requires the [Body Camera submodule](/cad/integration-plugins/in-game-integration/available-plugins/bodycam) to be enabled. ```lua theme={null} TriggerEvent('SonoranCAD::bodycam::AutoRecordTrigger', triggerName) ``` > [tab] Parameters > > | Name | Type | Description | > | - | - | - | > | `triggerName` | `string` | A custom label describing what caused the recording to start. | > [tab] Example Usage > > ```lua theme={null} > RegisterCommand('bodycamclip', function() > TriggerEvent('SonoranCAD::bodycam::AutoRecordTrigger', 'manual-clip') > end, false) > ``` Use this event from your own client-side scripts whenever you want to create a bodycam clip for a specific gameplay action. # Client Functions Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation/client-functions This page will explain all exported functions from the SonoranCAD Core that can be used on the client side ### getApiMode Determines the API mode based on the configuration. This tells you which API URL is being used by the CAD for API Calls ```lua theme={null} exports.sonorancad.getApiMode() ``` > [tab] Returns > > | Type | Description | > | - | - | > | `number` | • `1` for production mode (or if no mode is set in the configuration). • `0` for development mode. | > [tab] Example Usage > > ```lua theme={null} > -- Example: Determining the API mode > Config = { mode = "development" } > local apiMode = getApiMode() > print(apiMode) -- Output: 0 (development mode) > > Config = { mode = nil } > local apiModeDefault = getApiMode() > print(apiModeDefault) -- Output: 1 (default to production mode) > > Config = { mode = "production" } > local apiModeProd = getApiMode() > print(apiModeProd) -- Output: 1 (production mode) > > ``` # HTTP Request Handling Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation/http-request-handling Have your submodule handle HTTP requests sent to a special URL. ## Submodule Code This code only works on the Server side files since HTTP only works on servers, obviously! > [!WARNING] > > You **must** return something, even if it's just a confirmation the data was received. Otherwise, the HTTP request will hang and eventually error on the client's side. ``` RegisterPluginHttpEvent("yourpluginname:hello", function(data) debugLog(("Got data: %s"):format(json.encode(data))) return { result = "ok, got some data!" } end) ``` #### Breakdown The framework exposes the `RegisterPluginHttpEvent` function for plugins to use (is not exported, currently). Using this function "registers" a particular type where the framework will send the POSTed payload to the callback function. **Note: This will block the HTTP request, so take care if this is requesting data from an external source like a database.** To actually use this, we would POST to the URL, as noted below. Return a LUA table which will be encoded as JSON back to the requesting client. ## Submodule Event `POST` `http://yourserverip:serverport/sonorancad/pluginevent` Send a payload to trigger a specific HTTP event that was defined in the submodule code. #### Request Body | Name | Type | Description | | - | - | - | | data | object | A JSON object containing the payload to be sent | | type | string | The registered type this data should be sent to | | key | string | Your API Key | > [tab] 200 > > ``` > Response varies based on return statement defined in the handler. > ``` # Server Events Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation/server-events This page will explain all server events from the SonoranCAD Core that can be used on the server side ### sonorancad::registerVeh This event will register the vehicle the player is in, to their most recent CAD civilian character. **This event requires the** [**VehReg submodule**](/cad/integration-plugins/in-game-integration/available-plugins/vehreg) **to be enabled** ```lua theme={null} TriggerServerEvent('sonorancad::registerVeh', primary, plate, class, realName) ``` > [tab] Parameters > > | Name | Type | Description | > | - | - | - | > | `primary` | `string` | The primary color of the vehicle | > | `plate` | `string` | The vehicle's license plate | > | `class` | `string` | The vehicles class. Please see [Example Usage](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-events#example-usage) for how to get the class to a string | > | `realName` | `string` | The display name of the vehicle. | > [tab] Example Usage > > ```lua theme={null} > local colorNames = { > ["0"] = "Metallic Black", > ["1"] = "Metallic Graphite Black", > ["2"] = "Metallic Black Steal", > ["3"] = "Metallic Dark Silver", > ["4"] = "Metallic Silver", > ["5"] = "Metallic Blue Silver", > ["6"] = "Metallic Steel Gray", > ["7"] = "Metallic Shadow Silver", > ["8"] = "Metallic Stone Silver", > ["9"] = "Metallic Midnight Silver", > ["10"] = "Metallic Gun Metal", > ["11"] = "Metallic Anthracite Grey", > ["12"] = "Matte Black", > ["13"] = "Matte Gray", > ["14"] = "Matte Light Grey", > ["15"] = "Util Black", > ["16"] = "Util Black Poly", > ["17"] = "Util Dark silver", > ["18"] = "Util Silver", > ["19"] = "Util Gun Metal", > ["20"] = "Util Shadow Silver", > ["21"] = "Worn Black", > ["22"] = "Worn Graphite", > ["23"] = "Worn Silver Grey", > ["24"] = "Worn Silver", > ["25"] = "Worn Blue Silver", > ["26"] = "Worn Shadow Silver", > ["27"] = "Metallic Red", > ["28"] = "Metallic Torino Red", > ["29"] = "Metallic Formula Red", > ["30"] = "Metallic Blaze Red", > ["31"] = "Metallic Graceful Red", > ["32"] = "Metallic Garnet Red", > ["33"] = "Metallic Desert Red", > ["34"] = "Metallic Cabernet Red", > ["35"] = "Metallic Candy Red", > ["36"] = "Metallic Sunrise Orange", > ["37"] = "Metallic Classic Gold", > ["38"] = "Metallic Orange", > ["39"] = "Matte Red", > ["40"] = "Matte Dark Red", > ["41"] = "Matte Orange", > ["42"] = "Matte Yellow", > ["43"] = "Util Red", > ["44"] = "Util Bright Red", > ["45"] = "Util Garnet Red", > ["46"] = "Worn Red", > ["47"] = "Worn Golden Red", > ["48"] = "Worn Dark Red", > ["49"] = "Metallic Dark Green", > ["50"] = "Metallic Racing Green", > ["51"] = "Metallic Sea Green", > ["52"] = "Metallic Olive Green", > ["53"] = "Metallic Green", > ["54"] = "Metallic Gasoline Blue Green", > ["55"] = "Matte Lime Green", > ["56"] = "Util Dark Green", > ["57"] = "Util Green", > ["58"] = "Worn Dark Green", > ["59"] = "Worn Green", > ["60"] = "Worn Sea Wash", > ["61"] = "Metallic Midnight Blue", > ["62"] = "Metallic Dark Blue", > ["63"] = "Metallic Saxony Blue", > ["64"] = "Metallic Blue", > ["65"] = "Metallic Mariner Blue", > ["66"] = "Metallic Harbor Blue", > ["67"] = "Metallic Diamond Blue", > ["68"] = "Metallic Surf Blue", > ["69"] = "Metallic Nautical Blue", > ["70"] = "Metallic Bright Blue", > ["71"] = "Metallic Purple Blue", > ["72"] = "Metallic Spinnaker Blue", > ["73"] = "Metallic Ultra Blue", > ["74"] = "Metallic Bright Blue", > ["75"] = "Util Dark Blue", > ["76"] = "Util Midnight Blue", > ["77"] = "Util Blue", > ["78"] = "Util Sea Foam Blue", > ["79"] = "Uil Lightning blue", > ["80"] = "Util Maui Blue Poly", > ["81"] = "Util Bright Blue", > ["82"] = "Matte Dark Blue", > ["83"] = "Matte Blue", > ["84"] = "Matte Midnight Blue", > ["85"] = "Worn Dark blue", > ["86"] = "Worn Blue", > ["87"] = "Worn Light blue", > ["88"] = "Metallic Taxi Yellow", > ["89"] = "Metallic Race Yellow", > ["90"] = "Metallic Bronze", > ["91"] = "Metallic Yellow Bird", > ["92"] = "Metallic Lime", > ["93"] = "Metallic Champagne", > ["94"] = "Metallic Pueblo Beige", > ["95"] = "Metallic Dark Ivory", > ["96"] = "Metallic Choco Brown", > ["97"] = "Metallic Golden Brown", > ["98"] = "Metallic Light Brown", > ["99"] = "Metallic Straw Beige", > ["100"] = "Metallic Moss Brown", > ["101"] = "Metallic Biston Brown", > ["102"] = "Metallic Beechwood", > ["103"] = "Metallic Dark Beechwood", > ["104"] = "Metallic Choco Orange", > ["105"] = "Metallic Beach Sand", > ["106"] = "Metallic Sun Bleeched Sand", > ["107"] = "Metallic Cream", > ["108"] = "Util Brown", > ["109"] = "Util Medium Brown", > ["110"] = "Util Light Brown", > ["111"] = "Metallic White", > ["112"] = "Metallic Frost White", > ["113"] = "Worn Honey Beige", > ["114"] = "Worn Brown", > ["115"] = "Worn Dark Brown", > ["116"] = "Worn straw beige", > ["117"] = "Brushed Steel", > ["118"] = "Brushed Black steel", > ["119"] = "Brushed Aluminium", > ["120"] = "Chrome", > ["121"] = "Worn Off White", > ["122"] = "Util Off White", > ["123"] = "Worn Orange", > ["124"] = "Worn Light Orange", > ["125"] = "Metallic Securicor Green", > ["126"] = "Worn Taxi Yellow", > ["127"] = "police car blue", > ["128"] = "Matte Green", > ["129"] = "Matte Brown", > ["130"] = "Worn Orange", > ["131"] = "Matte White", > ["132"] = "Worn White", > ["133"] = "Worn Olive Army Green", > ["134"] = "Pure White", > ["135"] = "Hot Pink", > ["136"] = "Salmon pink", > ["137"] = "Metallic Vermillion Pink", > ["138"] = "Orange", > ["139"] = "Green", > ["140"] = "Blue", > ["141"] = "Mettalic Black Blue", > ["142"] = "Metallic Black Purple", > ["143"] = "Metallic Black Red", > ["144"] = "hunter green", > ["145"] = "Metallic Purple", > ["146"] = "Metaillic V Dark Blue", > ["147"] = "MODSHOP BLACK1", > ["148"] = "Matte Purple", > ["149"] = "Matte Dark Purple", > ["150"] = "Metallic Lava Red", > ["151"] = "Matte Forest Green", > ["152"] = "Matte Olive Drab", > ["153"] = "Matte Desert Brown", > ["154"] = "Matte Desert Tan", > ["155"] = "Matte Foilage Green", > ["156"] = "DEFAULT ALLOY COLOR", > ["157"] = "Epsilon Blue" > } > local classes = { > ["0"] = "Compacts", > ["1"] = "Sedans", > ["2"] = "SUVs", > ["3"] = "Coupes", > ["4"] = "Muscle", > ["5"] = "Sports Classics", > ["6"] = "Sports", > ["7"] = "Super", > ["8"] = "Motorcycles", > ["9"] = "Off-road", > ["10"] = "Industrial", > ["11"] = "Utility", > ["12"] = "Vans", > ["13"] = "Cycles", > ["14"] = "Boats", > ["15"] = "Helicopters", > ["16"] = "Planes", > ["17"] = "Service", > ["18"] = "Emergency", > ["19"] = "Military", > ["20"] = "Commercial", > ["21"] = "Trains" > } > RegisterCommand('registerCar', function() > local ped = GetPlayerPed(-1); > local veh = GetVehiclePedIsIn(ped, false); > if veh == 0 then > NotifyClient({ > title = 'CAD - Error', > message = 'You are not in a vehicle!', > type = 'error' > }) > return; > else > local plate = GetVehicleNumberPlateText(veh) > local primary, secondary = GetVehicleColours(veh) > local class = GetVehicleClass(veh) > local model = GetEntityModel(veh) > local realName = GetDisplayNameFromVehicleModel(model) > realName = GetLabelText(realName) > primary = colorNames[tostring(primary)] > class = classes[tostring(class)] > TriggerServerEvent(GetCurrentResourceName() .. > "::registerVeh", primary, plate, > class, realName) > end > end) > > ``` ### SonoranCAD::pushevents:RecordAdded Event fired in the event of a record created in SonoranCAD ```lua theme={null} RegisterNetEvent("SonoranCAD::pushevents:RecordAdded", function(record) print(json.encode(record) end) ``` ### SonoranCAD::pushevents:RecordEdited Event fired in the event of a record edit in SonoranCAD ```lua theme={null} RegisterNetEvent("SonoranCAD::pushevents:RecordEdited", function(record) print(json.encode(record) end) ``` ### SonoranCAD::pushevents:RecordRemoved Event fired in the event of a record deletion in SonoranCAD ```lua theme={null} RegisterNetEvent("SonoranCAD::pushevents:RecordRemoved", function(record) print(json.encode(record) end) ``` ### SonoranCAD::pushevents:CommunityLinkVerified Event fired when a player completes the CAD link code flow and the active game server receives the websocket push event immediately. ```lua theme={null} RegisterNetEvent("SonoranCAD::pushevents:CommunityLinkVerified", function(data) print(data.communityUserId, data.accountUuid) end) ``` This event can be used to close link UI immediately and treat periodic link polling as a backup instead of the primary signal. # Server Functions Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions This page will explain all exported functions from the SonoranCAD Core that can be used on the server side ### CadIsPlayerLinked Checks if a specific CAD API ID exists by sending a request to the API and executing a callback with the result. ```lua theme={null} exports.sonorancad.CadIsPlayerLinked(apiId, callback) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `apiId` | `string` | The CAD API ID to check. If empty or `nil`, the function assumes the ID does not exist. | > | `callback` | `function` | A function executed after the check completes. Receives a single parameter: `exists` (`boolean`). | > [tab] Returns > > This function does not return a value directly. Instead, the result of the API check is passed to the `callback` function. > [tab] Example Usage > > ```lua theme={null} > -- Example: Checking if a CAD API ID exists > local function onApiIdCheck(exists) > if exists then > print("API ID exists!") > else > print("API ID does not exist.") > end > end > > exports.sonorancad.CadIsPlayerLinked("123456", onApiIdCheck) -- Output depends on API response > exports.sonorancad.CadIsPlayerLinked("", onApiIdCheck) -- Output: "API ID does not exist." > ``` *** ### GetPluginConfig Provides access to a specific plugin's configuration using the plugin name. ```lua theme={null} exports.sonorancad.GetPluginConfig(submoduleName) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `submoduleName` | `string` | The name of the submodule whose configuration is to be retrieved. | > [tab] Returns > > | Type | Description | > | - | - | > | `table` or `nil` | • A table containing the configuration for the specified plugin. • Returns `nil` if the plugin name is invalid or if no configuration exists. | > [tab] Example Usage > > ```lua theme={null} > -- Example: Retrieving a plugin's configuration > local pluginConfig = exports.sonorancad.GetPluginConfig("callcommands") > > if pluginConfig then > print("Plugin Config:", json.encode(pluginConfig)) > else > print("Plugin not found or no configuration available.") > end > ``` *** ### GetUnitByPlayerId Retrieves the unit information associated with a player based on their identifiers. ```lua theme={null} exports.sonorancad.GetUnitByPlayerId(player) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `player` | `PlayerSource` | The player ID for whom the associated unit is being retrieved. | > [tab] Returns > > | Type | Description | > | - | - | > | `table` or `nil` | • A table representing the unit information for the player if found in `UnitCache`. • `nil` if no associated unit is found. | > [tab] Example Usage > > ```lua theme={null} > -- Example: Getting the unit associated with a player > local unit = GetUnitByPlayerId(1) > > if unit then > print("Unit found:", json.encode(unit)) > else > print("No unit associated with this player.") > end > ``` ### GetUnitCache Returns the global `UnitCache` table containing unit data. ```lua theme={null} exports['sonorancad']:GetUnitCache(includeDispatchers, callback) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `includeDispatchers` | `boolean` | Include an array of active dispatchers as well | > | `callback` | `function` | Optional callback that receives `unitCache, dispatchers`. Use this when calling the export from another CFX runtime or when callback-style handling is preferred. | > [tab] Returns > > | Type | Description | > | - | - | > | `table` | • The entire `UnitCache` table, which stores unit-related data. • If `UnitCache` is empty or uninitialized, an empty table is returned. • If `includeDispatchers` is `true`, will return `arg1` - Standard `UnitCache` table, `arg2`- Array of dispatchers online. If `false` will only return standard `UnitCache` array. • When `callback` is provided, the same values are passed to the callback as `unitCache, dispatchers`. If `includeDispatchers` is `false`, the callback receives an empty dispatcher table for the second argument. • Dispatchers will be shown regardless if they are in-game or not. To check if a dispatcher is also in-game use the `isInGame` flag (`boolean`) on the unit | > [tab] Example Usage > > ```lua theme={null} > -- Example: Retrieving and inspecting the UnitCache > local unitCache = exports['sonorancad']:GetUnitCache() > > if next(unitCache) then > print("UnitCache contains data:", json.encode(unitCache)) > else > print("UnitCache is empty or uninitialized.") > end > > -- Getting dispatchers as well > local unitCache, dispatchers = exports['sonorancad']:GetUnitCache(true) > > if next(unitCache) then > print("UnitCache contains data:", json.encode(unitCache)) > else > print("UnitCache is empty or uninitialized.") > end > > if next(dispatchers) then > print("Dispatchers contains data: ", json.encode(dispatchers)) > else > print("There are no dispatchers online.") > end > > -- Callback usage is recommended for resources that need callback-style CFX exports > exports['sonorancad']:GetUnitCache(true, function(unitCache, dispatchers) > print("Received cached units:", json.encode(unitCache)) > print("Received cached dispatchers:", json.encode(dispatchers)) > end) > ``` For in-game integrations, `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](/cad/api-integration/api-endpoints-v2/emergency/units/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](/cad/api-integration/getting-started/setting-your-api-id) and the FiveM resource's [LINKING\_V2.md](https://github.com/Sonoran-Software/SonoranCADFiveM/blob/master/sonorancad/LINKING_V2.md). Typical pattern: ```lua theme={null} local unitCache = exports['sonorancad']:GetUnitCache() for _, unit in pairs(unitCache) do if unit.data and unit.data.communityUserId == "license:abc123" then print(("Matched CAD unit %s to linked player"):format(unit.data.unitNum)) end end ``` ### registerEndpoints Registers API endpoints for use with the `sonorancad` resource. ```lua theme={null} exports.sonorancad.registerEndpoints() ``` > [tab] Parameters > > None > [tab] Returns > > This function does not return a value. It registers API endpoints with `sonorancad`. > [tab] Example Usage > > ```lua theme={null} > -- Example: Registering the endpoints > exports.sonorancad.registerEndpoints() > print("SonoranCAD API endpoints registered.") > > ``` ### addBlip Adds a new blip to the map using the SonoranCAD integration. ```lua theme={null} exports.sonorancad.addBlip(coords, colorHex, subType, toolTip, icon, dataTable, cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `coords` | `vec2 (table)` | A table containing `x` and `y` coordinates for the blip location. | > | `colorHex` | `string` | The hexadecimal color code (e.g., `"#FF0000"`) for the blip. | > | `subType` | `string` | The subtype of the blip (e.g., `police`, `fire`, etc.). | > | `toolTop` | `string` | The tooltip text that appears when hovering over the blip. | > | `icon` | `string` | The icon for the blip (e.g., a specific image or identifier for visual context). | > | `dataTable` | `table` | Additional data associated with the blip, stored in a custom table. | > | `cb` | `function` | (Optional) A callback function executed with the API response. | > [tab] Returns > > This function does not return a value directly. The response from the API request is passed to the `cb` callback function if provided. > [tab] Usage Example > > ```lua theme={null} > -- Example: Adding a new blip to the map > exports.sonorancad.addBlip( > { x = 123.45, y = 678.90 }, > "#FF0000", > "police", > "Police Station", > "police-icon", > { info = "Main Headquarters" }, > function(response) > if response.success then > print("Blip successfully added!") > else > print("Failed to add blip:", response.error) > end > end > ) > ``` ### addBlips Adds multiple blips to the map using the SonoranCAD integration. ```lua theme={null} exports.sonorancad.addBlips(blips, cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `blips` | `table` | A table containing multiple blip data objects to be added. (See [addBlip](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#addblip) for blip structure) | > | `cb` | `function` | (Optional) A callback function executed with the API response. | > [tab] Returns > > This function does not return a value directly. The response from the API request is passed to the `cb` callback function if provided. > [tab] Example Usage > > ```lua theme={null} > -- Example: Adding multiple blips to the map > local blips = { > { > blip = { > id = -1, > subType = "police", > coordinates = { x = 123.45, y = 678.90 }, > icon = "police-icon", > color = "#FF0000", > tooltip = "Police Station", > data = { info = "Main Headquarters" } > } > }, > { > blip = { > id = -1, > subType = "fire", > coordinates = { x = 321.65, y = 987.10 }, > icon = "fire-icon", > color = "#FFA500", > tooltip = "Fire Department", > data = { info = "Fire HQ" } > } > } > } > > exports.sonorancad.addBlips(blips, function(response) > if response.success then > print("Blips successfully added!") > else > print("Failed to add blips:", response.error) > end > end) > > ``` ### removeBlip Removes one or more blips from the map using the SonoranCAD integration. ```lua theme={null} exports.sonorancad.removeBlip(ids, cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `ids` | `table` | A table containing the IDs of the blips to be removed. | > | `cb` | `function` | (Optional) A callback function executed with the API response. | > [tab] Returns > > This function does not return a value directly. The response from the API request is passed to the `cb` callback function if provided. > [tab] Example Usage > > ```lua theme={null} > -- Example: Removing blips by their IDs > local blipIds = { 101, 102, 103 } > > exports.sonorancad.removeBlip(blipIds, function(response) > if response.success then > print("Blips successfully removed!") > else > print("Failed to remove blips:", response.error) > end > end) > > ``` ### modifyBlipd Modifies an existing blip's data on the map using the SonoranCAD integration. ```lua theme={null} exports.sonorancad.modifyBlipd(blipId, dataTable) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `blipId` | `number` | The unique ID of the blip to be modified. | > | `dataTable` | `table` | A table containing the new data for the blip. See [addBlip](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#addblip) for blip data structure | > [tab] Returns > > This function does not return a value. The request is sent to the `MODIFY_BLIP` endpoint. > [tab] Example Usage > > ```lua theme={null} > -- Example: Modifying an existing blip's data > local blipId = 101 > local newData = { > color = "#00FF00", > tooltip = "Updated Tooltip", > coordinates = { x = 200.0, y = 300.0 } > } > > exports.sonorancad.modifyBlipd(blipId, newData) > print("Blip modification request sent.") > > ``` ### getBlips Fetches the list of all active blips from the SonoranCAD system. ```lua theme={null} exports.sonorancad.getBlips(cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `cb` | `function` | (Optional) A callback function executed with the API response containing the blips. | > [tab] Returns > > This function does not return a value directly. The response from the API request is passed to the `cb` callback function if provided. > [tab] Example Usage > > ```lua theme={null} > -- Example: Fetching all active blips > exports.sonorancad.getBlips(function(response) > if response.success then > print("Active Blips:", json.encode(response.data)) > else > print("Failed to fetch blips:", response.error) > end > end) > > ``` ### removeWithSubtype Removes all blips of a specific subtype from the map using the SonoranCAD system. ```lua theme={null} exports.sonorancad.removeWithSubtype(subType, cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `subType` | `string` | The subtype of the blips to be removed (e.g., `police`, `fire`, etc.). | > | `cb` | `function` | (Optional) A callback function executed with the API response containing the blips. | > [tab] Returns > > This function does not return a value directly. The response from the `removeBlip` API request is passed to the `cb` callback function if provided. > [tab] Example Usage > > ```lua theme={null} > -- Example: Removing all police blips > exports.sonorancad.removeWithSubtype("police", function(response) > if response.success then > print("Police blips successfully removed!") > else > print("Failed to remove blips:", response.error) > end > end) > > ``` ### call911 The `call911` function facilitates the creation of a 911 emergency call within the SonoranCAD system by sending a structured API request. ```lua theme={null} exports.sonorancad.call911(caller, location, description, postal, plate, cb, coords, customMeta, deleteAfter) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `caller` | `string` | Name of the individual initiating the call. | > | `location` | `string` | Description of the call's location (e.g., street address). | > | `description` | `string` | Detailed information about the emergency situation. | > | `postal` | `string` | Postal code corresponding to the call's location. | > | `plate` | `string` | (Optional) License plate number associated with the call, if applicable. | > | `cb` | `function` | (Optional) Callback function to handle the API response. | > | `coords` | `table` | A table containing the X and Y coordinates of the emergency call's location, typically sourced from in-game player or vehicle position. This is used to place the call accurately on the live map in CAD systems or dispatch plugins. | > | `customMeta` | `table` | A flexible table for including any custom metadata relevant to the emergency call. | > | `deleteAfter` | `int` | Number of minutes to automatically remove the call from CAD after | > [tab] Returns > > This function does not return a value directly. The response from the API request is passed to the `cb` callback function, if provided. > [tab] Example Usage > > ```lua theme={null} > -- Example: Initiating a 911 call > exports.sonorancad.call911( > "Jane Doe", > "1234 Elm Street", > "There is a fire in the building.", > "56789", > nil, > function(response) > if response.success then > print("911 call successfully placed.") > else > print("Failed to place 911 call:", response.error) > end > end, > { x = 84.49, y = 953.593 }, > { > someMetaData = "yes this is metadata" > } > ) > ``` ### addTempBlipData Temporarily modifies a blip's data in the SonoranCAD system and then reverts it back to its original data after a specified duration. ```lua theme={null} exports.sonorancad.addTempBlipData(blipId, blipData, waitSeconds, returnToData) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `blipId` | `number` | The unique ID of the blip to modify. | > | `blipData` | `table` | A table containing the temporary data to apply to the blip. See [addBlip](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#addblip) for blip data structure | > | `waitSeconds` | `number` | The duration in seconds for which the temporary data will be applied. | > | `returnToData` | `table` | A table containing the original data to revert the blip to after the duration expires. See [addBlip](/cad/integration-plugins/in-game-integration/framework-development-documentation/server-functions#addblip) for blip data structure | > [tab] Returns > > This function does not return a value directly. The data modification happens asynchronously using API requests. > [tab] Example Usage > > ```lua theme={null} > -- Example: Temporarily modifying a blip's color and tooltip > local tempData = { > color = "#FF0000", > tooltip = "Temporary Alert" > } > > local originalData = { > color = "#00FF00", > tooltip = "Original Tooltip" > } > > exports.sonorancad.addTempBlipData(101, tempData, 10, originalData) > print("Blip temporarily modified; it will revert in 10 seconds.") > > ``` ### addTempBlipColor Temporarily changes a blip's color in the SonoranCAD system and reverts it to its original color after a specified duration. ```lua theme={null} exports.sonorancad.addTempBlipData(blipId, color, waitSeconds, returnToColor) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `blipId` | `number` | The unique ID of the blip to modify. | > | `color` | `string` | The temporary hexadecimal color code to apply to the blip (e.g., `"#FF0000"`) | > | `waitSeconds` | `number` | The duration in seconds for which the temporary data will be applied. | > | `returnToColor` | `string` | The original hexadecimal color code to revert the blip to after the duration expires | > [tab] Returns > > This function does not return a value directly. The color modification happens asynchronously using API requests. > [tab] Example Usage > >
>   \`-- Example: Temporarily changing a blip's color to red
>   local tempColor = "#FF0000"
>   local originalColor = "#00FF00"
>
>   exports.sonorancad.addTempBlipColor(101, tempColor, 10, originalColor)
>   print("Blip color temporarily changed; it will revert in 10 seconds.")
>
>   \`
> 
### remove911 Removes an active 911 call from the SonoranCAD system. ```lua theme={null} exports.sonorancad.remove911(callId) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `callId` | `string` | The unique ID of the 911 call to be removed. | > [tab] Returns > > This function does not return a value. The removal of the 911 call is handled asynchronously through the API request. > [tab] Example Usage > >
>   \`-- Example: Removing a 911 call
>   local callId = "12345"
>
>   exports.sonorancad.remove911(callId)
>   print("Request to remove 911 call sent.")
>   \`
> 
### addCallNote Adds a note to an existing 911 call in the SonoranCAD system. ```lua theme={null} exports.sonorancad.addCallNote(callId, note) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `callId` | `string` | The unique ID of the 911 call to be removed. | > | `note` | `string` | The content of the note to be added, typically describing the caller. | > [tab] Returns > > This function does not return a value. The addition of the call note is handled asynchronously through the API request. > [tab] Example Usage > > ``` > -- Example: Adding a note to an existing 911 call > local callId = "12345" > local note = "Caller reported a fire at the intersection of 5th and Main." > > exports.sonorancad.addCallNote(callId, note) > print("Request to add note to 911 call sent.") > > ``` ### setCallPostal Updates the postal code of an existing 911 call in the SonoranCAD system. ```lua theme={null} exports.sonorancad.setCallPostal(callId, postal) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `callId` | `string` | The unique ID of the 911 call to be removed. | > | `postal` | `string` | The new postal code to assign to the 911 call. | > [tab] Returns > > This function does not return a value. The postal code update is handled asynchronously through the API request. > [tab] Example Usage > > ```lua theme={null} > -- Example: Updating the postal code of an existing 911 call > local callId = "12345" > local postal = "56789" > > exports.sonorancad.setCallPostal(callId, postal) > print("Request to update postal code sent.") > ``` ### performLookup Performs a lookup in the SonoranCAD system for information associated with a license plate. ```lua theme={null} exports.sonorancad.performLookup(plate, cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `plate` | `string` | The license plate number to look up in the SonoranCAD system. | > | `cb` | `function` | (Optional) A callback function executed with the API response. | > [tab] Returns > > This function does not return a value directly. The response from the API request is passed to the `cb` callback function if provided. > [tab] Example Usage > > ```lua theme={null} > -- Example: Performing a lookup for a license plate > local plate = "ABC123" > > exports.sonorancad.performLookup(plate, function(response) > if response.success then > print("Lookup successful:", json.encode(response.data)) > else > print("Lookup failed:", response.error) > end > end) > > ``` ### createDispatchCall Creates a dispatch call in SonoranCAD using the v2 dispatch request format. ```lua theme={null} exports.sonorancad:createDispatchCall(data, cb) ``` > [tab] Parameter > > | Parameter | Type | Description | > | - | - | - | > | `data` | `table` | A v2 create-dispatch request. | > | `cb` | `function` | Optional callback receiving `(result, success)`. | > > The `data` table supports the same fields as the [Create Dispatch Call v2 endpoint](/cad/api-integration/api-endpoints-v2/emergency/calls/create-dispatch-call). `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. > [tab] Return > > This function does not return a value directly. If provided, `cb` receives a result string and a boolean indicating whether the request succeeded. > [tab] Example Usage > > ```lua theme={null} > exports.sonorancad:createDispatchCall({ > origin = 0, > status = 0, > priority = 1, > block = "123", > address = "1234 Elm Street", > postal = "56789", > title = "Structure Fire", > code = "10-70", > description = "Caller reports flames visible from the second floor.", > notes = {}, > communityUserIds = {}, -- Empty creates the call without an attached unit. > metaData = { > source = "integration", > x = "425.1", > y = "-979.2", > z = "30.7" > } > }, function(result, success) > if success then > print(result) > else > print("Failed to create dispatch call:", result) > end > end) > ``` ### cadNameLookup Perform a name lookup in CAD (Requires "Lookups" submodule to be enabled) > [!WARNING] > > This function will not work if you do not have the "Lookups" submodule enabled. The submodule is enabled by default. ```lua theme={null} exports.sonorancad.cadNameLookup(first, last, mi, callback, autoLookup) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `first` | `string` | First Name | > | `last` | `string` | Last Name | > | `mi` | `string` | Middle Initial | > | `callback` | `function` | Callback function to handle the API response. | > | `autoLookup` | `string` | API ID of the user to perform a lookup via API ID rather than name | > [tab] Return > > This function will return the custom records related to the name as denoted in the [Custom Records](/cad/api-integration/api-endpoints-v2/general/records) section > [tab] Example Usage > >
>   `exports.sonorancad.cadNameLookup("Jordan", "Green", "J", function(record)
>         print(json.encode(record))
>     end, "123456789123456789")
>     `
> 
### cadPlateLookup Perform a plate lookup in CAD (Requires "Lookups" submodule to be enabled) > [!WARNING] > > This function will not work if you do not have the "Lookups" submodule enabled. The submodule is enabled by default. ```lua theme={null} exports.sonorancad.cadPlateLookup(plate, basicFlag, callback, autoLookup) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `plate` | `string` | Plate number to lookup | > | `basicFlag` | `null` | Depreciated parameter, can be set to `nil` | > | `callback` | `function` | Callback function to handle the API response. | > | `autoLookup` | `string` | API ID of the user to perform a lookup via API ID rather than name | > [tab] Return > > This function will return the custom records related to the plate as denoted in the [Custom Records](/cad/api-integration/api-endpoints-v2/general/records) section > [tab] Example Usage > > ```lua theme={null} > exports.sonorancad.cadPlateLookup("ABC123", function(record) > print(json.encode(record)) > end, "123456789123456789") > ``` ### 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. > [!NOTE] > > 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. ```lua theme={null} exports.sonorancad.cadGetPlateInformation(plate, callback, options) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `plate` | `string` | Plate number to look up. Leading and trailing whitespace is trimmed before caching and lookup. | > | `callback` | `function` | Callback invoked as `callback(regData, vehData, charData, boloData, warrantData)`. | > | `options` | `table` | Optional settings for CAD popup behavior and cache control. | > | `options.autoLookup` | `string` | Community user ID to trigger the CAD-side auto-open lookup behavior. | > | `options.cacheTtlMs` | `number` | Override the cache lifetime in milliseconds. Defaults to `60000`. | > | `options.bypassCache` | `boolean` | When `true`, skips cache reads and writes for this request. | > | `options.forceRefresh` | `boolean` | When `true`, ignores any existing cached entry and refreshes it from CAD. | > [tab] Returns > > This function does not return values directly. The callback receives five parsed arrays: > > * `regData`: matching registration records > * `vehData`: matching vehicle record data > * `charData`: matching owner/civilian record data > * `boloData`: active BOLO flags for the plate > * `warrantData`: active warrant flags for the plate > [tab] Example Usage > > ```lua theme={null} > exports.sonorancad.cadGetPlateInformation("ABC123", function(regData, vehData, charData, boloData, warrantData) > print(("Registrations: %s"):format(json.encode(regData))) > print(("Vehicles: %s"):format(json.encode(vehData))) > print(("Owners: %s"):format(json.encode(charData))) > print(("BOLO flags: %s"):format(json.encode(boloData))) > print(("Warrant flags: %s"):format(json.encode(warrantData))) > end, { > autoLookup = "123456789123456789", > cacheTtlMs = 60000 > }) > ``` ### getAllWarrantsAndBolos Retrieve all active and inactive warrants and bolos with pagination support ```lua theme={null} exports.sonorancad.getAllWarrantsAndBolos(options, cb) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `options` | `table` | Options for pagination and filtering. If omitted, defaults are used (Optional) | > | `options.pageSize` / `options.limit` | `number` | Page size per API request. Default `100` | > | `options.offset` | `number` | Starting offset for pagination. Default `0` | > | `options.maxPages` / `options.pageLimit` / `options.pages` | `number` | Max number of pages to fetch before stopping (caps total results). Default: no cap | > | `options.statuses` / `options.status` | `table` \| `string` \| `number` | Status filter(s). Defaults to `{0, 1}` (open + closed). Accepts numeric values or strings: `"open"`, `"active"`, `"closed"`, `"inactive"`, `"pending"`, `"approved"`, `"rejected"` | > | `options.types` | `table` | Record types to include. Default `{2, 3}` (Warrant + BOLO) | > | `cb` | `function` | Callback invoked as `cb(records, meta)` where records is the aggregated list and `meta` includes paging info or an error. | > [tab] Example Usage > > ```lua theme={null} > exports['sonorancad']:getAllWarrantsAndBolos(function(records, meta) > print(json.encode(records)) > print(json.encode(meta)) > end) > > ``` > [tab] Returns > > ```lua theme={null} > -- records (array) > { > { > id = 12345, > type = 3, -- BOLO > name = "BOLO", > sections = { > { > category = 1, > label = "Flags", > fields = { > { uid = "flags", data = { flags = { "Armed", "Violent" } } } > } > }, > { > category = 0, > label = "Vehicle Information", > fields = { > { uid = "plate", value = "ABC123" }, > { uid = "make", value = "Dodge" }, > { uid = "model", value = "Charger" }, > { uid = "color", value = "Black" } > } > } > } > }, > { > id = 67890, > type = 2, -- Warrant > name = "Warrant", > sections = { > { > category = 1, > label = "Flags", > fields = { > { uid = "flags", data = { flags = { "Felony", "No Bond" } } } > } > }, > { > category = 0, > label = "Civilian Information", > fields = { > { uid = "first", value = "Jane" }, > { uid = "last", value = "Doe" }, > { uid = "dob", value = "01/01/1990" } > } > } > } > } > } > > -- meta > { > ok = true, > pages = 2, > limit = 100, > offset = 0, > statuses = { 0, 1 } > } > ``` # Shared Functions Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/framework-development-documentation/shared-functions This page will explain all exported functions from the SonoranCAD Core that can be used on the client and server side ### isPluginLoaded Checks if a specific plugin is loaded by searching through the `submodules` table. ```lua theme={null} exports.sonorancad.isPluginLoaded(submoduleName) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `submoduleName` | `string` | The name of the submodule to check for in the `submodules` table. | > [tab] Returns > > | Type | Description | > | - | - | > | `boolean` | `true` if the specified submodule (`pluginName`) is found in the `submodules` table. `false` otherwise. | > [tab] Usage Example > > ```lua theme={null} > submodules = { "callcommands", "dispatchnotify", "civintegration" } > > local isLoaded = isPluginLoaded("dispatchnotify") > print(isLoaded) -- Output: true > > local isLoaded2 = isPluginLoaded("vehreg") > print(isLoaded2) -- Output: false > ``` *** ### shallowcopy Creates a shallow copy of a table or directly returns non-table values. ```lua theme={null} exports.sonorancad.shallowcopy(data) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `orig` | `any` | The value or table to copy. Can be of any type: table, string, number, etc. | > [tab] Returns > > | Type | Description | > | - | - | > | `any` | If `orig` is a table: Returns a new table with the same key-value pairs as `orig`. If `orig` is not a table (e.g., a number, string, boolean): Returns the value directly. | > [tab] Usage Example > > ```lua theme={null} > -- Example 1: Shallow copying a table > local original = { a = 1, b = 2, c = { 3, 4 } } > local copy = exports.sonorancad.shallowcopy(original) > > print(copy.a) -- Output: 1 > print(copy.b) -- Output: 2 > print(copy.c) -- Output: table: 0x... (same reference as original.c in shallow copy) > > -- Example 2: Copying a non-table value > local value = 42 > local valueCopy = exports.sonorancad.shallowcopy(value) > print(valueCopy) -- Output: 42 > > ``` *** ### stringsplit Splits a string into substrings based on a specified delimiter. ```lua theme={null} exports.sonorancad.stringsplit(inputstr, sep) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `inputstr` | `string` | The input string that will be split into substrings based on a specified delimiter (`sep`) | > | `sep` | `string` | (Optional) If not provided, the default is `"%s"`, which matches any whitespace character | > [tab] Returns > > | Type | Description | > | - | - | > | `table` | The table contains the substrings of `inputstr` split by the delimiter `sep`. The substrings are stored sequentially starting at index `1` | > [tab] Usage Example > > ```lua theme={null} > local result = exports.sonorancad.stringsplit("Hello,World,Lua", ",") > -- result = { "Hello", "World", "Lua" } > > local result2 = exports.sonorancad.stringsplit("One Two Three") > -- result2 = { "One", "Two", "Three" } (uses default separator: whitespace) > > ``` *** ### findIndex Searches for a specific identifier in the `LocationCache` table and returns the index of the first matching entry. ```lua theme={null} exports.sonorancad.findIndex(identifier) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `identifier` | `any` | The identifier to search for, compared against the `apiId` field of each entry in `LocationCache`. | > [tab] Returns > > | Type | Description | > | - | - | > | `number` or `nil` | The index (`i`) of the first entry in `LocationCache` whose `apiId` matches `identifier`. `nil` if no matching entry is found | > [tab] Usage Example > > ```lua theme={null} > -- Example: Searching for an identifier in LocationCache > LocationCache = { > { apiId = 101, name = "LocationA" }, > { apiId = 202, name = "LocationB" }, > { apiId = 303, name = "LocationC" }, > } > > local index = exports.sonorancad.findIndex(202) > print(index) -- Output: 2 > > local notFound = exports.sonorancad.findIndex(404) > print(notFound) -- Output: nil > ``` *** ### GetIdentifiers Extracts and organizes player identifiers into a key-value table format. ```lua theme={null} exports.sonorancad.GetIdentifiers(player) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `player` | `PlayerSource` | The player source ID for whom the identifiers are being retrieved. | > [tab] Returns > > | Type | Description | > | - | - | > | `table` | A key-value table where the keys are identifier types (e.g., `steam`, `license`, `discord`) and the values are the corresponding identifier strings. | > [tab] Example Usage > > ```lua theme={null} > local playerIdentifiers = exports.sonorancad.GetIdentifiers(1) > > -- Output > -- playerIdentifiers = { > -- steam = "110000112345678", > -- license = "abcdef1234567890", > -- discord = "123456789012345678" > -- } > > print(playerIdentifiers.steam) -- Output: 110000112345678 > print(playerIdentifiers.license) -- Output: abcdef1234567890 > print(playerIdentifiers.discord) -- Output: 123456789012345678 > > ``` *** ### PerformHttpRequestS Simplifies making HTTP requests by providing a wrapper around `exports["sonorancad"]:HandleHttpRequest`. ```lua theme={null} exports.sonorancad.PerformHttpRequestS(url, cb, method, data, headers) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `url` | `string` | The URL to which the HTTP request is sent. | > | `cb` | `function` | The callback function executed when the HTTP request completes. | > | `method` | `string` | The HTTP method to use (e.g., `GET`, `POST`, `PUT`, `DELETE`). | > | `data` | `string` | (Optional) The data to send with the HTTP request. Defaults to an empty string. | > | `headers` | `table` | (Optional) A table containing custom headers for the HTTP request. Defaults to include `X-User-Agent`. | > [tab] Returns > > | Type | Description | > | - | - | > | `none` | This function does not directly return a value. Results are handled asynchronously via the `cb` callback function. | > [tab] Usage Example > > ```lua theme={null} > -- Example: Performing a POST request with custom data > local function callback(statusCode, response) > print("Status:", statusCode) > print("Response:", response) > end > > exports.sonorancad.PerformHttpRequestS( > "https://api.example.com/data", > callback, > "POST", > '{"key": "value"}', > { ["Content-Type"] = "application/json" } > ) > > ``` *** ### has\_value Checks if a specific value exists in a table. ```lua theme={null} exports.sonorancad.has_value(tab, val) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `tab` | `table` | The table to search for the value. | > | `val` | `any` | The value to search for within the table. | > [tab] Returns > > | Type | Description | > | - | - | > | `boolean` | `true` if `val` is found in the table tab. `false` if `val` is not found, or if tab is nil. | > [tab] Usage Example > > ```lua theme={null} > -- Example 1: Checking if a value exists in a table > local myTable = { "apple", "banana", "cherry" } > > local exists = exports.sonorancad.has_value(myTable, "banana") > print(exists) -- Output: true > > local notExists = exports.sonorancad.has_value(myTable, "grape") > print(notExists) -- Output: false > > -- Example 2: Handling a nil table > local nilTable = nil > local result = exports.sonorancad.has_value(nilTable, "value") > print(result) -- Output: false (with debugLog: "nil passed to has_value, ignore") > ``` *** ### compareVersions Compares two semantic version strings. ```lua theme={null} exports.sonorancad.compareVersions(version1, version2) ``` > [tab] Parameters > > | Parameter | Type | Description | > | - | - | - | > | `version1` | `string` | The first version string (e.g., `1.0.0`). | > | `version2` | `string` | The second version string (e.g., `1.0.1`). | > [tab] Returns > > | Type | Description | > | - | - | > | `table` | • `result`: `true` if `version1` is greater than `version2`, `false` otherwise. • `parsedVersion1`: The weighted numeric representation of `version1`. • `parsedVersion2`: The weighted numeric representation of `version2`. • `version1`: The original `version1` string. • `version2`: The original `version2` string. | > [tab] Usage Example > > ```lua theme={null} > -- Example: Comparing two versions > local comparison = exports.sonorancad.compareVersions("1.2.3", "1.1.10") > > print(comparison.result) -- Output: true > print(comparison.parsedVersion1) -- Output: 10203 > print(comparison.parsedVersion2) -- Output: 10110 > ``` # Link User In-Game Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/link-user-in-game Easily link your in-game FiveM user to Sonoran CAD by running the /link command. ## Linking FiveM to Sonoran CAD Sonoran CAD requires players to link their in-game identity to a CAD account in order to match units and other integration features correctly. Players can do this by running the `/link` command in-game and selecting the **Link CAD** button. This opens an external browser to `sonorancad.com/id`, where the link code is automatically applied. ![](https://docs-assets.sonoransoftware.com/sha256/5c/5c3bf04ec7973ae5effb24f098f2c3278f8873c081ac26970db0d564fa29b6c1.png) ![](https://docs-assets.sonoransoftware.com/sha256/b7/b7562ac2fa174f3b920bc2245b70995490435758e7cea465cbc4b4b767e52889.png) > [accordion] Developer Information > > Once completed, the player’s FiveM license ID (or the configured `primaryIdentifier`) is associated with the `communityUserId` field via the API. > > Learn more about [mapping players to CAD users](/cad/api-integration/getting-started/setting-your-api-id). ### Enforce Player Links Communities can optionally configure the [**Force Register**](/cad/integration-plugins/in-game-integration/available-plugins/forcereg) submodule to help remind, or even force, users to link their CAD before playing. The [tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet) can also be used to automatically link the user when they login. # Submodule Configuration Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/submodule-configuration This guide covers the activation process for a general submodule. ## Install the Resource If you have not already, [install the base FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation). ## Activating a Submodule The [FiveM resource](/cad/integration-plugins/in-game-integration/fivem-installation) contains multiple "submodules" for each integration. These can be individually enabled/disabled and configured. > [card] [available-plugins](/cad/integration-plugins/in-game-integration/available-plugins) This example uses the `postals` submodule. ### Configure and Enable the Submodule * Navigate to the `\sonorancad\configuration` folder and locate the configuration file for your desired submodule. * For this example we will be using the `sonrad_config.lua` file (name depends on the submodule). * **Enable** the submodule by changing the `enabled` variable from `false` to `true` in the submodule config. ![](https://docs-assets.sonoransoftware.com/sha256/0e/0e4f343e0e9e563d545f8bea3153f4aacca20fab75bb1ece2867b64d04f9ef8a.png) ### Rename and Save #### Rename While the pre-configured resource should already have the file renamed, you may need to remove `.dist` from the configuration file name. Ex: `sonrad_config.dist.lua` > `sonrad_config.lua` #### Save Save the lua file's changes. ### Restart Sonoran CAD Restart the `sonorancad` resource by entering `ensure sonorancad` in the server console and enjoy your submodule! # Submodule Troubleshooting Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/submodule-configuration/plugin-troubleshooting View some basic troubleshooting steps when activating Sonoran CAD submodules. ## Core Commands Sonoran CAD's core includes powerful built-in commands. **These commands are entered into your server console.** **Ex:** A [support member](https://support.sonoransoftware.com) may ask you to send detailed logging information to them. They will give you the specific ID number to enter. (ex: 123)\ Entering `sonorancad support 123` in your server console will send your plugin configuration directly to our support application. For ERS issues, run `sonorancad ers` in the **server console** first. It shows the ERS connection, callout-list status, and the most recent failure. Use the [ERS troubleshooting guide](/cad/integration-plugins/in-game-integration/available-plugins/ers#troubleshooting) to check the reported problem. Support uploads include these ERS details automatically. | Command | Description | | - | - | | sonorancad debugmode | Enables detailed debug logging | | sonorancad info | Displays version and config information | | sonorancad support \<*NUMBER*> | Sends important information for [customer support](https://support.sonoransoftware.com) purposes.The *NUMBER* parameter will be provided to you by a support team member.Ex: `sonorancad support 123` sends us your plugin information for help. | | sonorancad plugin \<*NAME*> | Displays plugin informationEx: `sonorancad plugin callcommands` | ## Quick Checks ### Ensure your community is on a paid version. Your community's subscription may have expired and failed to renew. Do a quick check on your [community limits](/cad/tutorials/getting-started/view-your-limits) to make sure your community version includes the submodule you are trying to install. > [!NOTE] > > Each submodule guide lists the required subscription version at the top. ### Ensure your submodule is enabled Be sure to follow the [core installation](/cad/integration-plugins/in-game-integration/fivem-installation) and [submodule activation](/cad/integration-plugins/in-game-integration/submodule-configuration) guides thoroughly, depending on the specific submodule you are trying to activate. \ Make sure you have not forgotten to enable the submodule in the plugin config file! Enter `sonorancad info` into your server console. ![Sonoran Info - Disabled Plugins](https://docs-assets.sonoransoftware.com/sha256/d0/d03b3d8160e23fce9acd563f6d368dd5694a5db16d7a475348b12ca3ba1fde47.png) If the submodule you are having trouble with is listed as DISABLED, you may have forgotten to enable it in the submodule configuration. ![The "enabled" field should be set to "true"](https://docs-assets.sonoransoftware.com/sha256/5a/5a50d9ddabd5017566cfebc57988bcea3d6aad4dbf3946d43bfb2fa051943d7a.png) ### Ensure your API ID is set correctly. Ensure you have set your [API ID in the CAD](/cad/api-integration/getting-started/setting-your-api-id) using the value from the [API ID submodule](/cad/integration-plugins/in-game-integration/available-plugins/api-id-checker). ## Debug Mode The SonoranCAD core includes a powerful debug mode. Enable this by entering `sonorancad debugmode` into your server console. Debug mode will print out additional error information and JSON data for all API calls or push events. ### Check your API ID: For plugins that require your individual CAD user account to have the API ID set (live map, unit locations, panic, etc.) you can view this data in the console output. The image below shows an API Call being made from the server to Sonoran CAD. This API call is type `UNIT_LOCATION` and includes all the data necessary. Ensure the `APIID` listed in the API call matches the [API ID set in your CAD's user account](/cad/api-integration/getting-started/setting-your-api-id). ![Debug Mode - Unit Location API Call](https://docs-assets.sonoransoftware.com/sha256/e3/e3f582289fde22fb9c9e6f9d6fdce1cb02857b4f9b72df37c32588c203786c48.png) ### Check the Community ID and API Key Your community ID and API key is also listed in the debug API call information. Be sure that the [community ID and API key](/cad/api-integration/getting-started/retrieving-your-credentials) are correct. ## Still Having Trouble? If you're still having trouble, our dedicated support team is here to help. [Reach out to us and generate a support ticket at any time](https://support.sonoransoftware.com). ## Common Errors ### Error: Ensure config.json is present Your framework or plugin config is not correctly named `config.json`. Ensure that is has been spelt correctly, is not `config.json.json`, etc. You may need to open the file in a text editor to more easily see the file extension, and ensure that it is correctly named as `config.json`. ### Community Has Been API Blacklisted The CAD backend will temporarily "blacklist" (deny) all API calls if multiple requests are made with an invalid format. #### Causes * Third-party or custom integration scripts may not be utilizing our API correctly. Try disabling them to rule out the issue. * A bug with one of our [FiveM submodules](/cad/integration-plugins/in-game-integration/available-plugins). #### Diagnosis 1. Enable debug mode on your FiveM server by entering the server command `sonorancad debugmode`. All API calls made will have the full JSON payload printed in your server console. 2. Wait for your next API blacklist notice. In your server console, you should see multiple failed/errored API calls at the same time as your blacklist. The JSON will show the full, bad data being sent to Sonoran CAD. Based on the `type` of these API calls, you can narrow down the source to a third-party/custom script or one of our FiveM submodules. 1. If the bad API calls leading to the blacklist appear to be from an official Sonoran CAD submodule, [reach out to our support team](https://support.sonoransoftware.com/). # Submodule Configuration Updates Source: https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/submodule-configuration/submodule-configuration-updates Learn how to manually update your submodule configuration file when there has been a configuration update. `Submodule Updater: X has a new configuration version`: This means one of your submodules has been updated, but there is a newer configuration file available with additional properties. To resolve, we need to manually migrate the configuration file for the submodule. ## Open the Configuration Files In the `\sonorancad\configuration`directory, there will be two configuration files for the updated submodule: * NEW: `{submoduleName}_config.dist.lua` * OLD: `{submoduleName}_config.lua` ![](https://docs-assets.sonoransoftware.com/sha256/ae/ae0f63b5f0883c11dfd6f9d263b43099042839e89b436c7aeee313e9dcec4746.png) *New WraithV2 Configuration File* ![](https://docs-assets.sonoransoftware.com/sha256/4e/4e4cc313bd95cb74dab72d7778b347812859d41e3ce6a2903bc8565bfcc7986d.png) *Old WraithV2 Configuration File* ## Compare the Config Files Note the differences in the file. In this example: * The `configVersion` is `1.5`on our current file but is `1.6`on the newly downloaded one. * Additionally we are missing the entire `notificationTimers` section in our current config file. ![](https://docs-assets.sonoransoftware.com/sha256/56/56d9863773c3dd81c2d939db08c604d6ebca808188d9a3fdf7da5eb26e00f0ce.png) *SonoranCAD - WraithV2 Configuration Differences* ## Migrate the Configuration Values ### Method 1 (Recommended) - Overwrite Old Configuration File * Simply copy and paste the entire contents of your **new** config file into your **existing** config file and make any needed configuration changes. * Save the file and restart the resource ### Method 2 (Not Recommended) - Manually Add Changes * Note down the changes in the **new configuration file** and add any missing properties to your **existing** configuration file. * Ensure you change the version number to the correct version from the **new** file. * Save your **existing** file and restart the resource # Integrated Vendors Source: https://docs.sonoransoftware.com/cad/integration-plugins/integrated-vendors Check out the other third-party scripts and projects that are directly integrated with SonoranCAD! ![](https://docs-assets.sonoransoftware.com/sha256/ba/ba0e0e31c36d2f3a33c4b837b914ef16ebf34c41a2b8c2b9be9404b48cd757f9.png) ### London Studios * [Smart Fires](https://store.londonstudios.net/category/fire-resources) * Integration: Automatic 911 Calls sent directly to SonoranCAD! ![](https://docs-assets.sonoransoftware.com/sha256/05/05891a1055d490c4c37147ce9105e87519bf857f6cbeed216edefa5dad608a1c.png) ### Rainmad Integration includes automatic 911 calls sent directly to SonoranCAD! * [Gun store Heist](https://store.rainmad.com/package/6117275) * [Weed shop Heist](https://store.rainmad.com/package/5377128) * [Vangelico Heist](https://store.rainmad.com/package/5292185) * [Artifact Heist](https://store.rainmad.com/package/5189211) * [Betta Heist](https://store.rainmad.com/package/5177698) * [Oil Rig Heist](https://store.rainmad.com/package/5165368) * [Flecca Heist](https://store.rainmad.com/package/5044286) * [Deluxe Car Heist](https://store.rainmad.com/package/5025943) * [Yacht Heist](https://store.rainmad.com/package/5020777) * [Paleto Heist](https://store.rainmad.com/package/5015559) * [Union Heist](https://store.rainmad.com/package/4927857) * [Drug Boat Heist](https://store.rainmad.com/package/4882048) * [Underground Heist](https://store.rainmad.com/package/4860157) * [Pacific Heist](https://store.rainmad.com/package/4692451) * [Train Heist](https://store.rainmad.com/package/4674512) * [Van Heist](https://store.rainmad.com/package/4780625) * [Casino Heist](https://store.rainmad.com/package/4625772) * [Flecca Heist](https://store.rainmad.com/package/4636375) * [Art Heist](https://store.rainmad.com/package/4626148) # Paid Integration Resources Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources Learn more about our paid FiveM integration resources, powered by Tebex! # ATM Robbery Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/atm-robbery [Video tutorial](https://www.youtube-nocookie.com/embed/2Z6FepWQM2E) Sonoran Store - ATM Robbery [Learn more about this script!](https://www.sonoran.store/package/5441412) Sonoran's ATM Robbery allows players to rob ATMs like never before! * Drill the ATM * Attach a rope and rip the ATM out with your vehicle * Drive the ATM to a safe location * ATM can be visibly loaded into the back of a vehicle (configurable) or dragged via rope * ATMs are trackable LIVE on the Sonoran CAD live map and in-game map (configurable) * Finish drilling into the ATM for the final payout * ESX, QB-Core, and third-party payout compatible (not-required) This script integrates with Sonoran CAD's 911 system and live map! # Evidence Camera Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/evidence-camera Sonoran's evidence camera allows you to send in-game photos directly to your CAD for reports! [Video tutorial](https://www.youtube-nocookie.com/embed/jxTvYyDmJAE) The Sonoran Evidence Camera allows you to capture, hold, and share in-game photos with other players. Or, upload the in-game photo directly to Sonoran CAD for easy reports! [Learn more about this paid resource!](https://www.sonoran.store/package/5183521) # In-Vehicle Radar Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/in-vehicle-radar View your radar from first person! [Video tutorial](https://www.youtube-nocookie.com/embed/mZqMl9oNQcQ) [Learn more about this script!](https://www.sonoran.store/package/5362825) Sonoran's Radar Display brings new levels of immersion to Police Radars in FiveM! # Mobile Command Center Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/mobile-command-center Sonoran's mobile command center enables you to take command like never before. Learn more about the integration with Sonoran CAD! ![](https://docs-assets.sonoransoftware.com/sha256/5e/5e15472c0d679f88e89dee73a75beea6e08b654316488be0bb8053ebe901ebbc.png) *Sonoran Mobile Command Center* ![](https://docs-assets.sonoransoftware.com/sha256/bc/bceb988d6ed5ab475a5ad65efdae3d5a80a04eb6961470d6fb404509433e1ddf.png) *Sonoran Mobile Command Center - CAD ALPR* [Learn more about the Sonoran mobile command center, integrated with Sonoran CAD!](https://www.sonoran.store/package/5287071) # Power Grid Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/power-grid Learn more about our Power Grid script on the Sonoran Store! [Video tutorial](https://www.youtube-nocookie.com/embed/3JhmcqlOWv8) Sonoran's Power Grid network allows players to manipulate and disable nearly any in-game feature imaginable! Hack the grid to disable a Sonoran Radio tower, disable a speed or security camera, shut off a shot spotter, and more! Our in-depth permission customization and integration options allow communities to expand with vastly new and unique RP scenarios. Easily "wire" a power source to any compatible object with our link tool. Our power grid offers real-time alerts via Discord, in-game, on the Sonoran CAD live map and more! [Learn more about this paid resource](https://www.sonoran.store/package/5120025). # Shot Spotter Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/shot-spotter Learn more about our Shot Spotter script on the Sonoran Store! ![Sonoran Store - Shot Spotter](https://docs-assets.sonoransoftware.com/sha256/aa/aa520e16833d375feeb2014c38753b886d13566e170619ca1308518b1fff9de8.png) The Sonoran Shot Spotter offers the most in-depth, integrated, and customizable shot spotter network available. [Learn more about this paid resource!](https://www.sonoran.store/package/5078838) # Speed Cameras Source: https://docs.sonoransoftware.com/cad/integration-plugins/paid-integration-resources/speed-cameras Learn more about our Speed Camera script on the Sonoran Store! ![Sonoran Store - Speed Camera](https://docs-assets.sonoransoftware.com/sha256/57/5777d0f816c2c523291f97830e9253ce7cb496c63e650967301c3b617fba6274.png) The Sonoran Speed Camera offers the most in-depth, integrated, and customizable traffic camera network available. [Learn more about this paid resource!](https://www.sonoran.store/package/5056701) # Stream Deck Plugin Source: https://docs.sonoransoftware.com/cad/integration-plugins/stream-deck-integration Sonoran CAD’s official Stream Deck plugin gives you faster, customizable control over the tools and actions you use most. ![](https://docs-assets.sonoransoftware.com/sha256/ab/ab59b5e3203e8c618b522bac196c829b8b272faa0e47554bd3910da7fb0aa852.png) ![](https://docs-assets.sonoransoftware.com/sha256/58/58d08eb17bf8acce0667a3c45d08e92447bc7848607203e96448421c634efbd8.png) ![](https://docs-assets.sonoransoftware.com/sha256/8c/8cbb5f2a6d7b1019f419d379c9d705b257d8b423fca01a07366b2d815645ac6b.png) ![](https://docs-assets.sonoransoftware.com/sha256/ea/ea10b44f3850850b8dff6dc13cfb8564dc4321d5e0577be58d5a98535162a949.png) ## Introduction Sonoran CAD's MacOS and Windows desktop applications offer direct integration with [Stream Deck hardware](https://www.elgato.com/us/en/p/stream-deck). By installing our official Stream Deck plugin, users can customize layouts and buttons to control their CAD faster than ever before. Don't have a physical Stream Deck? Download the [free Stream Deck Mobile app](https://www.elgato.com/us/en/s/stream-deck-mobile)! ## Installation ### Download and Install the Plugin Download the official [Sonoran CAD Stream Deck plugin from the Elgato Marketplace](https://marketplace.elgato.com/product/sonoran-cad-fcdbaa52-45cc-4569-89f2-c395d2ae8834). ![](https://docs-assets.sonoransoftware.com/sha256/70/70e45030eb795eb12b74a611309aef7150ca92af05248fd67dd088d64e6e64f6.png) Stream Deck will automatically install your plugin for use. ![](https://docs-assets.sonoransoftware.com/sha256/ac/ac467dc259acabbcba44e9578f2bbae9837722a5b6f338410fb959db978d431e.png) ### Configure Actions Using the Stream Deck desktop application search for **Sonoran CAD** in the **Keys** section. Drag-and-drop an action category to the Stream Deck. Select the action to update the sub-type. Ex: **Status** action type > **Status Option** > **Panic** ![](https://docs-assets.sonoransoftware.com/sha256/56/56b567454d6f9792d31818c79755daf80742643f825a27718e13edf24407583f.png) ## Action Capabilities The Sonoran CAD desktop application must be running and signed in to a Police, Fire, EMS, or Dispatch page for actions to run. ### Status Status buttons will automatically change labels based on your community's custom status buttons. Your current status option will show as a filled outline when selected. * **Available** * **Busy** * **Unavailable** * **Enroute** * **On Scene** ### Panic The **Panic** button will toggle your active unit's panic status. The button will change from outlined to filled when a panic mode is active. ### Window When pressed, these actions will open the corresponding window in the CAD. * **3D Live Map -** [**FiveM**](/cad/integration-plugins/in-game-integration/available-plugins/live-map) **or** [**ER:LC**](/cad/integration-plugins/erlc/3d-live-map) * [**Tone Board**](/cad/tutorials/customization/tone-board) (Available to dispatchers or when Self Dispatch Mode is enabled) * [**Rapid IQ**](/cad/tutorials/dispatching/rapid-iq) (Opens in the active visible Call Viewer) * [**Command Line**](/cad/tutorials/dispatching/command-line-interface-cli) * **Call Viewer** * [**Lookup**](/cad/tutorials/records-management/searching-for-records) * [**Records**](/cad/tutorials/records-management) * [**10-Codes**](/cad/tutorials/customization/10-codes) * [**Penal Codes**](/cad/tutorials/customization/penal-codes) * [**Quick Links**](/cad/tutorials/customization/quick-links) * **BOLOs** * **Active Calls** * **Emergency Calls** (Available to dispatchers or when Self Dispatch Mode is enabled) * **Signal** (Available to dispatchers or when Self Dispatch Mode is enabled) * **Timers** * **Notepad** ### Bodycam * **Open Bodycam** (Requires an active unit) * **Record Bodycam** (Requires an active unit) * **View Recordings** ### Other Actions * **Clear Dispatch Editor** (Requires a visible Call Viewer) * **Self-Clear** (Detaches your active unit from its current call) The following actions run the corresponding ER:LC integration from a Police or Dispatch page: * [**Traffic Stop**](/cad/integration-plugins/erlc/traffic-stops) * [**Plate Reader**](/cad/integration-plugins/erlc/plate-reader) # Twitch Bodycam, Bot, & Lighting Integration Source: https://docs.sonoransoftware.com/cad/integration-plugins/twitch-overlay-and-bot Display your identifier information, attached call information, and more on your gaming stream! ![](https://docs-assets.sonoransoftware.com/sha256/65/65756203725f72496f646f3a79b2ec32e4350b3177ed66ba9dd000fe6d09fa0e.png) ![Sonoran CAD - Smart Lighting](https://docs-assets.sonoransoftware.com/sha256/60/609b8f892e22d239a0dbe903effb0473ddda4cbcfb77e79cfa725f003df0e31c.png) ## What is Sonoran CAD's Livestream Overlay? Sonoran CAD has a built-in livestream overlay, allowing you to display your live unit information, call information, and more! Our Twitch bot can also be configured to send out chat messages when data is modified. ## Bodycam Overlay ![](https://docs-assets.sonoransoftware.com/sha256/8a/8a23a0f94346234776007ba31dce29a6834e9d0f61afebfc8933850b639880c5.png) > [!WARNING] > > The free version of the overlay does not include the customizable bodycam asset.\ > However, you can still create [custom overlay text](/cad/integration-plugins/twitch-overlay-and-bot#custom-overlay-text) with the free version! > > Learn more about the [full version of Sonoran CAD's stream overlay](/cad/integration-plugins/twitch-overlay-and-bot#purchasing-the-overlay)! > > The bodycam creates local text files and hosts a local webserver.\ > **This requires the** [**desktop** ](/cad/download)**application to run.** The stream overlay also includes a customizable version of the popular [XION Chase Cam asset](https://github.com/zhivotnoya/XION-ChaseCam). This allows you to customize a bodycam overlay on your stream, with your real-time unit and call information. ### Set a File Directory **First, ensure you are using the** [**desktop** ](/cad/download)**version of Sonoran CAD.** The application has to generate physical files, and host a local webserver to work. This can not be done in a browser. In the stream overlay, open the txt file directory viewer and select a folder for the text files and bodycam webpage to be generated: ![Stream Overlay - Text file Location](https://docs-assets.sonoransoftware.com/sha256/c4/c4103086d896f4646c30dc098e4f5919bc420b0a05aea85aee23d8305683c871.gif) ### Configuring the Bodycam Contents In the livestream overlay config section, expand the `Bodycam` section. Here, you can enable and customize the data placement and keys just as before with the [customizable text files](/cad/integration-plugins/twitch-overlay-and-bot#3-toggle-and-configure-keys). * Expand the `Unit Updates` or `Call Updates` Section * Toggle `ON` the txt file * `COPY` the field key * `PASTE` the field key into the bodycam section * `SAVE` the configuration once complete You can also optionally specify a different port for the bodycam webpage to run on (`9990` is the default). ![](https://docs-assets.sonoransoftware.com/sha256/08/081400bd41c6f3a4e3df95627355b474c87dab61b32d63056f7acf6e31ac525b.png) ### Add the Bodycam to OBS In OBS, add a new "Browser" source and paste the URL listed in the bodycam section.\ By default, this will be `http://localhost:9990` ![OBS - New Browser Source](https://docs-assets.sonoransoftware.com/sha256/05/050b508657af97007a63763c979520094e99a23d37d4bc21ca9e0e2946ef33aa.png) Paste the URL into the browser source and hit OK. ![](https://docs-assets.sonoransoftware.com/sha256/6c/6cb6afb9201613de250f0807c2e0a2684ee1025c1b711ed8279a18799192af2a.png) ### Customize the Size and Placement You can now customize the size and placement of this browser window in OBS as you normally would. ## Smart Lighting > [!WARNING] > > Due to the nature of most smart bulb manufacturers, our smart lighting integration is at the mercy of their API support.\ > \ > We can not guarantee that these manufacturers won't change or remove backdoor support to these bulbs in the future. #### [Video Promo and Tutorial](https://www.youtube.com/watch?v=gs6RdZt3mUo) ![Sonoran CAD - Smart Lighting](https://docs-assets.sonoransoftware.com/sha256/60/609b8f892e22d239a0dbe903effb0473ddda4cbcfb77e79cfa725f003df0e31c.png) Sonoran CAD allows you to configure in-game events to smart lighting in your own home! When you toggle your police lights in-game, your room can flash with custom lighting patterns to further immerse and simulate real world lighting. > [!WARNING] > > The smart lighting integration is **not included with the free version** of the Stream Overlay.\ > \ > [Learn more about the full version of Sonoran CAD's stream overlay.](/cad/integration-plugins/twitch-overlay-and-bot#purchasing-the-overlay)\ > \ > The smart lighting integration creates local text files and hosts a local webserver.\ > **This requires the** [**desktop** ](/cad/download)**application to run.** [Video tutorial](https://www.youtube-nocookie.com/embed/gs6RdZt3mUo) Sonoran CAD - Smart Lighting Video ### Supported Smart Bulbs At this time, Sonoran CAD currently supports the following smart bulb types: #### [Wyze Color](https://wyze.com/wyze-bulb-color.html) (Recommended) Many of our development team members personally use and recommend these bulbs. Due to the design, these tend to provide the fastest response type with more complex lighting patterns. A 4 pack typically costs \~$40 ($10/bulb). #### [Philips Hue](https://www.philips-hue.com/en-us/products/smart-light-bulbs) Philips Hue is significantly more expensive, but is typically the most widely known option. This option will also require the purchase of a Hue bridge/hub. Due to the design, these tend to have a \~10ms+ delay when setting the color of multiple bulbs at a time. **Therefore, we recommend keeping the `delay` between frames above 500ms when using Philips Hue bulbs.** #### [Govee](https://us.govee.com/products/wi-fi-led-bulb) Govee light bulbs are supported via Bluetooth and WiFi. Bluetooth bulbs are supported, but can have additional time when starting the initial connection. Bluetooth connections can also experience intermittent connection problems. Govee's WiFi bulbs are currently ran through the official API, resulting in rate limitations of 60 calls per minute. **Therefore, we recommend keeping the `delay` between lighting frames above 1,000ms when using Govee wifi bulbs.** ### Searching for Bulbs The smart lighting section has multiple `Scenes` * `Restore`: Set when you are no longer flashing emergency lights, turn signals, etc. * `Emergency Lights`: While you are in an emergency vehicle with the lights on * `Panic`: While your panic status is toggled * `Available`: When your unit status is set to available * `Unavailable`: When your unit status is set to unavailable * `Busy`: When your unit status is set to busy * `Enroute`: When your unit status is set to enroute * `On Scene`: When your unit status is set to on scene * `Left Turn Signal`: While your left hand turn signal is on * `Right Turn Signal`: While your right hand turn signal is on * `Hazard Lights`: While your hazard lights are on Expand the `Scene` > `Add Bulb` > `Search for Bulbs` > Select `Wyze` or `Philips Hue` ![Sonoran CAD - Scan for Smart Bulbs](https://docs-assets.sonoransoftware.com/sha256/99/992f4b57299439da79e87ae0919532450a1d1883c4e52ed3f5009b1f9920b134.png) #### Credentials: Wyze ![](https://docs-assets.sonoransoftware.com/sha256/71/718fbb1de828ad0c1f1157348f14e4a697981986ea437fc8cfb64e276269b4e6.png) ![](https://docs-assets.sonoransoftware.com/sha256/f9/f97f1f284093266141f69e42f22ef932c65c29d5f574bb68b471de3dada489e2.png) * Username: Email address used to login to your Wyze account * `Password`: Password used to login to your Wyze account * `Key ID`: The "Key ID" in the [Wyze API key generator](https://developer-api-console.wyze.com/#/apikey/view) * `API Key`: The "API Key" in the [Wyze API key generator](https://developer-api-console.wyze.com/#/apikey/view) #### Credentials: Philips Hue Your Philips Hue bridge should be automatically discovered by pressing the `Scan` button in Sonoran CAD. If you are seeing the following error:\ `Error: Unable to find a Hue bridge on the local network.` You may need to manually enter the bridge's IP address. This is most easily found using the Philips Hue mobile app. 1. Select Settings 2. Network Settings 3. Toggle `DHCP` Off 4. Copy the `IP address` to Sonoran CAD 5. Toggle `DHCP` On 6. Scan for the bridge in Sonoran CAD ![Philips Hue - Copy Bridge IP](https://docs-assets.sonoransoftware.com/sha256/92/9238277442c408f874d3e526e7917d8942eb9731cee54e0ac6b4f20c78544115.png) ![Sonoran CAD - Manual Hue Bridge IP](https://docs-assets.sonoransoftware.com/sha256/10/10031c34c12cb66aebc5f9ba6fc169d659656882c72dc34fd7f14b241d6e960f.png) #### Credentials: Govee WiFi Govee WiFi bulbs are handled via Govee's official API. Note that this does include a rate limit of 60 calls/minute. **1. Request an API Key** Using the Govee mobile app navigate to `Account` > `Settings` > `About Us` > `Apply for API Key` ![](https://docs-assets.sonoransoftware.com/sha256/95/95cdbf123127b6680f1ef9ecd1d91fe4aad3e15b60622b2611a036750066acc2.png) **2. Retrieve your API Key and Search** Within a few minutes, Govee should email your account API credentials to use. Paste these into Sonoran CAD and search for your Govee WiFi lights. #### Credentials: Govee Bluetooth Govee Bulb models only supporting bluetooth can be controlled by Sonoran CAD, as long as your PC supports bluetooth connections. Windows limits this to no more than 5 active bluetooth connections at one time. **1. Scan for Bluetooth devices** Sonoran CAD will scan for all locally active Bluetooth devices. Govee bulbs will typically be found with a name format: `WORD_MODELNUMBER_XXXX`. If your bulb is not discoverable, turn the bulb's power off entirely for \~5 seconds then turn it back on. This should place your bulb into discovery mode. ![](https://docs-assets.sonoransoftware.com/sha256/7f/7fc932d743ed0f6f65e7f0f928514b80d0896adb2d0fcbf7c39bc119aa20cae4.png) **2. Add the Bulb** Click on the Bluetooth bulb to add it to your scene, and continue on to building your lighting sequences. Bluetooth bulbs will have their status listed on the left side. When you click the `Test` button, it may **take up to 60 seconds** for the connection to complete. ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d412b6d78e682ac9d1a7ebf39c24e3afbf207f0115a551fc83a03e13e86bc92.png) ### Creating Sequences You can add the desired bulb to your `Scene`. Each `scene` is made up of multiple `frames`. The example below shows a very simple sequence of two lights switching back and forth between red and blue, with a `delay` of `500ms` between each frame. You can duplicate and create advanced chase sequences, flashes, etc. with several bulbs at a time. We recommend keeping the delays no shorter than:\ `250ms` for Wyze Color Bulbs\ `500ms` for Philips Hue Bulbs ![](https://docs-assets.sonoransoftware.com/sha256/35/3556f4770d1dd480098aa6c9fb03af4e0a836bd84e22cbdfc42471b304fe9c83.png) ### Testing and Using In-Game You can press the `Test Scene` button to test the scene with your smart bulbs. Press the `Test Scene` button in the `Restore` scene section to go back to your normal lighting. #### Local Webserver: In-Game Use For in-game use, your lights, turn signals, and hazards will automatically run as long as your community has the Sonoran CAD integration framework installed. This utilizes a [local webserver](/cad/api-integration/api-endpoints-v2/local-endpoints/smart-lighting) running from your desktop app. 1. If you have modified your Bodycam port from the default `9990`, you will need to update this port in-game as well. Use the `/setlightport ` command in-game to change your port from `9990` to something else. 2. Additionally, ensure you have set your file directory in the credentials section of the stream overlay. ## Configuring the Twitch Bot Sonoran CAD's stream overlay also comes with a configurable Twitch bot. This bot will send out chat updates when unit or call data is updated. > [!WARNING] > > The Twitch bot is **not included with the free version** of the Stream Overlay.\ > \ > [Learn more about the full version of Sonoran CAD's stream overlay.](/cad/integration-plugins/twitch-overlay-and-bot#purchasing-the-overlay) ### Create a Twitch OAuth Token Create a new Twitch OAuth token by going to [https://twitchapps.com/tmi/](https://twitchapps.com/tmi/) ### Configure your Twitch Bot Token and Username Using the overlay in OBS, select the `Twitch Bot` button in the taskbar.\ Paste in your Twitch channel name and OAuth key. ![Overlay - Twitch Bot Credentials](https://docs-assets.sonoransoftware.com/sha256/73/73bd22653ed0fb020871d901e9a2c484302f5791f463e76a7ca386af8a948e64.png) Once set, you can press `Test` to display a test message in your Twitch chat. ### Configure the Bot's Event Data Every piece of unit and call data can be toggled on or off individually. **It is highly recommended to only toggle on data updates that will not be frequently spammed.** Toggling too many data fields and updating data too quickly may result in **Twitch rate limiting your bot.** ![Overlay - Twitch Data Fields](https://docs-assets.sonoransoftware.com/sha256/02/025ab9640f1d6548ff1bad501d7ccf908f08d55d234e601ddd156d4c5cd4833a.png) ### Save and Run Once you have configured your Twitch Bot's credentials and data fields, press `Save`. Now, whenever one of those data fields is updated, your Twitch bot will send a chat message. ![Sonoran CAD - Stream Overlay](https://docs-assets.sonoransoftware.com/sha256/c8/c85a9a0b739bad403bba9b14a79c805ed2baaa1c29c23a2c071ebf9dacc7e8d5.gif) ### Debugging the Twitch Bot If you're having issues seeing the Twitch bot messages, view the `Twitch Logs` panel in the stream overlay. This will contain valuable information on the twitch bot's connection, rate limiting, and other errors. ![Overlay - Twitch Logs](https://docs-assets.sonoransoftware.com/sha256/04/045bf115121a8d0bf641baa31ae66acb15f9f9bf9d90223cd52b4f0cb0028dd8.png) If you have too many data fields toggled, and are sending Twitch updates too quickly you may experience rate limiting. ## Custom Overlay Text The overlay is immensely customizable, allowing you to customize every piece of data displayed. ### Accessing the Overlay Window The overlay configuration modal can be opened by navigating to `Start Menu` > `System` > `Stream Overlay`. Or, by searching in the start menu. ### Configuring Text File Location While the Twitch bot can run in a browser instance of Sonoran CAD, the [desktop application](/cad/download) **is required**, to generate unit/call data txt files. In the stream overlay, open the txt file directory viewer and select a folder for the text files to be generated: ![Stream Overlay - Text file Location](https://docs-assets.sonoransoftware.com/sha256/c4/c4103086d896f4646c30dc098e4f5919bc420b0a05aea85aee23d8305683c871.gif) ### Toggle and Configure Keys > [!WARNING] > > The **free version** of the overlay is limited to three (3) data keys.\ > Learn more about the [full version of Sonoran CAD's stream overlay](/cad/integration-plugins/twitch-overlay-and-bot#purchasing-the-overlay)! In the `Configuration` tab, toggle on the desired data fields for your unit and dispatch call information. For every field toggled, a text file will be generated to be viewed in OBS.\ However, we **recommend creating custom text files** to combine multiple data fields in a single text file. ![Stream Overlay - Custom Text Files](https://docs-assets.sonoransoftware.com/sha256/81/81d3d6a872df1a2b6579866d311cbb37a93fa2cbe0707ad3e144dfaac5ce661e.png) #### Data Field Keys: These can be easily copied from the UI, by pressing the `Copy` button next to the toggled field and pasting into the custom file's key textbox. | Key | Description | | - | - | | \{unit\_status} | Unit Status | | \{unit\_location} | Unit Location | | \{unit\_aop} | Unit AOP | | \{unit\_number} | Unit Number | | \{unit\_name} | Unit Name | | \{unit\_agency} | Unit Agency | | \{unit\_department} | Unit Department | | \{unit\_subdivision} | Unit Subdivision | | \{unit\_rank} | Unit Rank | | \{unit\_group} | Unit Group | | \{unit\_panic} | Unit Panic Status | | \{call\_id} | Dispatch Call ID | | \{call\_origin} | Dispatch Call Origin | | \{call\_status} | Dispatch Call Status | | \{call\_priority} | Dispatch Call Priority | | \{call\_block} | Dispatch Call Block | | \{call\_address} | Dispatch Call Address | | \{call\_postal} | Dispatch Call Postal | | \{call\_title} | Dispatch Call Title | | \{call\_code} | Dispatch Call 10-Code | | \{call\_description} | Dispatch Call Description | ### Save your Configuration Don't forget to save your configuration! ### Configure Data in OBS In OBS, add a new text source: ![OBS - New Text Source](https://docs-assets.sonoransoftware.com/sha256/4e/4e0b5281e77379c38cfeec24abbdefc59b6f9f59234ca9bc2873108241078f06.png) In the text source properties, select `Read from File` and select one of your generated data key files from the [location specified earlier](/cad/integration-plugins/twitch-overlay-and-bot#2-configuring-text-file-location). ![Stream Overlay - Text Files](https://docs-assets.sonoransoftware.com/sha256/fa/fa97a4812bec45f3140a4b62167db60420d0a6a2bf5809e6fadd054e09b0395b.png) ![Stream Overlay - Text file Viewer](https://docs-assets.sonoransoftware.com/sha256/20/209f3c6d827ddef5511a1b4ecb43f1de131f5084f85cb3446f3f6946d1660864.png) You can now place the text field anywhere in your OBS stream layout. You can also customize the fonts, change the background and more! ## Purchasing the Overlay The free version of the livestream overlay allows anyone to test out the basic functionality. The free version does not allow use of the [Twitch bot](/cad/integration-plugins/twitch-overlay-and-bot#configuring-the-twitch-bot), [bodycam](/cad/integration-plugins/twitch-overlay-and-bot#bodycam-overlay), or [smart lighting integration](/cad/integration-plugins/twitch-overlay-and-bot#smart-lighting) and is locked to a maximum of three custom "data keys". The full, individual license for Sonoran CAD's livestreaming tools is available for \$7.99/mo. Or, **include the livestreaming tools for your *****entire***** community** with [Sonoran One](https://sonoran.one). Users can purchase a license to the full version in their billing center: > [card] [Create and Manage a Subscription](/cad/pricing/faq/create-and-manage-a-subscription) # Policy Source: https://docs.sonoransoftware.com/cad/other/policy Learn more about Sonoran CAD's privacy policy, terms of service, and refund policy. ### Terms of Service By using Sonoran CAD, you agree to our terms of service: > [card] [Terms of Service](/cad/other/policy/terms-of-service) ### Privacy Policy We care about user privacy and security. For more information, view our privacy policy: > [card] [Privacy Policy](/cad/other/policy/privacy-policy) ### Refund and Purchase Policy View our refund and purchase policy: > [card] [Refund and Purchase Policy](/cad/other/policy/refund-and-purchase-policy) # Discord Bot Source: https://docs.sonoransoftware.com/cad/other/policy/discord-bot Describes various policies that apply to Sonoran Bot specifically. ## Privacy Policy Sonoran Bot [follows the same privacy policy as our website](/cad/other/policy/privacy-policy), with the additional disclosures: #### Data Storage Sonoran Bot (the "Bot") stores information necessary to carry out its operations and for troubleshooting purposes for support staff. The following information is kept: * Discord server ("Guild") information, including the ID and name of the server; * Discord user IDs of those who interact with the bot; * Discord role IDs specified during the setup process; * Debugging log data that may contain some or all of the above information. Server owners may request deletion of all this data by [contacting our support staff](https://support.sonoransoftware.com). Only the Sonoran development team has access to this data at any point in time, and this data is not used for any other purpose other than to carry out essential functions of the Bot. ### Terms of Use Sonoran Bot uses the same [Terms of Use policy](/cad/other/policy/terms-of-service) as our website and application. # Privacy Policy Source: https://docs.sonoransoftware.com/cad/other/policy/privacy-policy An earlier Sonoran CAD privacy policy; see the current Sonoran Software privacy policy. > **Current policy:** For the current policy covering Sonoran CAD and other Sonoran Software services, see the [Sonoran Software privacy policy](/policy/policy/privacy-policy). The text below is an earlier CAD-specific version published in 2024 and may not reflect current practices. If the policies differ, consult the current policy. ## **Privacy Policy for Sonoran Software Systems** Effective Date: May 13th, 2024 ### **1. Introduction** This Privacy Policy explains how we collect, use, and share information about you when you use our web, desktop, and mobile applications. ### **2. Information We Collect** a. **Personal Information**: When you register for an account, we collect your email address to identify your account. b. **Technical and Usage Information**: Our services automatically collect your IP address, hardware IDs, and unique game and program identifiers. This information is used to aid in account security and our [alternate account detection systems](https://sonoran.link/oWGfTkf7). **c. Cookies and Tracking Technologies:** We use cookies and similar tracking technologies to track activity on our services and store certain information. Tracking technologies used are beacons, tags, and scripts to collect and track information and to improve and analyze our service. ### **3. How We Use Your Information** We use the information we collect to: * Provide, operate, and maintain our services * Understand and analyze how you use our services * Develop new products, services, features, and functionality * Communicate with you, either directly or through one of our partners, including for customer service, to provide you with updates and other information relating to the service, and for marketing and promotional purposes * Send you emails * Find and prevent fraud ### **4. How We Share Your Information** We do not share or sell your personal information with third parties except as described in this policy. We may share your information with: * **Service Providers**: We engage service providers who perform services on our behalf, such as payment processing (Stripe). * **Law Enforcement and Legal Obligations**: We may disclose information to law enforcement, government authorities, or other third parties as necessary to comply with legal obligations or to protect our rights, the rights of others, or our property. * **Account Security and Integrity**: While we do not disclose actual hardware IDs, IP addresses, or other specific identifiers to third parties, we provide the functionality for users to see if certain aspects of another user’s account match with alternate accounts based on collected data. This is part of our effort to maintain the security and integrity of our services, and [prevent fraudulent or deceptive practices](https://sonoran.link/oWGfTkf7). Actual identifiers are not shared externally. ### **5. Your Data Rights** You have the right to request the deletion of your personal information. You can do so at any time by contacting our support team at [support.sonoransoftware.com](https://support.sonoransoftware.com). Please note that while we accommodate most requests for data deletion, some specific hardware, software, and game identifiers are permanently retained to ensure the safety of our communities through our [alternate account detection systems](https://sonoran.link/oWGfTkf7). ### **6. Children's Privacy** Our services are not directed to children under the age of 18. We do not knowingly collect personally identifiable information from anyone under the age of 18. If you are a parent or guardian and you are aware that your child has provided us with personal data, please contact us at [support.sonoransoftware.com](https://support.sonoransoftware.com). If we become aware that we have collected personal data from children without verification of parental consent, we take steps to remove that information from our servers. ### **7. Changes to This Privacy Policy** We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Effective Date" at the top of this policy. ### **8. Contact Us** If you have any questions or concerns about our use of your information, please contact us at [support.sonoransoftware.com](https://support.sonoransoftware.com). # Refund and Purchase Policy Source: https://docs.sonoransoftware.com/cad/other/policy/refund-and-purchase-policy Learn more about Sonoran CAD's refund and purchase policy. > [!TIP] > > We highly recommend all communities register and try out Sonoran CAD for **free**, before opting to purchase an upgraded subscription.\ > \ > Sonoran CAD allows your community to register and try out the CAD for an unlimited amount of time before purchasing. For more information, check out our [getting started guides](/cad/tutorials/getting-started). ### Policy Our [Refund and Purchase Policy](https://sonoransoftware.com/assets/files/internal/purchase_policy.pdf) is available on our company website. # Rocket CAD Closure Source: https://docs.sonoransoftware.com/cad/other/policy/rocket-cad-closure Rocket CAD customers get two free months on Sonoran CAD Pro, plus 30% off for life! ## **As of January 3rd, 2024, RocketCAD has ceased all operations.** During the time period of November 30th, 2023 and January 3rd, 2024, all existing RocketCAD customers were offered: 1. **Two Months Free on Sonoran CAD Pro** 2. **30% Lifetime Discount** While this offer is no longer available, we look forward to serving you on Sonoran CAD. Our [support team](https://support.sonoransoftware.com) is happy to assist you with any questions, comments, or concerns. > [card] [..](/cad) # Terms of Service Source: https://docs.sonoransoftware.com/cad/other/policy/terms-of-service Learn more about Sonoran CAD's terms of service. #### TERMS OF USE Last updated May 18, 2020 **AGREEMENT TO TERMS**\ These Terms of Use constitute a legally binding agreement made between you, whether personally or on behalf of an entity (“you”) and Sonoran Software Systems LLC ("**Company**", “**we**”, “**us**”, or “**our**”), concerning your access to and use of the [https://sonorancad.com](https://sonorancad.com/) website as well as any other media form, media channel, mobile website or mobile application related, linked, or otherwise connected thereto (collectively, the “Site”). You agree that by accessing the Site, you have read, understood, and agree to be bound by all of these Terms of Use. IF YOU DO NOT AGREE WITH ALL OF THESE TERMS OF USE, THEN YOU ARE EXPRESSLY PROHIBITED FROM USING THE SITE AND YOU MUST DISCONTINUE USE IMMEDIATELY. Supplemental terms and conditions or documents that may be posted on the Site from time to time are hereby expressly incorporated herein by reference. We reserve the right, in our sole discretion, to make changes or modifications to these Terms of Use at any time and for any reason. We will alert you about any changes by updating the “Last updated” date of these Terms of Use, and you waive any right to receive specific notice of each such change. It is your responsibility to periodically review these Terms of Use to stay informed of updates. You will be subject to, and will be deemed to have been made aware of and to have accepted, the changes in any revised Terms of Use by your continued use of the Site after the date such revised Terms of Use are posted. The information provided on the Site is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country. Accordingly, those persons who choose to access the Site from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable.\ The Site is not tailored to comply with industry-specific regulations (Health Insurance Portability and Accountability Act (HIPAA), Federal Information Security Management Act (FISMA), etc.), so if your interactions would be subjected to such laws, you may not use this Site. You may not use the Site in a way that would violate the Gramm-Leach-Bliley Act (GLBA).\ The Site is intended for users who are at least 13 years of age. All users who are minors in the jurisdiction in which they reside (generally under the age of 18) must have the permission of, and be directly supervised by, their parent or guardian to use the Site. If you are a minor, you must have your parent or guardian read and agree to these Terms of Use prior to you using the Site. **INTELLECTUAL PROPERTY RIGHTS**\ Unless otherwise indicated, the Site is our proprietary property and all source code, databases, functionality, software, website designs, audio, video, text, photographs, and graphics on the Site (collectively, the “Content”) and the trademarks, service marks, and logos contained therein (the “Marks”) are owned or controlled by us or licensed to us, and are protected by copyright and trademark laws and various other intellectual property rights and unfair competition laws of the United States, international copyright laws, and international conventions. The Content and the Marks are provided on the Site “AS IS” for your information and personal use only. Except as expressly provided in these Terms of Use, no part of the Site and no Content or Marks may be copied, reproduced, aggregated, republished, uploaded, posted, publicly displayed, encoded, translated, transmitted, distributed, sold, licensed, or otherwise exploited for any commercial purpose whatsoever, without our express prior written permission. Provided that you are eligible to use the Site, you are granted a limited license to access and use the Site and to download or print a copy of any portion of the Content to which you have properly gained access solely for your personal, non-commercial use. We reserve all rights not expressly granted to you in and to the Site, the Content and the Marks. **USER REPRESENTATIONS**\ By using the Site, you represent and warrant that: (1) all registration information you submit will be true, accurate, current, and complete; (2) you will maintain the accuracy of such information and promptly update such registration information as necessary; (3) you have the legal capacity and you agree to comply with these Terms of Use; (4) you are not under the age of 13; (5) you are not a minor in the jurisdiction in which you reside, or if a minor, you have received parental permission to use the Site; (6) you will not access the Site through automated or non-human means, whether through a bot, script or otherwise; (7) you will not use the Site for any illegal or unauthorized purpose; and (8) your use of the Site will not violate any applicable law or regulation. If you provide any information that is untrue, inaccurate, not current, or incomplete, we have the right to suspend or terminate your account and refuse any and all current or future use of the Site (or any portion thereof). **USER REGISTRATION**\ You may be required to register with the Site. You agree to keep your password confidential and will be responsible for all use of your account and password. We reserve the right to remove, reclaim, or change a username you select if we determine, in our sole discretion, that such username is inappropriate, obscene, or otherwise objectionable. **FEES AND PAYMENT**\ We accept all major credit/debit cards as valid forms of payment. You may be required to purchase or pay a fee to access some of our services. You agree to provide current, complete, and accurate purchase and account information for all purchases made via the Site. You further agree to promptly update account and payment information, including email address, payment method, and payment card expiration date, so that we can complete your transactions and contact you as needed. We bill you through an online billing account for purchases made via the Site. Sales tax will be added to the price of purchases as deemed required by us. We may change prices at any time. All payments shall be in U.S. dollars.\ You agree to pay all charges or fees at the prices then in effect for your purchases, and you authorize us to charge your chosen payment provider for any such amounts upon making your purchase. If your purchase is subject to recurring charges, then you consent to our charging your payment method on a recurring basis without requiring your prior approval for each recurring charge, until you notify us of your cancellation. We reserve the right to correct any errors or mistakes in pricing, even if we have already requested or received payment. We also reserve the right to refuse any order placed through the Site. **CANCELLATION**\ All purchases are non-refundable. You can cancel your subscription at any time by logging into your account or contacting us using the contact information provided below. Your cancellation will take effect at the end of the current paid term. If you are unsatisfied with our services, please email us at [support@sonoransoftware.com](mailto:support@sonoransoftware.com) **SOFTWARE**\ We may include software for use in connection with our services. If such software is accompanied by an end user license agreement (“EULA”), the terms of the EULA will govern your use of the software. If such software is not accompanied by a EULA, then we grant to you a non-exclusive, revocable, personal, and non-transferable license to use such software solely in connection with our services and in accordance with these Terms of Use. Any Software and any related documentation is provided “as is” without warranty of any kind, either express or implied, including, without limitation, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. You accept any and all risk arising out of use or performance of any Software. You may not reproduce or redistribute any software except in accordance with the EULA or these Terms of Use. **PROHIBITED ACTIVITIES**\ You may not access or use the Site for any purpose other than that for which we make the Site available. The Site may not be used in connection with any commercial endeavors except those that are specifically endorsed or approved by us. As a user of the Site, you agree not to: 1. Systematically retrieve data or other content from the Site to create or compile, directly or indirectly, a collection, compilation, database, or directory without written permission from us. 2. Make any unauthorized use of the Site, including collecting usernames and/or email addresses of users by electronic or other means for the purpose of sending unsolicited email, or creating user accounts by automated means or under false pretenses. 3. Use a buying agent or purchasing agent to make purchases on the Site. 4. Use the Site to advertise or offer to sell goods and services. 5. Circumvent, disable, or otherwise interfere with security-related features of the Site, including features that prevent or restrict the use or copying of any Content or enforce limitations on the use of the Site and/or the Content contained therein. 6. Engage in unauthorized framing of or linking to the Site. 7. Trick, defraud, or mislead us and other users, especially in any attempt to learn sensitive account information such as user passwords. 8. Make improper use of our support services or submit false reports of abuse or misconduct. 9. Engage in any automated use of the system, such as using scripts to send comments or messages, or using any data mining, robots, or similar data gathering and extraction tools. 10. Interfere with, disrupt, or create an undue burden on the Site or the networks or services connected to the Site. 11. Attempt to impersonate another user or person or use the username of another user. 12. Sell or otherwise transfer your profile. 13. Use any information obtained from the Site in order to harass, abuse, or harm another person. 14. Use the Site as part of any effort to compete with us or otherwise use the Site and/or the Content for any revenue-generating endeavor or commercial enterprise. 15. Decipher, decompile, disassemble, or reverse engineer any of the software comprising or in any way making up a part of the Site. 16. Attempt to bypass any measures of the Site designed to prevent or restrict access to the Site, or any portion of the Site. 17. Harass, annoy, intimidate, or threaten any of our employees or agents engaged in providing any portion of the Site to you. 18. Delete the copyright or other proprietary rights notice from any Content. 19. Copy or adapt the Site’s software, including but not limited to Flash, PHP, HTML, JavaScript, or other code. 20. Upload or transmit (or attempt to upload or to transmit) viruses, Trojan horses, or other material, including excessive use of capital letters and spamming (continuous posting of repetitive text), that interferes with any party’s uninterrupted use and enjoyment of the Site or modifies, impairs, disrupts, alters, or interferes with the use, features, functions, operation, or maintenance of the Site. 21. Upload or transmit (or attempt to upload or to transmit) any material that acts as a passive or active information collection or transmission mechanism, including without limitation, clear graphics interchange formats (“gifs”), 1×1 pixels, web bugs, cookies, or other similar devices (sometimes referred to as “spyware” or “passive collection mechanisms” or “pcms”). 22. Except as may be the result of standard search engine or Internet browser usage, use, launch, develop, or distribute any automated system, including without limitation, any spider, robot, cheat utility, scraper, or offline reader that accesses the Site, or using or launching any unauthorized script or other software. 23. Disparage, tarnish, or otherwise harm, in our opinion, us and/or the Site. 24. Use the Site in a manner inconsistent with any applicable laws or regulations. **INACTIVE USER OR COMMUNITY DATA**\ We reserve the right to remove any inactive user accounts or community "CAD systems" at anytime. Community "CAD Systems" are removed automatically if no user logins occur for 30 days or longer. **CUSTOMER SUPPORT**\ We reserve the right to refuse, deny, stop, or revoke privileges to speak with our support team for any reason up to and including: inappropriate behavior with a support team member, malicious use of the support system, or any other reason.\ \ Our support team is reachable anytime at: [https://support.sonoransoftware.com](https://support.sonoransoftware.com) **USER GENERATED CONTRIBUTIONS**\ The Site may invite you to chat, contribute to, or participate in blogs, message boards, online forums, and other functionality, and may provide you with the opportunity to create, submit, post, display, transmit, perform, publish, distribute, or broadcast content and materials to us or on the Site, including but not limited to text, writings, video, audio, photographs, graphics, comments, suggestions, or personal information or other material (collectively, "Contributions"). Contributions may be viewable by other users of the Site and through third-party websites. As such, any Contributions you transmit may be treated as non-confidential and non-proprietary. When you create or make available any Contributions, you thereby represent and warrant that: 1. The creation, distribution, transmission, public display, or performance, and the accessing, downloading, or copying of your Contributions do not and will not infringe the proprietary rights, including but not limited to the copyright, patent, trademark, trade secret, or moral rights of any third party. 2. You are the creator and owner of or have the necessary licenses, rights, consents, releases, and permissions to use and to authorize us, the Site, and other users of the Site to use your Contributions in any manner contemplated by the Site and these Terms of Use. 3. You have the written consent, release, and/or permission of each and every identifiable individual person in your Contributions to use the name or likeness of each and every such identifiable individual person to enable inclusion and use of your Contributions in any manner contemplated by the Site and these Terms of Use. 4. Your Contributions are not false, inaccurate, or misleading. 5. Your Contributions are not unsolicited or unauthorized advertising, promotional materials, pyramid schemes, chain letters, spam, mass mailings, or other forms of solicitation. 6. Your Contributions are not obscene, lewd, lascivious, filthy, violent, harassing, libelous, slanderous, or otherwise objectionable (as determined by us). 7. Your Contributions do not ridicule, mock, disparage, intimidate, or abuse anyone. 8. Your Contributions do not advocate the violent overthrow of any government or incite, encourage, or threaten physical harm against another. 9. Your Contributions do not violate any applicable law, regulation, or rule. 10. Your Contributions do not violate the privacy or publicity rights of any third party. 11. Your Contributions do not contain any material that solicits personal information from anyone under the age of 18 or exploits people under the age of 18 in a sexual or violent manner. 12. Your Contributions do not violate any applicable law concerning child pornography, or otherwise intended to protect the health or well-being of minors. 13. Your Contributions do not include any offensive comments that are connected to race, national origin, gender, sexual preference, or physical handicap. 14. Your Contributions do not otherwise violate, or link to material that violates, any provision of these Terms of Use, or any applicable law or regulation. Any use of the Site in violation of the foregoing violates these Terms of Use and may result in, among other things, termination or suspension of your rights to use the Site. **CONTRIBUTION LICENSE**\ By posting your Contributions to any part of the Site or making Contributions accessible to the Site by linking your account from the Site to any of your social networking accounts, you automatically grant, and you represent and warrant that you have the right to grant, to us an unrestricted, unlimited, irrevocable, perpetual, non-exclusive, transferable, royalty-free, fully-paid, worldwide right, and license to host, use, copy, reproduce, disclose, sell, resell, publish, broadcast, retitle, archive, store, cache, publicly perform, publicly display, reformat, translate, transmit, excerpt (in whole or in part), and distribute such Contributions (including, without limitation, your image and voice) for any purpose, commercial, advertising, or otherwise, and to prepare derivative works of, or incorporate into other works, such Contributions, and grant and authorize sublicenses of the foregoing. The use and distribution may occur in any media formats and through any media channels. This license will apply to any form, media, or technology now known or hereafter developed, and includes our use of your name, company name, and franchise name, as applicable, and any of the trademarks, service marks, trade names, logos, and personal and commercial images you provide. You waive all moral rights in your Contributions, and you warrant that moral rights have not otherwise been asserted in your Contributions. We do not assert any ownership over your Contributions. You retain full ownership of all of your Contributions and any intellectual property rights or other proprietary rights associated with your Contributions. We are not liable for any statements or representations in your Contributions provided by you in any area on the Site. You are solely responsible for your Contributions to the Site and you expressly agree to exonerate us from any and all responsibility and to refrain from any legal action against us regarding your Contributions. We have the right, in our sole and absolute discretion, (1) to edit, redact, or otherwise change any Contributions; (2) to re-categorize any Contributions to place them in more appropriate locations on the Site; and (3) to pre-screen or delete any Contributions at any time and for any reason, without notice. We have no obligation to monitor your Contributions**.** **GUIDELINES FOR REVIEWS**\ We may provide you areas on the Site to leave reviews or ratings. When posting a review, you must comply with the following criteria: (1) you should have firsthand experience with the person/entity being reviewed; (2) your reviews should not contain offensive profanity, or abusive, racist, offensive, or hate language; (3) your reviews should not contain discriminatory references based on religion, race, gender, national origin, age, marital status, sexual orientation, or disability; (4) your reviews should not contain references to illegal activity; (5) you should not be affiliated with competitors if posting negative reviews; (6) you should not make any conclusions as to the legality of conduct; (7) you may not post any false or misleading statements; and (8) you may not organize a campaign encouraging others to post reviews, whether positive or negative. We may accept, reject, or remove reviews in our sole discretion. We have absolutely no obligation to screen reviews or to delete reviews, even if anyone considers reviews objectionable or inaccurate. Reviews are not endorsed by us, and do not necessarily represent our opinions or the views of any of our affiliates or partners. We do not assume liability for any review or for any claims, liabilities, or losses resulting from any review. By posting a review, you hereby grant to us a perpetual, non-exclusive, worldwide, royalty-free, fully-paid, assignable, and sublicensable right and license to reproduce, modify, translate, transmit by any means, display, perform, and/or distribute all content relating to reviews.\ \ **MOBILE APPLICATION LICENSE** **Use License**\ If you access the Site via a mobile application, then we grant you a revocable, non-exclusive, non-transferable, limited right to install and use the mobile application on wireless electronic devices owned or controlled by you, and to access and use the mobile application on such devices strictly in accordance with the terms and conditions of this mobile application license contained in these Terms of Use. You shall not: (1) decompile, reverse engineer, disassemble, attempt to derive the source code of, or decrypt the application; (2) make any modification, adaptation, improvement, enhancement, translation, or derivative work from the application; (3) violate any applicable laws, rules, or regulations in connection with your access or use of the application; (4) remove, alter, or obscure any proprietary notice (including any notice of copyright or trademark) posted by us or the licensors of the application; (5) use the application for any revenue generating endeavor, commercial enterprise, or other purpose for which it is not designed or intended; (6) make the application available over a network or other environment permitting access or use by multiple devices or users at the same time; (7) use the application for creating a product, service, or software that is, directly or indirectly, competitive with or in any way a substitute for the application; (8) use the application to send automated queries to any website or to send any unsolicited commercial e-mail; or (9) use any proprietary information or any of our interfaces or our other intellectual property in the design, development, manufacture, licensing, or distribution of any applications, accessories, or devices for use with the application. **Apple and Android Devices**\ The following terms apply when you use a mobile application obtained from either the Apple Store or Google Play (each an “App Distributor”) to access the Site: (1) the license granted to you for our mobile application is limited to a non-transferable license to use the application on a device that utilizes the Apple iOS or Android operating systems, as applicable, and in accordance with the usage rules set forth in the applicable App Distributor’s terms of service; (2) we are responsible for providing any maintenance and support services with respect to the mobile application as specified in the terms and conditions of this mobile application license contained in these Terms of Use or as otherwise required under applicable law, and you acknowledge that each App Distributor has no obligation whatsoever to furnish any maintenance and support services with respect to the mobile application; (3) in the event of any failure of the mobile application to conform to any applicable warranty, you may notify the applicable App Distributor, and the App Distributor, in accordance with its terms and policies, may refund the purchase price, if any, paid for the mobile application, and to the maximum extent permitted by applicable law, the App Distributor will have no other warranty obligation whatsoever with respect to the mobile application; (4) you represent and warrant that (i) you are not located in a country that is subject to a U.S. government embargo, or that has been designated by the U.S. government as a “terrorist supporting” country and (ii) you are not listed on any U.S. government list of prohibited or restricted parties; (5) you must comply with applicable third-party terms of agreement when using the mobile application, e.g., if you have a VoIP application, then you must not be in violation of their wireless data service agreement when using the mobile application; and (6) you acknowledge and agree that the App Distributors are third-party beneficiaries of the terms and conditions in this mobile application license contained in these Terms of Use, and that each App Distributor will have the right (and will be deemed to have accepted the right) to enforce the terms and conditions in this mobile application license contained in these Terms of Use against you as a third-party beneficiary thereof.\ \ **SOCIAL MEDIA**\ As part of the functionality of the Site, you may link your account with online accounts you have with third-party service providers (each such account, a “Third-Party Account”) by either: (1) providing your Third-Party Account login information through the Site; or (2) allowing us to access your Third-Party Account, as is permitted under the applicable terms and conditions that govern your use of each Third-Party Account. You represent and warrant that you are entitled to disclose your Third-Party Account login information to us and/or grant us access to your Third-Party Account, without breach by you of any of the terms and conditions that govern your use of the applicable Third-Party Account, and without obligating us to pay any fees or making us subject to any usage limitations imposed by the third-party service provider of the Third-Party Account. By granting us access to any Third-Party Accounts, you understand that (1) we may access, make available, and store (if applicable) any content that you have provided to and stored in your Third-Party Account (the “Social Network Content”) so that it is available on and through the Site via your account, including without limitation any friend lists and (2) we may submit to and receive from your Third-Party Account additional information to the extent you are notified when you link your account with the Third-Party Account. Depending on the Third-Party Accounts you choose and subject to the privacy settings that you have set in such Third-Party Accounts, personally identifiable information that you post to your Third-Party Accounts may be available on and through your account on the Site. Please note that if a Third-Party Account or associated service becomes unavailable or our access to such Third-Party Account is terminated by the third-party service provider, then Social Network Content may no longer be available on and through the Site. You will have the ability to disable the connection between your account on the Site and your Third-Party Accounts at any time. PLEASE NOTE THAT YOUR RELATIONSHIP WITH THE THIRD-PARTY SERVICE PROVIDERS ASSOCIATED WITH YOUR THIRD-PARTY ACCOUNTS IS GOVERNED SOLELY BY YOUR AGREEMENT(S) WITH SUCH THIRD-PARTY SERVICE PROVIDERS. We make no effort to review any Social Network Content for any purpose, including but not limited to, for accuracy, legality, or non-infringement, and we are not responsible for any Social Network Content. You acknowledge and agree that we may access your email address book associated with a Third-Party Account and your contacts list stored on your mobile device or tablet computer solely for purposes of identifying and informing you of those contacts who have also registered to use the Site. You can deactivate the connection between the Site and your Third-Party Account by contacting us using the contact information below or through your account settings (if applicable). We will attempt to delete any information stored on our servers that was obtained through such Third-Party Account, except the username and profile picture that become associated with your account.\ \ **SUBMISSIONS**\ You acknowledge and agree that any questions, comments, suggestions, ideas, feedback, or other information regarding the Site ("Submissions") provided by you to us are non-confidential and shall become our sole property. We shall own exclusive rights, including all intellectual property rights, and shall be entitled to the unrestricted use and dissemination of these Submissions for any lawful purpose, commercial or otherwise, without acknowledgment or compensation to you. You hereby waive all moral rights to any such Submissions, and you hereby warrant that any such Submissions are original with you or that you have the right to submit such Submissions. You agree there shall be no recourse against us for any alleged or actual infringement or misappropriation of any proprietary right in your Submissions.\ \ **THIRD-PARTY WEBSITES AND CONTENT**\ The Site may contain (or you may be sent via the Site) links to other websites ("Third-Party Websites") as well as articles, photographs, text, graphics, pictures, designs, music, sound, video, information, applications, software, and other content or items belonging to or originating from third parties ("Third-Party Content"). Such Third-Party Websites and Third-Party Content are not investigated, monitored, or checked for accuracy, appropriateness, or completeness by us, and we are not responsible for any Third-Party Websites accessed through the Site or any Third-Party Content posted on, available through, or installed from the Site, including the content, accuracy, offensiveness, opinions, reliability, privacy practices, or other policies of or contained in the Third-Party Websites or the Third-Party Content. Inclusion of, linking to, or permitting the use or installation of any Third-Party Websites or any Third-Party Content does not imply approval or endorsement thereof by us. If you decide to leave the Site and access the Third-Party Websites or to use or install any Third-Party Content, you do so at your own risk, and you should be aware these Terms of Use no longer govern. You should review the applicable terms and policies, including privacy and data gathering practices, of any website to which you navigate from the Site or relating to any applications you use or install from the Site. Any purchases you make through Third-Party Websites will be through other websites and from other companies, and we take no responsibility whatsoever in relation to such purchases which are exclusively between you and the applicable third party. You agree and acknowledge that we do not endorse the products or services offered on Third-Party Websites and you shall hold us harmless from any harm caused by your purchase of such products or services. Additionally, you shall hold us harmless from any losses sustained by you or harm caused to you relating to or resulting in any way from any Third-Party Content or any contact with Third-Party Websites.\ \ **U.S. GOVERNMENT RIGHTS**\ Our services are “commercial items” as defined in Federal Acquisition Regulation (“FAR”) 2.101. If our services are acquired by or on behalf of any agency not within the Department of Defense (“DOD”), our services are subject to the terms of these Terms of Use in accordance with FAR 12.212 (for computer software) and FAR 12.211 (for technical data). If our services are acquired by or on behalf of any agency within the Department of Defense, our services are subject to the terms of these Terms of Use in accordance with Defense Federal Acquisition Regulation (“DFARS”) 227.7202‑3. In addition, DFARS 252.227‑7015 applies to technical data acquired by the DOD. This U.S. Government Rights clause is in lieu of, and supersedes, any other FAR, DFARS, or other clause or provision that addresses government rights in computer software or technical data under these Terms of Use.\ \ **SITE MANAGEMENT**\ We reserve the right, but not the obligation, to: (1) monitor the Site for violations of these Terms of Use; (2) take appropriate legal action against anyone who, in our sole discretion, violates the law or these Terms of Use, including without limitation, reporting such user to law enforcement authorities; (3) in our sole discretion and without limitation, refuse, restrict access to, limit the availability of, or disable (to the extent technologically feasible) any of your Contributions or any portion thereof; (4) in our sole discretion and without limitation, notice, or liability, to remove from the Site or otherwise disable all files and content that are excessive in size or are in any way burdensome to our systems; and (5) otherwise manage the Site in a manner designed to protect our rights and property and to facilitate the proper functioning of the Site.\ **PRIVACY POLICY**\ We care about data privacy and security. Please review our Privacy Policy: [**https://info.sonorancad.com/other/policy/privacy-policy**](/cad/other/policy/privacy-policy). By using the Site, you agree to be bound by our Privacy Policy, which is incorporated into these Terms of Use. Please be advised the Site is hosted in the United States. If you access the Site from any other region of the world with laws or other requirements governing personal data collection, use, or disclosure that differ from applicable laws in the United States, then through your continued use of the Site, you are transferring your data to the United States, and you agree to have your data transferred to and processed in the United States. Further, we do not knowingly accept, request, or solicit information from children or knowingly market to children. Therefore, in accordance with the U.S. Children’s Online Privacy Protection Act, if we receive actual knowledge that anyone under the age of 13 has provided personal information to us without the requisite and verifiable parental consent, we will delete that information from the Site as quickly as is reasonably practical.\ \ **COPYRIGHT INFRINGEMENTS**\ We respect the intellectual property rights of others. If you believe that any material available on or through the Site infringes upon any copyright you own or control, please immediately notify us using the contact information provided below (a “Notification”). A copy of your Notification will be sent to the person who posted or stored the material addressed in the Notification. Please be advised that pursuant to applicable law you may be held liable for damages if you make material misrepresentations in a Notification. Thus, if you are not sure that material located on or linked to by the Site infringes your copyright, you should consider first contacting an attorney.\ \ **TERM AND TERMINATION**\ These Terms of Use shall remain in full force and effect while you use the Site. WITHOUT LIMITING ANY OTHER PROVISION OF THESE TERMS OF USE, WE RESERVE THE RIGHT TO, IN OUR SOLE DISCRETION AND WITHOUT NOTICE OR LIABILITY, DENY ACCESS TO AND USE OF THE SITE (INCLUDING BLOCKING CERTAIN IP ADDRESSES), TO ANY PERSON FOR ANY REASON OR FOR NO REASON, INCLUDING WITHOUT LIMITATION FOR BREACH OF ANY REPRESENTATION, WARRANTY, OR COVENANT CONTAINED IN THESE TERMS OF USE OR OF ANY APPLICABLE LAW OR REGULATION. WE MAY TERMINATE YOUR USE OR PARTICIPATION IN THE SITE OR DELETE YOUR ACCOUNT AND ANY CONTENT OR INFORMATION THAT YOU POSTED AT ANY TIME, WITHOUT WARNING, IN OUR SOLE DISCRETION. If we terminate or suspend your account for any reason, you are prohibited from registering and creating a new account under your name, a fake or borrowed name, or the name of any third party, even if you may be acting on behalf of the third party. In addition to terminating or suspending your account, we reserve the right to take appropriate legal action, including without limitation pursuing civil, criminal, and injunctive redress. \ **MODIFICATIONS AND INTERRUPTIONS**\ We reserve the right to change, modify, or remove the contents of the Site at any time or for any reason at our sole discretion without notice. However, we have no obligation to update any information on our Site. We also reserve the right to modify or discontinue all or part of the Site without notice at any time. We will not be liable to you or any third party for any modification, price change, suspension, or discontinuance of the Site. We cannot guarantee the Site will be available at all times. We may experience hardware, software, or other problems or need to perform maintenance related to the Site, resulting in interruptions, delays, or errors. We reserve the right to change, revise, update, suspend, discontinue, or otherwise modify the Site at any time or for any reason without notice to you. You agree that we have no liability whatsoever for any loss, damage, or inconvenience caused by your inability to access or use the Site during any downtime or discontinuance of the Site. Nothing in these Terms of Use will be construed to obligate us to maintain and support the Site or to supply any corrections, updates, or releases in connection therewith. \ **GOVERNING LAW**\ These Terms of Use and your use of the Site are governed by and construed in accordance with the laws of the State of Arizona applicable to agreements made and to be entirely performed within the State of Arizona, without regard to its conflict of law principles. **DISPUTE RESOLUTION**\ **Informal Negotiations**\ To expedite resolution and control the cost of any dispute, controversy, or claim related to these Terms of Use (each a "Dispute" and collectively, the “Disputes”) brought by either you or us (individually, a “Party” and collectively, the “Parties”), the Parties agree to first attempt to negotiate any Dispute (except those Disputes expressly provided below) informally for at least thirty (30) days before initiating arbitration. Such informal negotiations commence upon written notice from one Party to the other Party.\ **Binding Arbitration**\ If the Parties are unable to resolve a Dispute through informal negotiations, the Dispute (except those Disputes expressly excluded below) will be finally and exclusively resolved by binding arbitration. YOU UNDERSTAND THAT WITHOUT THIS PROVISION, YOU WOULD HAVE THE RIGHT TO SUE IN COURT AND HAVE A JURY TRIAL. The arbitration shall be commenced and conducted under the Commercial Arbitration Rules of the American Arbitration Association ("AAA") and, where appropriate, the AAA’s Supplementary Procedures for Consumer Related Disputes ("AAA Consumer Rules"), both of which are available at the AAA website [www.adr.org](http://www.adr.org/). Your arbitration fees and your share of arbitrator compensation shall be governed by the AAA Consumer Rules and, where appropriate, limited by the AAA Consumer Rules. The arbitration may be conducted in person, through the submission of documents, by phone, or online. The arbitrator will make a decision in writing, but need not provide a statement of reasons unless requested by either Party. The arbitrator must follow applicable law, and any award may be challenged if the arbitrator fails to do so. Except where otherwise required by the applicable AAA rules or applicable law, the arbitration will take place in Yavapai County, Arizona. Except as otherwise provided herein, the Parties may litigate in court to compel arbitration, stay proceedings pending arbitration, or to confirm, modify, vacate, or enter judgment on the award entered by the arbitrator.\ If for any reason, a Dispute proceeds in court rather than arbitration, the Dispute shall be commenced or prosecuted in the state and federal courts located in Yavapai County, Arizona, and the Parties hereby consent to, and waive all defenses of lack of personal jurisdiction, and forum non conveniens with respect to venue and jurisdiction in such state and federal courts. Application of the United Nations Convention on Contracts for the International Sale of Goods and the the Uniform Computer Information Transaction Act (UCITA) are excluded from these Terms of Use.\ In no event shall any Dispute brought by either Party related in any way to the Site be commenced more than one (1) years after the cause of action arose. If this provision is found to be illegal or unenforceable, then neither Party will elect to arbitrate any Dispute falling within that portion of this provision found to be illegal or unenforceable and such Dispute shall be decided by a court of competent jurisdiction within the courts listed for jurisdiction above, and the Parties agree to submit to the personal jurisdiction of that court.\ **Restrictions**\ The Parties agree that any arbitration shall be limited to the Dispute between the Parties individually. To the full extent permitted by law, (a) no arbitration shall be joined with any other proceeding; (b) there is no right or authority for any Dispute to be arbitrated on a class-action basis or to utilize class action procedures; and (c) there is no right or authority for any Dispute to be brought in a purported representative capacity on behalf of the general public or any other persons.\ **Exceptions to Informal Negotiations and Arbitration**\ The Parties agree that the following Disputes are not subject to the above provisions concerning informal negotiations and binding arbitration: (a) any Disputes seeking to enforce or protect, or concerning the validity of, any of the intellectual property rights of a Party; (b) any Dispute related to, or arising from, allegations of theft, piracy, invasion of privacy, or unauthorized use; and (c) any claim for injunctive relief. If this provision is found to be illegal or unenforceable, then neither Party will elect to arbitrate any Dispute falling within that portion of this provision found to be illegal or unenforceable and such Dispute shall be decided by a court of competent jurisdiction within the courts listed for jurisdiction above, and the Parties agree to submit to the personal jurisdiction of that court.\ \ **CORRECTIONS**\ There may be information on the Site that contains typographical errors, inaccuracies, or omissions, including descriptions, pricing, availability, and various other information. We reserve the right to correct any errors, inaccuracies, or omissions and to change or update the information on the Site at any time, without prior notice.\ \ **DISCLAIMER**\ THE SITE IS PROVIDED ON AN AS-IS AND AS-AVAILABLE BASIS. YOU AGREE THAT YOUR USE OF THE SITE AND OUR SERVICES WILL BE AT YOUR SOLE RISK. TO THE FULLEST EXTENT PERMITTED BY LAW, WE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, IN CONNECTION WITH THE SITE AND YOUR USE THEREOF, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. WE MAKE NO WARRANTIES OR REPRESENTATIONS ABOUT THE ACCURACY OR COMPLETENESS OF THE SITE’S CONTENT OR THE CONTENT OF ANY WEBSITES LINKED TO THE SITE AND WE WILL ASSUME NO LIABILITY OR RESPONSIBILITY FOR ANY (1) ERRORS, MISTAKES, OR INACCURACIES OF CONTENT AND MATERIALS, (2) PERSONAL INJURY OR PROPERTY DAMAGE, OF ANY NATURE WHATSOEVER, RESULTING FROM YOUR ACCESS TO AND USE OF THE SITE, (3) ANY UNAUTHORIZED ACCESS TO OR USE OF OUR SECURE SERVERS AND/OR ANY AND ALL PERSONAL INFORMATION AND/OR FINANCIAL INFORMATION STORED THEREIN, (4) ANY INTERRUPTION OR CESSATION OF TRANSMISSION TO OR FROM THE SITE, (5) ANY BUGS, VIRUSES, TROJAN HORSES, OR THE LIKE WHICH MAY BE TRANSMITTED TO OR THROUGH THE SITE BY ANY THIRD PARTY, AND/OR (6) ANY ERRORS OR OMISSIONS IN ANY CONTENT AND MATERIALS OR FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF ANY CONTENT POSTED, TRANSMITTED, OR OTHERWISE MADE AVAILABLE VIA THE SITE. WE DO NOT WARRANT, ENDORSE, GUARANTEE, OR ASSUME RESPONSIBILITY FOR ANY PRODUCT OR SERVICE ADVERTISED OR OFFERED BY A THIRD PARTY THROUGH THE SITE, ANY HYPERLINKED WEBSITE, OR ANY WEBSITE OR MOBILE APPLICATION FEATURED IN ANY BANNER OR OTHER ADVERTISING, AND WE WILL NOT BE A PARTY TO OR IN ANY WAY BE RESPONSIBLE FOR MONITORING ANY TRANSACTION BETWEEN YOU AND ANY THIRD-PARTY PROVIDERS OF PRODUCTS OR SERVICES. AS WITH THE PURCHASE OF A PRODUCT OR SERVICE THROUGH ANY MEDIUM OR IN ANY ENVIRONMENT, YOU SHOULD USE YOUR BEST JUDGMENT AND EXERCISE CAUTION WHERE APPROPRIATE.\ \ **LIMITATIONS OF LIABILITY**\ IN NO EVENT WILL WE OR OUR DIRECTORS, EMPLOYEES, OR AGENTS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, SPECIAL, OR PUNITIVE DAMAGES, INCLUDING LOST PROFIT, LOST REVENUE, LOSS OF DATA, OR OTHER DAMAGES ARISING FROM YOUR USE OF THE SITE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. NOTWITHSTANDING ANYTHING TO THE CONTRARY CONTAINED HEREIN, OUR LIABILITY TO YOU FOR ANY CAUSE WHATSOEVER AND REGARDLESS OF THE FORM OF THE ACTION, WILL AT ALL TIMES BE LIMITED TO THE AMOUNT PAID, IF ANY, BY YOU TO US DURING THE ONE (1) MONTH PERIOD PRIOR TO ANY CAUSE OF ACTION ARISING. CERTAIN US STATE LAWS AND INTERNATIONAL LAWS DO NOT ALLOW LIMITATIONS ON IMPLIED WARRANTIES OR THE EXCLUSION OR LIMITATION OF CERTAIN DAMAGES. IF THESE LAWS APPLY TO YOU, SOME OR ALL OF THE ABOVE DISCLAIMERS OR LIMITATIONS MAY NOT APPLY TO YOU, AND YOU MAY HAVE ADDITIONAL RIGHTS.\ \ **INDEMNIFICATION**\ You agree to defend, indemnify, and hold us harmless, including our subsidiaries, affiliates, and all of our respective officers, agents, partners, and employees, from and against any loss, damage, liability, claim, or demand, including reasonable attorneys’ fees and expenses, made by any third party due to or arising out of: (1) your Contributions; (2) use of the Site; (3) breach of these Terms of Use; (4) any breach of your representations and warranties set forth in these Terms of Use; (5) your violation of the rights of a third party, including but not limited to intellectual property rights; or (6) any overt harmful act toward any other user of the Site with whom you connected via the Site. Notwithstanding the foregoing, we reserve the right, at your expense, to assume the exclusive defense and control of any matter for which you are required to indemnify us, and you agree to cooperate, at your expense, with our defense of such claims. We will use reasonable efforts to notify you of any such claim, action, or proceeding which is subject to this indemnification upon becoming aware of it.\ \ **USER DATA**\ We will maintain certain data that you transmit to the Site for the purpose of managing the performance of the Site, as well as data relating to your use of the Site. Although we perform regular routine backups of data, you are solely responsible for all data that you transmit or that relates to any activity you have undertaken using the Site. You agree that we shall have no liability to you for any loss or corruption of any such data, and you hereby waive any right of action against us arising from any such loss or corruption of such data.\ \ **ELECTRONIC COMMUNICATIONS, TRANSACTIONS, AND SIGNATURES**\ Visiting the Site, sending us emails, and completing online forms constitute electronic communications. You consent to receive electronic communications, and you agree that all agreements, notices, disclosures, and other communications we provide to you electronically, via email and on the Site, satisfy any legal requirement that such communication be in writing. YOU HEREBY AGREE TO THE USE OF ELECTRONIC SIGNATURES, CONTRACTS, ORDERS, AND OTHER RECORDS, AND TO ELECTRONIC DELIVERY OF NOTICES, POLICIES, AND RECORDS OF TRANSACTIONS INITIATED OR COMPLETED BY US OR VIA THE SITE. You hereby waive any rights or requirements under any statutes, regulations, rules, ordinances, or other laws in any jurisdiction which require an original signature or delivery or retention of non-electronic records, or to payments or the granting of credits by any means other than electronic means.\ \ **CALIFORNIA USERS AND RESIDENTS**\ If any complaint with us is not satisfactorily resolved, you can contact the Complaint Assistance Unit of the Division of Consumer Services of the California Department of Consumer Affairs in writing at 1625 North Market Blvd., Suite N 112, Sacramento, California 95834 or by telephone at (800) 952-5210 or (916) 445-1254.\ \ **MISCELLANEOUS**\ These Terms of Use and any policies or operating rules posted by us on the Site or in respect to the Site constitute the entire agreement and understanding between you and us. Our failure to exercise or enforce any right or provision of these Terms of Use shall not operate as a waiver of such right or provision. These Terms of Use operate to the fullest extent permissible by law. We may assign any or all of our rights and obligations to others at any time. We shall not be responsible or liable for any loss, damage, delay, or failure to act caused by any cause beyond our reasonable control. If any provision or part of a provision of these Terms of Use is determined to be unlawful, void, or unenforceable, that provision or part of the provision is deemed severable from these Terms of Use and does not affect the validity and enforceability of any remaining provisions. There is no joint venture, partnership, employment or agency relationship created between you and us as a result of these Terms of Use or use of the Site. You agree that these Terms of Use will not be construed against us by virtue of having drafted them. You hereby waive any and all defenses you may have based on the electronic form of these Terms of Use and the lack of signing by the parties hereto to execute these Terms of Use. ### Contact Us > [card] [Support](https://support.sonoransoftware.com) # Pricing FAQ Source: https://docs.sonoransoftware.com/cad/pricing/faq See below for commonly asked questions and answers: Additionally, you can get **25% off** if you choose to purchase CAD, CMS, Radio, or Sonoran One as a **quarterly** subscription (available at Stripe checkout). ### Looking to compare plans? [View our pricing page!](https://sonorancad.com/pricing) ### Looking to purchase a plan? > [card] [Create and Manage a Subscription](/cad/pricing/faq/create-and-manage-a-subscription) ### How do I change what community my subscription is applied to? At any time with an active subscription (including canceled subscriptions that are still active) you may change what community is benefiting from the subscription. Simply change the [community ID](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code) on the active subscription to a new one. > [card] [Create and Manage a Subscription](/cad/pricing/faq/create-and-manage-a-subscription) ### How do I cancel, upgrade, or downgrade my subscription? You can cancel, upgrade, or downgrade your subscription at any time using the payment center. > [card] [Create and Manage a Subscription](/cad/pricing/faq/create-and-manage-a-subscription) ### Are subscriptions a one-time payment, or monthly? With Sonoran CAD, you have the option to choose either a monthly or quarterly subscription. We offer multiple different subscription levels at different price ranges. You can [compare our plans ](https://sonorancad.com/pricing)to see what works best for your community. By choosing a **quarterly subscription**, you are given a **25% discount**. Simply select the **3-month billing** option at checkout and the discount will automatically be applied! ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d0bcfb7b89617860b7f18911b2ab5343c0e955eec652df0ff5641e4e508f9c9.png) *Sonoran Software - Quarterly Plan* Monthly subscriptions are renewed one month after the start date, and quarterly subscriptions are renewed three months after the start date. You will receive an email from Stripe a few days before you are charged again. This way, you aren't charged again without prior notice. ### Can I purchase a lifetime or yearly subscription? Due to ongoing server hosting, development, maintenance, and customer support costs, we are unable to offer a lifetime subscription. All subscriptions are charged on a monthly or quarterly recurring basis. We do not offer yearly subscriptions, although we do offer **quarterly subscriptions at a 25% discount** as stated before. ### What payment methods are accepted? We accept all major credit or debit cards through the in-app payment center. All payment processing is handled via Stripe. ### What happens if my subscription expires? Will I lose my data? If your subscription expires, your CAD will automatically be downgraded to the free version. Your data will not be lost, but you will lose access to the additional customization or integration features that were included with your paid plan. *Communities with no active logins for 30 days will be automatically removed.* ### I purchased expert installation, how do I activate this? If you've purchased [expert installation](/promotions/expert-installation), simply reach out to our [customer support team](https://support.sonoransoftware.com). ### Refund and Purchase Policy For more information on our refund and purchasing policy, click [here](/cad/other/policy/refund-and-purchase-policy). # Accessing the Payment Center Source: https://docs.sonoransoftware.com/cad/pricing/faq/accessing-the-payment-center Learn more about accessing Sonoran CAD's payment center. > [!WARNING] > > The payment center is only accessible from the **web or desktop version of Sonoran CAD**. The payment center **will not be visible using our iOS or Android** application. ### Access the Payment Center 1. Sign into [sonorancad.com](https://app.sonorancad.com) 2. In the side navigation menu, select "My Account" ![Sonoran CAD - Access Account Menu](https://docs-assets.sonoransoftware.com/sha256/20/2051a8491af6a98a89a47a542e4cfddaee8bc6d04b40fe894336ac6f147ac9c5.png) 3\. Select "Subscriptions"\ \- This will open [sonorancad.com/billing](https://sonorancad.com/billing)\ ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d16691d14442261b0b5904b5d504ade5dd6830794932c6d21539b0125eafba9.png) # Create and Manage a Subscription Source: https://docs.sonoransoftware.com/cad/pricing/faq/create-and-manage-a-subscription Learn more about managing a new or existing Sonoran CAD subscription. ## Create a New Subscription ### Access the Payment Center Access the payment center on the Web or Desktop version of Sonoran CAD by going to [sonorancad.com/billing](https://sonorancad.com/billing), or by viewing the guide below. > [card] [Accessing the Payment Center](/cad/pricing/faq/accessing-the-payment-center) ### Select the Desired Subscription In the payment center, select "New Subscription"\ From there, select the monthly subscription you would like to start. ![Sonoran CAD - Payment Center Selection](https://docs-assets.sonoransoftware.com/sha256/39/39a53377b55bc2571f21d1503d0811e5405f2c47d8c447c079b00811eef4935f.png) ### Complete the Purchase After selecting the desired subscription plan, you will be redirected to a Stripe checkout page.\ Here, you can enter your billing information and start the subscription. ![Sonoran CAD - Stripe Checkout](https://docs-assets.sonoransoftware.com/sha256/70/70624c9b32ad1b63cf6cf723687567116e904c20db55857fc2e747e5b782e0d0.png) ### Set your Community ID Once you've completed your purchase, set the community ID on the subscription in your billing center.\ [Where can I find my community ID?](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code) ![Sonoran CAD Payment Center - Set Community ID](https://docs-assets.sonoransoftware.com/sha256/8f/8f8fd8589fe4c3aa87d72f87d34c4b5b0f04c58df9f9de136c75762eecb7e352.png) The modal will show options to set the subscription to any community you are currently a part of. ![Payment Center - Set Community ID Prompt](https://docs-assets.sonoransoftware.com/sha256/3d/3d4594ccca69fbd6ac7584e8d2c14748cffd06faa119cf91f97c92adc077950c.png) ## Manage an Existing Subscription You can easily update the payment information, upgrade, downgrade, or cancel your Sonoran CAD subscription at anytime. ### Access the Payment Center Access the payment center on the Web or Desktop version of Sonoran CAD by going to [sonorancad.com/billing](https://sonorancad.com/billing), or by viewing the guide below. > [card] [Accessing the Payment Center](/cad/pricing/faq/accessing-the-payment-center) ### Open the Stripe Customer Portal On any active subscription, select "Modify" to open the Stripe customer portal. ![Sonoran CAD Payment Center - Modify Subscription](https://docs-assets.sonoransoftware.com/sha256/72/72b38d679e3ab935f5f7fe6fdce003a752e821d45e980b12fa2670af3613fc79.png) ### Utilize the Stripe Customer Portal Once opened, you can easily update your payment information, upgrade, downgrade, or cancel an existing subscription. ![Sonoran CAD - Stripe Customer Portal](https://docs-assets.sonoransoftware.com/sha256/87/875f9451138fff5539dfe7a3c46417775558dccc2f99cd592cb3f8fa795dac05.png) ## Migrate a Subscription to Another Community Sonoran CAD subscriptions can be easily transferred from one community to another. ### Access the Payment Center Access the payment center on the Web or Desktop version of Sonoran CAD by going to [sonorancad.com/billing](https://sonorancad.com/billing), or by viewing the guide below. > [card] [Accessing the Payment Center](/cad/pricing/faq/accessing-the-payment-center) ### Update the Subscription's Community ID Select "Set Community ID" on the subscription in your billing center.\ [Where can I find my community ID?](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code) ![Sonoran CAD Payment Center - Set Community ID](https://docs-assets.sonoransoftware.com/sha256/8f/8f8fd8589fe4c3aa87d72f87d34c4b5b0f04c58df9f9de136c75762eecb7e352.png) # Request Discord Role Source: https://docs.sonoransoftware.com/cad/pricing/faq/request-discord-role Learn how to request roles in the Sonoran Software Discord server. ## Available Roles ### Customer Role The `Customer` role grants users access to the `#customer-lobby` channel in our [Discord](https://discord.sonoransoftware.com/). #### Retrieve your Subscription ID In the billing portaltal, copy the subscription ID from the "Active Subscriptions" table: ![Sonoran CAD's Payment Center](https://docs-assets.sonoransoftware.com/sha256/aa/aa73714ad098e3906f24a86e408936e5aa55511d25e4e00d4ef7cf0da7e45e2d.png) #### Retrieve your Discord Tag In Discord, click your username to copy your Discord tag. ![Copy Discord Tag](https://docs-assets.sonoransoftware.com/sha256/fa/fa4edc2419b0eb02b6d69e7000b5207dc32948d0679126e63f4a96add231c9eb.png) #### Enter your Information On our [support website](https://support.sonoransoftware.com), select the "Discord Role" button and paste in your information. ![Sonoran Support - Request Discord Role](https://docs-assets.sonoransoftware.com/sha256/b8/b85a41a71cb33c9bbc1ca7e6f3f28d0c93ae17fb77d0d141f63080e738922869.png) # Roadmap & Changelog Source: https://docs.sonoransoftware.com/cad/roadmap/roadmap-and-changelog View our development team's upcoming roadmap and historical changelog. # Changelog Source: https://docs.sonoransoftware.com/cad/roadmap/roadmap-and-changelog/changelog View the latest changes to Sonoran CAD! ## Roadmap [View our upcoming roadmap!](https://roadmap.sonorancad.com) ## Changelog ### 3.44.23 11/08/2026 > [tab] Changed > > Recent Photos > > * Updated the photo API UI to browse recent photos and attach them to custom records. ### 3.44.22 11/06/2026 > [tab] Fixed > > Civilian Records: Scrollable Registration Forms > > * Fixed scrolling through long records in the civilian panel on phones and tablets. ### 3.44.21 11/05/2026 > [tab] New > > Community Donations: Gift Card Support > > * Added community donation settings, personal gift links, gift-card billing actions, and a refreshed My Account menu. > > Community Donations: Live Availability > > * Enabled donations throughout CAD, reused the navbar avatar in My Account, and limited in-app account deletion to iOS. > [tab] Changed > > My Account: Simpler Gift Access > > * Removed the duplicate gift-link section from My Account so donation requests are available through Billing and gift cards. > > Billing: Compact Plan List > > * Updated billing with a compact list that puts billing status next to the date and community assignment in the Community column. > [tab] Fixed > > Account Credit: Existing Sessions > > * Fixed account credit requests for active CAD sessions without persisted single sign-on data. ### 3.44.18 10/23/2026 > [tab] New > > ER:LC: Civilian ID Check > > * Request nearby civilians' IDs from the desktop overlay, view their character details, and run a name lookup. > [tab] Changed > > Account Permissions: Bulk Toggles > > * Added toggle-all options and clearer permission descriptions. > > FiveM: Integration Landing Page > > * Updated plugin previews, partner branding, and the scrolling integration catalog. > [tab] Fixed > > Records: Light Theme Readability > > * Fixed white-on-white text in light themes and the retro PDF style. > > Records: Read-Only Dates > > * Fixed read-only dates being reformatted while viewing records, causing permission errors when saving. > > NCIC: Load More Scrolling > > * Fixed horizontal scrolling breaking after loading more record results in NCIC view. ### 3.44.17 10/15/2026 > [tab] New > > Billing: CAD Pro Lifetime > > * One payment. No recurring subscription. Use your license on one CAD community you own at a time, move it to another whenever you like, and use any supported game with no game lock-in. > > NCIC: Copy Record IDs > > * Added clickable record IDs in NCIC results so you can copy an ID without opening the full record. > [tab] Changed > > Billing: Simplify Lifetime Checkout > > * Removed repeated purchase details and clarified why communities with existing plans cannot be selected. > > Pricing: Compact Plan Comparison > > * Condensed the Sonoran One banner and trust details, and aligned plan headings and prices. > > Integrations: Retire London Studios Smart Signs > > * Removed the legacy London Studios Smart Signs integration in favor of Sonoran Street Signs custom integration panels. > > FiveM Setup: Remove Unused Outbound IP Setting > > * Removed the unused outbound IP address setting from game server configuration. > > CAD Pro Lifetime: Clarify License Terms > > * Clarified future AI and third-party feature limits, abuse enforcement, and optional support review. > [tab] Fixed > > Live Map: Tooltip Theme > > * Fixed white-on-white unit and blip tooltips when using a light theme. > > NCIC: Horizontal Scrolling > > * Fixed wide NCIC results hiding the horizontal scrollbar below the visible rows in Records and Lookup panels. > > Billing: Lifetime Plan Logo > > * Fixed CAD Pro Lifetime plans showing a checkmark instead of the CAD logo. ### 3.44.15 10/06/2026 > [tab] New > > Account: Discord Linking Banner > > * Added a configurable Discord account linking banner for communities using Discord role mappings. > [tab] Changed > > Account: Roblox Link Banner > > * Updated the Roblox account linking banner with a compact layout, clearer text, and a prominent Link button. > [tab] Fixed > > Customization: Community Info Saving > > * Fixed community banner and information changes failing to persist when closing the editor before an upload or save finishes. > > Customization: Banner Image Picker > > * Fixed the community banner image appearing blank and preventing image selection. > > Live Map: ERLC 2D Responsiveness > > * Fixed desktop lag, cleaned up disabled blips, and restored 2D map menu actions. ### FiveM - v4.0.120 > [tab] New > > FiveM: Interactive CAD Laptops > > * Click, scroll, and type in CAD from vehicle and station laptops while keeping your current CAD session. [View the CAD Display guide](/cad/integration-plugins/in-game-integration/available-plugins/cad-display). > * The bundled tablet updates with Sonoran CAD through the normal updater. With automatic updates enabled, the release installs automatically; run `sonorancad update` in the server console to check for it manually. > > FiveM: CAD Screen Alignment > > * Added `/caddisplay calibrate` to align CAD with custom laptop props and built-in vehicle screens. > * Custom screens need an alignment profile to use the interactive view. Follow the [screen alignment steps](/cad/integration-plugins/in-game-integration/available-plugins/cad-display#screen-alignment-for-server-owners), copy the generated settings into `caddisplay_config.lua`, and restart `sonorancad`. The standard laptop includes a default profile, and existing saved display placements can be kept. > > FiveM: ERS Troubleshooting > > * Added the server console command `sonorancad ers` to show connection status, callout-list status, and the latest failure. This information is also included automatically when sending support logs. [View the ERS guide](/cad/integration-plugins/in-game-integration/available-plugins/ers#troubleshooting). > [tab] Changed > > FiveM: CAD Display Placement > > * Replaced keyboard placement controls with mouse movement and rotation handles, snapping, and camera controls, including cabin and orbit views for vehicles. > * Stop the vehicle before editing. Choose **Apply to this vehicle** or, for administrators, **Save for this vehicle model**. Running `/caddisplay` on foot now opens station display management directly. > > FiveM: Tablet Account Linking > > * Removed the red registration bar and **Retry** button. If your account is not recognized, use `/link`, then `/tablet checklink`. [View the Tablet guide](/cad/integration-plugins/in-game-integration/available-plugins/tablet#auto-user-link). > > FiveM: ERS Compatibility > > * **Required update:** Communities running Night ERS below `1.8.16` must update Night ERS to `1.8.16` or newer and restart `night_ers`. The existing minimum version is now enforced, so older versions prevent the integration from starting. > > FiveM: ERS Postals > > * ERS calls use your configured Sonoran CAD postal data, including custom postal files, before falling back to ERS-provided postals. > [tab] Fixed > > FiveM: Civilian Registration Photos > > * Fixed portraits showing outdated or unfinished character appearances. Automatic photos wait for the character's appearance to finish loading, and interrupted captures no longer replace the saved photo with an incorrect image. > * Photos exclude masks, hats, glasses, and ear and neck accessories without removing them from the player. [View the Civilian Registration guide](/cad/integration-plugins/in-game-integration/available-plugins/civilian-registration#portrait-uploads). > > FiveM: ERS Calls and Records > > * Fixed duplicate calls and records during repeated requests, and ensured additional players accepting the same callout are attached to its CAD call. > * Improved recovery after ERS restarts and added automatic retries when the callout list fails to load or synchronize. > > FiveM: Bodycam Viewer Connections > > * Fixed cameras remaining marked as watched after viewers disconnect. Disconnected viewer connections are cleared without interrupting other viewers or an ongoing recording. > * Bodycam notifications show the force-off command only to players with permission to use it. [View the Body Camera guide](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#turning-off-a-camera-being-viewed). > > FiveM: Display and Tablet Reliability > > * Fixed interaction prompts disappearing after a display had been used, repeated control notifications, and duplicate handheld tablet props when reopening the tablet. ### 3.44.14 10/02/2026 > [tab] New > > ERLC: ALPR Cameras > > * Added configurable ALPR cameras with 28 default locations, vehicle description variables, and automatic 911 calls for active BOLO plates. > [tab] Changed > > ERLC: Live Map Markers > > * Smoothed live unit movement and shortened call labels for clearer map displays. ### 3.44.11 09/30/2026 > [tab] New > > Discord Role Sync Panel > > * Added Discord role sync directly in the CAD admin panel for easier setup and configuration > > Discord Link Banner > > * Added a toggle option to display a "Link Discord Account" banner to users who don't have their Discord linked for systems like role mapping, enabled by default. > > Roblox Link Banner UI > > * Updated the Roblox account link banner for communities with ER:LC integration enabled. > [tab] Fixed > > Live Map: Optimizations > > * Improved and optimized the 2D live map, causing some users to experience lag with high blip count numbers. > > Customization: Logo and Description > > * Fixed an issue causing some communities to not have their community logo updated from the customization menu. ### 3.44.11 09/30/2026 > [tab] Changed > > Desktop App: Overlay and Theme Improvements > > * Updated overlay themes, icons, tooltips, status menus, view switching, and dragging, ensured overlays close with CAD, and standardized theme card sizes. > [tab] Fixed > > Emergency Calls: Duplicate Call Prevention > > * Fixed duplicate 911 calls and repeated event handling after reconnecting or restoring self-dispatch. > > Live Map: 911 Call Removal > > * Fixed deleting 911 calls from the 2D and 3D live maps for ERLC and FiveM. ### 3.44.10 09/30/2026 > [tab] Fixed > > Mobile Layout: Improve Taskbar and Record Spacing > > * Fixed mobile taskbar and call-viewer spacing, report width, and touch map controls, and removed the customization new-feature badge. ### 3.44.9 09/30/2026 > [tab] New > > ERLC and Discord: Call Location Tools > > * Added map pin selection, official ERLC streets, and Discord event channel settings with call location images. ### 3.44.8 09/29/2026 > [tab] New > > Live Map: ERLC Map and Postal Search > > * Added the new ERLC 3D map, seasonal 2D maps with label controls, indexed postal search, and a more compact legend. > > Live Map: ERLC Service Models > > * Added hosted police, fire, EMS, and DOT vehicle and character models with team-based selection and movement-based headings. ### 3.44.3 09/17/2026 > [tab] Fixed > > Bodycam: Sound and Source Controls > > * Fixed the stop sound to respect mute and volume settings and kept source controls available when another source category has options. ### 3.44.1 09/16/2026 Guides: [Record Automations](/cad/tutorials/customization/record-automations), [Custom Records](/cad/tutorials/customization/creating-custom-record-and-report-types), and [Account Permissions](/cad/tutorials/getting-started/permissions). > [tab] New > > Record Automations: More Field Types > > * Added support for checkbox, date, time, and image fields in record automations. > > Record Automations: Searchable Dropdowns > > * Added type-to-filter search to the template and field dropdowns for faster automation setup. > > CMS Integration: Granular CAD Permissions > > * Added support in Sonoran CMS for managing granular Sonoran CAD permissions. > > Live Map: Custom Blip Integration Panels > > * Added interactive integration panels to custom blip menus for viewing and controlling connected systems directly from the live map. > [tab] Changed > > Record Permissions: Separate Editing Controls > > * Separated full access through Edit any from Edit selected fields on others’ records, which limits editing to fields explicitly enabled in the record template. > > Record Automations: Protected Fields > > * Updated automations to allow changes to fields marked as supervisor-only or read-only. > > Custom Records: File-Based Import > > * Replaced the JSON paste prompt with a file picker when importing custom record templates. > > Accounts: Community User ID > > * Updated the Accounts panel to display the current Community User ID, used by FiveM /link, instead of legacy API IDs. > [tab] Fixed > > Record Permissions: Supervisor Field Access > > * Fixed supervisor fields remaining locked on other users’ records for users with supervisor permission when those fields were not enabled for limited editing. > > Dispatch: Custom Layout Calls > > * Fixed an issue that prevented some calls using custom dispatch layouts from appearing in the active calls list. > > Record Automations: Missing Fields > > * Fixed fields being hidden from automation settings when they retained an old database-sync flag. > > Navigation: Clickable Community Name > > * Fixed the community name in the top-left header so text branding supports the same back navigation as image branding. ### 3.44.0 09/15/2026 > [tab] New > > Community Workflows: Records and Permissions > > * Added per-template permissions, a visual record editor, record automations, and in-app release highlights. ### 3.43.32 09/14/2026 > [tab] New > > Customization: CentralCircle Theme > > * Added a new CAD theme inspired by CentralSquare Enterprise CAD, with light tables, dark headers, and blue controls. > [tab] Fixed > > Desktop Downloads: Latest Releases > > * Updated desktop download links to the latest available Windows, macOS, and Linux releases. ### 3.43.30 09/10/2026 > [tab] Fixed > > Mobile Builds: Publishing Fixes > > * Fixed Android SDK installation and enabled replacement of pending TestFlight reviews for production iOS builds. ### 3.43.29 09/09/2026 > [tab] New > > Database Sync: Setup Walkthrough > > * Added a guided walkthrough for setting up Database Sync. > > Support: Contact and Feedback > > * Added a menu option to contact support and submit feedback. > [tab] Fixed > > Desktop: Active Calls Loading > > * Fixed active calls loading indefinitely on desktop. > > Closed Calls: Performance > > * Fixed freezing and performance issues when loading large closed calls. ### 3.43.26 09/09/2026 > [tab] Fixed > > Desktop App: Reliable Close and Reopen > > * Fixed the Windows app remaining in the background after closing its main window and preventing it from reopening. ### 3.43.26 09/09/2026 > [tab] New > > Notepad: Linked Lookup Notes > > * Added bi-directional iframe note syncing and inline name and plate lookups with NCIC previews. > > Notepad: External Name and Plate Searches > > * Added iframe requests to search highlighted text in external notepads and sync linked results back to CAD notes. > [tab] Changed > > Website: Homepage and Pricing Improvements > > * Improved homepage loading and search visibility, added a dedicated pricing page, and streamlined sign-in and logout. ### 3.43.25 08/27/2026 > [tab] New > > ER:LC Integration: Emergency Call Auto-Delete > > * Added configurable automatic removal of ER:LC emergency calls after a selected number of minutes. > > ER:LC Integration: Emergency Call Type Controls > > * Added individual controls to enable or disable Police, Fire, and DOT emergency calls. ### 3.43.24 08/26/2026 > [tab] New > > Integration Panels > > * Added an all-new API to create custom UI panels in the CAD, complete with events and storage for third-party integrations. > [tab] Fixed > > Records: Charge Preview Tooltips > > * Fixed ambiguous charge previews from displaying details for the wrong penal code. > > Dispatch: Custom Call Statuses > > * Fixed active and historical calls displaying legacy statuses instead of their customized dispatch status. ### 3.43.23 08/25/2026 > [tab] New > > Shortcuts: Workflow Automation > > * Added recordable taskbar shortcuts with reusable steps, hotkeys, CLI commands and arguments, import and export, and Stream Deck playback. > [tab] Fixed > > Self Dispatch: New Call Taskbar Action > > * Fixed creating a call from the New Call taskbar item in self dispatch. ### 3.43.22 08/13/2026 > [tab] New > > Dispatch Calls: Layout Customization > > * Added a visual dispatch call layout editor for arranging sections and configuring system fields, custom fields, statuses, and required fields. > > Dispatch Calls: Call ID Format Customization > > * Added customizable dispatch call ID formats with year, month, day, and numeric ID variables for region-specific numbering. > > Community Settings: Geographical Customization > > * Added geographical settings for regional terminology, address and measurement formats, date and time preferences, and community menu labels. ### 3.43.19 08/05/2026 > [tab] Fixed > > Call Viewer: Mobile Call Notes > > * Fixed call notes so they display and remain scrollable on mobile and tablet screen sizes. ### 3.43.19 08/03/2026 > [tab] New > > Call Viewer: State Returns > > * Added a State Returns tab for attaching full lookup results to calls and reviewing them in table, card, or NCIC views. > > Database Sync: Automatic AI Setup > > * Added an AI-guided setup that automatically builds and reviews database sync field mappings. > [tab] Changed > > Dispatch Taskbar: New Call Shortcut > > * Added the New Call taskbar action for dispatchers so they can open call creation directly from the taskbar. ### 3.43.18 07/29/2026 > [tab] New > > Custom Records: AI Narrative Improvement > > * Added Pro AI assistance for polishing custom record narratives, with usage visibility for administrators. > [tab] Fixed > > Lookup: Custom Section Labels > > * Fixed lookup result columns displaying internal placeholder field names instead of custom section labels. ### 3.43.17 07/28/2026 > [tab] Fixed > > Lookup: Flag Voice Announcements > > * Fixed lookup results failing to announce enabled custom flag names with text-to-speech. ### 3.43.15 07/23/2026 > [tab] New > > Records: NCIC Results View > > * Added an NCIC-style results view for Lookup and Records with theme-based defaults and a persistent user preference. > > Dispatch: Command Line Overhaul > > * Added a customizable dispatcher CLI with saved-call creation, unit and call actions, autocomplete, keyboard navigation, configurable hotkeys, and taskbar access. > [tab] Fixed > > Records: Mobile PDF Printing > > * Fixed an issue preventing record PDFs from opening or printing on mobile devices. > > Lookup: Retro Search Type Icons > > * Fixed Plate, Identifier, and Record ID searches displaying the same icon in retro mode. > > Taskbar: Dual Compact Toolbar Width > > * Fixed the secondary taskbar failing to span the full width when Dual Taskbar and Compact Toolbar are enabled. ### 3.43.13 07/22/2026 > [tab] New > > DB Sync: Save and Disabled Indicators > > * Improved the individual DB sync sections to show disabled markers and added an unsaved changes notice > > Bodycam: Recording Toggle > > * Improved the unit identifier bodycam tab to show a start/stop recording button with a notice about the hotkeys for web and desktop users > > Custom Layouts: Bodycam Viewer > > * Added support for the live bodycam viewer as a custom layout panel > [tab] Changed > > Customization: Settings vs hotkeys > > * Updated the customization menu to have separate tabs for general settings vs hotkeys > [tab] Fixed > > Bodycam: Recording Timeline Scrubber > > * Fixed an issue with the bodycam recording playback timeline scrubber skipping to the end visually > > Bodycam: Shadow Recording > > * Fixed an issue with the web and desktop version not properly including the shadow recording in some cases > > Trevor Theme: Dual Taskbar > > * Fixed an issue with the secondary taskbar when in dual mode on the Trevor theme not having proper width for tabs > > Dual Taskbar: Customization > > * Fixed an issue where the customization tab button would not work if in the secondary taskbar > > Lookup: Create Record on Character > > * Fixed an issue where creating a new record from a civilian record in the lookup tab wouldn't automatically import them to the record > > Call Editor: Create Call Selection > > * Fixed an issue where opening the call editor tab after a refresh would prevent the dropdown selections from working, until the editor was cleared > > Call Editor: New Line for Notes > > * Fixed an issue where pressing ENTER in the call notes would send the note with a new line above it. SHIFT + ENTER is now used for newlines. > > Call Editor: Call Description > > * Fixed an issue where the call description box of the call viewer could sometimes overflow the parent container. ### 3.43.12 07/20/2026 > [tab] New > > Themes: Mark19 > > * Added a new Mark19 theme option by default > > Themes: Trevor > > * Added a new Trevor theme option by default ### 3.43.10 07/04/2026 > [tab] New > > ER:LC Setup Helper > > * Added an improved walkthrough layout for the ER:LC integration > > FiveM Setup Helper > > * Added an improved walkthrough layout for the FiveM integration > [tab] Fixed > > Dispatch Call Update SFX > > * Fixed an issue where dispatchers would hear SFX for all call updates not just the ones they had open ### 3.43.9 07/02/2026 > [tab] New > > Multiple Call Editors > > * Added the ability to open and edit multiple dispatch calls at once > > Multi-Monitor Drag-and-Drop > > * Added drag-and-drop support for multi-monitor layouts to drag units, dispatch calls, and emergency calls from one monitor into another monitor's call editor. > > Drag-and-Drop Row > > * Updated the drag-and-drop system for units, dispatch calls, and emergency calls to make the entire row draggable, not just the ID chips. > > Active Groups Display Persistent > > * Added a toggle to the active groups panel to hide persistent groups that have no active units in them > > Penal Code Preview > > * Added a preview tooltip to penal codes in the records panel search results > > Billing Page Overhaul > > * UI overhaul to the customer billing portal, making it easier to view important information, select the community to upgrade, and see offers. > [tab] Changed > > Sonoran CAD Logo Redirect > > * Improved behavior when in a community and clicking the Sonoran CAD logo in the header so that it goes back to the community menu, not the homepage. > [tab] Fixed > > Multi-Monitor Call Viewer Hyperlink > > * Fixed an issue where selecting a dispatch call would switch to the call viewer window instead of using the existing call viewer window on another monitor > > Multi-Monitor Live Map Hyperlink > > * Fixed an issue with live map hyperlinks (unit locations, emergency call pins, etc.) would switch to the full live map window instead of using the existing live map window on another monitor > > Multi-Monitor Header Shortcuts > > * Fixed issues and improved handling with the desktop header allowing for double-click and drag to the top of the monitor for full-screen shortcuts. > > Record Agency Field IDs > > * Fixed an issue with custom record agency sections having the record ID still show as NEW > > Tablet Layout Drag-and-Drop > > * Fixed an issue on the tablet sized screens preventing drag-and-drop custom layouts from saving and reverting instantly > > Panel Expand and Collapse > > * Fixed an issue with the tablet sized screen not allowing double-click to expand and collapse layout panels > > Active Calls Unit Display > > * Fixed an issue with the units on an active call only displaying a maximum of two when the column was wide enough for more ### 3.43.6 06/29/2026 > [tab] New > > Custom Layouts: Chat > > * Added support for the chat window in custom layouts. > > Custom Layouts: Recordings > > * Added support for the bodycam recordings window in custom layouts. > > Game Overlay Tab > > * Added a new taskbar tab to open the in-game overlay for desktop applications, making it more visible and easier to find. ### 3.43.5 06/29/2026 > [tab] New > > Live Map Optimizations > > * Optimized the FiveM 3D live map and added additional optimizations for both 3D live maps to keep it persistently loaded Saved Types > > Saved Types > > * Added a new option to keep the saved call types dropdown visible in the call editor Send Lookup to Unit > > Send Lookup to Unit > > * Re-added support to send lookups to units Theme - Undo Changes > > Theme - Undo Changes > > * Added a menu option to undo the unsaved changes to your current theme selection > [tab] Fixed > > Multi-Monitor Close Error > > * Fixed an error popup happening whenever a multi-monitor window was closed Unit Event Subscription > > Unit Event Subscription > > * Fixed an issue where units would still be subscribed to updates, hearing things like panic toggles if they switched to the civilian page Tablet Size Drag-and-Drop > > Tablet Size Drag-and-Drop > > * Fixed an issue with users on the in-game tablet unable to drag-and-drop taskbar tabs to reorder if their tablet was too small ### 3.43.4 06/27/2026 > [tab] New > > Multiple Monitor Support > > * Added experimental support for multiple desktop screens for multi-monitor use when using the Windows or OSX application > > Call Viewer ID Hyperlink > > * Added a hyperlink to the call ID number in the call viewer, allowing users to quickly switch calls > > Panel Expand and Collapse > > * Added a double-click action to the custom layout panel header, allowing users to quickly expand and collapse a panel > > Layout Panels - Signal > > * Added support for the signal panel to be placed in custom layouts > > Layout Panels - Tone Board > > * Added support for the tone board panel to be placed in custom layouts > [tab] Fixed > > Call Viewer Layout - Units > > * Fixed an issue with the unit attachments not being available in the layout version of the call viewer > > Call Viewer Layout - Attachments > > * Fixed an issue with call note attachments not opening the record when in the layout version > > Record Viewer - ID > > * Fixed an issue with record IDs showing as -1 when opening the record > > Call Viewer - Description > > * Fixed resizing issues with the call editor description and overall layout for shorter screens > > Call Viewer Layout - Drag Unit Attachment > > * Fixed an issue where dragging a unit to the call viewer would open the full call viewer page > > Tasbkar - Subtask Overflow > > * Removed the visible scrollbar on the subtaskbar when items overflowed ### 3.43.3 06/26/2026 > [tab] New > > Desktop Layout: Live Map > > * Added live map support to the layout panels instead of only a dedicated tab > > Desktop Layout: Call Viewer > > * Added support for the call editor in the desktop layout system > > Themes: Save Layout > > * Themes now save desktop panel sizes and locations > > Call Viewer: Hotkey > > * Added a new desktop hotkey to open the dedicated call viewer tab > > Customization: Map Behavior > > * Added a customization behavior for opening the dedicated live map window vs desktop panel > > Customization: Call Behavior > > * Added a customization behavior for opening the dedicated call viewer window vs desktop panel > [tab] Changed > > Customization: Settings > > * Removed the settings menu from the taskbar dropdown and moved them to the customization menu ### 3.43.2 06/25/2026 > [tab] New > > Lookup Panels - Tablet Size > > * Updated the civilian and record panel inside the lookup section to have a maximum height and the option to collapse the panels > > Customization - Font Size > > * Added significantly larger font size options > [tab] Changed > > Lookup Tab - Search Types > > * Search types expansion area in the lookup panel is now collapsed by default > [tab] Fixed > > Preview Fields - Record IDs > > * Fixed an issue with record IDs showing as NEW in the preview fields > > Live Map - Postal Search > > * Fixed an issue with live map postal search not working (FiveM resource restart required) > > Custom Layout - Outdated Cache > > * Fixed an issue causing some users to load their old custom layouts, mixing with the new system in strange ways > > Active Calls - Refresh > > * Fixed an issue with active calls list spam reloading in some cases ### 3.43.0 06/25/2026 > [tab] New > > UI Customization Overhaul > > * Revamped the entire emergency services panel UI with new customization options, theme editor, custom layout system, and more. > > Record Lookup Optimizations > > * Major overhauls for the record lookup systems, vastly improving performance for communities with hundreds of thousands of records. Supervisor panels no longer limit the number of records visible, in-game tablet performance has been improved, and more. ### 3.42.2 04/30/2026 > [tab] New > > Record Edit History > > * Audit and view historical changes to record fields > > Homepage Refresh > > * Initial UI refresh of the homepage > > Authentication Optimizations > > * Overhauled backend authentication logic to heavily improve performance > [tab] Fixed > > Initial Socket Connections > > * Fixed an issue with initial connections getting a 404 on socket initialization > > 3D FiveM Map Unit Locations > > * Fixed an issue with unit locations appearing south east of where they should be > > Station Alert API > > * Fixed an API issue causing the latest Station Alert resource to not show locations in the UI ### 3.42.1 04/10/2026 > [tab] Fixed > > Stream Deck Port Binding > > * Fixed an issue with the desktop app sometimes resulting in a port error message displaying from the Stream Deck plugin ### 3.42.0 04/02/2026 > [tab] New > > FiveM: Bodycam Recording > > * The FiveM bodycam now offers automated recording on events, stored in Sonoran CAD. > > FiveM: Bodycam Overlay > > * Added a new bodycam overlay in-game. > > Unit Chat > > * Added a messaging system between units, complete with text-to-speech > > Tone Board TTS & Stacking > > * Added localized text-to-speech, speech-to-text, and stacking to the tone board > > Persistent Groups > > * Communities can now create persistent unit groups that are not removed when units disconnect. Groups can also be self-assigned by units and have limits set. > > Modify Identifier > > * Initial UI revamp of the unit editor > > Admin Panel UI Colors > > * Initial color revamp of the admin panels and navigation > [tab] Fixed > > Desktop Overlay Dispatch > > * Fixed an issue with the desktop overlay not allowing dispatchers to toggle on the feature to include emergency calls ### 3.41.4 03/24/2026 > [tab] New > > In-Game Desktop Overlay > > * Desktop app users can now toggle an in-game overlay via hotkey. The overlay allows users to change their status, view attached call information, send notes, attach/detach from calls, and automatically convert emergency calls to dispatch calls. > > Automatic Character Creation Command > > * Added new customizable in-game commands to automatically register civilian characters. > > Bodycam Panic Recording > > * When a user presses their panic button, the body camera will automatically start recording. > > Bodycam Taskbar > > * Added the ability to configure your bodycam from the bottom taskbar, no longer requiring access to the unit editor. ### 3.41.3 03/23/2026 > [tab] New > > Bodycam Recordings > > * Added manual bodycam recordings for the web and desktop version, complete with hotkeys to toggle. All communities have access to limited cloud storage. > > ER:LC Automatic Emergency Calls > > * All in-game emergency calls placed via user phone or automated alarms (fires, robberies, etc.) now create an automatic call in the dispatch panel > > ERLC Traffic Stop - License Plate > > * Switched from custom :log command to a custom ;ts command > * No longer requires a manual plate entry > > ER:LC Civilian Panel Auto-Registration > > * Removed the in-app prompt to enter the license plate > > ER:LC Register Vehicle Command > > * Switched from custom :log commands to custom ;register commands > * No longer requires the license plate to be entered in the command > > ER:LC Plate Reader > > * No longer requires a registration record to run a lookup ### 3.41.1 03/19/2026 > [tab] New > > Custom Lookup Types > > * Unlimited custom lookup types are now available on the **free** plan > * Added advanced custom lookup types to specify multiple search criteria at once > * Added record re-indexing to allow newly created custom record searches to locate old records > > Bodycam Viewer > > * Bodycams now have tones for on/off and repeat tones while activated > * Bodycams now have a toggleable overlay with the unit information > * Bodycams now have a toggleable effect overlay for more realism > > ER:LC Civilian Panel: Auto Vehicle Registration > > * ER:LC communities now have a button in the civilian panel to automatically register vehicles > > Text-To-Speech Overhaul > > * Overhauled the text-to-speech system to use local AI models, now allowing them to work on all app platforms instead of only Chrome > [tab] Fixed > > **Roblox Custom Live Map** > > * Re-added custom live map support for Roblox communities ### 3.41.0 03/16/2026 > [tab] New > > MacOS Desktop App > > * Added a free MacOS desktop application > > ER:LC v2 > > * Completly overhauled ER:LC integration system, available free to all communities > > Free Version Unlocks (Phase 1) > > * Unlocked the following paid features for the free version: > * Full ER:LC Integration > * Desktop Hotkeys > * Unlimited Agencies / Departments / Subdivisions > * PRF Record Printing > * Unlimited Discord Webhooks > * Unlimited Tone Board Customization > * Unlimited Civilian Characters per Account ### 3.40.4 03/06/2026 > [tab] New > > DB Sync - Include API Records > > * Database sync lookups can now have an option toggled on to return API-created records. This is primarily useful for DB sync communities using integrations like ERS that automatically add ERS-generated character records into the CAD database. > > Rapid ID - Address Import > > * Rapid IQ completion now automatically adds the address into the call editor > [tab] Fixed > > Unit Group Bodycam > > * Fixed an issue with units inside of a group not showing a bodycam preview icon when in card mode > > Record Drafts - Community Specific > > * Fixed an issue where saved record drafts were global instead of community specific ### 3.40.0 02/26/2026 > [tab] New > > 3D Live Map > > * Added an all-new 3D live map for FiveM > > Bodycam Video Feeds > > * Revamped the bodycam system to now show true live video instead of screenshots > > Unit Location Speed > > * Added a new websocket API to update unit locations every 250ms instead of 5 seconds ### 3.39.1 02/23/2026 > [tab] New > > Custom Record Placeholder Fields > > * Added the ability to set placeholder text on custom record fields > [tab] Fixed > > Rapid IQ Customization > > * Fixed general issues with Rapid IQ customizations not saving > > Locked Window Restore > > * Fixed an issue where the command line, timers, and signal window would not save after restart/refresh when locked to a desktop ### 3.39.0 02/19/2026 > [tab] New > > Rapid IQ > > * Added an all-new, customizable medical priority dispatching system to walk dispatch call takers through medical questions in order to extract the best information for first responders. > > ERLC Live Map Zoom > > * Added support to the ER:LC live map to zoom to the location when the location pin icon is selected on a unit. ### 3.38.8 01/09/2026 > [tab] New > > Create Record from Civilian Lookup > > * Civilian lookup results now have a button to create a new record, automatically importing their character information. > > Automatic Record Drafts > > * Removed the manual save draft button when creating a new record as drafts now auto-save until submitted. > [tab] Fixed > > Reconnection Handling > > * Reworked re-connection handling to resolve issues where lookups and other windows wouldn't work after re-connecting and required a refresh. > * Fixed an issue where pinned tabs in the taskbar would be wiped on re-connection until a refresh. > * Fixed an issue where the self-dispatch button would appear on the dispatch call editor after a re-connection until after a refresh. > > Dispatch Automations Button > > * Fixed an issue where the dispatch automations button would be displayed on non-dispatch pages. > > Dispatch Saved Types Clear > > * Fixed an issue where the saved call type selection wasn't cleared when clearing the call editor. ### 3.38.7 12/22/2025 > [tab] Changed > > Scroll Bar Style > > * Shrank the width of scrollbars and changed the color to a theme option. > > Lookup Clear Inputs > > * Added a clear button to all inputs in the lookup search options, allowing for a quick clear and re-focus. > > Draggable Window Handles > > * Increased the size of the draggable window hit boxes for resizing. Additionally, allowed the use of the window resize drag handles when the window is not in focus. > [tab] Fixed > > Live Map Upload: Cache Busting > > * Fixed an issue with cache busting when uploading a new, custom live map. > > Call Editor Attach/Detach Automations > > * Fixed an issue where attaching and detaching units via call editor would not fire the dispatch status automations. ### 3.38.6 12/16/2025 > [tab] New > > Lookup History > > * Added a history button to the lookup window to re-run prior searches. > > Call Record Attachments > > * Added a button in the call notes to quickly view all attached records. > [tab] Changed > > Dispatch Automation Timers > > * The timer window no longer opens as a popup if a timer is created via dispatch automation. > [tab] Fixed > > Unit Group Action Menu > > * Fixed an issue where the unit actions right-click menu was missing when viewing groups in card mode. > > Timer Expire Notification > > * Fixed an issue with automatic timers where changing a unit’s status to clear a countdown timer could still cause the timer-completion notification sound to play when the original timer expired. ### 3.38.5 12/13/2025 > [tab] New > > Save Themes > > * Users can now save their custom themes to quickly swap between. > > Export All Themes > > * Users can now right-click the theme export to export and share all of their themes at once. > > Export All Saved Call Types > > * Users can now right-click the saved call types export button to export and share all of their themes at once. > > Themes: No Background > > * Added a button to remove all background images from the theme. > [tab] Fixed > > Custom Layout Save > > * Fixed an issue causing custom layouts to not save properly after a refresh. > > Custom Layout Required Window Multi-Desktop > > * Fixed an issue preventing users from changing a required window (call editor, units, etc.) to one of the new multi-desktop layers. ### 3.38.0 12/12/2025 > [tab] New > > Theme Overhaul > > * An overhaul of the dark theme for the dispatch, police, fire, and EMS panels. > > Custom Themes > > * Added a theme editor in the customization menu. > > Taskbar Refresh > > * Improved drag-and-drop animations for reordering, clock improvements, and more. > > Draggable Window Bar > > * Added a double-click to maximize any movable window. > > Page Backgrounds > > * Added customizable page backgrounds in the emergency services panels. > > Multi-Desktop > > * Added the option to create multiple desktops in the emergency service panels for more window room. > > Multi-Desktop Hotkeys > > * Added customizable hotkeys to quickly change between desktops. > > Record Drafts > > * Added the ability to save a record as a draft to be resumed later before submission. > > Card and List View > > * Added toggles to change between a newer "card" style and the existing list views for units, unit groups, and emergency calls. > > Live Map Hyperlinks > > * Added a map pin hyperlink button on units, unit groups, and emergency calls to automatically open the live map and pan to the location. > > Call Created Note > > * Added a new automatic note when dispatch calls are created to help reflect the creation timestamp. > > Timer Automations > > * Expanded the dispatch automations tab to allow for countdown/up timers when a unit status is changed. > > Saved Types: Import and Export > > * Added import and export capabilities to the saved call types. > > Database Sync: Import and Export > > * Added the ability to import and export DB sync configurations. > > Live Map Cache Busting > > * Added automatic cache busting to ensure map images update after new tiles are uploaded. > > i18n Translations > > * Updated dozens of word and phrase references to use proper translation keys. ### 3.37.18 11/19/2025 > [tab] Fixed > > Duplicate Section Dependencies > > * Fixed an issue where section dependencies on duplicated sections when filling out a custom record were always dependent on the first section. ### 3.37.17 11/14/2025 > [tab] New > > Live Map: Roxwood Expansion Pt. 2 > > * Added additional tile support for the latest version of the Roxwood expansion. ### 3.37.16 11/13/2025 > [tab] New > > Cloudflare Custom Domains > > * Implemented a new system for custom domains, leveraging Cloudflare for SaaS. > > Call Note PDF: Timestamps > > * Added timestamps to call notes in the PDF generation. > [tab] Fixed > > Call PDF: ID > > * Fixed an issue causing the Call ID number in the PDF to not display the label properly. ### 3.37.14 10/27/2025 > [tab] New > > PDF Print to In-Game > > * Added a new feature to print a PDF record from in-game to FiveM. > > API: LOOKUP\_CUSTOM > > * Added a new endpoint to search for records via custom lookup types. > > Roxwood Live Map: Right Tile > > * Added file whitelists for a blank live map tile to the right of the Roxwood expansion. > [tab] Second Tab ### 3.37.10 07/29/2025 > [tab] New > > Live Map - Cayo Perico > > * Added support to the live map for the Cayo Perico expansion ### 3.37.9 07/28/2025 > [tab] Fixed > > \#30273 - Date Field Timezone > > * Fixed an issue causing the date fields on submitted records to show as a day before or after for users in some timezones. > > Record Vehicle and Civ Search - Section Importing > > * Fixed an issue where importing data on a vehicle or civ search would only fill out that section and skip importing data to sections below that did not have a separate search button enabled. ### 3.37.8 07/16/2025 > [tab] Fixed > > Random Fields - Mask Search > > * Fixed an issue with masks on random generation fields causing the mask characters to apply to the searchable value - causing a failure on custom searches. ### 3.37.7 07/15/2025 > [tab] Fixed > > Civilian DMV Auto-Fill > > * Fixed an issue causing new civilian records to not automatically import character information. ### 3.37.6 07/14/2025 > [tab] New > > API NEW\_RECORD: deleteAfterMinutes > > * Added a new parameter to automatically delete the new record after X minutes. > > API NEW\_CHARACTER: deleteAfterMinutes > > * Added a new parameter to automatically delete the new record after X minutes. > > API CALL\_911 deleteAfterMinutes > > * Added a new parameter to automatically delete the new call after X minutes. > > API Lookup Account Param > > * Added a new `account` parameter to the lookup endpoint, sending results back to the user's CAD based on their SSO UUID. > > API Lookup By Value Account Param > > * Added a new `account` parameter to the lookup by value endpoint, sending results back to the user's CAD based on their SSO UUID. > > API Attach To Call Account Param > > * Added a new `account` parameter to the unit attachment endpoint, attaching the user based on their SSO UUID. > > API Detach From Call Account Param > > * Added a new `account` parameter to the unit detachment endpoint, attaching the user based on their SSO UUID. > [tab] Fixed > > \#29664 - Custom Report Search Character > > * Fixed an issue causing custom reports with multiple, separated character or vehicle search sections to sometimes not import data to the correct section. > > \#29582 - Character Random ID > > * Fixed an issue causing the random ID field to not automatically work on character records. > > \#18235 - Firefox Dropdown > > * Fixed an issue in Firefox causing the username dropdown to be empty. ### 3.37.4 06/26/2025 > [tab] New > > Diagram Builder - Images > > * Added image upload support to the diagram builder. > > Diagram Builder - Free Draw > > * Added free draw support to the diagram builder. > > Diagram Builder - Text > > * Added text support to the diagram builder. > > Random ID Fields > > * Added new randomized fields to custom records, allowing communities to specify a specific format to automatically generate text. > > Emergency Calls - Merge > > * Added the ability to merge emergency calls into new or existing dispatch calls for updated descriptions, locations, and more. > > Station Alert - Import Call Info > > * When selecting a nearby station from the call editor, the message box will be pre-filled with the call's address and description. > > Station Alert - Icon Support > > * Added custom icon support to the Station Alert submodule. > > DB Sync - Date Formatting > > * Added new handling to dynamically detect long timestamps (with time, etc.) from DB sync and strip/convert them to date only strings, allowing for proper mask formatting customization. > > DB Sync - Array Support > > * Added JSON object array support to DB sync allowing communities on frameworks like ESX to parse license information stored in an array. > [tab] Fixed > > Record Webhooks Encode Format for Images > > * Record webhooks no longer capitalize image URLs and include URL formatting for spaces and special characters. > > \#29318 - Call Address > > * Fixed an issue where importing an emergency call to the dispatch editor and then importing a second call resulted in a cleared address field. ### 3.37.3 05/12/2025 > [tab] New > > Station Alert: Indicator Colors > > * Added support for yellow and magenta color indicators in the station alert panel > [tab] Fixed > > Character Restrictions: Explanation Label > > * Removed an explanation label for a feature no longer available to reduce confusion ### 3.37.2 04/29/2025 > [tab] New > > Call Editor: Nearest via Postal > > * Added support for nearest units and stations in the dispatch call editor by adding a postal location, if the emergency call does not contain coordinates. > > Wipe Dispatch and Emergency Calls > > * Added a new option in the admin records wipe panel to wipe dispatch and emergency calls. > > Translation Overhaul Start > > * Added CAD translations to translate.sonoransoftware.com for easier community pushes. Added UA translations. ### 3.37.0 04/17/2025 > [tab] New > > Station Alert - Integration > > * Added a new panel and live map integration for the free station alert resource. > > Dispatch Call Editor - Nearby Stations > > * Added a new nearby stations quick access icon in the dispatch call editor. > > Dispatch Call Editor - Nearby Units > > * Added a new nearby units quick attach icon in the dispatch call editor. ### 3.36.0 04/08/2025 > [tab] New > > ERS Integration > > * Added a new ERS integration system allowing dispatchers to generate callouts via live map, lookup ERS character records, auto generate 911 calls, and more! > > Live Map - Roxwood Support > > * Added official support for the Roxwood expansion area on the custom live map. > [tab] Fixed > > \#28018 Leave Community > > * Fixed an issue causing the leave community button to not display on a specific screen size. ### 3.35.0 03/19/2025 > [tab] New > > Scene Diagram Builder > > * Added a new scene diagram builder for custom records ### 3.34.1 01/22/2025 > [tab] Fixed > > \#26902: Unit Column Selector > > * Fixed an issue causing the table column selector on the active units panel to fail > > \#26857: Saved Call Types Filter > > * Fixed an issue causing the type-to-filter in the dispatch editor's saved call types to not properly filter options > > \#26833: DMV Pending Hide DB Sync > > * Fixed an issue causing the DMV panel to display license and vehicle record filters as an option in the pending area, even if DB sync was enabled ### 3.34.0 01/16/2025 > [tab] New > > PDF Print - Linked Records > > * Added PDF print handling for linked records sections > > Dispatch & Emergency Calls - Pagination Overhaul > > * Overhauled and added proper server-side pagination for emergency calls and dispatch calls. > * Emergency calls now show all available calls instead of a maximum of 10. > * Active dispatch calls now show all available calls instead of a maximum of 10. > * Table column selector UI has also been refreshed and condensed. > [tab] Fixed > > Unit Info - Overflow > > * Fixed an issue causing unit information to overflow the display if long enough > > \#26313 - Ident Update > > * Fixed an issue causing the local UI to not update when switching your own identifier ### 3.33.8 11/08/2024 > [tab] New > > Live Map: Custom Roblox Maps > > * Added documentation and support for custom Roblox live maps, with initial support for Maple County | Fall Update ### 3.33.6 10/07/2024 > [tab] New > > MODIFY\_IDENTIFIER API Account Param > > * Added an `account` parameter to specify a user as an alternative to `apiId` > > GET\_IDENTIFIERS ACCOUNT Param > > * Added an `account` parameter to specify a user as an alternative to `apiId` > > SET\_IDENTIFIER ACCOUNT Param > > * Added an `account` parameter to specify a user as an alternative to `apiId` > > UNIT\_STATUS ACCOUNT Param > > * Added an `account` parameter to specify a user as an alternative to `apiId` > > GET\_ACCOUNT ACCOUNT Param > > * Added an `account` parameter to specify a user as an alternative to `apiId` > [tab] Fixed > > \#24607 - Remove Identifier API ID > > * Removed the need to supply a valid API ID when removing an identifier via API. > > \#24650 Date Input Mask > > * Fixed an issue allowing users to manually enter anything into a date field instead of the formatted mask, if the user was not using the date picker. > > \#24457 Leave Community on Join > > * Fixed an issue causing the leave community button to display on smaller screens when searching to join a new community. > > \#20555 - Dispatch Modified Webhook > > * Fixed an issue causing the Discord webhook for dispatch call updates to send based on whether or not the new dispatch webhook was enabled, instead of whether or not the modified dispatch webhook was enabled. > > API - ADD/Edit Record Custom Section > > * Added new handling and documentation to allow for the key-value replacement system via API for non-custom sections on records like charges, record links, etc. > > \#25090 - Dispatch Unit Attach API > > * Fixed an issue causing the NEW\_DISPATCH endpoint to not always notify the newly attached units of the incoming call ### 3.33.5 08/02/2024 > [tab] New > > \#22809 Permission Keys - Hide Input > > * The permission key input on the community menu will be hidden if the community has no keys configured to reduce user confusion. > > Community Selection - UI Overhaul > > * Overhauled the community selection menu, complete with the CMS discovery spotlight. > > API: GET\_CHARACTERS > > * Added an optional account UUID parameter to process the request via Sonoran Account ID. > > API: SET\_CHARACTER > > * Added an optional account UUID parameter to process the request via Sonoran Account ID. > > API: LOOKUP\_VALUE > > * The lookup\_int API endpoint has been renamed to lookup\_value. This endpoint now allows for a lookup via account secret ID as a string. > [tab] Fixed > > Permission Check - Refresh > > * Fixed an issue causing a permission check to fail when refreshing the page, kicking the user back to the community menu ### 3.33.3 03/13/2024 > [tab] New > > Live Bodycam > > * Added an in-game bodycam feed for units, visible inside the CAD via active units, dedicated window, and live map! ### 3.33.2 01/26/2024 > [tab] Changed > > Inactive Community - Pending Account Handling > > * Users logging into a CAD community that are in a PENDING state (no permissions) will no longer increment the community's last login time. This resolves an issue where old communities that are no longer in use never expire if they have a popular or similar community ID. > > \#19828 - Disable Autocomplete > > * Autocomplete in browsers has been disabled on search boxes and custom record inputs. This improves user privacy, particularly when streaming. > [tab] Fixed > > \#19672 - Custom Lookup Types > > * Fixed an issue causing standard communities to not enable a custom lookup type. ### 3.33.1 01/02/2024 > [tab] New > > In-Game Integration - UI Improvements > > * Re-organized the in-game integration page into three separate tabs. Users can now click to copy their community ID and API key in lowercase. > > \#19593 ERLC - Push Event IP > > * Communities using the integrated ER:LC live map mode can now specify an IP and port for push events for custom third-party integrations. > [tab] Fixed > > \#19500 Charge and Bond Type > > * Fixed an issue where charge types and bond types wouldn't properly save in the penal code customization tab. > > Backend Performance Issues > > * Updated an internal MySQL library causing unhandled exceptions and performance issues the prior night. ### 3.33.0 12/20/2023 > [tab] New > > UI Color Revamp > > * An all new UI refresh has been put in place brightening up the UI for a more friendly experience. Image uploaders show a preview with an easy click-to-upload, admin customization has been moved to cards, and more! > > Custom Records - Header Image > > * Custom reports can now have images added to the header that will display on both PDF and on-screen UI. > > Community Customization - Free > > * All communities can now customize their community image, name, timezone, geographical settings, unit status codes, quick links, notification tones, custom community emails, custom page colors, and user account restrictions on the free version. > > Image Uploading - Free > > * All communities can now upload tones, images, and more on the free version. > > Draggable Windows - Layers > > * Clicking anywhere on a popout/draggable window will now bring it to the top layer, vs having to right click and select "Bring to Top". > [tab] Fixed > > \#19351 Discord Rich Presence after Downgrade > > * Fixed an issue where downgrading from Pro does not set your Discord Rich Presence button #2 back to a CAD or CMS URL preventing you from updating your community customization. ### 3.32.9 11/30/2023 > [tab] New > > API: GET\_CHARACTER\_LINKS > > * Added the `GET_CHARACTER_LINKS` endpoint to retrieve all linked character sync IDs from a user account. > > API: LINK\_CHARACTER Endpoint > > * Added the `LINK_CHARACTER` endpoint to add or remove a DB sync character to a user's account. > > \#17899 PDF Dependency Hiding > > * When printing a record to PDF, sections and fields hidden by dependencies will no longer display on the page. > > Tone Board Customization - Icon Search > > * The admin tone board icon search now utilizes a new icon search system removing the need to use an external link. > [tab] Changed > > Calls Table - Query Optimization > > * Optimized database queries for emergency calls and dispatches to improve loading times. > > Record Search - Query Optimization > > * Optimized database queries for records to improve loading times. > [tab] Fixed > > \#18514 - Window Lock Removal > > * Fixed an issue causing previously locked and removed/closed windows to re-appear on refresh. > > \#18735 - Old Links > > * Updated old links redirecting users to the wrong pricing page. ### 3.32.8 10/12/2023 > [tab] Fixed > > DB Sync - Custom Lookup on License > > * Fixed an issue causing custom search types to fail on DB sync license records. > > \#17855 - Self Dispatch Restore > > * Fixed an issue where a user in self-dispatch mode would be stuck in self dispatch mode forever if permissions were removed. > > \#17218 - Map Postal Search > > * Fixed an issue where postal search would not work in the pop-out desktop version of the live map. ### 3.32.7 08/08/2023 > [tab] Fixed > > \#15065 Record Dependencies > > * Added a more visible ADD button for setting field dependencies to resolve issues with users unable to use dependencies. > > \#16407 - Linked Civilians > > * Fixed an issue causing linked civilians in dispatch call notes to not open properly. > > Lookup Preview - Unneeded Icon > > * Removed an unneeded copy style button from the warrants tab in the lookup search previews. ### 3.32.6 05/09/2023 > [tab] New > > \#14828 Unit Group Name Change > > * Added an EVENT\_UNIT\_GROUP\_CHANGE\_NAME push event when unit group names are updated. > [tab] Fixed > > \#14702 - EDIT Record/Character User Field > > * Fixed an issue causing the EDIT\_RECORD and EDIT\_CHARACTER endpoint's "user" property from properly updating the record owner. > > Login - SSO Username Conflict > > * Added additional handling to automatically remedy an edge case where conflicting and outdated usernames would cause account issues on login. > > \#14565 - ERLC LiveMap Pop Out > > * Fixed an issue causing the ERLC live map to not properly display in a desktop popout window. ### 3.32.5 03/20/2023 > [tab] New > > Custom Records - Read-only time field - Auto set > > * Time fields will now auto populate based on the community time zone when set to read only for new records. > > Push Event - Character Selected > > * Added a push event for when a user selects a different civilian in the portal. > [tab] Changed > > API EDIT\_RECORD - DB Merge Handling > > * Added a `templateId` field on the EDIT\_RECORD/EDIT\_CHARACTER endpoint to specify the type of record being edited. This allows the API to dynamically determine if the record being edited is a DB sync based record, and create a DB merge record for it. > [tab] Fixed > > \#13575 - Civilian Unique Fields > > * Fixed an issue with civilian unique fields not working properly. > > \#12458 Admin Kick > > * Fixed an issue where kicking a user in the admin panel didn't update the UI until a refresh was done. ### 3.32.3 02/16/2023 > [tab] New > > Call Notes - Local Timezone > > * Call notes with the new overhaul now convert to local community timezone format. > [tab] Changed > > S3 Optimization > > * Improved S3 storage with community removals. > > ERLC Live Map - Single Image > > * Consolidated the ERLC live map to a single common image, hosted and updated via ERLC. > [tab] Fixed > > \#12424 Multi-Server Group Dispatches > > * Fixed an issue where dispatching with multiple servers and the same group name would cause groups in both servers to be attached and detached from calls. > > Record Tab Name Conflicts > > * Fixed an issue where different record templates with the same name would conflict in lookup and report center categorization tabs. ### 3.32.2 01/11/2023 > [tab] New > > API: SET\_API\_ID Account > > * Added an `account` GUID field as another option to set a user's API IDs remotely. > > API: JOIN\_COMMUNITY > > * Added an internal endpoint for the CMS to automatically add users to your CAD when they are accepted in the CMS. > > API: LEAVE\_COMMUNITY > > * Added an internal endpoint for the CMS to automatically remove users from your CAD when they are removed or de-ranked in the CMS. > [tab] Fixed > > Record Tab Name Conflicts > > * Fixed an issue where different record templates with the same name would conflict in lookup and report center categorization tabs. > > \#12424 Multi-Server Group Dispatches > > * Fixed an issue where dispatching with multiple servers and the same group name would cause groups in both servers to be attached and detached from calls. ### 3.32.1 01/04/2023 > [tab] Fixed > > Custom Character Records - Unique Fields > > * Fixed an issue where unique fields on custom character records would throw an error stating that the unique value was taken by record number -1. > > \#12056 Call Notes PDF > > * Fixed an issue where dispatch call notes printed to PDF would not be formatted correctly. ### 3.32.0 12/19/2022 > [tab] New > > Tone Board - Repeat > > * Dispatchers can now set a tone to automatically repeat every X seconds for X number of times. > > \#9013 Link Records to Dispatch Call > > * Call notes have been overhauled and can now have linked records and dispatch calls pasted into them. > > Dispatch Call Preview - Copy Link > > * Added a copy link button in the dispatch call preview window > [tab] Fixed > > Lookup Record by ID - Set Record Number > > * Fixed an issue where opening a record via specific ID would not have the ID field set properly in the record popup. > > Create Template - Plate Type Checks > > * Fixed an issue with the custom record template editor not properly ensuring a `plate` field mapping ID existed on the vehicle registration type. > > Emergency Call - Dispatch Address Autofill > > * Fixed an issue where the address field would not auto populate when opening an emergency call in the dispatch call editor. ### 3.31.0 11/21/2022 > [tab] New > > \#8844 Live Map External Desktop Window > > * Windows desktop users can now open the interactive live map in a fully external window. > [tab] Fixed > > Live Map CAD Based Update - Coordinate Removal > > * Fixed an issue where updating a smart sign via CAD would cause it to disappear from the live map. > > Switch Communities - Bug > > * Fixed an issue preventing users from "switching communities" on a custom domain or with a community set as default on the login page. > > Discover Button - Custom Domain Fix > > * Fixed an issue with detecting custom and non-custom domains, preventing the "Discover" CMS button from appearing on non-custom domains. ### 3.30.1 11/08/2022 > [tab] New > > CMS Discovery Links > > * The CAD now links to the CMS discovery page on all non-custom domains. > > Civilian DMV Error > > * Added a more descriptive error to the DMV dropdown if DB sync is enabled and there are no other custom types available. ### 3.30.0 10/04/2022 > [tab] New > > Admin Identifier Search - via Unit Number > > * Admins can now search for unit identifiers via unit number. > > \#10700 Call Notes Time Zone > > * Call notes now display with the local community time zone. > [tab] Changed > > Lookup via Identifier - Optimization > > * Updated the way lookups via identifier are ran, now following the explicit department structure defined by admins. > > Record Template Optimization > > * Moved community record templates to a new database column and separate WS/API methods to send them to the client. This dramatically reduces the size of the community login method, community search, etc. by minimizing the data size. > [tab] Fixed > > \#10859 Call Note Duplication > > * Fixed an issue causing dispatch call notes to duplicate after manually running a call update. > > Custom Lookup Types - Client Save > > * Fixed an issue causing custom lookup types to not save on the client's admin panel without a refresh. > > Dispatch Close - Console Error > > * Fixed an issue causing dispatch close events from throwing a client error in the console. ### 3.29.6 09/20/2022 > [tab] New > > \#10281 QB Core Multi-House DB Sync Mapping > > * Multi-match for a single field now works for database sync, allowing multiple properties to be displayed specifically for QB Core. > [tab] Fixed > > DB Sync Search Char by Custom Value > > * Fixed an issue causing the db sync search by custom value to not properly link all the character information. > > \#10725 Civilian Checkbox Fields > > * Fixed an issue causing non-db sync creation to not properly copy over checkbox values from a civilian to a new DMV record. ### 3.29.5 08/15/2022 > [tab] New > > Sonoran CMS - Permissions Sync > > * Sonoran CMS can now automatically manage Sonoran CAD user permissions > > API ban\_user - accId > > * Added an `accId` option to the endpoint. > > API set\_account\_permissions - accId > > * Added an `accId` option to the endpoint. > [tab] Fixed > > API - Remove 911 UI Call\ > \- Fixed an issue with 911 calls being removed via API not updating in the UI until a refresh. ### 3.29.4 07/21/2022 > [tab] New > > Account Removal - In App > > * Added a button to request account removal from within the app, removing the need to use the external accounts website. > [tab] Fixed > > DBSync - Character Pull > > * Fixed an issue with loading database sync characters. > > Root Domain - Community Query String > > * Fixed an issue with the ?comid query string not persisting to the /login page on redirect. > > Dispatch From Emergency - Remove Call > > * Fixed an issue where creating a dispatch from an emergency call would not remove the emergency call. ### 3.29.3 07/12/2022 > [tab] Fixed > > Join Community Safety > > * Added additional safeties on community join to handle errors and duplication. > > Custom Domain DNS > > * Fixed an issue with custom domain DNS checks failing. > > Tablet Live Map > > * Fixed an issue with the live map on tablet devices not having proper default height ### 3.29.0 06/01/2022 > [tab] New > > Discord SSO > > * Added a sign in with Discord option. > > Apple SSO > > * Added a sign in with Apple option. > [tab] Fixed > > NEW\_RECORD: User Link > > * Fixed an issue with the API new\_record endpoint not properly linking the record's owner via API ID. > > REMOVE\_BLIP: Map Update > > * Fixed an issue where removing an array custom map blips wouldn't remove them from the user's UI without a refresh. > > \#9023 Custom Lookup Masks > > * Fixed an issue where running a lookup for a custom search type doesn't work if the lookup mask is not clear of formatting > > \#9112 Partial Identifier Username Search > > * Partial search strings do not work for searching Unit Identifiers in the Admin Panel. ### 3.28.2 05/13/2022 > [tab] New > > Admin - Identifier Management > > * Admins can now view and manage all unit identifiers in the admin accounts menu. > [tab] Fixed > > \#8934 New Dispatch Status Notes > > * Fixed an issue causing new dispatch calls to not automatically add notes when a unit changed their status, before the call was "updated" manually. > > DB Sync Records - Disable Get Owner > > * Fixed an issue causing the admin get owner button on record searches from displaying on database sync records. ### 3.28.1 05/11/2022 > [tab] New > > Layout - Header/Footer > > * Updated the standard layout for consistency with other products. > > \#8909 Set Status - Call Note > > * The set\_status API endpoint now supports status change notes on dispatch calls, allowing for the in-game /setstatus command to also add a call note. > [tab] Fixed > > \#8893 Dispatch Call Notes > > * Fixed an issue where a dispatcher adding call notes and clearing the editor wouldn't show the notes when re-opening the call until a refresh was made. > > ID Field - Disable Unique Toggle > > * Added a check to prevent the user from toggling the unique field on custom record ID fields. ### 3.28.0 05/04/2022 > [tab] New > > Preview Field Update - Re-index > > * When a record template is updated to add or remove preview fields you can now re-index and update all previously formed records to match. > > \#8718 Custom Record Dependency - Equal, Not Equal, Contains > > * Custom record dependencies can now be set to equal, not equal, or contains. > > Record Webhooks - Dependencies > > * Added dependency checking to discord webhooks to not display "hidden" fields or sections. > > Live Map - Range Circle > > * Custom live map blips can now have a radius field specified. When set, this will show a transparent circle to reflect range. > > 911 and Dispatch Calls - Last Updated Timestamp > > * Emergency and dispatch calls now contain an `updated` timestamp field in UTC. This allows a framework plugin or API method to be used to automatically close any inactive calls after a certain time. > [tab] Changed > > Server ID - Safety Checks > > * Added safety checks to ensure all server IDs are 1 based via index and disabled the ID field in the UI. > [tab] Fixed > > Self-Dispatch: Close Call > > * Fixed an issue where users in self-dispatch couldn't close a dispatch call from the editor. > > \#8682 Supervisor Checkbox > > * Fixed an issue with supervisor toggled checkboxes (legacy) from not being removed from the supervisor panel. ### 3.27.0 04/12/2022 > [tab] New > > \#8372 Multi-Select Emergency & Dispatch Calls > > * Dispatchers can now multi-select emergency and dispatch calls to delete multiple at a time. > > \#8453 Preview Duplicates > > * Previewing custom records with duplicated section preview fields will display an icon. Hovering over the icon will display a tooltip with all duplicate value entries. > > API: Lookup By Int - Direct Number Handling > > * When looking up a specific record number via the API (Discord bot webhook reactions for new records) the UI will open the full record directly, instead of opening a search tab with the ID inserted. > [tab] Changed > > EVENT\_REMOVE\_911 - ID Array > > * The EVENT\_REMOVE\_911 push event has changed the `callId` property to a `callIds` array. > > EVENT\_DISPATCH\_CLOSED - ID Array > > * The EVENT\_DISPATCH\_CLOSED push event has changed the `callId` property to a `callIds` array. > > API: remove\_blip array IDs > > * The remove\_blip API method has changed the `id` property to an `ids` array. > [tab] Fixed > > DB Merge - Select > > * Fixed an issue causing db merge to not properly set the `value` on select type fields. > > \#8338 Custom Records - Supervisor Checkbox > > * Removed the supervisor only attribute from the custom record checkbox section, resolving an issue where reports with supervisor checkboxes would always show as awaiting supervisor. > > \#8457 Custom Record Required Dependencies > > * Fixed an issue where custom record required fields that were hidden via dependency would prevent the user from submitting the record. ### 3.26.1 04/01/2022 > [tab] New > > Custom Blips - Display JSON > > * Custom blips can now have text data displayed upon selection. > > Custom Blips - subType > > * Added a `subType` property to custom blips, allowing users to toggle visibility on/off for different custom blip types. > [tab] Fixed > > \#8257 Tone Board Shortcut > > * Fixed an issue where opening the tone board from a shortcut, like the active units, failed. ### 3.26.0 03/21/2022 > [tab] New > > Live Map - Custom Blips > > * Custom blips can now be added, edited, and removed in real-time via API endpoints. > > API: SEND\_PHOTO > > * Photos can now be sent from in-game to the user as a pop-up via API. Allowing for easy image attachments for custom records. > > \#8028 API lookup\_int Limit > > * The lookup\_int endpoint now supports pagination with limits and offsets. > [tab] Changed > > Admin Accounts: Pagination > > * The admin page's account table now uses server-sided pagination for a more optimized experience. > [tab] Fixed > > \#8051 Edit Record Webhook > > * Fixed an issue where sending a webhook for editing a record was based on the add toggle and not the edit one. ### 3.25.7 03/15/2022 > [tab] New > > Database Merge - Flag Section Handling > > * Database merge now supports saving custom flag sections on database sync records. > > Database Merge - Checkbox Handling > > * Database merge now supports select and checkbox fields for custom records with database sync. > > Database Sync - Checkbox Handling via Friendly Mapping > > * Custom record checkboxes can now have their values set via DB Sync and friendly mapping. > [tab] Changed > > Admin Accounts: Pagination > > * The admin page's account table now uses server-sided pagination for a more optimized experience. > [tab] Fixed > > \#8051 Edit Record Webhook > > * Fixed an issue where sending a webhook for editing a record was based on the add toggle and not the edit one. ### 3.25.6 03/14/2022 > [tab] New > > \#7977 Link Dispatch Call > > * Dispatch calls can now be linked in custom records for quick reference. > [tab] Changed > > ERLC Map Update > > * Updated the ERLC live map image. > [tab] Fixed > > Linked Records - Remove > > * Fixed an issue where clicking the delete button on a linked record still opened the record preview after removing it. > > \#7978 Field Dependency > > * Fixed an issue causing field dependencies to not function properly. > > \#7981 Field Add Exception > > * Fixed an issue generating a console error when adding a new field to a custom record. > > Admin Customization - Sonoran One > > * Fixed an issue where Sonoran One members couldn't access the proper tone board and custom search customization options. > > Custom Record Dependency - Select > > * Fixed an issue causing custom record dependencies on a select field to throw an exception. ### 3.25.3 03/11/2022 > [tab] New > > \#7314 Custom Records - Dependencies > > * Custom record sections and fields can now have their visibility toggled via custom dependencies from other record fields. > > Custom Records - Copy/Paste Sections > > * The custom record editor now allows you to copy/paste record sections. > > \#7920 Record Logs > > * Modified the custom record add and edit logs to include more details on the record type and ID. > > Inactivity - Email Notice > > * Automated emails are sent to community owners if no logins have been made in 3 weeks, giving them 7 days notice prior to community deletion. > > DB Sync - Safety Checks > > * Added safety checks and errors for database sync configurations that have license or vehicle mapping enabled, but no table name or character mapping column set. > > Custom Records - Required Type Duplicate Check > > * Added additional safety checks to ensure a community does not have duplicate required custom record types and the ability to remove duplicated required types. > [tab] Fixed > > DMV New Record - Disable with Sync > > * Fixed an issue allowing new licenses or vehicle registrations to be created in the DMV panel even if DB Sync is enabled. > > API SET\_SERVERS - Deploy Map > > * Fixed an issue with the SET\_SERVERS endpoint not properly deploying the new live map. ### 3.25.2 03/04/2022 > [tab] New > > \#7615 Custom Records - Unit Location Field > > * The UNIT\_LOCATION custom field type can be used to autofill the unit location on a new record. > > API: GET\_IDENTIFIERS > > * The new GET\_IDENTIFIERS endpoint allows you to retrieve all unit identifiers for a user and view the currently selected one. > > \#7066 API: SET\_IDENTIFIER > > * Added an endpoint to change the selected unit identifier via API. > > \#7511 Modify Identifier > > * Unit identifiers can now be added, edited, and removed via API. > [tab] Changed > > Custom Records - Show Field UIDs > > * The custom record editor now shows the field mapping ID column (UID) for all record types. ### 3.25.0 02/17/2022 > [tab] New > > Live Map - Optimization > > * Optimized the live map to increase performance with larger communities. > > Live Map - Search for Postal > > * Pro communities can now search and zoom to a postal on the live map with the postals plugin configured. > > Live Map - Selected Unit Filter > > * Units displayed on the live map can now be filtered by selecting units/groups in the active units panel. > > \#6998 Blip Customization > > * Live map unit blips can now have the unit number display toggled on/off. Unit blips can be filtered down to unit type. Additionally, unit blips have customizable outline colors. > > \#7414 Wyze LED Strips > > * Expansion of supported light integrations. For example, Wyze has multiple other smart bulbs, such as LED light strips, which could be really cool to have like under a table, behind a desk, or on the walls. Would also allow for more customization. > > EVENT\_TONE Push Event > > * Added a push event for when tones are played. > > Unit Login - Clear Position > > * Unit positions are cleared on an initial login until their position is updated in-game. Preventing units who are no longer in-game from displaying on the map. > [tab] Fixed > > \#7092 Live Map Duplication > > * Fixed an issue causing the live map image to duplicate after closing and re-opening. > > Desktop - Prevent Zoom Out > > * Prevented users from ctrl - zooming out in the desktop app. > > \#7455 Maintain Full Screen after Toggle Key > > * When showing (w/ global hotkeys) a Sonoran CAD Desktop window that was fullscreen when it was hidden (w/ global hotkeys), it'll show back up no longer full screen in a smaller window. > > DBSync Save - Handle null columns on trim > > * Added safety checks if the user enabled license or vehicle mapping but had a null owner or table name set. ### 3.24.0 01/16/2022 > [tab] New > > GTA Live Map - Overhaul > > * An entirely new live map system allows you to edit and view units, emergency calls, smart signs, and more! > > Live Map - Permissions > > * Access to the live map is now restricted via user permission. > [tab] Fixed > > Window - Draggable Area > > * Fixed an issue causing draggable windows to be draggable from anywhere, preventing users from scrolling or grabbing inside the window. > > Custom Layout - Drag-and-Drop > > * Fixed an issue causing users with custom layouts to not be able to drag-and-drop elements from one window to another. > > \#6859 Window Options > > * Fixed an issue causing windows to not force display the close and minimize options. > > \#6871 Window Scrolling > > * Fixed an issue causing custom windows to have disabled vertical scrolling. ### 3.23.1 01/09/2022 > [tab] New > > ER:LC - Live Map > > * Added an interactive live map for ER:LC Roblox communities > > Portuguese Translation > > * Added Portuguese translations ### 3.23.0 01/06/2022 > [tab] New > > Command Line > > * Dispatchers can now utilize a CLI to quickly create and close dispatches, attach, detach, view, clear, change statuses, add notes, and more all via keyboard > > \#6638 Custom Records - Drag Support > > * Custom record sections and fields can now be dragged-and-dropped to be re-ordered > > Lighting Integration - Draggable Frames > > * Lighting sequence frames can now be dragged-and-dropped for easy re-ordering > > Desktop App - Code Signing Certificate > > * Added a code signing certificate to the desktop application to help with Windows Defender and general trust > > Dispatch Push Event - Include Action Creator Identifer > > * Include the identifier of the dispatcher that’s added/modified calls to the push events > > Stripe Pending Cancellation - Status > > * Added a feature to highlight subscriptions pending cancellation instead of still listing them as active or cancelled > > Record Center - Lookup Filter Icon/Number > > * Updated the record filter icon to match the lookup window, including displaying the number of record type filters > > Custom Record Add - Prevent Duplicate Required Type > > * Added safety checks to prevent a user from manually uploading a duplicate required record type, preventing them from removing it > > Custom Domain - DNS Check > > * Added DNS verification with a TXT record community ID check > [tab] Fixed > > \#6698 BOLO Removal > > * Fixed an issue causing bolo removals to locally remove a second one from the UI > > \#6694 Close Dispatch without Idents > > * Fixed an issue with dispatch auto-status causing an error when closing a dispatch without any attached units ### 3.22.6 12/21/2021 > [tab] New > > Dispatch - Auto Status Toggles for Attach/Detatch/Close > > * Dispatchers can now configure automatic status changes for units when they're attached, detached, or have their dispatch call closed > > Record Filter - Icon w/Number > > * Updated the lookup's record type filter bar with a better icon, lighter background, and selected count number for better awareness > [tab] Fixed > > API Record Remove - Webhook > > * Fixed an issue causing record removal via API to not send a webhook event > > API: remove\_record isReport property > > * Removed an unused isReport field from the remove record API endpoint ### 3.22.4 12/18/2021 > [tab] New > > Records API - Simplified Dictionary > > * Creating and editing records can now be easily done through the API with a simplified key/value dictionary > > Records API - API ID Support Addition > > * Record adding and removal via API now also accepts API IDs in addition to the existing user UUID field > > Record API - Webhook Support > > * Added webhook support for all custom record API endpoints > [tab] Fixed > > \#6255 Notepad Label > > * The notepad shows police.header.notepad and when you click on it it does not bring up the notepad. This is both on the desktop app and the website > > Wyze Color - API Updates > > * Updated the lighting integration to handle Wyze's new payload encryption + encoding ### 3.22.0 12/1/2021 > [tab] New > > Custom Records - Identifier Fields > > * Custom fields can now be added to records to auto-fill unit information for new records > > Custom Records - Read Only Toggle > > * Custom records can now have auto-filled fields marked as "read only" to prevent users from modifying the values > > Notepad > > * Added a notepad for quick multi-notes > > \#5683 Search Via Department/Agency > > * Added the option to search for record by agency, department, or subdivision instead of just a specific identifier. Improved the agency, department, and subdivision drop downs to only display departments that existed in the admin menu. Improved the identifier drop down to auto-filter while typing. > > Unit Group - Individual Options Once Expanded > > * Added individual unit context menu options when a unit group is expanded > > Unit Group - Flash if one is Panicked > > * Unit groups will now panic flash if it contains a unit in a panic state. The group can be expanded to view the individual unit in panic > > API: GET\_ACTIVE\_UNITS - offline and pagination > > * Added support to the GET\_ACTIVE\_UNITS endpoint to include offline unit identifiers. Added proper pagination support up to 100 identifiers per page > > New Subscription: Set ID Before Checkout > > * When purchasing a subscription, users are asked to set the community ID before purchase to help reduce the number of subscriptions without an ID set after purchase > > API Lookup - Identifier Info > > * The API lookup endpoint now contains optional properties to search based on an identifier agency, department, or subdivision > [tab] Fixed > > Timer Group Attachment > > * Fixed an issue preventing unit groups from being attached to the first timer in an existing list from the group context menu ### 3.21.9 11/21/2021 > [tab] New > > Unit Info - Include Page > > * The unit info object now contains a `page` property reflecting what emergency page the unit is logged into, viewable via API. > [tab] Fixed > > Add Record Push Event - ID > > * Fixed an issue where the add record push event didn't have the new record ID set on it > > Tablet Record Windows - Resize > > * Fixed an issue causing the record windows on the in-game tablet to not save resize preferences > > Pagination - Block All Selection > > * Fixed an issue with the BOLO and call history tabs where changing the "record per page" to all broke functionality ### 3.21.8 11/11/2021 > [tab] New > > Unit Groups - Dropdown Expanded View > > * Unit groups can now have the units section expanded to view the details of the group > [tab] Changed > > Desktop Download - Round Percentage > > * The desktop auto-updater now rounds download progress to one decimal > > Bodycam - Anti-Tamper > > * Changed the way the bodycam webpage is served, preventing users from tampering with the branding > [tab] Fixed > > Tone Board - UI Limits > > * Fixed an issue causing the UI to limit the custom tone board by one more than it should > > \#5915 Dispatch Call Notes PDF > > * Fixed a formatting issue with dispatch call notes in PDF ### 3.21.4 11/05/2021 > [tab] New > > Closed Calls - Pagination > > * Closed dispatch calls now support full server side pagination to view the entire history > > GET\_CALLS API - Pagination > > * The GET\_CALLS API endpoint now supports pagination for closed dispatch calls > > Emergency Call MetaData - Postal, Block, etc. > > * The call\_911 endpoint now has additional metadata support to specify the call postal, block, etc > > Active Bolos/Warrants - Pagination > > * Added proper server sided pagination for active warrants and bolos. Resolves issues and improves performance for communities with several hundred or more active records at a time > [tab] Changed > > GET\_SERVERS - Standard > > * Updated the GET\_SERVERS endpoint to only require the standard version > > Translation Updates > > * Updated submitted translation files > [tab] Fixed > > \#5831 & 5835 - Dispatch Identifier Change > > * Fixed an issue where updating your identifier on the dispatch page doesn't update it for other units, along with displaying the proper dispatch icon after > > DB Sync - Structure Save Null Checks > > * Added null checks when trimming db sync fields preventing an object reference error > > \#5757 - Webhook Tutorial Link > > * Fixed a tutorial button for Discord webhooks going to an invalid page > > Drag-and-drop Custom Layout > > * Fixed an issue preventing drag-and-drop from working on custom layouts ### 3.21.3 10/19/2021 > [tab] New > > Desktop Update Search - Show Downloading > > * The desktop splash screen now includes live details on update searches and download progress > [tab] Changed > > CHANGED: Websocket Connection Endpoint > > * Updated the backend websocket connection to resolve disconnection issues > [tab] Fixed > > Govee - Lighting Fixes > > * Fixed issues with the Govee lighting integration where the Bluetooth server couldn't be unpacked and WiFi based lights wouldn't load ### 3.21.0 10/12/2021 > [tab] New > > Dispatch Timers > > \- Dispatchers can create customizable timers and attach units, groups, and dispatch calls for periodic notifications > > Smart Lights - Unit Status > > \- Smart lighting scenes are now available for your unit status > > Govee - Lighting Integration > > \- Govee smart bulbs are now supported with our lighting integration via Bluetooth and WiFi > > Norwegian Translations > > \- Added Norwegian translations > > Server Config - Trim IP/Port > > \- Added additional safety checks on the backend to trim any spaces in server IPs or ports > > UNIT\_PANIC Push - Panic Bool > > \- The EVENT\_UNIT\_PANIC push event now includes an `isPanic` bool > [tab] Changed > > Unit - Group Menu Consolidation > > \- The unit group section on the unit context menu is broken into a separate menu ### 3.20.11 10/1/2021 > [tab] New > > Friendly Mapping: Import JSON/CSV\ > \- Database sync friendly mapping values can now be imported via JSON or CSV > > Wyze Color - Black\ > \- The Wyze Color bulbs are now checked for a black hex color, and are turned off rather than set to black > > Philips Hue - Black\ > \- Philips Hue bulbs are now checked for the black RGB code and are toggled off, as Hue does not support a black color code > [tab] Fixed > > DB Sync - Merge in Multi-Table Values\ > \- Fixed an issue with DB Sync causing multiple table values for character records to only merge in the first found value in a section and disregard the last > > DB Sync - Update Custom Record\ > \- Fixed an issue where saving custom records with DBSync would leave some of the old, non-custom fields in the sync config > > Smart Lighting Restore\ > \- Fixed an issue causing the restore lighting scene to not start until the second trigger > > DB Sync - Reserved Word Column Names\ > \- Added special handling for selecting reserved MySQL words as column names ### 3.20.8 9/28/2021 > [tab] New > > Philips Hue - Lighting Integration\ > \- Philips hue color bulbs can now be used with the smart lighting integration > > Wyze Color - Lighting Integration\ > \- Wyze color bulbs can now be used with the smart lighting integration > > Import Penal Codes - Int Parse\ > \- Added additional handling and safety checks to ensure the bondAmount column for imported penal codes is forced to an integer > [tab] Fixed > > SetServer API\ > \- Fixed an issue with the set server endpoint not setting the map URL in the livemap config ### 3.20.7 9/14/2021 > [tab] New > > TTS - Numbers\ > \- Text to speech now separates all numbers. Ex: "Incoming nine hundred and eleven" -> "Incoming nine one one" > [tab] Fixed > > Bodycam - Null Fields\ > \- Fixed an issue where bodycam fields set to null would display the \{field} key instead of being blank > > Modify Unit - Local Update\ > \- Fixed an issue where updating your unit identifier wouldn't locally update your information until a refresh ### 3.20.6 9/13/2021 > [tab] New > > Desktop App - Save Last Size\ > \- The desktop app now re-opens with the size it was last set to\ > \ > Multi-Group Set Status\ > \- Dispatchers can now change the status on multiple unit groups at a time > [tab] Changed > > Self-Dispatch - Toggle Improvements\ > \- Optimized the toggle process when switching self-dispatch on and off. Additionally, fixed an issue causing the new dispatch TTS to run a second time when you toggled self-dispatch on or off > [tab] Fixed > > Smart Signs - Top Alignment\ > \- Fixed an issue causing the smart signs UI to display a sign box on the top row next to the search bar ### 3.20.5 9/9/2021 > [tab] New > > CAD - Toggle View for In-Game Use\ > \- Users can now bind a hotkey to display and hide the CAD on top of the game for a better and more native experience than the Steam Browser. Minimizing with the hotkey will also auto-refocus the game layer below > [tab] Fixed > > Duplicate Sections - Bug\ > \- Fixed an issue preventing duplicated sections from being removed once a record was filed > > Record Preview - Duplicated Sections\ > \- Fixed an issue causing records with duplicated sections to overwrite preview fields further down in the lookup preview ### 3.20.2 9/8/2021 > [tab] New > > Unit - Drag to Tone Tab\ > \- Units can now be dragged to a minimized tone tab to automatically open and attach the unit to the tone > > Unit & Call - Drag to Tone Board\ > \- Units, groups, and dispatch calls can be dragged-and-dropped to the tone board to automatically add them to the "Send To" box > > Unit & Call - Drag to Lookup Tab\ > \- Active units and unit groups can be dragged to a pinned lookup tab to automatically open a lookup with those unit(s) selected for result transmission > [tab] Changed > > Dispatch Saved Types - Capitalization\ > \- Capitalized all options in the dispatch's saved types dropdown to match consistent formatting > [tab] Fixed > > Multi-Unit: Tone Board\ > \- Fixed an issue preventing users from attaching multiple units at a time to the tone board via the active units context menu ### 3.20.1 9/7/2021 > [tab] New > > Self-Dispatch - Save State\ > \- Unit's self-dispatch mode will now save and persist through a refresh/restart > > Settings - Sound Volume Save\ > \- System volume now saves and persists > [tab] Changed > > FR Translations - Update\ > \- Updated French translations > [tab] Fixed > > Tablet - Window Sizes and Dragging\ > \- Fixed an issue causing the in-game tablet to lock and misplace windows on re-join, requiring a layout reset to resolve. This had to do with a screen size detection plugin malfunctioning > > Unit Groups - Creation\ > \- Fixed an issue preventing unit groups from being created via right-click > > Multi-Unit - Drag to Lookup\ > \- Fixed an issue preventing users from dragging multiple selected units or groups to a lookup window to send them the search results ### 3.20.0 9/6/2021 > [tab] New > > Active Units - Multi-Select\ > \- Active units and unit groups can now be multi-selected for faster management. Multi-select also allows you to drag and drop multiple units or groups at once > > DBSync - External Keys\ > \- DB Sync now supports mapping a unique license or vehicle registration ID to an external table containing the proper character ID > > API: Add Call Note\ > \- Added a new API endpoint to add call notes > > API: Detach Unit\ > \- Added a new API endpoint to detach units from dispatch calls > > Push Event: Unit Panic\ > \- Added a server push event for unit panic events > > Bodycam: Auto-correct Toggles\ > \- Improved the bodycam data fields to auto-toggle on if listed but not enabled > [tab] Changed > > Call Note: UTC Timestamp\ > \- All dispatch call notes now have timestamps appended to them in UTC > > API Kick/Ban - Add username to log\ > \- Improved the kick/ban log to include the username when performed via API > [tab] Fixed > > DB Sync - Multi-Table Search by Val\ > \- Fixed an issue causing custom lookups with DB sync failing when used with a multi-table civilian config > > DB Sync - MySQL v8 Syntax\ > \- Fixed an issue causing DB Sync to fail on MySQL v8+ due to a syntax change > > Bodycam: Timestamp\ > \- Fixed an issue causing the bodycam timestamp to glitch on restart ### 3.19.0 9/1/2021 > [tab] New > > Community Logs\ > \- Communities can now search an in-depth logging history for abuse and other user actions. > [tab] Fixed > > Overlay: Unit Agency\ > \- Fixed an issue causing the unit agency to not properly display > > Overlay: Department Label\ > \- Fixed the department unit update label from being plural. > > \#4999 Sonoran CAD Bug Report\ > \- Discord webhooks for removed records still get sent even when the sliders are only set to new records only ### 3.18.1 8/22/2021 > [tab] New > > Stream Overlay: Bodycam\ > \- The stream overlay now allows users to easily self-host a customized bodycam webpage to be visible on their livestream. > > Unit Group - Drag-and-Drop Unit Changes\ > \- Units in a group can now be dragged-and-dropped to another group. > > Unit Group - Edit Name\ > Dispatchers can easily update a unit group's name by clicking on the group name in the active units panel. > [tab] Fixed > > Pined Tabs - Open Event\ > \- Fixed an issue where navigating back to the community menu, then back to an emergency page would cause the pinned tab open event to not properly register. > > Permission Key: Modify Street Signs\ > \- Fixed an issue causing the modify street signs permission key label to not display properly. > > Desktop - Discord Presence\ > \- Resolved an error thrown when toggling off Discord rich presence. ### 3.18.0 8/21/2021 > [tab] New > > Dispatch Lookup - Send to Unit\ > \- Dispatchers can send lookup results to specific units. This also supports shortcuts from the active units list and drag-and-drop support. > > Stream Overlay: Multi-line\ > \- The stream overlay custom text files now has multi-line support. > > Twitch Bot - Notes\ > \- The livestream bot can now be configured to send chat messages when a new call note is added. > > Twitch Bot: Lookup Events\ > \- The Twitch bot can now be configured to send chat updates when the user runs a lookup in the CAD. > > Tone Files - Formats\ > \- Added wav, mp4, and m4a audio file format support to the tone board uploader. > > Self-Dispatch: Auto Attach\ > \- When creating a new dispatch call via self-dispatch, it will automatically add your identifier to the call. > > Server IP - Optional Outbound Field\ > \- Community servers can now specify a different inbound/outbound IP address. This is useful for communities on shared hosts, who authenticate and send data on a different IP than they receive push events and traffic to their server. > > Stream Overlay - Copy Fields\ > \- Users can now more quickly create custom text files by copying field keys right from the UI. > > Stream Overlay: Custom Text Safety Checks\ > \- Added safety checks to the custom overlay text files to ensure the user has every field enabled. > [tab] Changed > > API ID - Trim Spaces\ > \- Added a check to ensure API IDs are not added with leading or trailing spaces. > [tab] Fixed > > Lookup - Header\ > \- Fixed an issue causing the lookup window to not display the updated header when searches are ran. ### 3.17.0 8/13/2021 > [tab] New > > Stream Overlay and Twitch Bot\ > \- Our new stream overlay allows you to customize and display your active unit information, call information, and more to your Livestream. Our Twitch bot automatically sends customizable chat updates when your unit information or attached call info is updated. > > French Translation\ > \- Added French translations. > > Active Units - Multiple Sessions\ > \- Implemented an improved active unit handler, fixing edge cases where users with multiple sessions would log their unit out even though they're still logged in on another device. > > Disable Highlighting\ > \- Disabled text highlighting for a better drag-and-drop experience. > > Desktop - Livemap Window\ > \- For desktop users, the live map now opens in a proper popup window if you click the "External" icon. > [tab] Fixed > > Pinned Tabs - Top Taskbar\ > \- Fixed an issue causing user's pinned tabs from loading if their taskbar position was set to the top of the screen. > > Mobile - Switch Servers Popup\ > \- Fixed an issue on mobile devices preventing a user from changing their server. > > Call Editor - Detach and Attach\ > \- Fixed an issue where removing units from a call via editor, then adding them back would attach and immediately detach them. > > Active Calls - Search by ID\ > \- Fixed an issue preventing users from searching in the active calls list by call ID. > > Active Calls - Detach\ > \- Fixed an issue where users in self-dispatch mode would not see call detachments if they cleared themselves via the active calls window. > > Custom Login Page - Direct to Community\ > \- Fixed an issue causing custom login pages to not take the user directly to the community menu on login. > > Record Center Preview - Capitalization\ > \- Fixed an issue causing record previews in the record panel to not be displayed as all uppercase letters. > > Dispatch Saved Types - Backspace\ > \- Fixed an issue where backspacing on the dispatch's saved call types would remove or freeze the call editor from the UI. ### 3.16.1 8/1/2021 > [tab] Fixed > > Smart Signs - Push Events\ > \- Fixed an issue with smart signs when capital letters were sent from the CAD, resulting in blank spaces on in-game signs. > > Lookup - DB Sync\ > \- Fixed an issue causing some DB Sync lookups to fail if you had only license or only vehicle mapping enabled. > > Close Dispatch\ > \- Fixed an issue where closing a call through a manual call update would fail. > > Record Searchable Fields - Trim Spaces\ > \- Fixed an issue where searchable record fields were not having leading or trailing spaces trimmed. ### 3.16.0 7/31/2021 > [tab] New > > Tones - Specific Users\ > \- The tone board now has a selector to play tones to specific units, groups, dispatch calls, agencies, departments, or subdivisions. You can also click on the active units number/group/agency/department/subdivision or the active call for a dropdown shortcut to add these to the tone board play to selector. > > Dispatch Call - Presave Data\ > \- Dispatchers can now save filled call templates for use with common calls. > > Lookup - Disable Partial\ > \- The lookup window now has a partial search toggle, allowing you to run a standard partial search or filter an exact search term. Your preference is also saved to the local device for any new windows. > > Active Units Dropdown - Icons\ > \- Added icons to the active units dropdown menu for faster selection. > > API: Partial Lookup\ > \- The API lookup by name/plate now includes a partial flag to toggle a partial or exact search. If undefined, a partial is assumed as default. > [tab] Fixed > > Community Customization - Save\ > \- Fixed an issue causing the community customization info to not properly save. > > Civilian Records - No Partial\ > \- The civilian lookup panel ensures all lookups are exact, preventing partial matches from showing. > > Custom Record - UID Values\ > \- Added additional safety checks and sanitization for communities that somehow manage to manually add dashes to custom field UID values, resulting in an SQL syntax error if the fields are indexed for unique or custom search values. > > Smart Signs - Cancel Edit\ > \- Fixed an issue causing the smart signs UI to duplicate the sign if you cancel an edit. Resulting from Lua's 1 based indices vs JS 0 based indices. > > Tone Board - Hotkey\ > \- Fixed an issue causing the tone board hotkey from not properly detecting if a tone board already existed, resulting in a new window every time. > > Dispatch Call Notes - Reversed\ > \- Fixed an issue causing the call notes for dispatch to be in reversed history for the initial load in. > > Checkout - Set Community ID\ > \- Fixed an issue where the popup to set your community ID after purchasing a subscription would be blank. ### 3.15.1 7/30/2021 > [tab] Fixed > > Server Selector\ > \- Fixed an issue where navigating to and from the community menu would display the incorrect server in the server selector, even though you were properly logged into the correct one.\ > \ > Change Server - Login\ > \- Fixed an issue where an undisposed event handler would be registered multiple times with menu navigations, causing multiple unit logins when switching your server.\ > \ > Active Units - Dispatch Flag\ > \- Fixed an issue causing units to display the dispatch flag incorrectly in the active units panel. > > Modify Signs Permission - Translation\ > \- Fixed an issue causing a translation file error with the modify signs permission label. ### 3.15.0 7/27/2021 > [tab] New > > Street Signs Integration\ > \- Our new street signs integration plugin and UI allows you to modify in-game street signs right from the CAD! This is visible for dispatchers and users in the DMV page. > > Street Signs - Permission\ > \- Added a new permission to allow users to modify street signs in the dispatch and DMV page. By default, only the CAD owner will have this new permission. > > Discord RPC\ > \- The desktop application now adds rich presence info and buttons to your Discord profile. You can customize the invite link to your Sonoran CAD community, or your community's Sonoran CMS new member application. > > Dispatch Signal - Draggable Window\ > \- Desktop users only now can access the dispatch signal window as a draggable/lockable window and not a popup modal. > > Tabs - Quick Close\ > \- On tabs with multiple minimized windows, the preview will display a close button to more efficiently close multiple tabs. > [tab] Changed > > Push Event: Detach Unit\ > \- The EVENT\_UNIT\_DETACH now may contain a plural 'idents' field as opposed to a single 'ident' field when more than one unit is being detached at a time. > [tab] Fixed > > Custom Login Pages\ > \- Fixed an issue causing requests for custom login page info to fail. > > Record Lookup - Fire and EMS\ > \- Fixed a permissions error preventing fire and EMS users from searching for a character or vehicle to import into a custom record. > > 10-Codes CSV Upload - Null Check\ > \- Added a null/empty string check when importing and setting 10-codes. ### 3.14.2 7/18/2021 > [tab] New > > Permission Update - Auto Update UI\ > \- Editing a user's permissions will now live update these without requiring them to refresh their page. This makes the Discord permissions sync feature more seamless. > > Discord Bot - Multi-Server\ > \- The Discord bot now supports permission sync with multiple different servers for a single community. > > Discord Bot - linkme\ > \- The discord bot now automatically runs the /syncme command after linking your secret ID. > > API: set\_streetsign\_config\ > \- Added an endpoint to set the street sign configuration in the CAD. This is for an upcoming integration plugin. > > API: update\_streetsign\ > \- Added an endpoint to update street signs in the CAD from in-game. This is for an upcoming integration plugin. > > Push Event: event\_streetsign\_updated\ > \- Added a push event for when street signs are updated in the CAD. This is for an upcoming integration plugin. > > Push Event: event\_record\_add\ > \- Added a push event when records are added. > > Push Event: event\_record\_edit\ > \- Added a push event when records are edited. > > Push Event: event\_record\_remove\ > \- Added a push event when records are removed. > > Websocket Connection - Keepalive\ > \- Added a manual keepalive heartbeat from server to client in attempt to prevent Cloudflare from closing some user's websocket connections, resulting in an unstable connection. > [tab] Changed > > Mobile Taskbar Focus\ > \- The taskbar search no longer auto-focuses for tablet devices. > [tab] Fixed > > Secret ID - Default Blank\ > \- Fixed an issue causing the secret ID to be blank for some users, requiring a refresh before utilizing it. > > Dispatch Update Call - Duplication\ > \- Fixed an issue where dispatchers would see call notes duplicated if they manually updated the call. ### 3.14.1 7/14/2021 > [tab] New > > Server Selector - Loading\ > \- Added a loading screen when switching servers to prevent confusion on delay. > [tab] Fixed > > Server Selector\ > \- Fixed an issue causing a failure when trying to switch servers in the fire, police, ems, or dispatch page. > > Custom Records - Image\ > \- Fixed an issue causing the custom record image field to not display the uploader. > > Taskbar - Pinned Windows\ > \- Fixed an issue causing the pinned windows on the taskbar to not load after more than one visit back to the community menu. ### 3.14.0 7/11/2021 > [tab] New > > Start Menu - Quick Search\ > \- The start menu now has an auto-focused search box to filter window options for all mid-sized screen users and larger. > > Hotkey: Start Menu\ > \- Added a new configurable hotkey to toggle the start menu. > > Vue 3\ > \- Migrated the UI to Vue JS 3. This should also resolve issues some users experienced with the in-game tablet. > [tab] Changed > > Classic Layout - Default Enabled\ > \- The "Classic Layout" is enabled by default for all users. This can be disabled in the customization menu to allow users to customize their dispatching panels into different locations. > > Desktop Header\ > \- Updated the desktop header bar to match the new header in emergency pages. > [tab] Fixed > > New Record - Conflict with Lookup Filters\ > \- Fixed an issue causing the saved lookup preferences from also impacting the available records types in the records center. > > Tone Board - Direct Upload\ > \- Fixed an issue causing direct upload of audio files to the dispatch tone board from properly setting the new URL. > > Window Layout\ > \- Fixed issues with custom window layouts not saving or persisting properly. > > Self-Dispatch: Logout\ > \- Fixed a permissions issue for self-dispatchers logging out. > > Image Uploader - Name\ > \- Changed the file uploader to no longer be labeled as only an image loader. > > Admin - Get Owner\ > \- Fixed an issue preventing the admin page's "Get Owner" button from properly searching for the record owner. > > BOLO Update\ > \- Fixed an issue where updating or removing a bolo would not automatically update this in the other unit's screen without re-opening the window or searching again. ### 3.13.0 7/1/2021 > [tab] New > > Dispatch Tone Board\ > \- Custom audio tones can be configured and played by dispatchers. Customizations include the label, icon, color, and sound file. > > Hotkey - Tone Board\ > \- A global hotkey can be configured to open the dispatch tone board more quickly. > > Custom Audio Notifications\ > \- Customizable audio notifications for new dispatches, panics, alerts, and more. > > Active Units - Show/Hide Dispatchers\ > \- The active units panel now has a toggle to show or hide dispatchers. > > Custom Records - ID Field\ > \- Custom record fields can now have the type set to "ID" to display the unique record ID. > > Tone Board - Webhook\ > \- Added a Discord webhook to log when a user plays a tone from the tone board. > > Lookup Filter - Save Preferences\ > \- Lookup filter preferences are saved locally and won't reset when you open a new or different lookup window. > > Text-to-speech - Toggle\ > \- Toggle off text-to-speech in the settings menu. > [tab] Changed > > API: get\_active\_units - onlyUnits flag\ > \- The get\_active\_units endpoint now has an optional `onlyUnits` flag to show or hide dispatchers. Unit objects also contain an `isDispatch` boolean flag. > > Dispatch Panel - Table UI\ > \- Small UI changes and improvements to the dispatch panels with tables and their column customization, search boxes, and buttons. > > S3 Hosting\ > \- All image and file uploads have been migrated from AWS S3 to Sonoran S3. > > Discord Bot IP - Bad Request Whitelist\ > \- SonoranBot API failures no longer count towards a community API blacklist. Ex: verify\_secret > [tab] Fixed > > Tablet - Resize Window Save\ > \- Fixed an issue with the in-game tablet not being able to detect as a non-mobile user agent - locking draggable windows and not persisting the saved size preferences. > > Custom Records - Disabled Scrollbar\ > \- Fixed an issue where text-areas couldn't be scrolled if the record editing was disabled. (Ex: Viewing a civilian record) > > Unit Group - Remove from Call\ > \- Fixed an issue preventing unit groups from being removed from a dispatch call. > > Dispatch Call - PDF\ > \- Fixed an issue preventing call logs from printing to PDF. > > Records Webhook: Charges\ > \- Fixed an issue causing record webhooks to not display values from the "Charges" sections. > > SSO - Change Username Push Event\ > Improved username update handling with the SSO system. > > Unit Group - Add to Call\ > \- Fixed an issue causing the unit group's "Add to Call" button to be all white. > > Dispatch - Change Server\ > \- Fixed an issue where dispatchers changing servers would still show on the active units list for other dispatchers. ### 3.12.3 6/16/2021 > [tab] New > > PDF - Chinese Localization\ > \- PDF records now support Chinese localization, and will print in a font supporting Chinese characters if the user has their language set to Traditional or Simplified Chinese. > [tab] Fixed > > Self Dispatch - Notes\ > \- Fixed an issue where self-dispatchers attaching to an active call would not receive new notes on the call until a page refresh was executed. > > Hide Secret ID Field Until Logged In\ > \- Fixed an issue where the secret ID field was still displayed as blank before logging into a specific community. ### 3.12.2 6/14/2021 > [tab] New > > Report Window - Save Last Window's Size\ > \- Resizing a popout window will save this width and height preference for when you open a new window of this type. > > Account Secret ID\ > \- User accounts now have a "Secret ID" similar to an API unique to each community account. These can be used with third party/external applications for authentication/security (Discord bot role sync) and can be refreshed/regenerated in the UI if ever leaked. > [tab] Change > > Custom Map Images - File Size\ > \- Increased the file size limit of custom map images from 25 to 30MB each. > [tab] Fixed > > Self-Dispatch 911 Calls\ > \- Fixed an issue causing self-dispatchers to not receive incoming 911 calls properly. > > API: set\_api\_id pushNew Flag\ > \- Fixed an issue in the set\_api\_id endpoint preventing the pushNew flag from working properly. ### 3.12.1 6/10/2021 > [tab] New > > Custom Login Page: DNS Record\ > \- Custom login pages can now be created by adding a simple CNAME DNS record. Communities no longer need to host an iFrame webpage. The old query strings (other than community ID) have also been depreciated. > > Webhook Footer - Server ID\ > \- Added the server ID metadata to specific webhook footers for the discord bot parsing. > [tab] Fixed > > Active Units - Sorting\ > \- Fixed an issue where some columns of the active units table wouldn't properly sort. > > Custom Search Types - Disable on Civilian\ > \- Fixed an issue where custom search types were displayed in the civilian menu. > > PDF: Margins\ > \- Fixed an issue with PDF records sometimes running outside of the page margins. > > Self Clear - Disable without Perms\ > \- Fixed an issue where units could not self-clear from a call unless they had dispatch or self-dispatch permissions. > > API: Unit Status\ > \- Fixed an issue with the unit status API endpoint not updating the status on the user's local UI. ### 3.12.0 6/5/2021 > [tab] New > > Custom Records - Duplicatable Section\ > \- Custom record sections can be toggled as "duplicatable" allowing the user to duplicate a section (similar to charges) while filling out the report. > > Custom Records - Unique Field\ > \- Custom records now support enforcing unique fields for any non-db sync record type. > > Custom Records - Address Type\ > \- Custom records now have an "Address" type that will display a dropdown containing the community's imported spreadsheet of street addresses. This auto-filters as you type, just as the dispatch editor does. > > Custom Records - Removed Vehicle Limit\ > \- Custom records can now have an unlimited number of 'plate' UID fields that will index and make the vehicle plate searchable. (Previous limit of 3 vehicle sections per record.) > > Custom Records - Removed Civilian Limit\ > \- Custom records can now have an unlimited number of 'first', 'last', and 'mi' UID fields that will index and make the character names searchable. (Previous limit of 3 civilian sections per record.) > > Emergency Call Columns - Persist\ > \- Modifying the displayed column preferences on the emergency calls list will persist past a refresh on a local device. > > Active Calls Columns - Persist\ > \- Modifying the displayed column preferences on the calls list will persist past a refresh on a local device. > > Active Units Columns - Persist\ > \- Modifying the displayed column preferences on the active units list will persist past a refresh on a local device. > [tab] Changed > > Custom Records - Required Field Color\ > \- Changed the custom records required field text from red to orange for higher contrast. > > API: Set Call Primary\ > \- Heavily optimized the set\_call\_primary API endpoint for quick unit tracking updates via Dispatch Notify. Added an additional required 'trackPrimary' field to the call to toggle the unit tracking. > > API: Set Call Postal\ > \- Heavily optimized the set\_call\_postal API endpoint for quick unit tracking updates via Dispatch Notify. > [tab] Fixed > > Character Tab: Icon\ > \- Fixed an issue causing the character Windows minimized tab to not have an icon. > > Live Map - Self DIspatch\ > \- Fixed an issue where units with self-dispatch enabled would be marked as a true dispatcher, preventing them from being shown on the live map. > > Unit Group Columns - Dropdown\ > \- Fixed an issue where the active units group column dropdown had incorrect column values. ### 3.11.2 6/1/2021 > [tab] Fixed > > Dispatch Classic Layout\ > \- Fixed an issue where the dispatch classic layout would be off on full-sized desktops. > > Server Selector\ > \- Fixed an issue where the server selector wouldn't work in the fire, EMS, and police pages. > > Electron: Top Taskbar Cover\ > \- Fixed a bug in the desktop application where the taskbar would cover the application header. > > Active Units - UI\ > \- Fixed an issue with the UI causing active units to not properly be displayed when new units login. ### 3.11.1 6/1/2021 > [tab] New > > Tab: Labels\ > \- Tabs can now have their text and icon displays toggled. By default, desktop users have tabs that display both the icon and text with mobile users only seeing the icon. > > Dispatch: Unit Identifier\ > \- Dispatch now has a unit identifier panel by default. > > Dropdown Filter - Backspace\ > \- Improved dropdown auto-filtering to properly re-compute options after backspacing from a typo for dropdowns like; dispatch address, code, primary unit, and charge title. > > Window: Bring to Top\ > \- Added a "Bring to Top" menu option when right-clicking a locked window. > > Penal Code - Value Safety Checks\ > \- Adding or modifying penal codes will ensure that any property is not set to NULL. > [tab] Changed > > Unit Status - Mobile Enhancement\ > \- Improved the unit status buttons display style for mobile users. > > Mobile: Auto Height\ > \- Improved the automatic height calculation of windows for mobile users. > [tab] Fixed > > Start Menu: Icon\ > \- Fixed an issue causing the start menu's Sonoran CAD icon from not properly displaying in apps. > > iOS Padding\ > \- Fixed an issue where the taskbar wouldn't add extra padding to account for iOS "safe" areas. > > Active Units Tab\ > \- Fixed an issue where the active units tab had no icon and would not automatically open a new units window if it was pinned with no actively minimized windows. > > Mobile: Side Taskbar\ > \- Fixed an issue for mobile users where the taskbar would be closed and unable to be reopened if they customized it to be displayed on the side. > > Live Map: Dynamic Start Menu Display\ > \- Fixed an issue where the live map option in the start menu would still display even if the live map was disabled in the admin menu. > > Tabs: Navigation\ > \- Fixed an issue where old tabs would still be minimized if you navigated to the menu and back from an emergency services page. > > Active BOLOs: Status\ > \- Fixed an issue where BOLOs with the status set to CLOSED would still be displayed in the active BOLO window. > > Active Calls: Tab\ > \- Fixed an issue where the active calls tab had no icon and would not automatically open a new units window if it was pinned with no actively minimized windows. > > Emergency Calls: Tab\ > \- Fixed an issue where the emergency calls tab had no icon and would not automatically open a new units window if it was pinned with no actively minimized windows. ### 3.11.0 5/29/2021 > [tab] New > > Discord Bot\ > \- Released a new Discord bot to sync Discord roles with CAD account permissions automatically. Kicking and banning a user from Discord will also preform those actions on the user in the CAD. > > Emergency Services - Layout Overhaul\ > \- The UI for police, fire, EMS, and Dispatchers has been overhauled to a more "Desktop" style theme. This includes a new taskbar with customizable positions. In addition, tabs of the same type now condense together. Tabs can be pinned in addition to dragging and dropping their positions. Pinned tabs will save their position past a reload. > > API: set\_call\_postal\ > \- Added an endpoint to update a dispatch call's postal code. > > API: set\_call\_primary\ > \- Added an endpoint to update a dispatch call's primary unit. > > Wraith - Custom Fields\ > \- Communities can now customize the status and expiration date fields to be displayed in the Wraith lookups with custom records. > [tab] Changed > > Dispatch - Update Call Clearing Editor\ > \- Dispatch updating a call no longer clears the call from their UI editor. > > Chinese Translation Labels\ > \- Changed the Chinese symbols for the simplified and traditional Chinese translation menu options. > [tab] Fixed > > Dispatch Call Notes\ > \- Fixed an issue where dispatchers were not getting call notes if the call was not being viewed. Causing them to override the existing call notes if they opened a new existing call and updated it. > > Dispatch Call Edits\ > \- Fixed an issue where dispatchers were not receiving updated call data if a self-dispatcher updated information. > > Department Editor - Error Codes\ > \- Fixed an issue with invalid i18n translations in the department editor for error codes. > > DMV Pending - Default Filter\ > \- Fixed an issue where the PENDING records section for DMV had the default filter set to only DMV records, hiding vehicle and license records. > > Wraith Plugin - Closed BOLO Records\ > \- Fixed an issue with the Wraith V2 integration plugin where "Closed" BOLO records would still be displayed. > > Call Close - Detach Units\ > \- Fixed an issue where units were not being detached in the database when a call was closed. > > Admin - Lookup Window\ > \- Fixed an issue where the "Get Owner" lookup window in the admin menu could not be dragged above the accounts table. ### 3.10.3 5/14/2021 > [tab] Changed > > SQL Connections\ > \- SQL connections are now cleared back to the connection pool in-between data processing to free up idle connections as quickly as possible. > [tab] Fixed > > Dispatch Address - Type to Filter\ > \- Fixed an issue causing the dispatch addresses dropdown to not support live filtering via text input. > > Record Editor - Copy Link\ > \- Fixed an issue where the copy record link button was not showing in the record viewer. > > Record Editor - Get Owner\ > \- Fixed an issue preventing the "Get Owner' button from displaying in the admin menu's lookup tool. > > Dispatch - Note Updates\ > \- Fixed an issue where dispatchers could not receive new call notes. > > Dispatch Preview - Scroll Description\ > \- Fixed an issue where previewing a dispatch call wouldn't allow you to scroll down on the description. > > Android - Settings Menu\ > \- Fixed an exception for android devices preventing the settings modal from displaying. ### 3.10.2 5/12/2021 > [tab] New > > Window Layout - Classic Version\ > \- Added a toggle in the settings modal to enable "Classic Layout" removing the ability to customize your layout, reverting back to the older static, responsive layout. > > Quick Dropdown Menu UI\ > \- Improved UI style and consistency for the quick action dropdown menus on the active dispatch calls, units, and emergency call windows. > [tab] Changed > > Capacitor - Disable Stripe Library\ > \- Stripe library now only loads on the billing page, removing this from mobile capacitor builds. > > Tablet - Allow Window Drag\ > \- Popout window dragging is now re-enabled for tablet users. > [tab] Fixed > > Self Dispatch - Duplicated Calls\ > \- Fixed an issue where self dispatchers would see new dispatch calls duplicated if they are initially attached. > > Set API ID\ > \- Fixed an issue causing an error when new accounts set their API ID. > > Self Dispatch - Close from Active Calls\ > \- Fixed an issue preventing users in self dispatch mode from closing an active call. > > Electron - Reload Exception\ > \- Fixed an issue on the desktop version causing reloads from resetting a window layout or changing the language translation to throw a popup exception. ### 3.10.1 5/12/2021 > [tab] New > > Tablet - Auto Set API ID\ > \- The tablet resource now automatically sets a users API ID in the CAD when they login. > > Quick Resize - Lock Button\ > \- Added an additional "Lock Window" button while quick-resize is enabled, preventing users from having to right-click to access the lock menu. > [tab] Fixed > > Dispatch - Call Notes\ > \- Fixed an issue where units couldn't see new call notes until they refreshed the page. > > Primary Unit - Display\ > \- Fixed an issue causing the primary unit on the dispatch call editor to not properly work. > > Popout Windows - Save Size/Position on Minimized\ > \- Fixed an issue causing some popout windows to not save their size and positioning after being minimized. > > Self Dispatch - Create Call\ > \- Fixed an issue where users with self-dispatch enabled couldn't create a new dispatch call. > > Self Dispatch - Edit Call\ > \- Fixed an issue where users with self-dispatch were unable to edit an existing dispatch call. > > Self Dispatch - Clear Call\ > \- Fixed an issue where users with self-dispatch were unable to clear themselves from a call. > > Call Viewer - Initial Width\ > \- Fixed an issue where the initial unlocked placement of the call editor was 1px too wide for the police, fire, and EMS pages. > > Record Viewer\ > \- Fixed an issue with records having a blank space below the bottom action bar. > > Small Screens - Increase initial width\ > \- Improved and fixed issues with some popout windows being too small by default. > > Civilian - Popout Windows\ > \- Fixed an issue with civilian popout windows being stuck below the character UI. > > Dispatch Login - Security Warning\ > \- Fixed an issue where dispatchers logging in would make a get call request resulting a security warning without the police, fire, or EMS permission. ### 3.10.0 5/10/2021 > [tab] New > > SSO Accounts\ > \- All user accounts have been migrated over to a general "Sonoran" account. This allows for a centralized place to edit your account info, view your billing, and more. > > Custom Layouts\ > \- Users can now fully customize the placement of any window and lock them to create a custom layout. This includes all default dispatching windows and additional popout windows. Layouts are also saved locally to the user's device. > > Dispatch Editor - Drag and Drop Units\ > \- Active units can be dragged over to the call editor to more easily attach them. > > Active Units & Groups - Drag and Drop\ > \- Units can be dragged and dropped into a new or existing group. > > Dispatch Call History - Drag and Drop Units\ > \- Units and unit groups can be dragged and dropped directly to an active call, removed from a call, or dragged from one call to another without having to open the full call in the editor. > > Dispatch Call Note: Attach/Detach\ > \- Dispatch calls now receive a note when a unit or unit group is attached or detached. > > Emergency Calls - Drag and Drop\ > \- Emergency/911 calls can now be dragged and dropped from the call list to the dispatch editor. > > Status Change - Dispatch Call Note\ > \- Units attached to a dispatch call will send a note to the call when updating their status. > > Custom Search - Partial Matches\ > \- Custom search types now allow for partial searches. > > Translation: Chinese\ > \- Added Chinese translations to the CAD settings. > > Translation - Traditional Chinese\ > \- Added Traditional Chinese translations. > > Login - Emit Session Data\ > \- Data is now emitted to the page's parent (for iframe) allowing the username and session ID to be captured for authentication with the auto API ID set feature. > > API: Set API ID\ > \- The set API ID endpoint now allows for an array to be sent along with specification to push or overwrite the existing account IDs. > > Active Calls - Postal Column\ > \- The active calls list now has an optional field to view the call's postal field. > > BOLO Records - Status Field\ > \- The custom records UI now requires BOLO records to contain a "Status" field. > > Civilian 911 - Modify Caller Name\ > \- Civilians can now remove their name in the 911 caller to remain anonymous. > [tab] Changed > > Push Events - Server Port\ > \- The push event system now utilizes your existing game server port. This reduces the number of open ports your server requires. Push events are now sent to [http://ip:gameport/sonorancad/event](http://ip/:gameport/sonorancad/event). The framework will automatically forward events to this new path if you have not updated your port in the CAD admin panel. > > API - SET\_ACCOUNT\_PERMISSIONS\ > \- Separated the account permission arrays in the SET\_ACCOUNT\_PERMISSION API endpoint to allow a caller to both add and remove specific permissions in a single call. Also, added an additional option to specify the user by their CAD username as opposed to only their API ID. Additionally, added an option to toggle the account status from PENDING to ACTIVE. > > API: NEW\_CHARACTER Response\ > \- API NEW\_CHARACTER responds with the full JSON character record built. > > API IDs - Array\ > \- API IDs are now stored as an array and allow for more API IDs to be stored. The UI has also been improved and will auto-save. > > API: Unit Push Events\ > \- Push events including unit updates no longer contain the full unit structure, but instead include the unique identifier ID. > > API: Change Unit Status\ > \- The change unit status endpoint now requires a server ID argument. > [tab] Fixed > > Live Map - Custom Upload\ > \- Fixed an upload limit issue causing some custom live map uploads to fail. > > Remove Record\ > \- Fixed an issue preventing users from removing a record due to an incorrect UUID placement. > > Default Records - Flags\ > \- Fixed an issue where the default record type templates contained records with hidden flags. > > 911 - Text to Speech\ > \- Fixed an issue where the webpage text to speech for "Incoming 911" would fail. > > Record - Get Owner\ > \- Fixed an issue where searching for a record's owner would fail on types other than a civilian. > > Custom Search - Case Sensitivity\ > \- Fixed an issue where custom searches were not case-insensitive and would fail on searches with lowercase DB values. > > Unit Location - Duplicate API IDs\ > \- Fixed an issue where unit locations would not update via API if multiple user accounts had conflicting API IDs. > > DB Sync/Merge Primary Key Column\ > \- Resolved issues with DB Sync/Merge mapping manual values properly if the user had a primary key column name set as a reserved MySQL character. Ex: '#" > > DB Sync/Merge - Character ID vs Primary Key\ > \- Resolved an issue with DB Sync/Merge if the community has a different character unique ID that is not the primary key column. > > Character Records: Validation\ > \- Fixed an issue where custom character validation was not being processed for required fields. > > Custom Records: Supervisor Status\ > \- Fixed an issue where custom records with a status field in a section before fields requiring a supervisor may not be indexed properly as requiring supervisor permissions. > > DBSync - Character Multi-Table\ > \- Fixed an issue where database sync would fail to select the correct "owner ID" when using multiple character tables. > > Dispatch Address Filter - Mistype\ > \- Fixed an issue on the dispatch address field filtering where backspacing after a misspelling would fail to re-correct the filtered list. > > Lookup - Closed BOLO\ > \- Fixed an issue with the lookup UI preview showing a BOLO's status as 0 or 1 instead of "Closed" and "Open". > > Call Note - Permission\ > \- Fixed an issue where units could not add a note to the call unless they were in self-dispatch. > > Clear Subscription - Handle non-existing subscriptions\ > \- Fixed an issue where clearing a subscription's ID on an expired subscription would fail. > > Police Supervisor Panel - DMV Records\ > \- Fixed an issue where the police supervisor panel would also show DMV records that required supervisor completion. > > Favicon - Alternate Sizes\ > \- Fixed an issue with alternate sized favicons not displaying and causing a mixed-media SSL warning. ### 3.9.0 2/9/2021 > [tab] New > > Lookup - Custom Search\ > \- Communities can now create custom lookup search types (Ex: SSN on a civilian, license firearm number, etc.). Search types can also specify a mask format, work with DB Sync, DB Merge, and all custom records. > > Custom Records - Custom Search Field\ > \- Custom records can now have a custom searchable field set by using the UID field. > > Logging - User UUID from Validation\ > \- Enhanced user logging for increased security and debugging. > > API - GET\_ACCOUNT - Search By Username\ > \- The GET\_ACCOUNT API endpoint can now use the username in addition to the API ID. > [tab] Fixed > > DB Sync - Port Length\ > \- Fixed an issue where DB Sync port numbers were limited to only 5 integers instead of 6 in the UI. ### 3.8.1 - 2/2/2021 > [tab] New > > Dispatch - Auto Street Names\ > \- The address section on dispatch calls is now a drop-down with auto-suggested street names as you type. You can customize the list of street names in the admin menu by uploading a CSV or JSON file. ### 3.8.0 - 2/1/2021 > [tab] New > > Geographical Settings - Emergency Code\ > \- Improved the geographical setting section's emergency code (911) to be fully customizable. > > Geographical Settings - Currency\ > \- Geographical customization now allows you to change the currency delimiter from \$ to any other currency symbol. > > Geographical Settings - 10-Codes\ > \- Geographical customization allows you to customize references of "10-Codes" to other phrasing. > > Geographical Settings - Penal Codes\ > \- Geographical customization allows you to customize references of "Penal Codes" to other phrasing. > > 10-Codes - Import/Export CSV and JSON\ > \- 10-Codes can now be imported and exported via CSV and JSON. > > Penal Codes - CSV Export\ > \- Penal codes can now be exported to a CSV file as well. > > Change Community ID - Update Subscription\ > \- For all newly created subscriptions, updating your community ID will auto-update the community ID on your Stripe subscription as well. > > Billing - Set Community ID\ > \- When setting the community ID of a subscription in the billing page, the options are restricted to communities you are already in. ### 3.7.4 - 1/29/2021 > [tab] Fixed > > Lookup - Custom Records Tab\ > -Fixed an issue causing the reports result section in the lookup window to not properly display the results table. ### 3.7.3 - 1/29/2021 > [tab] New > > Penal Codes - CSV Import\ > \- Communities can now import all penal codes directly from a CSV spreadsheet file. > > Translation - Russian\ > \- Added Russian translations. > [tab] Changed > > Custom Community ID - Starter\ > \- Community IDs are now randomly generated and require the starter plan or higher to customize. This helps ensure less community ID conflicts. > > Stripe - Dynamic Tax Rates\ > \- Stripe checkout sessions now automatically charge sales tax based on location, rather than requesting the user's ZIP code in the CAD prior. > [tab] Fixed > > Discord - Webhook URL\ > \- Fixed an issue requiring Discord webhooks to only work with discordapp.com in the URL and not discord.com. ### 3.7.2 - 1/25/2021 > [tab] New > > Live Map - Custom Map\ > \- Communities can now upload custom map image files if they are using a custom live map. > [tab] Changed > > Requests - Ensure no Username Spoof\ > \- Improved a possible security exploit where a user could spoof their username to confuse community webhook logs, making it more difficult for communities to properly stop misuse. > [tab] Fixed > > Custom Records - Lookup Preview Columns\ > \- Fixed an issue where custom records with the same name but a different ID would cause a key conflict in the lookup preview. > > Live Map - Static URL\ > \- Fixed an issue causing the toggle "Static URL" option for the live map to be disabled. > > NSIS Installer Update\ > \- Updated the Windows Desktop NSIS installer to resolve an issue where users who removed the app without using the uninstaller would have the installer freeze while re-downloading it. > > DB Sync - Primary Key Detection\ > \- Fixed an issue where database sync could find multiple primary keys in user defined tables if the MySQL database had multiple schemas with the same table name, but different primary keys in each. > > Remove Character\ > \- Fixed an SQL error causing some users to be unable to remove their characters. > > Webhooks - Multiple Embeds\ > \- Discord webhooks that failed due to containing more than 25 fields have now been broken down into multiple embeds. > > Unit Locations\ > \- Fixed an issue where unit locations may not be updated if the last unit object in the API call contained an invalid API ID or had a different server ID selected. ### 3.7.1 - 1/15/2021 > [tab] New > > Payment - Set Community ID\ > \- Added checks to ensure a payment can not have it's community ID set if the community ID already has an existing subscription. This prevents someone from downgrading another community ID if they switch their subscription's community ID back and forth. > > Payment - No Community ID Set\ > \- Added an additional, clickable warning badge in the payment center when a user has a subscription without a community ID set. > [tab] Fixed > > Records Center - Pending and Supervisor\ > \- Fixed an issue in the records center where completing a supervisor or pending record would not auto-update the supervisor/pending panel to remove it and required a search refresh. > > DB Merge - Local Edit\ > \- Fixed an issue where saving a record with database merge would add a bugged local duplicate of the edited record instead of updating the existing one on the UI. > > DBSync - Primary Key Detection\ > \- Fixed issues and improved handling for ensuring database sync tables contain a proper primary key. > > DB Merge - Primary Key\ > \- Fixed an issue where saving database merge records was not using the new unique primary key system and would show merged/saved values on all license and vehicle registrations owned by that character. > > Middle Initial - Check Length\ > \- Fixed an issue where submitting custom reports with a middle initial field larger than one letter would fail to save in the database. ### 3.7.0 - 1/8/2021 > [tab] New > > Custom Records - Linked Records\ > \- Custom record templates can now have a "linked records" section added. You can now click the "copy link" button in any record header and "paste link" in the linked records section. Linked records can be clicked to cross-reference reports, characters, and more. > > Sonoran Servers - Bundle and Save\ > \- Sonoran Servers customers can now link their VPS plan in the billing center and save 30% every month! > > Lookup Results - Quick Search\ > \- On a lookup window's returned results, result rows with a name or license plate have a quick search icon to open a new lookup window with that name or plate. > > Items Per Page - Save Preferences\ > \- The "Items Per Page" for lookup tables, penal code tables, active units, 10-codes, and others will now locally save your selected preference. > > Dispatch - Track Primary Unit\ > \- The dispatch UI now has a checkbox to track the primary unit. When paired with the dispatch notify plugin, units in-game will be auto routed to the current position of the primary unit. This is useful in a chase, where units can have their GPS routed to the lead unit in real time. NOTE: This additional plugin functionality is still in development. > [tab] Fixed > > Electron - Settings Modal\ > \- Fixed an issue making it difficult to close the settings modal on the Windows desktop application. > > Penal Codes - Manual Sort\ > \- Fixed an issue causing penal codes to not properly save their position in the list when manually sorted and saved. ### 3.6.0 - 12/30/2020 > [tab] New > > Hotkeys - Lookup\ > \- Hotkeys can now be configured to open a new lookup window. > > Hotkeys - Record Center\ > \- Hotkeys can now be configured to open the records center. > > Custom Records - Custom Flags\ > \- The flags section for custom records is now customizable for every individual custom record type. > > Custom Records - Label\ > \- Custom records now have a "label" type available in the record template editor. > > PDF Records - Checkbox\ > \- If a custom record has a checkbox that does not have a label set, the PDF will show an "X" if it's checked. > > Account - Change Email\ > \- Users can now update their account's email address in the account settings menu. > [tab] Changed > > Reconnection Handling - Components\ > \- Improved reconnection handling for components and other sub-modules in the CAD's UI. > > Lookup - Cooldown\ > \- Decreased the lookup cooldown significantly to allow for faster re-searching. > [tab] Fixed > > Reconnection Handling - Logout\ > \- Fixed an issue causing some clients to be logged out when connection is lost and re-established. > > Custom Record Editor - Width Label\ > \- Fixed an issue causing the custom record editor's "Width" section to display with the wrong label. ### 3.5.1 - 12/21/2020 > [tab] New > > Selected Character\ > \- Your currently selected character is saved in the civilian menu and will persist through sessions. > > API - Get Characters Ordering\ > \- The API get\_characters endpoint ensures that the first character record in the list returned (index 0) is always the account's currently selected character. > > Push Event - 911 Removed\ > \- API push event EVENT\_REMOVE\_911 is now sent when an emergency call is removed. > > Dispatch - 911 Origin MetaData\ > \- Dispatch metadata contains the origin call ID if sent from a 911 call. > > Translation - Italian\ > \- Italian language files have been added. > > Custom Records - No Name\ > \- The custom record editor will now display an error if a custom record is created without a name set. > > Custom Records - No Preview Fields\ > \- The record template editor will now error if the template has no record fields with the lookup preview enabled. The lookup UI will also now properly inform the user of the issue when searching and still allow them to click and open the bad record. > [tab] Fixed > > 911 Calls - UI Remove from API\ > \- Fixed an issue where 911 calls would not be removed from the local user's UI screen when removed via API, requiring a page refresh. > > Lookup - DbSync and Regular Mix\ > \- Fixed an issue where a lookup finding a manual character, license, or vehicle registration record while DBSync is enabled would break the search loop and return only partial results. ### 3.5.0 - 12/07/2020 > [tab] New > > Admin - Edit Character\ > \- Admins can now search and edit or remove characters for users in addition to getting the character owner's username. > > Admin - Edit Records\ > \- Admins can now search and edit or remove all records, in addition to searching for the record owner's account username. > > DBSync - Friendly Mapping\ > \- DBSync now allows you to map specific DB value results like "driver\_license" to a more readable "Driver's License" string format. > > Stripe Checkout - External\ > \- The payment system has been rewritten to use external Stripe checkout pages for all community subscription management. > > API - Get Live Map/Servers Config\ > \- The get\_servers API endpoint can now be utilized to retrieve your community's server configuration. This contains valuable information particularly for ensuring your live map ports and IP is correctly configured. > [tab] Fixed > > Custom Records - Null UID\ > \- Fixed an issue where older custom record formats without a UID would cause the UI to not properly validate and save the record format. > > DMV Edit - Supervisor Permission\ > \- Fixed an issue allowing civilians to edit supervisor fields on records they have to apply to. > > Import Custom Record\ > \- Fixed an issue where importing a custom record from another community with the custom recordTypeId field already being set would fail to add it to your community as a new record. > > DBSync - Custom Mapping\ > \- Fixed an issue causing DBSync to lose references to custom object mappings in rare cases. ### 3.4.3 - 11/28/2020 > [tab] New > > Promotional Handling\ > \- Added new side menu handling for special promotional banners and URL handling. > [tab] Fixed > > DMV - Status\ > \- Fixed an issue causing the STATUS type field in custom records to not be read properly in the backend. This caused cases where all new records would show up in the PENDING section of the DMV page even if they had been approved. > > DMV - Record Center Update\ > \- Fixed an issue where lookup preview table results would not update locally after editing or removing a record. Causing the user to have to manually refresh the search query. > > DB Merge - Error\ > \- Fixed an issue causing DB merge searches to fail if the results only contained records, and no civilians. > > Civilian - DBSync Add Character\ > \- Fixed an issue where civilians couldn't search to link a new character with DBSync due to a race condition with the event registration. ### 3.4.2 - 11/23/2020 > [tab] Fixed > > My Records\ > \- Fixed an issue causing the "My Records" section in the record center to not show properly. > > Civilian: Apply\ > \- Fixed an issue where civilians without the "Add" permission for records and could only apply would have the sections all disabled. ### 3.4.1 - 11/22/2020 > [tab] New > > Vehicle Registration - UID Status Required\ > \- All vehicle registrations now require a field with a UID of "Status". This enables the radar plugin to pull up and find the vehicle registration status. > [tab] Changed > > Reconnection and Event Handling\ > \- Further improvements have been made to the reconnection and event handling logic to improve the overall user experience. > [tab] Fixed > > Law Section - Lookup\ > \- Fixed an issue causing the lawyer page lookup section to not work properly. > > Event Handling - Page Switch\ > \- Fixed an issue where some event handlers would not be properly registered when switching from one page and back to another. > > Verify Account\ > \- Fixed an issue with the validate page's event handler preventing new users from verifying their email address. > > Custom Record - Fail without UID\ > \- Additional safety checks have been added to handle any legacy record containing fields without a proper UID property that prevented some users from adding custom records. > > Lookup By Int\ > \- Fixed an issue causing lookup by integer values (ID, ident, status) from not working properly. > > DBSync - License and Vehicle\ > \- Fixed an issue causing custom vehicle and license records to not be returned by DBSync if the custom civilian sync record contained data that the mapped vehicle or license records do not. ### 3.4.0 - 11/21/2020 > [tab] New > > DbSync/Records - Custom Character Mapping Fields\ > \- Civilian records are fully customizable in every field. Custom DbSync fields can also be added for every custom field. > > DBSync/Records - Custom Vehicle Mapping Fields\ > \- Vehicle registration records are fully customizable in every field. Custom DbSync fields can also be added for every custom field. > > Login - Multiple Sessions\ > \- Users may have multiple valid session tokens based on the IP, time, and session key. This ensures sessions are not invalidated when switching devices, particularly to and from our desktop and mobile apps. > > API Endpoint: Version Check\ > \- This API endpoint allows you to check the current subscription version of the community. > > Re-connection Handling\ > \- Improved app re-connection event registration and handling. This greatly improves user experience with connection drop outs, backend service restarts, etc. and fixes common bugs where units may experience with data not updating randomly until the page is refreshed. > > Penal Codes - Import/Export\ > \- Penal code lists can now be imported and exported from one community to another. > > Penal Codes - Manual Sort\ > \- Penal codes can now be manually sorted in order using the action buttons in the admin customization menu. > > DbSync - Column Space Check\ > \- All database sync column and table name values are trimmed to ensure no accidental spaces were entered that could cause an invalid SQL syntax error. > > Lookup - Trim trailing spaces\ > \- Added additional checks to ensure no beginning or trailing spaces are entered into the search terms. > [tab] Changed > > Stay Signed In\ > \- The stay signed in option is now enabled by default. All session tokens are now stored in local storage as opposed to session storage. > [tab] Fixed > > Discord Webhooks\ > \- Fixed an issue where Discord webhook URLs with Discord.com instead of discordapp.com would fail. > > Side Menu - Scroll\ > \- Fixed an issue where the side menu buttons would be overlapping on smaller screens. > > Empty Bolo - No Table\ > \- Fixed an issue where the view BOLOs tab wouldn't show anything but the top navbar if there were no BOLOs or warrants active. It now properly shows a "No Records Found" to minimize confusion. ### 3.3.0 - 10/25/2020 > [tab] New > > User Accounts - Purge\ > \- Admins can now "purge" inactive users in the admin menu. This will kick all users who have not logged in for the past 30 days. > > Signal 100 - Webhook\ > \- Webhooks can now be configured for signal 100 notifications. > > Custom Records - Import/Export\ > \- You can now export and import custom records and share them with other communities. > > Query String - Hide Switch Community\ > \- Communities hosting a custom login page or using an in-game tablet can specify the "lockCommunity" query string to hide the "switch community" button in the CAD. > > i18n Arabic\ > \- Arabic translations have been completed and updated. > [tab] Fixed > > Account Delete\ > \- Fixed an issue causing some account removal requests to have an error occur when sending the confirmation email. > > Side Menu - Vertical Scroll\ > \- Fixed an issue where screens in horizontal mode (in-game tablet) would have side drawer buttons overlap. The side drawer now properly scrolls vertically. > > Community ID and Account - PostgreSQL Wildcard\ > \- Fixed an issue where PostgreSQL queries for a community ID, email, or username with an underscore in them wouldn't escape the underscore. This caused conflict issues if the wildcard had another match. > > Record Order - Non DB Sync\ > \- Fixed an issue where records in a lookup were not always retrieved in proper chronological order. This caused issues with the UI preview not always showing the most recent template. > > Live Map - Static URL Toggle Label\ > \- Fixed an incorrect translation label for the live map static URL toggle label. ### 3.2.1 - 9/23/2020 > [tab] New > > Polish Translations\ > \- Added Polish translations to Sonoran CAD. > > Arabic Translations\ > \- Added Arabic translations to Sonoran CAD. > > Penal Codes - New Charge\ > \- If your penal code is not in the current charge list, users can press "ENTER" or "TAB" to add the custom value to the charge field. > > PDF - Image Error Handling\ > \- Improved image conversion error handling and detection in custom record PDF files. > [tab] Changed > > API - Unit Locations\ > \- Unit location API now has a more optimized way of sending unit location updates as a single array to the client's frontend. This increases performance with less websocket traffic. > [tab] Fixed > > Panic - UI Flash\ > \- Fixed an issue where a unit toggling their PANIC state would not flash their local UI screen red. > > Create Account - Password Error\ > \- Fixed an issue where users signing up for an account and receiving an error for password standards would not display the proper translation file error message. > > API IDs - Auto New Unit Identifier\ > \- Fixed an issue where a user setting their API ID before every singing into an emergency page for the first time would cause their new, automatically generated identifier to not contain their API ID by default. > > API IDs - Manual New Unit Identifier\ > \- Fixed an issue where creating a new unit identifier manually would not have your account API IDs added to the unit information by default. > > Webhook - BOLO\ > \- Fixed an issue causing the BOLO webhook to send to the general police record URL when being updated. > > PDF - Image Section Order\ > \- Fixed a race condition causing custom record sections with images to be displayed at the bottom of the PDF after being converted to Base64. ### 3.2.0 - 9/12/2020 > [tab] New > > i18n - Language Support\ > \- Sonoran CAD now supports full i18n language support for non-English translations. > > Record PDF - Images\ > \- Images are now displayed visually in PDF records. > > API - Add/Remove Account Permission\ > \- User account permissions can now be added or removed via an API endpoint. > > UI Theme Improvements\ > \- Improved small UI elements and components to stay consistent with the UI theme. > [tab] Changed > > Police Lookup - DMV\ > \- Added DMV record types to the default filter for police and dispatch lookups. > > DB Sync - Max Records\ > \- Limited the maximum amount of initial search results for DBSync communities to prevent users from requesting tens of thousands of records at a single time. > [tab] Fixed > > Modify Records - Owner\ > \- Fixed an issue where updating a record would also update the record owner. > > Db Sync - Error on no results\ > \- Fixed an issue where DB Sync searches would throw an error if no characters were found under the provided search name. > > Voice Commands - Lookup\ > \- Fixed an issue causing voice command name and plate lookups to fail. > > Db Sync - Lookup Without Specified Column\ > \- Fixed an issue where running a lookup via DB sync where a search column (typically middle name) was not provided by the configuration, but was requested via user search, would fail. > > Civilian Records - Linked to Unit Identifier\ > \- Fixed an issue where creating DMV/civilian records would be linked in "My Files" for the user account's currently selected unit identifier. > > PDF - Sections\ > \- Fixed an issue causing PDF records to not display sections and custom sections other than the civilian and vehicle ones. > > DB Sync - Record Overwrite\ > \- Fixed an issue causing database sync to overwrite some fields in custom records on lookup. > > Lookup - Switch Tabs\ > \- Fixed an issue where searching a license plate and then switching back to a name search would still cause a plate search to be ran on the backend. > > Charge Count\ > \- Fixed an issue where the charge count field in records would always revert back to 1 after being saved. > > DB Sync - Reset to Default\ > \- Added additional backend checks to ensure database sync field lists can never be empty. An empty JSON array will now automatically be reset to the default structure. ### 3.1.0 - 8/17/2020 > [tab] New > > Admin - UI\ > \- Improved the admin panel UI to be more consistent with the recent theme changes. > [tab] Changed > > DB Sync - Mixed Lookup\ > \- Improved the DB Sync lookup to more properly mix records for communities that may only have character mapping enabled, but not license or vehicle registration mapping enabled. > > DMV Record - Status Labels\ > \- Updated the DMV status label options to pending/approved/rejected. > [tab] Fixed > > Civilian - DMV Apply\ > \- Fixed an issue preventing civilians from being able to apply for other custom DMV record types. > > DB Sync - JSON Where Keys\ > \- Fixed an issue where DB Sync searches would fail if the user had specific search columns set as a JSON key-value column. > > Remove Record - Error\ > \- Fixed an issue causing record removal to always result in an error message. > > Civilian - Apply for Records\ > \- Fixed an issue where civilians applying for a record would not properly set the DMV status as PENDING. > > Pending/Supervisor Records\ > \- Fixed an issue where pending or supervisor required records would not properly populate in the pending and supervisor panels. > > Record Preview - Charges\ > \- Fixed an issue causing record charges from not being displayed in the lookup preview. > > Webhook - Status Field\ > \- Fixed an issue causing the Discord webhooks to display the improper status label for custom status fields. > > Record Viewer - Record Number\ > \- Fixed an issue causing existing record numbers to display as 'NEW" in the record editor. > > PDF - Record Number\ > \- Fixed an issue causing the record number to not be displayed in the PDF agency section. > > DB Merge - Check Save Record\ > \- Fixed an issue where if a community had DB merge enabled but didn't have license or vehicle registration mapping enabled DB merge would still override old records. ### 3.0.1 - 8/17/2020 > [tab] New > > Civilian - Custom DMV Apply\ > \- Civilians can now also apply for custom DMV records other than just licenses and vehicle registrations. > [tab] Fixed > > Download Button - Typo\ > \- Fixed a typo in the side menu "Downloads" button. > > Custom Records - Duplicate DMV Type\ > \- Fixed an issue where the "DMV Record" type was listed twice in the custom record editor. > > Account Registration - Error\ > \- Fixed an issue preventing new account registrations from receiving proper account registration links. > > Civilian - Record Apply Mobile\ > \- Fixed an issue where civilians on mobile devices could not apply for a new record. ### 3.0.0 - 8/16/2020 > [tab] New > > UI Theme - Red\ > \- Improved the general UI theme for records, lookup windows, reports center, tabs, etc. > > Records System - Overhaul\ > \- All existing static record types have been migrated to the new custom records system. This allows communities to completely customize all record types as they would like to. > > Custom Reports - Legal Type\ > \- Communities can now make custom "Legal" type reports. This could be used for criminal prosecution reports, lawyer reports, etc. > > Custom Records - Legal Type\ > \- Communities can now make custom "Legal" type records. This could be used for criminal prosecution data, lawyer records, etc. > > Law Record - Webhook Event\ > \- Communities can now configure a webhook event for whenever a law record/report is added, edited, or removed. > > Database Sync - Multiple Character Tables\ > \- Database sync now allows you to pull character data from multiple tables. Ex: Your character's name and info comes from the "Characters" table but residence/address information comes from a "housing" table. > > Database Sync - JSON Fields\ > \- Database sync now allows you to easily add JSON columns in your mapping. > > Reports Center - Records\ > \- The reports center now includes both records and reports. This allows you to view all of your identifier's past records and reports, and complete supervisor actions on both custom records and reports. > > Reports Center - Records\ > \- The reports center now includes both records and reports. This allows you to view all of your identifier's past records and reports, and complete supervisor actions on both custom records and reports. > > Custom DMV Records - Apply\ > \- Custom DMV records with a "STATUS" type field can be applied for by civilians without DMV add permissions. > > Reports Center - Filter Types\ > \- You can now filter and view record/report types in the report center. This allows you to view your fire and EMS reports in the police page if necessary. > > Emergency Call - Push Event\ > \- Push events are now sent for new 911/emergency calls in the CAD to your local game server. > > Records Lookup - Overhaul\ > \- The lookup UI has been updated with filtering types, a new search by identifier, search by ID, reports, and more. > > DMV - Overhaul\ > \- The DMV page now implements the new lookup and record center windows to easily search for pending records, records requiring supervisors, etc. > > Admin - Account Last Login\ > \- User account "Last Login" timestamps now show in the admin accounts menu. > > Database Sync - Overhaul\ > \- The database sync system has been completely rewritten to handle all of the new custom record formats. This creates a more streamlined code base and allows for more advanced features. > > Database Merge - Overhaul\ > \- The entire database merge functionality has been rewritten to work with new custom records and reports. > > Reports Center - Supervisor Completion\ > \- Completing all supervisor fields on a record/report in now has local clientside checks to automatically remove the record from your local UI. This removes the need to manually refresh the panel to update pending reports/records. > > Custom Records - PDF Section Headers\ > \- Custom records now display the custom section name in PDF records. > > Custom Fields - Required and Supervisor\ > \- If a field is required and supervisor only, the label color displays as orange instead of red to remain visible. > > Kick Unit API - Not Found\ > \- Added additional handling and 404 response for the KICK\_UNIT API endpoint if the API ID does not exist. > > Emergency Code - Australia\ > \- Communities can now select "Australia" as their geographical customization setting to change the emergency code to 000. > > Custom Record Editor - Section Expansion\ > \- Custom sections in the custom record editor can now be expanded or collapsed. This makes organization much cleaner when working with large custom record types. > > Admin - Account API IDs\ > \- User account API IDs are now displayed in the admin account menu. > > Custom Records - Wipe\ > \- All custom record and report types can now be wiped in the admin "Advanced" menu. > > Admin - Dark Dropdowns\ > \- Updated UI dropdown colors for a more consistent dark theme. > > API - Set API ID\ > \- API IDs can now be set via an API call. This allows for automated API ID configuration via in-game command, or other options. > > API - Penal Codes\ > \- Penal codes can now be set via an API call. > > Record Editor - Action Bar Display\ > \- The action bar on the record editor now always displays, but will have the buttons disabled with a tooltip explaining any insufficient permissions. > > UI Render Exception Handling\ > \- Added a new UI render exception handling system for custom records. This prevents specific corner cases where a malformed custom record will break rendering. > > Record Viewer - DB Sync\ > \- The record viewer now shows if the record is from "Database Sync" in the top header. > > Civilian - Select Server ID\ > \- Civilians can now change their current server ID. This allows 911 calls to send to the correct server for communities utilizing multiple servers. > > Police Supervisor - Permission\ > \- Police record supervisor fields now require the police supervisor account permission to be filled out. > > Fire Supervisor - Permission\ > \- Fire record supervisor fields now require the fire supervisor account permission to be filled out. > > Medical Supervisor - Permission\ > \- Medical record supervisor fields now require the medical supervisor account permission to be filled out. > > DMV Supervisor - Permission\ > \- DMV record supervisor fields now require the DMV supervisor account permission to be filled out. > > Law Supervisor - Permission\ > \- Law record supervisor fields now require the law supervisor account permission to be filled out. > > Law Record - Add Permission\ > \- Users with the law record ADD permission can add new law records/reports. > > Law Record - Edit Permission\ > \- Users with the law record EDIT permission can edit law records/reports. > > Law Record - Remove Permission\ > \- Users with the law record REMOVE permission can remove law records/reports. > > API - Parse Improvements\ > \- Added massive efficiency and error information parsing to the API calls. This improves system performance for failed API exceptions, and provides more detailed information to developers. > > API - Remove 911 Call\ > \- You can now remove existing emergency/911 calls via API. > > API - Lookup Record by Int\ > \- A new API endpoint has been added to search for records based on integer values representing the record status, supervisor status, associated identifier, or unique record ID. > > API - Lookup - Types\ > \- API lookups now require a "types" enumerator/integer array to filter specific record types to search. > > API - Get Units by ID\ > \- You can now search and retrieve unit identifiers via API with the user's API IDs. > > API - New Record\ > \- You can now add new custom records via API. > > API - Edit Record\ > \- You can now modify existing custom records via API endpoint. > > API - Get Record Templates\ > \- You can now get your community's custom record templates via an API endpoint. > > API - Get Account\ > \- You can now retrieve detailed user account information via API. > [tab] Changed > > API ID - Require Community Login\ > \- The API ID section in the settings modal requires that the user is actively logged into a community to be set. > > API Lookup - Single Method\ > \- API record lookups have been consolidated to a single "Lookup" endpoint. There is no longer a separate name and plate search endpoint. > > Custom Record Limits - Increase\ > \- Custom record limits have been increased to account for all of the new custom record/report types. > > API - Remove Record Endpoint Path\ > \- The remove record endpoint has been migrated from the "emergency" path to the "general" API endpoint path to be consistent with the new add and edit record endpoints. > > API - Lookup Record Endpoint Path\ > \- The lookup API endpoint has been migrated to the /general API endpoint path to be consistent with the new record endpoints. > [tab] Fixed > > Live Map - Duplicate Server Names\ > \- Fixed an issue where deploying your live map with two identical server names would cause an overlap issue with our dynamic reverse proxy and override the first server's proxy address/port. > > Custom Records - Type\ > \- Fixed an issue where custom records would be classified internally as the incorrect type. UI prevention and better backend detection methods were implemented. > > Report Center - Exit Tab\ > \- Fixed an issue where the report center window could not be closed from the minimized tab. > > Search By Identifier - Online Units\ > \- Fixed where unit options in a search by identifier method would only show currently online units. > > Version Downgrade - Live Map Disable\ > \- Fixed an issue where the live map was not disabled when a community CAD's version was downgraded. > > Lawyer - Lookup Permissions\ > \- Fixed an issue causing users with the lawyer permission only to be unable to lookup records. > > Charges - Manual Entry\ > \- Fixed an issue preventing issues from manually entering a charge title on a record that does not exist. > > NEW\_DISPATCH - Call ID\ > \- Fixed an issue where the NEW\_DISPATCH push event would not contain the new call ID. ### 2.4.1 - 7/11/2020 > [tab] New > > 1. My Account - Side Menu Access > * The account editor can now be more easily accessed through the side navigation menu. > 2. Search Vehicle and Civilian - Uppercase > * Vehicle and Civilian searches for records now properly capitalize all names and information. > [tab] Changed > > 1. Account Username - Table Restructure > * Community account storage in databases has been more properly structured to pull based on the global account UUID for a more efficient way to update account usernames. > [tab] Fixed > > 1. Selected Server - Invalid > * Fixed an issue where users with non-existent or removed community server IDs selected could not login to an emergency page. They are now forcefully set back to a valid server and redirected to the community menu. > 2. Reports - Minimized > * Fixed an issue causing minimized report tabs to not be able to be re-opened. > 3. Transfer and Remove CAD > * Fixed an issue where transferring or removing your CAD failed to send an email when the DB timestamp is null. ### 2.4.0 - 6/29/2020 > [tab] New > > 1. Image Uploading > * Users can now directly upload images to our AWS S3 bucket, as opposed to manually pasting in the image URL. > 2. Payment Center - Modify Card > * The payment center now allows you to easily change the billing information on your active subscription. > 3. Lookup Tables - Sort Columns > * Allowed all default record type preview columns to be sortable. > [tab] Fixed > > 1. Legacy Custom Records - Mask > * Fixed an issue where legacy custom record text and textfield types would not save or display user input due to a missing mask. > 2. Custom Fire Records - Permission > * Fixed an issue where submitting new custom fire reports and records incorrectly required the medical record add permission. > 3. DBSync - Connection String Builder > * Added a new common connection string builder to prevent issues with user passwords containing SQL escape characters. > 4. Report - Remove - Clientside > * Fixed an issue where custom reports would not be automatically removed from the client view's "My Reports" section when deleted. ### 2.3.3 - 6/24/2020 > [tab] New > > 1. Supervisor - DMV > * Supervisor fields for custom DMV records are now restricted to users that have the DMV page permission. > 2. Civilian - DMV Records - Vehicle Search > * Custom DMV records now allow civilians to search for a registered vehicle to quickly add it to the field. > 3. Custom Records - Checkbox - Required and Supervisor States > * The checkboxes field on custom records now has color changes for required and supervisor states. > 4. Custom Records - Image - Required and Supervisor States > * The image field on custom records now has color changes for required and supervisor states. > 5. iOS Padding - Header/Footer > * Improved header and footer padding for iOS devices with the "notch" > [tab] Changed > > 1. Custom Records - Checkboxes - Centered > * Custom record checkboxes are now centered in the field column. > [tab] Fixed > > 1. Toolbar Overlap - iOS > * Fixed an issue where the top toolbar overlapped the pages for some iOS app users. > 2. DMV Records - Civilian > * Fixed an issue where civilians could not submit a custom DMV record. ### 2.3.2 - 6/24/2020 > [tab] Fixed > > 1. Fixed an issue where the civilian section would fail to display on emergency pages. ### 2.3.1 - 6/23/2020 > [tab] Fixed > > 1. Fixed an issue where legacy records and custom reports would fail to display the old "input" field type ### 2.3.0 - 6/23/2020 > [tab] New > > 1. Custom Records - DMV > * Custom DMV records can now be created. This could include things like custom licenses, firearms registrations, etc. > 2. Custom Records - Image > * Custom records and reports now have an image type field. > 3. Custom Records - Date > * Custom records and reports now have a date type field. > 4. Custom Records - Time > * Custom records and reports now have a time type field. > 5. Custom Records - Checkboxes > * Custom records and reports now have a checkbox type field. > 6. Custom Records - Mask > * Custom record and report fields can now have a "mask" specified to force users to follow a specific alphanumeric format, include symbols, and more. > 7. Unit Status - Accent Color > * The red accent color on the top header and side drawer now changes according to the unit status. > 8. Browser Check - Connection > * The UI now checks if your browser/device supports local and session storage to prevent people from using incompatible browsers. > 9. Record and Report Dropdown - No Type Check > * If there are no available record or report types for the page, the dropdown menu will contain an option explaining where an admin can go to add custom records and reports. This helps prevent confusion and support tickets. > [tab] Changed > > 1. Disconnect - Toolbar > * The disconnection banner now takes place in place of the top toolbar. > [tab] Fixed > > 1. Quick Links - Remove > * Fixed an issue where quick links could not be removed from the UI. > 2. Lookup Name - Middle Character > * Fixed an issue where lookups with a middle initial would fail due to an SQL query syntax error. > 3. Update Community Data - Websocket Limit > * Fixed an issue where updating community data could hit a websocket data transfer limit. > 4. Lookup - Multiple Value Filter > * Fixed an issue with SQL syntax not properly filtering record searches with a first and last name. ### 2.2.0 - 6/19/2020 > [tab] New > > 1. Quick Links > * Communities can now add "quick links" with custom colors, labels, and URLs in all emergency pages. > 2. Custom Records/Reports - PDF > * Added the PDF print option to all custom records and reports. > 3. Custom Records - Multiple Civs > * Custom records and reports can now have up to three independent and searchable civilian characters. > 4. Custom Records - Multiple Vehicles > * Custom records and reports can now have up to three independent and searchable civilian vehicles. > 5. Custom Records - Disable Originals > * Communities can now disable the default police records and replace them with their own custom versions. > 6. Custom Records - Name Pre-made Sections > * You can now set a custom section header name for all pre-made sections in custom records/reports. > 7. Record Webhooks - All Caps > * All wehbook text values are now capitalized by default to reflect the values in the UI. > 8. Lookup - Custom Records Tab > * When running a lookup with only custom record results, the lookup preview will automatically select the first record tab category. > 9. Charges - Preview > * Charges in custom records and reports are now previewed in the lookup table. > 10. Reset Password - Email Expiration > * Reset password emails now properly expire and can be re-sent after 15 minutes. > 11. Transfer CAD - Email Expiration > * CAD transfer emails now properly expire and can be re-sent after 15 minutes. > 12. Remove CAD - Email Expiration > * Remove CAD emails now properly expire and can be re-sent after 15 minutes. > [tab] Changed > > 1. 911 Caller - Dispatch Origin - Geographical Settings > * Changed the "911 Caller" option to a more generic "Caller" value for communities not in the US. > [tab] Fixed > > 1. Custom Records - Charges > * Fixed an issue causing the charges section in custom records to not properly appear. > 2. Custom Record Updated - Agency Info > * Fixed an issue causing the agency header to be updated when editing an existing custom record. > 3. Civilian Search - Page Type > * Fixed an issue where the civilian page records lookup would cause an unknown type server error. > 4. Community Transfer - Permissions > * Fixed an issue where transferring your community to a new account would not ensure the new owner has the new fire and medical permissions. > 5. New Community - Permissions > * Fixed an issue where registering a new community would not ensure the new owner has the new fire and medical permissions. > 6. Fire Records - Webhook > * Fixed an issue causing new and modified fire records to use the police webhook. > 7. Medical Records - Webhook > * Fixed an issue causing new and modified medical records to use the police webhook. ### 2.1.0 - 6/12/2020 > [tab] New > > 1. Admin - Custom Records > * Custom record types can be created and added for emergency services to fill out. > 2. Admin - Custom Incident Reports > * Custom incident reports can be generated and linked to other record types. > 3. Fire - Custom Reports, Records, and Lookup > * Users on the fire page now have access to custom medical reports, records, and lookups. > 4. Medical - Custom Reports, Records, and Lookup > * Users on the EMS page now have access to custom medical reports, records, and lookups. > 5. 911 Calls - Clear All > * Dispatchers with the admin permission can now clear all active 911/emergency calls. This is particularly useful for servers with automatic 911 calls via API. > 6. Live Map - External Window > * The live map can now be opened into a new external window for better viewing. > 7. Webhooks - Fire and EMS > * Fire and EMS record and report actions are now supported in the Discord webhook config panel. > 8. API Endpoint - Apply Permission Key > * This endpoint allows you to apply permission keys to a user account in your community. > 9. API Endpoint - Ban User > * This endpoint allows you to ban or unban a user in your community. > 10. Dispatch Call - API Metadata > * Dispatch call objects now have a hidden metadata dictionary field for API call information. > 11. Disconnect - Status Page Hyperlink > * Added a "Server Status" button to the disconnected notification bar. > 12. Map Deploy - Server Name Characters > * Added additional checks to the user live map deploy process to check for non alphanumeric characters for the map's subdomain. > 13. Social Media Links > * Social media links to our Twitter, Instagram, YouTube, and Discord have been added to the side menu. > [tab] Changed > > 1. AWS SES > * We've migrated all automated email services over to AWS SES to help maintain compliance and efficiency for all user verification emails. > 2. Payment Center - UI > * Improved the UI, fixed common issues, modified error messages, and simplified the payment center checkout form. > 3. Discord Webhook Config - UI > * Improved the Discord webhook config UI and mobile experience. > [tab] Fixed > > 1. User Ban > * Fixed an issue causing Discord webhooks and user ban information to be incorrect. > 2. Development URL Issues > * Fixed an issue causing users with a specific username in a validation URL to connect to the wrong backend service. > 3. Unit Logoff Events > * Fixed an issue causing unit logoff events to not properly fire and be sent to community listeners. > 4. Join Community Logo > * Fixed an issue causing communities with a thin narrow logo from having text cutoff in the join community preview. > 5. Attach Unit(s) - API > * Fixed an issue with the attach unit(s) API call where an SQL connection was not properly opened. Also fixed a small API documentation issue for this particular call. > 6. Unit Status - API Push Event > * Fixed an issue with the unit status API call sending community listeners a push event with the changed unit identifier ID integers instead of the proper unit JSON data. > 7. Admin Panel - Loading without Permissions > * Fixed an issue causing the admin panel to continually load if the user does not have permissions to view user accounts. ### 2.0.0 (Full Release) 5/16/2020 > [tab] New > > 1. Branding Logo > * We've switched over to Sonoran CAD's new official logo! > 2. API Endpoints: > * Attach Units > * Get Calls > * Get Active Units > * Unit Status > * Kick Unit > * New Dispatch > * Remove Record > * New Vehicle Registration > * Edit Vehicle Registration > * New License > * Edit License > * New Character > * Edit Character > * Remove Character > * Get Characters > * Check API ID > 3. Server Push Events: > * Unit Login > * Unit Logout > * Unit Status Update > * Dispatch Event > * Unit Call Clear > 4. Integration Plugins > * Call Commands > * Check API ID > * Live Map > * Locations > * Lookups > * Postals > * Push Events > * Traffic Stop > * Unit Status > * Update Check > * WraithV2 > 5. Page Transitions > * All pages now have an improved smooth loading transition for a more refined user experience. > 6. Vehicle Registration - Expiration Date > * Added a vehicle registration expiration date field. > 7. API Key - Generate New > * Community owners can now request and generate a new API key in the admin menu. > 8. Disconnection Banner > * Server disconnection notices have been moved to a solid banner at the top of the screen. > 9. UI Theme Changes > * Updated UI layouts, accents, colors and more throughout the application. > 10. Live Map - One Click Install > * If your server uses the popular Live Map resource, you can now instantly configure and enable this all from within the admin panel. Sonoran CAD hosts your live map for you, so all you need to do is drag and drop our plugin into your resources folder. > [tab] Fixed > > 1. Register - Same Username - Conflicting Keys > * Fixed an issue where users could re-register the same username with a different email account after the expiration window. This caused user's to be unable to validate their user account. > 2. Community Card > * Fixed an issue where community cards with a wider aspect ratio would not properly expand down to fill the whole area in the community selection menu. ### 1.22.0 (Beta) 5/07/2020 > [tab] New > > 1. Backend Migration > * All backend and database services have been migrated over to a new docker container system with proper CI/CD integrations. A new development API path has been opened to work with community developers. > [tab] Fixed > > 1. Register - Same Username - Conflicting Keys > * Fixed an issue where users could re-register the same username with a different email account after the expiration window. This caused user's to be unable to validate their user account. ### 1.21.1 (Beta) 5/01/2020 > [tab] New > > 1. Postal Code - Allow Letters > * Postal code values in the call editor and department editor can now include letters for non-American communities. > 2. Vehicle Registration - Unique Plate > * Added a check to prevent users from creating a new vehicle registration with a license plate that already has a registration. > 3. Email Expiration > * Account verification emails are now properly invalidated and can be resent after 15 minutes. > [tab] Changed > > 1. Active Calls - Order > * Active dispatch calls now properly sort in descending order by default, with the latest calls at the top. > 2. 911 Webhook - Geographic Customization > * Changed the 911 Discord webhook information to "Emergency" for non-American communities. > 3. Rate Limits - Increased > * Increased internal websocket rate limits to help prevent users from being temporarily blocked with false positives. > [tab] Fixed > > 1. Email Address - Space > * Added additional server side checks to prevent users from registering an email with a space. > 2. Record Wipe - Error Message > * Fixed an issue where the error message for non community owners trying to wipe records would not display. > 3. Identifier - Blank > * Added a new check to set unit numbers to 'NOT SET' to prevent an issue where entirely blank units would be displayed improperly. > 4. Unban User - Wording > * Fixed an issue where the confirmation prompt for unbanning a user was still phrased as 'Ban User' ### 1.21.0 (Beta) 4/22/2020 > [tab] New > > 1. Global Configurable Hotkeys > * All web and desktop users can now configure hotkeys for panic and unit status changes. Global hotkeys are also supported in the desktop application and will trigger regardless of whether or not the application is visible and focused. > 2. PDF - Caps > * Forced all PDF text fields to capitalized text. This aids in consistency between the displayed values in the record editor and exported PDF documents. > 3. Discord Webhooks - Caps > * Forced all Discord record fields to capitalized text. This aids in consistency between the displayed values in the record editor and Discord webhook notifications. > [tab] Fixed > > 1. Remember Me - Changed ID > * Fixed an issue where logging into your default community would produce an error message if your community has recently changed their ID. > 2. Lawyer - Civ > * Fixed an issue where layers could not properly open or view civilians in a records search. > 3. PDF - Date > * Fixed an issue showing the officer's name label in the PDF agency section as 'Date' ### 1.20.4 (Beta) - 4/19/2020 > [tab] New > > 1. Community ID - Change > * Community owners can now change their community ID in the admin panel. > 2. Admin - Wipe Records > * A CAD wipe can be initiated in the admin panel and can be configured to remove all specified record types. > 3. Admin - Tutorials > * Added a new tutorials button in the admin menu and updated existing tutorial links. > [tab] Changed > > 1. Admin Menu - Buttons > * Updated all admin panel refresh and other buttons to a more consistent styling. > [tab] Fixed > > 1. Incoming 911 TTS > * Fixed an issue causing the "Incoming 911" TTS notification from not playing properly. > 2. Version Check - Blank Version > * Added additional error handling to the version check notification to prevent an issue displaying the notification with the latest version for some users. > 3. Community ID - Overlap > * Fixed an issue causing the community ID badge in the side menu to overlap onto the page for communities with a long ID. > 4. Desktop - External Links > * Fixed an issue where opening the external tutorial site in the desktop app would not open a new browser window. > 5. Civilian - Exit Editor > * Fixed an issue where closing the civilian character editor would swap your currently selected character back to the first character, and not the existing one a user had selected. ### 1.20.3 (Beta) - 04/17/2020 > [tab] New > > 1. Admin - Ownership Authentication > * Added a new feature for owners of the community to retrieve a unique key to prove ownership. This aids in authenticating users in support tickets, for manual requests particularly in our upcoming customer support app. > 2. Side Bar - Community ID > * Added a small badge to display the current community ID in the side navigation bar. This aids in support questions. > 3. Side Bar - Tutorials > * Added a navigation button to our new guides and tutorials site in the side bar menu. > 4. Version Check - UI > * Added a new popup to inform users if they are running an outdated version of Sonoran CAD. > [tab] Changed > > 1. Easter Egg - Removed > * Removed a voice command Easter egg discovered by users. > [tab] Fixed > > 1. Penal Code - Configuration > * Fixed an issue where new or updated penal codes were not reflected until a page refresh. ### 1.20.2 (Beta) - 04/15/2020 > [tab] Fixed > > 1. Electron Uninstaller - Warning > * Fixed an issue with the latest NSIS uninstaller for the desktop app that caused a false positive with Windows Defender. > 2. Admin - Penal Codes > * Fixed an issue where penal codes would not populate in the admin menu. > 3. PDF - Charge Number > * Fixed an issue causing the charge numbers in PDF records to be zero based instead of one based. > 4. Warrant - Closed > * Fixed an issue causing closed warrants to still be announced over TTS. > 5. BOLO - Active > * Fixed an issue causing closed warrants to still display locally for users in the active warrants window when closing the record. ### 1.20.1 (Beta) - 04/13/2020 > [tab] New > > PDF Print - Mobile > > * PDF printed records are now accessible on mobile. > > BOLO - PDF > > * BOLO records can now be printed to PDF format. > > Vehicle Registration - PDF > > * Vehicle registration records can now be printed to PDF format. > > License - PDF > > * License records can now be printed to PDF format. > > PDF Records - File Name > > * PDF downloaded records and call logs now have a proper file name when saving. > > Character DOB - Age > > * Character age now properly auto-calculates consistently when changing your character's DOB. > [tab] Fixed > > Call History > > * Fixed an issue causing call history to pull the oldest closed calls instead of the most recent. > > DMV Record - New > > * Fixed an issue where civilians could not edit their initial vehicle registration information without the DMV add or edit permission. > > Vehicle Citation - Pace Type > > * Fixed an issue causing the vehicle citation pace type dropdown to be blank. > > New BOLO - TTS Undefined > > * Fixed an issue where a new BOLO audio alert would list the name and plate as undefined. > > Warrant Status > > * Fixed an issue causing warrant statuses to not be properly saved. > > DMV - Pending Records > > * Fixed an issue causing pending records to not be shown properly in the DMV pending section. > > PDF Records - Desktop > > * Fixed an issue causing PDF record downloads to be blank in the desktop application. ### 1.20.0 (Beta) - 04/12/2020 > [tab] Changed > > Records System - Backend Restructure > > * The records structure and storage system has been completely overhauled to be more efficient and consistent. This also makes way for future API calls for record lookups. > > DBSync - Character Hide ID > > * Character ID (often Steam IDs) are no longer displayed on the UI when searching for a character with database sync. > > Dispatch - Clear Panic Permissions > > * Fixed an issue where dispatchers could not clear a unit's PANIC state if they did not have police, fire, or EMS permissions. > > DBMerge - Client Disable Check > > * The database merge toggle is now properly disabled client-side to avoid false security warnings. > > New Record - BOLO > > * BOLO record creation has been moved to the standard new record section. > [tab] Fixed > > Penal Code - Freeze > > * Fixed an issue causing some browsers to freeze, lag, or become unresponsive with multiple penal code windows open at once. > > Penal Code - Remove Wording > > * Fixed the incorrect phrasing when removing a penal code. > > Penal Code - Empty Bond > > * Fixed an issue causing records to not save if a penal code bond amount or charge count was removed and left empty. ### 1.19.1 (Beta) - 04/05/2020 > [tab] New > > Record Flags - Customize > > * Communities can customize their record flag types. > [tab] Changed > > Pricing Page - Redesign > > * Improved and updated the pricing page with more information. > [tab] Fixed > > Self-Dispatch - Calls > > * Fixed an issue causing the active calls and call history to not load properly for units in self-dispatch mode. ### 1.19.0 (Beta) - 04/04/2020 > [tab] New > > Call History > > * Previously closed calls can now be viewed for record purposes. > > Call History - PDF Print > > * Calls in the call history section can now be exported to a PDF record. > > Lawyer Page > > * Users with the lawyer permission can lookup all records on a name or plate in the lawyer page. > > Voice Customization > > * Users can now change the text-to-speech voice in the settings popup. > > Active Calls - Close > > * You can now also close a dispatch call by clicking the call in the active calls window, and selecting "Close Call" > > Call ID > > * Dispatch Call IDs are now displayed in the active calls list as well. > [tab] Fixed > > Unit Group - Status Change > > * Fixed an issue where a unit in a unit group changing their status would change the status of all unit groups. > > Character DOB - Disabled > > * Fixed an issue preventing non Database Sync communities from editing the civilian DOB field. > > Dispatch - Preview Call > > * Fixed an issue where dispatchers could not properly preview a call on the active calls list. > > Dispatch - Signal > > * Fixed an issue where an active signal would not be displayed for dispatchers first loading the page. ### 1.18.0 (Beta) - 03/30/2020 > [tab] New > > Database Merge > > * Database merge can now be enabled in the in-game integration panel for Pro communities. This allows you to save additional information in records not provided by your in-game database. This additional data will be stored by Sonoran and merged with your Database Sync records. > [tab] Changed > > Custom Login - Header Branding > > * The custom login page now displays your community name in the top header instead of "Sonoran CAD" > [tab] Fixed > > 1. DbSync Character Gender > 2. Fixed an issue where database sync character genders wouldn't be properly displayed. ### 1.17.1 (Beta) - 03/28/2020 > [tab] New > > 1. Call Preview > 2. You can now open an additional pop-out window to preview a call without having to self-attach or open it in your existing editor. > [tab] Changed > > 1. Penal Code: Fine Amount > 2. Made the penal code "Bond/Fine Amount" wording consistent in the admin panel and charges section in records. > [tab] Fixed > > 1. 10-Codes: Empty > 2. Fixed an issue where 10-codes in the popout window would not display properly for units. > 3. Active Calls - 10-Code > 4. Fixed an issue causing the active calls table from not properly displaying the new 10-code format. ### 1.17.0 (Beta) - 03/00/2020 > [tab] New > > 10-Codes: Redesign > > * The 10-Code system has been overhauled to be much more simplistic and customization. You can now more quickly enter in 10-Codes in the new admin UI. All 10-Codes are entered solely as text to no longer limit communities who do not use 10-Codes. > > Penal Codes - Custom Bond and Charge Types > > * Communities can now customize the penal code bond and charge type values to be selected from. This allows communities outside the US, or communities that do not use the standard penal code type and bond options to specify these values. > > Dispatch - 10-Code > > * 10-Codes are no longer required to create a dispatch, and do not have to be entered as a specified 10-Code from the admin page. > > Server Mode - European/UK > > * The admin customization menu now allows you to toggle your community's geographic settings. Changing from American to European will rephrase 911 to 999 and more! > [tab] Fixed > > 1. Custom Login Page - Add Account > 2. Fixed an issue where creating a new account from a custom login page would not automatically add their account to the community, > 3. Voice Commands - Custom Status > 4. Fixed an issue where voice commands to change a unit's status code would not work with customized status options. > 5. Arrest Record - DBSync Vehicle > 6. Fixed an issue where arrest reports with a database sync vehicle added could cause the record to not save if the vehicle type was not specified. ### 1.16.0 (Beta) - 03/24/2020 > [tab] New > > Unit Grouping > > * Units can now be grouped together to more easily dispatch units riding together. > > New Unit - Editor > > * Loading in the Police, Fire, or EMS page for the first time will auto-open the unit editor to help users set their initial unit information more quickly. > > Civilian - Limit Characters > > * Communities can now set a limit on how many characters each account can have. > > Civilian - Limit Licenses > > * Communities can now limit the number of licenses a single civilian can have. > > Civilian - Limit Vehicles > > * Communities can now limit the number of vehicle registrations a single user can have. > > Session Invalidate - UI > > * The session expiration/invalidation and invalid cookies alert is now a built-in UI element that will navigate the user back to the login page, as opposed to a standard web alert. > [tab] Changed > > 1. Rate Limit - Increase > 2. Rate limit values have been increased to prevent blocking users with a legitimate higher frequency of requests. > 3. Custom Login Page - Query Strings > * In order to reduce the strain on Sonoran CAD's servers, all custom login pages must now specify multiple attributes as query strings. You can copy and paste the entire URL from the Custom Login Page section in the Admin Customization menu. > 4. Custom URL - Format > 5. Custom login URLs are now more properly generated to replace any spaces with the %20 value. > 6. Custom Login - Email Query Strings > 7. Updated the create account and forgot password URL generators to include all the query strings for a custom login page if the user creates a new account or resets their password on a custom login page. > [tab] Fixed > > 1. Unit Login - Active > 2. Fixed an issue where units would not show in the active units window for the local user. > 3. Dispatch Login - Active Unit > 4. Fixed an issue causing dispatchers to display as an online unit. > 5. General Citation - Save > 6. Fixed an issue where saving/updating an existing general citation causes the database to set the last name as the first name. The record was saved in the database as "First First" even though the data in the record was "First Last". > 7. General Citation - Count > 8. Fixed an issue causing the general citation tab count to display the wrong number. > 9. DBSync - Remove Character > 10. Fixed an issue where users could not un-link a database sync character. ### 1.15.2 (Beta) - 03/22/2020 > [tab] New > > 1. Websocket Optimization > * Started large improvements for backend service websocket calls to help reduce strain on our servers. > 2. Rate Limiting - UI and Blacklist > * A new in-depth rate limiting system ensures users do not abuse backend endpoints, displays convenient UI notifications, improves security, and more. ### 1.15.1 (Beta) - 03/18/2020 > [tab] New > > 1. Custom Login Page - Query Strings > * In order to reduce the strain on Sonoran CAD's servers, all custom login pages must now specify multiple attributes as query strings. You can copy and paste the entire URL from the Custom Login Page section in the Admin Customization menu. > 2. Edit Unit - Permission Label > * Changed the edit identifier label to have the same label name on both account permissions and permission keys. > [tab] Fixed > > 1. Community Branding > * Fixed an issue where plus communities had branding removed in the top header instead of Pro communities. > 2. Community Card - Subtitle Overflow > * Fixed an issue where communities with a long subtitle value would overflow on the community card. The subtitle now properly cuts off with an ellipsis. > 3. DMV Permission > * Fixed an issue where DMV record statuses could not be edited in the civilian page without the DMV page permission. > 4. Lua Resource - Download Links > * Fixed an issue where the Lua Resource download buttons in the admin panel downloaded the outdated files instead of the latest GutHub release. > 5. API Tutorial - Download > * Fixed an issue where some tutorial video links were downloads for desktop application users. > 6. Record Add Vehicle - Plate Search > * Fixed an issue where searching for a vehicle to add to a record would not work if searching by the plate number. > 7. DMV - Database Sync > * Fixed an issue where license and vehicle registration searches in the DMV page would return no or limited results for communities with database sync. > 8. Database Sync - Civilian Link > * Fixed an issue where you could not view your database sync linked characters unless you also had license or vehicle registration mapping enabled as well. ### 1.15.0 (Beta) - 03/04/2020 > [tab] New > > 1. In-Game /911 and /311 > * Our easy to install integration script now also includes a /911 and /311 command to send emergency and non-emergency calls directly to your dispatchers! > 2. Multiple Servers > * Communities can now configure multiple "servers" in their CAD. This is for communities that have more than one server. All active units and dispatching is kept separate between servers, but all records are shared. To change your server, users can select the server from the drop-down in the top left. > 3. Unit - Self Clear > * Units can now remove themselves from their active dispatch call. > 4. Pricing Page > * A new pricing page helps our team direct users to the most up to date pricing and feature information. > 5. Inactive Communities > * Communities that have no one sign in for 30 days will be automatically removed from the database. > 6. Custom Login Page - Instructions > * The custom login page section now includes additional instructions, informing users to enter their community ID into the index.html file. > 7. Database Sync - Tutorial > * Added a database sync tutorial link in the admin panel. > 8. Self Dispatch - Permission > * Self dispatching is now a permission separate from the dispatch permission. > 9. Webhook - Tutorial > * Added a webhook tutorial link in the admin panel. > 10. Permission Key Applied - Notice > * When a permission key is correctly applied, the user is now notified with an alert. > 11. Community Customization - Tutorials > * Added PDF tutorial links in the community customization menu for query strings and voice command options. > [tab] Changed > > 1. Empty Lookup > * Prevented users from running a blank/empty police or records lookup. > 2. Invalid Permissions - Error > * Included more details into a missing permissions security error. > 3. Community Limit - Error > * Added more detail in community limit reached errors from the server side. > 4. Signal - Numeric Check > * Signal values can now only be a numeric value of up to 4 digits. > 5. Header - Community Name > * Changed the header formatting to ellipsis to better accommodate for long community names. > 6. Nav Bar - Version > * The application version number is now displayed in the bottom of the side navigation menu. > 7. Community Card - Ellipsis > * Changed community card title/header to cut off into an ellipsis if the name is too long. This prevents the remove icon from being bumped down to the next line. > 8. Civilian Card - Header > * Forced all civilian card headers (name) to be capitalized. > 9. Privacy Policy - Login Only > * The privacy policy button only displays in the side nav bar on the login screen. This helps reduce clutter on the community pages. > [tab] Fixed > > 1. Ban User > * Fixed an issue where user could not be banned, as the backend was incorrectly checking that the user being banned was the community owner and not the other way around. > 2. Dispatch Note - Webhook > * Fixed an issue where dispatch call notes were not shown in Discord webhooks. > 3. Lookup - Civilian > * Fixed an issue where the civilian results on a lookup would not show unless a regular record was also shown. > 4. Call Closed - Notes > * Fixed an issue where the call notes would still be displayed when a call was closed. > 5. Call Notes - Disable > * Fixed an issue where call notes could be added when the unit does not yet have an active call. > 6. Add Note - Button Width > * Fixed an issue where the "Add Note" button on the call editor wouldn't take up the full space for mobile devices. > 7. Civilian - DMV Records > * Fixed an issue causing civilians to need the DMV Record Add permission to apply for a new DMV record with the default "PENDING" status. Civilians can now properly apply for a DMV record if they do not have the explicit DMV add record permissions. > 8. Civilian Records - Lookup > * Fixed an issue where civilians could not view their records if they did not have the police or dispatch permission enabled. > 9. Transfer Community - Permissions > * Fixed an issue where transferring ownership of a community did not grant the new owner the new self dispatch and edit other unit permissions. > 10. Permission Change - Webhooks > * Fixed an issue causing the permission change webhook from not showing the newer advanced permissions. > 11. Failed Payment > * Fixed an issue where subscription charges that failed would still bump the subscription expiration date by another month. > 12. Call Note - Self Dispatch > * Fixed an issue where adding a new call note would show an additional active dispatch call for users in self-dispatch mode. ### 1.14.0 (Beta) - 02/16/2020 > [tab] New > > 1. Dispatch - Signal > * Dispatchers and users in self-dispatch mode can now put the server into a custom signal status. Ex: Signal 100 > 2. Dispatch - Live Editor > * If a dispatcher has the call editor open and the call is updated by someone else, this will live-update their editor as well. > 3. Timezone > * All clock values in Sonoran CAD are now synced based upon your community's set timezone. By default, this is UTC time. This can be customized in: Admin > Customization > Community Info > 4. Dispatch Call - Notes > * All dispatch calls now have a notes section. Notes can be added using the input section below, and will be auto formatted with a timestamp and unit number. > 5. 911 Call - Autoremove > * 911 calls are now automatically removed from the queue when you create a dispatch call after selecting "View In Editor" > 6. Record - Charge Total > * All charge/fine totals are calculated for an easy reference at the top of the charges section. > 7. Permissions - Guide > * Added a permissions guide to the account permission and permission key modal. > 8. Permissions - Guide > * Added a permissions guide to the account permission and permission key modal. > 9. Self Dispatch - Permission > * Self dispatching is now a permission separate from the dispatch permission. > 10. Edit Other Identifier - Permission > * A new permission has been added to separate the ability to edit your own identifier, and edit someone else's identifier. > 11. Permission Key Applied - Notice > * When a permission key is correctly applied, the user is now notified with an alert. > 12. Penal Code - Sorting > * Penal codes now sort better, to include codes with integers with more than 1 digit. > 13. Support Page > * Added a new support direction page per Apple's application standards/requirements. > [tab] Fixed > > 1. Charges - Edit > * Fixed an issue preventing users from modifying charge information on a new record. > 2. Civilian - Records > * Fixed an issue causing the civilian page records to not show when searched. > 3. Panic - Unit Number > * Fixed an issue causing PANIC webhooks to not display the unit number. > 4. Status Change - Permissions > * Fixed an issue causing units to not be able to change their status if they did not have the "Police Edit Unit" permission enabled. > 5. Account Join - Duplicate > * Fixed an issue causing the error message when joining a community you are already in from being a message to contact support. > 6. Police Search DMV - Permissions > * Fixed an issue where police could not search for a civilian character or vehicle registration when filling out a record if they did not have DMV permissions. > 7. Live Map - Height > * Fixed an issue where the live map would be displayed in only the top portion of the popout window. > 8. Community Card > * Fixed an issue where the community card could not be selected if the community image did not load for some reason. > 9. API Fail - JSON > * Fixed an issue where failed API calls would not properly return the original JSON body/request object passed in. ### 1.13.X (Beta) - 02/09/2020 > [tab] New > > 1. Unit - Self Dispatch > * Units with dispatch permissions can now enable "Self Dispatch" > > Self dispatching allows you to create a call, edit your existing call, or attach yourself onto an existing active call. > 2. Lookup - Civilian ID > * When running a lookup, all applicable civilian ID information will also be displayed. > > Window - Dynamic Height > > * Popout windows now resize to a dynamic height much more efficiently. This also greatly improves the mobile user experience. > > API Fail - JSON > > * API failure webhooks now also return the original JSON message to better aid in debugging. API Keys are also censored. > > Name Formatting - Dynamic > > * Names are displayed with dynamically calculated formatting. This prevents a comma being displayed after the last name if it does not exist, and a period being displayed after the middle initial if it does not exist. > > Compare Plans - Pricing > > * Subscription pricing amounts are now displayed in the "Compare Plans" window. > [tab] Fixed > > 1. BOLO - Penal Code Section > * Fixed an issue preventing the penal code/charges section on BOLOs to not properly display. > 2. DB Sync - Search Characters > * Fixed an issue where using database sync to search for characters would fail if license or vehicle mapping was not enabled. > 3. Transfer Community - Email > * Fixed an issue where the transfer community feature would fail when the email template could not be located. ### 1.12.0 (Beta) - 02/04/2020 > [tab] New > > 1. BOLO Window - Warrants > * The BOLOs window will now also let you search and view all active warrants. > 2. Webhook - 911 > * Discord webhooks can now be sent when a 911 call is received. > > Email Subject - Customize > > * Customized community emails now also display your custom community name in the subject line. > > Vehicle Type - Aircraft > > * "Aircraft" has been added as a vehicle registration type. > > Active Units - Panic > > * Regular units can toggle another unit's PANIC status with the proper permissions. > > Active Units - Kick > * Regular units can now kick other units in the active units window if they have the proper permissions. > > API Fail - Error Catching > > * Added further detail for failed API calls. These details will be displayed in API failed webhook notifications. > > Dispatch - 10-Codes Sort > > * Dispatch 10-codes are now sorted in order before being filtered by textbox input. > > Rate Limiting - Security > > * To better combat the recent string of cyber attacks, new rate limiting features have been implemented on Sonoran CAD’s website, websocket connections, and API requests. > [tab] Changed > > Dispatch - Postal/Address > > * Dispatch calls no longer require an address or postal to be created. > > Ban - Check Owner > > * Community owners can no longer ban themselves. > [tab] Fixed > > 1. Civilian DMV Edit > * Fixed an issue where civilians could not edit or remove DMV records if they had DMV edit or remove permissions, but did not have DMV page access. > 2. Volume - Null > * Fixed an issue where the default volume would be an undefined value. This prevented users on the desktop app from changing their status. > 3. DbSync - Record Actions > * Fixed an issue where the record action bar would still display for read-only records via database sync. > 4. Compare Plans - Departments > * Fixed an issue where the compare plans department numbers were incorrectly lower. ### 1.11.4 (Beta) - 01/30/2020 > [tab] New > > 1. Query String - Mute Audio > * Added a query string to set the default audio volume for communities embedding the CAD inside of a resource. > [tab] Fixed > > 1. Admin - Accounts > * Fixed an issue where navigating away from the admin panel's accounts section would fail to show user accounts when navigating back. > 2. Custom Login - New Account > * Fixed an issue where joining a new community for the first time using a custom login page would fail, resulting in a banned user and account permissions error. > 3. Search Character - DbSync > * Fixed an issue where police and dispatch did not pass permission checks when searching for a civilian character in database sync. > 4. Change Username - Error > * Fixed an issue causing a username switch to throw an error if a member did not have any owned or member communities. ### 1.11.3 (Beta) - 01/30/2020 > [tab] New > > 1. DbSync - JSON Key > * Communities that have a JSON field can now specify the a key in the column containing the value. The DbSync tutorial document covers this new SQL syntax in section 1.5 (Advanced). > 2. Query String - Force Mobile > * sonorancad.com/#/?forcemobile=TRUE > > Your CAD will forcefully format the emergency services action bars to mobile format. This is beneficial for communities that are embedding the CAD in-game on a smaller format that does not quite meet the standard mobile dimensions. > [tab] Changed > > Downloads - iOS App > > * Updated the iOS app store download link on the downloads page. > > UI Border > > * Remove the green border from emergency page sections. > [tab] Fixed > > 1. Custom Login - New Account > * Fixed an issue where user accounts were not properly generated when joining a new community from the custom login screen. > 2. Vehicle - DbSync > * Fixed an issue where vehicle attribute textboxes were still enabled for editing when viewing database sync records. > 3. Community Branding > * Fixed an issue where the Sonoran CAD branding would not be removed for PRO communities. > 4. Display - Rotate > * When rotating the display from portrait to landscape, record lookup results will fail to display. ### 1.11.2 (Beta) - 01/28/2020 > [tab] New > > 1. Ban System > * A new ban system has been implemented to more easily view, add, and remove banned users. This system also comes along with improved security checks to prevent banned users from accessing your community, > 2. Webhook - Ban > * Webhooks are now received when a user is banned or unbanned. > 3. Account Status > * The user accounts table now allows you to quickly filter user accounts by their status: Pending, Active, or Banned. > 4. PANIC - Webhook > * The PANIC webhook now also includes the unit's location. > 5. PANIC API - Webhook > * PANIC webhooks are now also sent out when sent via web API. > [tab] Fixed > > 1. Join Community > * Fixed an issue where users could not search and join a community ID. > 2. Fire & EMS Call Viewer > * Fixed an issue where the Fire and EMS call viewer would still show some default data when no call is present. > 3. Fire & EMS - Retrieve Call TTS > * Fixed an issue where the fire and EMS page would state a null dispatch text to speech when first loading. > 4. PANIC Webhook > * Fixed an issue causing the unit PANIC webhook to use the identifier's unique database ID instead of the unit number. > 5. Civilian DMV - Apply for License > * Fixed an issue where the civilian DMV record page would fail to display the "Apply for DMV Record" button for users who do not have the permission to add a new DMV record. ### 1.11.1 (Beta) - 01/25/2020 > [tab] New > > 1. Community Selection - Redesign > * The community selection menu has been completely redesigned for a much better mobile UI experience and look. > 2. Privacy Policy > * A standard privacy policy has been added to the side navigation drawer per Apple's standards. > [tab] Changed > > 1. Loading Icon - Mobile > * Redesigned a more dynamically calculated loading icon system. This icon fits more properly for mobile devices. > 2. Login Page - Mobile > * Improved the login screen UI for mobile users. > 3. Community Menu - Mobile > * Mobile UI improvements to the community menu page. > [tab] Fixed > > 1. BOLO - Modify > * Fixed an issue where BOLOs could not be properly removed or modified. ### 1.11.0 (Beta) - 01/25/2020 > [tab] New > > 1. 911 System > * Allow civilians to create 911 calls to be displayed to dispatchers. > 2. 911 API > * 911 calls can now be sent via Sonoran CAD's web API from in-game. > [tab] Changed > > 1. Unit PANIC > * Unit PANIC now utilizes the faster panic method used in API calls. > 2. Switch Identifier > * Units are prevented from switching their identifier on the UI if they do not have the edit unit permissions. > [tab] Fixed > > 1. General Citations - New > * Fixed an issue where adding a general citation would fail. > 2. DB Sync - Case Sensitivity > * Fixed an issue where database sync searches would still be case sensitive for some communities if their database did not support a particular case sensitivity syntax. > 3. Identifier - Edit > * Fixed an issue where dispatchers and units could not edit other user's identifiers, and unit statuses would not be populated properly in the unit editor. > 4. Panic Undefined - Dispatch > * Fixed an issue where unit PANICs would state "Undefined" for dispatchers. > 5. PANIC - Toggle > * Fixed an issue where units could not properly toggle their PANIC status off if their unit did not have a department set. ### 1.10.4 (Beta) - 01/22/2020 > [tab] New > > 1. Page Loader - Branding > * The page loader now displays your custom community logo. > 2. Limits - Version and Expiration > * The community limits section now displays your community's current subscription version and expiration date. > [tab] Changed > > 1. Community Menu - Loading > * The community menu now properly has a loading transition. This makes the page no longer snap as permissions are loaded. > 2. Civilian & DMV - Icons > * Updated civilian and DMV page icons to the newer style. > 3. Dispatch - Loading > * The dispatch page now properly has a loading transition. This makes the page no longer snap as permissions are loaded. > 4. Tab Bottom Border - Mobile > * Removed the dotted bottom border on tabs for mobile users. > [tab] Fixed > > 1. Call Editor - Mobile > * Fixed an issue where the call editor's "Address" input would not stretch all the way across the screen for mobile users. > 2. API Key - Display > * Fixed an issue causing the community API key to not display on the in-game integration page. ### 1.10.3 (Beta) - 01/22/2020 > [tab] New > > 1. Themed Scrollbar > * A new customized scrollbar fits the dark CAD theme better for a much more app-like feel. > 2. API Scripts > * Added a download button to the current .lua in-game integration script in the Admin page's "In-Game Integration" panel. > [tab] Changed > > 1. In-Game Integration Config Layout > * Greatly improved the layout of the in-game integration panel with drop-downs and other mobile UI improvements. > 2. Discord Webhook Config Layout > * Greatly improved the layout of the Discord webhook panel with drop-downs and other mobile UI improvements. > 3. Sidebar - Download and Fullscreen > * The download and fullscreen button no longer displays for users on an app or PWA installation. > 4. Admin - Panel Widths > * Admin panels now span across the entire page regardless of the screen size. > 5. Color Customization - Padding > * Added padding and background color to the page color customization boxes. > 6. Added padding to the page color customization boxes. > * Tabs now display properly on the bottom of the actions container. Close button styling has been modified to be smaller and more precisely placed. > 7. Sidebar - Common Buttons > * Common buttons in the sidebar like logout, settings, etc. are now displayed at the bottom of the navbar. > 8. Icons - Consistency > * Changed icons in the record viewers, BOLO window, admin sections, etc. to the "outlined" version for more consistency. > 9. BOLO - Charges > * Updated the BOLO record charges section to the standardized charges section used in arrest, warrant, and general citation records. This greatly improves the mobile UI experience. > 10. No Permission Keys - Error Message > * Changed the server error message when a community has no permission keys to the standard "Invalid Permission Key" error instead of warning that "NULL" permission keys were found. > [tab] Fixed > > 1. Record Windows > * Fixed an issue where record and other window popups would fail to open. > 2. Record Action - Mobile > * Fixed an issue where action buttons on a record would be moved down to another line on mobile and wouldn’t be fully accessible. > 3. Set Default Community - Display > * Fixed an issue where pressing "Set Default Community" at the community menu failed to immediately hide the button after being toggled. > 4. Record Window - Mobile > * Fixed an issue causing the new record data section to not display properly on certain mobile device screen sizes. ### 1.10.2 (Beta) - 01/21/2020 > [tab] New > > 1. Panic - Location > * Unit PANIC text-to-speech alerts now state the unit's location > 2. BOLO - Agency Information > * BOLO agency information now properly auto-fills with the identifier's information. > 3. Unit Location - API > * API call to show a unit's location in real time in the unit section. > 4. Compare Plans - Description > * Added an information tooltip next to each feature in the "Compare Plans" popup in the payment center. > [tab] Changed > > 1. DMV Record - Search > * The search button for characters and vehicles in the DMV record will only display on DMV records if the user has the DMV page access permission. > [tab] Fixed > > 1. BOLO - WebHook > * Fixed an issue causing BOLO webhooks to not be properly sent. > 2. API Webhook - Label > * Fixed the wording on the new API webhook to properly display as "API Request" instead of a duplicate of "Penal Code Modified" ### 1.10.1 (Beta) - 01/19/2020 > [tab] New > > 1. Unit Info - Identifiers > * Units can create and save multiple unit identifiers. These can then be quick selected and changed. > 2. Dispatch - Identifiers > * Dispatchers can configure their current unit identifier to more quickly generate new records. > 3. Unit Location - API > * API call to show a unit's location in real time in the unit section. > 4. Panic - API > * Unit's can have their PANIC status toggled via an API request. > 5. Unit Info - Location and AOP > * Unit identifiers can now specify their current location and AOP. > 6. Custom Emails > * Customize branding and wording in emails sent from your custom login page. This includes account verification/creation and forgotten password emails. > 7. Custom Page Colors > * Communities can now specify the background colors of their custom login page or community menu page. > 8. Sonoran CAD Branding > * Professional communities have their community name displayed on the top left instead of the Sonoran CAD name. > 9. Webhook - API Request > * Discord webhooks can be enabled for successful and failed API requests. > 10. Customization Menu - Expandable > * Added a new expandable section system to the community customization menu. This allows for a more condensed and organized page. > [tab] Changed > > 1. Dispatch Call Overhaul > * Completely overhauled how dispatch calls are stored, retrieved, and modified. This system is much more optimized and will allow for expansion into viewing previously closed calls and adding in 911 calls in the near future. > 2. Police/Fire/EMS UI Changes > * Small UI changes for emergency pages related to styling, spacing, etc. > 3. Dispatch - Description > * A call description is no longer required for dispatches. > 4. Record View - DBSync > * Record views no longer display the "Search" buttons for characters and vehicles when database sync is enabled, as this data is read-only. > 5. DMV Records - Search > * The button to search for a vehicle or civilian character will no longer display on a license or vehicle registration if you do not have permissions to add, edit, or remove the record. > 6. Emergency Action Buttons - Mobile > * Emergency action and PANIC buttons are now smaller to match the size of the status buttons on mobile devices. > 7. Default Community - Hide > * The "Set Default Community" button will no longer display at your community menu if the community is already set as your default. > 8. Permission Keys - Spaces > * Added a check to prevent users from adding a space in a permission key. > 9. Emergency Clock - Mobile > * The clock on all emergency pages no longer displays for mobile screens in order to save space. > [tab] Fixed > > 1. Permission Keys - Error > * Fixed an issue where error messages were not sent if an invalid permission key was applied. > 2. Edit Unit - Status > * Fixed an issue where changing your unit status through the unit editor would always set it to unavailable. > 3. Fullscreen - Scrollbar > * Fixed an issue where the scrollbar would display unnecessarily when in full screen mode on desktop. ### 1.9.7 (Beta) - 01/12/2020 > [tab] New > > 1. Default Community > * Users can now locally set their "Default Community" in the community menu. This will always display the community's custom login screen even for mobile and desktop applications. This makes signing into your regular community even faster! > 2. Admin - Kick Account > * Community admins can now kick an account to forcefully remove it from a community as opposed to banning the account. > [tab] Changed > > 1. Login Page - Icons > * Small changes to the login page icons and button sizes. > [tab] Fixed > > 1. Admin - View Accounts > * Fixed an issue where navigating from another admin panel back to the user accounts page caused the accounts to be empty until refreshed. ### 1.9.6 (Beta) - 01/11/2020 > [tab] New > > 1. Custom Login Page > * Communities can customize their own login page to display their community name and logo. Users logging in from this page will be directly logged into the community, as opposed to navigating to the community selection menu.\ > All account creation and password recovery emails sent from this page will also navigate the user to your community's custom login page. ### 1.9.5 (Beta) - 01/11/2020 > [tab] New > > 1. Unit 10-Status - Admin Customization > * Communities can customize the default 10-06, 10-07, and 10-08 in status options for available, busy and unavailable. > 2. Affiliate Tracking System > * A new affiliate system has been added to help Sonoran CAD grow and reward those who participate. > [tab] Changed > > 1. PDF Records - Always Show > * The action bar under police records will now always display the print to PDF option even if the user does not have permissions to modify or remove the record. ### 1.9.4 (Beta) - 01/09/2020 > [tab] New > > 1. Record - Print to PDF > * Police arrest, warrant, speeding and citation records can be printed as a PDF record. > 2. Vehicle Citation - AKA > * Added a civilian "AKA" field to the vehicle citation to stay consistent with other record types. > [tab] Changed > > 1. Payments - Billing Address > * Changed the wording for the billing address's "State" to "State/Province" and "ZIP" to "ZIP/Postal Code" to include non-American billing addresses. > [tab] Fixed > > 1. General Citation - Supervisor Signature > * Fixed an issue causing the supervisor signature on general citations to not save properly. > 2. Arrest Record - Supervisor Signature > * Fixed an issue causing the supervisor signature on arrest records to not save properly. > 3. Vehicle Citation - Make > * Fixed an issue where the vehicle make would not save properly in vehicle citation records. ### 1.9.3 (Beta) - 01/08/2020 > [tab] New > > 1. Call Closed - 10-08 > * When a call is closed or a unit is removed, that unit is then marked as 10-08 (Available) > [tab] Fixed > > 1. Modify Department > * Fixed an issue causing users to be unable to modify an existing department. > 2. Unverified Email > * Fixed an issue causing users attempting to login with an unverified email address to receive a blank error message. ### 1.9.1 (Beta) - 01/06/2020 > [tab] New > > 1. New Dispatch - 10-06 > * When receiving a new dispatch, units are automatically updated to 10-06 (Busy) > 2. Voice Commands - Status > * Voice commands for the unit status now include 10-97 and 10-23. > 3. Account Subscriptions - Menu Access > * The payment center to purchase and manage subscriptions is now also available by pressing the "Subscriptions" button at the community selections screen. > 4. Payment Center - Discord Username > * When starting a new subscription, the payment center now allows you to specify an optional discord username to add your "Customer" rank in our support discord. > 5. Community Search - Autofocus > * When searching for a new community, the community ID box is now auto focused when the popup modal is displayed. > [tab] Changed > > 1. Dispatch - No Units > * Dispatch Calls no longer require units to be attached. This allows dispatchers to create a queue of calls while awaiting available units. > 2. Dispatch - Unit Attached > * When a unit is newly attached to an existing call, their UI will alert them that this is a "New Dispatch" instead of an updated dispatch. > 3. Penal Codes - Sort > * Penal codes now sort by default based on the "Codes" column value. > 4. Penal Code Charge - Sort > * Penal codes in the dropdown search for records are now sorted in order by their "Code" value. > [tab] Fixed > > 1. Voice Commands - 10 Status > * Fixed an issue where the set unit status voice command would fail to register properly. ### 1.9.0 (Beta) - 01/05/2020 > [tab] New > > 1. Payment Center > * Sonoran CAD now has a built in payment center. Here, you can start, stop and manage paid subscriptions for your community. This is currently available in the admin panel’s limits section. > 2. Unit Status > * Units can now set their status to ENROUTE (10-97) or ON SCENE (10-23). > 3. Dispatch - Call Status > * Dispatch call statuses can now be set to either PENDING, ACTIVE or CLOSED and no longer contain status options that are unit specific. ### 1.8.2 (Beta) - 01/02/2020 > [tab] Changed > > 1. Community Menu - Permissions > * Community menu buttons are now only displayed if the user has the permissions, as opposed to simply being disabled if permissions are not present. > 2. Bond Amount -> Bond/Ticket > * Changed the wording in the charges section from "Bond Amount" to "Bond/Ticket Amount" > [tab] Fixed > > 1. Record - Add Button > * Fixed an issue causing the "Add Record" button from not always displaying properly when generating a new police record on mobile devices. > 2. Lookup Results > * Fixed an issue where records would fail to display on the lookup results for mobile devices. ### 1.8.1 (Beta) - 12/23/2019 > [tab] New > > 1. Lookup - Partial Search Terms > * You can now input partial first names, last names, and plate numbers into a lookup search. > 2. Voice Commands - Custom Trigger Word > * Paid communities can now customize the voice command trigger word from "Sonoran" to a word of their choice. > 3. Voice command improvements > * Improved voice detection command computing and parsing. Sonoran CAD now dynamically computes where in your phrase the "plate" or "name" word starts and will string together the characters from there to search. Sonoran CAD also no longer looks for the "lookup" word in a hard-coded phrase index. This fixes issues where Google would detect "look up" as one or two different words. Sonoran CAD will also filter out words in-between the keyword and "plate" or "name." > 4. Active Units - Status Dropdown > * In the "Active Units" window, unit's 10-status now displays in a dropdown menu. This allows 10-statuses to be more easily updated without having to open the entire unit editor. > 5. Dispatch Call - Block > * Separate the dispatch call's street address into an optional block number and road. > 6. DBSync Lookup - Get All Matches > * Communities with DBSync now retrieve all characters matching the specified name instead of only the first result. > 7. Warrant - Status Closed > * If a warrant is served/closed, lookup results will not state "ACTIVE WARRANT" when running a lookup. > [tab] Fixed > > 1. BOLO WebHook > * Fixed an issue where BOLO notification webhooks went to the standard police record URL. > 2. Get Vehicles - Name > * Fixed an issue where searching for vehicle registrations to put on a record via name failed to return vehicles. > 3. Call Closed - Clear > * Fixed an issue where unit's screens would not be cleared fully when a dispatch call is closed. ### 1.8.0 (Beta) - 12/22/2019 > [tab] New > > 1. Record Type - General Citation > * Add a citation record type for all non-vehicle, arrest or warrant records. A written-warning type can also be toggled inside. > 2. Window - Z-Indices > * Clicking on a window will now bring it to the top layer. > 3. Menu - Edit Account > * Allow users to edit their account username, password and email preferences right from the community selection screen. > 4. Record - Search for Vehicle > * Added a search for existing vehicle registration feature for vehicle citations, arrests and BOLOs. > 5. 11-Codes > * 11-Codes can now be added in addition to standard 10-Codes. > 6. UI - Color Improvements > * Emergency pages now have a more standard grey-based color scheme for an overall better look and feel. > 7. BOLO - Search for Civilian > * Added a search for civilian feature on the BOLO creation window for a faster BOLO generation experience. > 8. BOLO - Agency Location > * When creating a new BOLO, agency location and ZIP code are now auto-filled for emergency units in a department with these values specified. > 9. Arrest Record - Vehicle Year > * Added vehicle year data to arrest record. > [tab] Changed > > 1. Warrant - Header Wording > * Changed "Warrant for Arrest" header title on warrant record to "Civilian Information" for a more encompassing and accurate section title. > 2. Window - Handles > * Changed the window handle positioning to be inside of the draggable window boundaries. > 3. Arrest Record - Vehicle Section > * Moved the arrest record's vehicle information section below the civilian section and above the arrest information section. > 4. Modal Popup - Background Color > * Changed the default dark purple gradient on popup modals to a dark grey gradient. > [tab] Fixed > > 1. Dispatch - Online Units > * Fixed an issue where dispatchers couldn't initially view all online units when first loading the page if they did not have fire, police or EMS permissions. > 2. EMAIL - SMTP Timeout > * Fixed an issue causing account creation emails to fail in rare cases due to an SMTP timeout. > 3. Window - Page Boundaries > * Fixed an issue where dragging windows to the edges of the page would cause scrollbars to appear due to an invisible overflow. > 4. BOLO - Vehicle Year > * Fixed an issue causing vehicle year values to not save in BOLO records. ### 1.7.4 (Beta) - 12/20/2019 > [tab] Changed > > 1. Call Viewer - Typo > * Fixed the "No Actice Calls" wording to "No Active Calls" in the dispatch call viewer. > [tab] Fixed > > 1. Link Character > * Fixed an issue preventing users with database sync from linking a new character. > 2. Dispatch - No Postal > * Fixed an issue causing dispatches without a postal code to fail. ### 1.7.3 (Beta) - 12/19/2019 > [tab] New > > 1. Transfer CAD Ownership > * Community owners can now transfer ownership of the CAD in the admin menu. This requires email verification. > 2. Account Status - Permission Keys > * Permission keys now update the user account status from "PENDING" to "ACTIVE" as long as the user account has not been banned. > [tab] Fixed > > 1. Permission Keys > * Fixed an issues causing permission keys to not be successfully updated with in-depth permissions. > 2. Save Permission Key > * Fixed an unhandled exception when saving permission keys in specific cases. > 3. Admin Accounts Permission > * Fixed an issue where permission keys with the admin "Accounts" permission would not properly have this permission applied to the user. ### 1.7.2 (Beta) - 12/18/2019 > [tab] Changed > > 1. Menu - Update Permissions > * Forced users to retrieve new local permissions for client-side checks whenever they access the community menu page. > [tab] Fixed > > 1. Admin In-Depth Permissions > * Fixed an issue preventing user's updated in-depth permissions from displaying properly in the admin account menu. > 2. Admin - Status Permissions Change > * Fixed an issue causing user in-depth permissions to not all be disabled when an account status is changed to PENDING or BANNED. ### 1.7.1 (Beta) - 12/18/2019 > [tab] Changed > > 1. Community Limits - Security > * Fixed an issue causing the community API key to be exposed in websocket data transfers for admins that do not have the in-depth limit permissions. > 2. Community Accounts - Security > * Fixed a security vulnerability allowing admins without account editing permissions to still retrieve community account information. > [tab] Fixed > > 1. Account Permissions > * Fixed an issue where editing a user's account permissions in the admin menu incorrectly updates the admin's permissions instead of the selected account. > 2. Admin - Loading > * Fixed an issue causing the admin page to continually load if the admin does not have user account editing permissions. ### 1.7.0 (Beta) - 12/18/2019 > [tab] New > > 1. In-Depth Permissions > * A more in-depth permissions system allows admins to specify more in-depth permissions. > 2. Live Map > * Paid communities can specify a link to a map (commonly used as a live map) for their community. This can be viewed in a pop-out window for all emergency units and dispatchers. > 3. Police - Edit Other Units > * Emergency units with permissions can select a unit in the "Active Units" window to edit their rank, status, department, etc. > 4. Discord Configuration - Menu > * Communities can now specify their community Discord invite link to be displayed in the community menu. > 5. Website Configuration - Menu > * Communities can now specify their community website link to be displayed in the community menu. > [tab] Changed > > 1. Permission Keys - Admin UI > * Improved the layout of the permission key configuration panel in the admin UI for mobile screens. > 2. Emergency Pages - Top Action Bar Widths > * Increased the container widths for all emergency pages. This allows all action buttons to display on one line for medium sized screens. > 3. Menu - Permission Key UI > * Improved the UI layout of the permission key input and button on the community menu page. > [tab] Fixed > > 1. Account Permissions > * Fixed an issue where editing a user's account permissions in the admin menu incorrectly updates the admin's permissions instead of the selected account. > 2. WebHooks > * Fixed a bug causing police record Discord webhooks to fail with empty fields. ### 1.6.0 (Beta) - 12/15/2019 > [tab] New > > 1. Permission Keys > * Allows admins to generate permission keys for users to enter at the community menu. These keys will grant the users the specified permissions. > 2. Discord WebHooks > * Discord webhook integration can be specified in the admin panel. Discord webhooks can be sent for new dispatches, records, BOLOs, etc. > 3. Create Record - Autofill Civilian > * When filling out a record, officers can search for a registered/created civilian to auto-fill their information. > 4. Department - Configure Location > * Admins can specify department location and zip code to auto-fill when creating a new record. > 5. Penal Code - Jail Time > * Added a jail time specification box in the penal code specification section. > 6. Penal Code - No Bail > * Added a “No Bail” option on the penal code’s bail type drop down. > 7. Civilians - Auto Approve DMV Records > * Civilians with DMV permissions can now modify and approve their licenses and vehicle registrations directly from the civilian page. > 8. Login Page - Email Auto Focus > * Login page email field now is auto-focused for a faster sign-in. > 9. Lookup - Auto Focus > * Opening a new lookup tab will auto-focus the first name box in the search bar for faster searching. > 10. Record Viewer - Height Optimizations > * Improved dynamic height calculations for record viewing component. > 11. DBSync - Empty Table Check > * DbSync now checks for an empty table case when testing mappings. > [tab] Fixed > > 1. Penal Code - Infraction and Warning > * Fixed an issue where editing a penal code to type "Infraction" or "Warning" would cause the penal codes to fail to display. > 2. Full Screen Scrolling > * Fixed an issue that prevented users from scrolling in the in-game integration section and other extended sections while in full screen mode. > 3. Penal Code Types - Warning and Infraction > * Fixed an issue where the new penal code types "WARNING" and "INFRACTION" were not properly displaying in the admin editor. > 4. Call Description Scrolling > * Fixed an issue where a call description is not scroll-able for units on a call. > 5. Civilian - Eye Color > * Fixed an issue where when creating a new character the eye color drop-down would fail. > 6. User Accounts - Autofill > * Prevented Chrome's autocomplete from filling out the admin accounts section search box with the user's saved username. > 7. Kick Unit - Permissions > * Fixed an issue where only admins could force kick units instead of dispatchers. > 8. Registration - Email Spaces > * Prevented users from registering an account with a space in the email address. ### 1.5.4 (Beta) - 12/03/2019 > [tab] New > > 1. Voice Commands - 10-Status > * Units can now set their 10-Code status via voice command. "Sonoran, set status " > 2. Dispatch - Toggle Unit Panic > * Dispatch can select a unit and manually toggle their PANIC state on or off. > 3. Dispatch Kick Unit > * Dispatchers can now select a unit to forcefully kick them back to the community menu. This is useful for AFK units that have not disconnected/closed the CAD or have not navigated away from the police, fire or EMS page. > 4. Character Age - Computed from DOB > * Civilian Character age will be calculated from their DOB. > 5. DMV - Remove Record > * Removing a license or vehicle registration in the DMV page now automatically removes it from the UI without having to refresh the search. > [tab] Changed > > 1. Dispatch Updated - Shorten Notice > * When a dispatch call is updated, text-to-speech simply states, "Dispatch Updated." This will shorten the lengthy text-to-speech response whenever a call is modified. > 2. Primary Officer -> Primary Unit > * Changed the wording of "Primary Officer" on a dispatch call to "Primary Unit" - This helps better encompass the phrasing for a fire or EMS dispatch. > 3. Mobile - Admin Codes UI > * Improved the UI positioning for admin penal and 10-code editing for mobile devices. > 4. Mobile - Window Vertical Position > * Raised the new window vertical position for an improved mobile UI experience. > [tab] Fixed > > 1. Unit Disconnect > * Fixed an issue where units would only be removed from the dispatch viewer if the app or window was closed. Sonoran CAD now properly removes the unit upon page navigation away from police, fire or EMS. > 2. DMV - Submit Vehicle Registration > * Fixed an issue where DMV submitting a new vehicle registration would fail. > 3. Penal Code Types - Warning and Infraction > * Fixed an issue where the new penal code types "WARNING" and "INFRACTION" were not properly displaying in the admin editor. > 4. DB Sync Characters > * Fixed an issue where an account's linked characters would fail to load when using database sync. > 5. Login Button - 404 > * Fixed an issue where the "login" menu button would take you to a 404 page on certain pages. > 6. Record Editor - Border Height > * Fixed an issue where the record editor save and remove button container was displayed slightly outside the window border. ### 1.5.3 (Beta) - 11/30/2019 > [tab] New > > Delete/Remove CAD > > * Community owners can now remove their CAD system in the admin menu. This process requires email verification. > * Penal Code Types > * Added "Infraction" and "Warning" to penal code charge type options. > * Record Charges - Mobile Optimization > * Improved UI layout for police record charges. > * Lookup Results - Mobile UI Optimization > * Increased record lookup results height for mobile users. > [tab] Fixed > > 1. DMV Record - Mobile Height > * Fixed an issue where DMV records on mobile wouldn't be tall enough to scroll. > 2. DMV - Mobile Height > * Fixed an issue where the "New Record" section on mobile took up the entire screen. > 3. DMV Pending and Search > * Fixed an issue where dynamic SQL queries were not formatted correctly when searching for DMV records. > 4. Community Characters Table > * Fixed an issue where community character tables were not properly generated upon CAD registration. > 5. Validation Redirect > * Fixed an issue preventing the validation page from properly redirecting the user to the login page. ### 1.5.2 (Beta) - 11/29/2019 > [tab] New > > 1. Primary Unit - Search Filter > * The "Primary Unit" box on the call editor is now a search/filter for units only currently attached on the call. > 2. Login - Prevent Spaces > * Sonoran CAD now prevents a user from accidentally entering a space in their user account login. > [tab] Changed > > 1. Unit Info - Display Department > * Changed the unit information at the top of the page to show the department name instead of the subdivision name. > [tab] Fixed > > 1. DMV Loading Failure > * Fixed an issue preventing the DMV page from loading properly. > 2. DB Sync Disable Toggle > * Fixed a bug causing disabled toggles for the Database Sync configuration to still be toggleable. > 3. Lookup Voice Commands - Bug > * Fixed an issue causing voice command name and plate searches to not work properly. ### 1.5.1 (Beta) - 11/28/2019 > [tab] New > > 1. Connection Event Handler - Redesign > * A new connection and websocket event handling system to improve performance and fix common bugs involving connection registration failures. This improves overall application stability and reliability. > [tab] Changed > > 1. Community Cards - Display Bug > * Certain screen sizes do not show community cards on the menu page. > 2. Department Structure - Admin > * Fixed an issue where the editing department structure in the admin panel failed to load. > 3. NULL DB Sync Structure > * Fixed a bug where new communities would have a NULL DB Sync structure. This would throw an error when accessing the civilian page. > 4. Lookup - Empty After Navigation > * Fixed a bug where after navigating away from the police or dispatch page, the records would not display. ### 1.5.0 (Beta) - 11/27/2019 > [tab] New > > 1. Database Sync > * Communities can specify a SQL connection string and mapping for their database structure for characters, vehicle registrations and licenses. > > Sonoran CAD will then search for characters, vehicle registrations and licenses directly from your community's database for full integration! > 2. Subscription Upgrades > * A payment system for communities to upgrade their limits, enable new features and more! > 3. Civilian Page > * A page for civilians to create a character, make emergency calls, view licenses, view vehicle registrations and more. > 4. DMV Page > * A page to edit, add and remove vehicle licenses and registrations for civilian characters. > 5. Licenses > * Civilian license records can be created, modified and searched. > 6. Vehicle Registrations > * Civilian vehicle registration records can be created, modified and searched. > 7. BOLO System > * A way for police and dispatch to add, edit, search, and remove BOLOs. > > BOLOs can be viewed in the BOLO window or in an applicable name/plate search. > 8. License Type Customization > * Communities with this feature can customize their civilian license types. > 9. Community Info Customization > * Your community ID, name, subtitle and image can now be changed in the customization menu in the admin panel. > 10. Community Limits Panel > * View your community CAD limits in the "Limits" section in the admin panel. > 11. Lookup - Dynamic Tabs > > * The lookup window now only displays record tab types (BOLO, Warrant, Arrest, etc.) if they are present. > > When no results are found, a "No Records Found" message is displayed. > > 12\. Record Tabs - Dynamic > > * When running a lookup, the selected record tab will now be set to the first record type available based on priority. > > 13\. Unit Info - Clear Department > > * Add the ability to quickly clear a unit's agency, department or subdivision in the unit editor. > > 14\. PWA Auto Updater > > * You will no longer have to clear your local cache to get the latest Sonoran CAD version. > [tab] Changed > > 1. District Rename to Agency > * "Districts" are now called "Agencies" - The full structure is as follows: > > Agency > Department > Subdivision > [tab] Fixed > > 1. Socket Connection Event Registering > * Added additional functionality to more properly handle server-client web socket event registering, destruction and re-registering. > 2. Lookup Voice Command - Plate Tab > * Fixed an issue where looking up a vehicle plate via voice command has the lookup name tab still shown. > 3. Page Reseize > * Fixed an issue where rotating a mobile device or resizing the page would limit the view-able area when switching back, > 4. Unit Info - Updated > * Fixed a bug where updating a unit's information does not display until after a page refresh. > 5. Downloads/Discord - Connection Error > * Fixed an issue causing the downloads and discord pages to have a server connection error on a fresh page load without user navigation. ### 1.4.0 (Alpha) - 11/15/2019 > [tab] New > > 1. Penal Codes > * Penal codes can now be added, edited and removed in the admin menu. > 2. Records Charges - Penal Code Select > * Police/Dispatch can now add charges by filtering for a specific penal code. > 3. Penal Code Window - Police/Dispatch > * A new window for police to view and search for penal codes. > 4. Voice Commands - Lookup > * The ability to lookup a name or license plate via voice commands. “Sonoran lookup \<name/plate> \<plate/name>” > 5. Record Notice Flags > * Special flags can be added to a name or license plate to be shown when running a lookup. (Armed, Mentally Ill, etc.) These flags are also be repeated aloud by TTS to help officers running lookups via voice commands. > 6. Improved Dynamic Window Height > * Dynamically computed popup window height based upon number of results and content within a window. > 7. 10-Codes Filter Search > * Allows dispatchers to search for a 10-Code in the call editor drop down. This enables faster call creation for communities with a large quantity of 10-Codes. > 8. Fire Page > * Page for users with the FIRE permission to receive dispatch calls. > 9. Ems Page > * Page for users with the EMS permission to receive dispatch calls. > [tab] Changed > > 1. Community Selection - Height > * Community cards in horizontal scroll are now sized more dynamically, greatly improving user's mobile experience. > 2. UI Improvements - Color > * New colors, layouts, borders, etc. > [tab] Fixed > > 1. 10-Codes Duplication > * Fixed an issue where adding a new 10-Code, causes the new code to be duplicated until the codes have been refreshed. > 2. Re-Connection Bug > * Fixed an issue when the application re-connects to the Sonoran API server, events are not re-registered properly to the new connection. This can cause issues preventing a user from logging in or making any actions particularly on mobile platforms. > 3. Text-To-Speech Voice > * Sonoran CAD now searches for the "Google US English" speech synthesis option. Otherwise, use the default system voice. Fixes consistency issues across systems. > 4. Voice Commands - Page Navigation > * Fixed issue causing voice commands to fail after navigating away and back from an emergency page. ### 1.3.2 (Alpha) - 11/09/2019 > [tab] New > > 1. PWA App Installations for OSX and iOS > * PWA (Progressive Web Application) installations have been configured for all platforms, but specifically allows OSX and iOS users to experience a native app experience with Sonoran CAD. For more information, view the #downloads channel in Discord, or click “Downloads” on the side navigation menu on the website. > [tab] Changed > > Desktop - Splash Screen Font > > 1. * Updated the splash screen font for the electron desktop application for windows > [tab] Fixed > > 1. 10-Codes - Admin > * Fixed an issue causing 10-Codes to not appear for editing on the admin panel. ### 1.3.1 (Alpha) - 11/06/2019 > [tab] New > > 1. Desktop - Splash Screen > * A new splash screen has been added to the Sonoran CAD Windows desktop application. This smooths out the loading and update checking process. > 2. Vehicle Citation - Court Time > * The court time for the court date has been added onto the vehicle citation record type. > [tab] Changed > > 1. Vehicle Citation - Date Validation > * Default date values have been added for the vehicle citation court date and license expiration. This removed the defaulted red warnings. > [tab] Fixed > > 1. Page Scroll - Bug > * Fixed an issue disabling vertical scrolling on smaller pages. > 2. Call Viewer - Medium Display > * Fixed an issue causing inputs on the call editor/viewer to be uneven on medium sized screens. > 3. 10-Codes - Empty Dropdown > * Fixed an issue causing the 10-codes drop down to be empty for the dispatch call editor. > 4. New Record Number - Dispatch > * Fixed an issue causing the new record number to display as -1 for dispatchers. ### 1.3.0 (Alpha) - 11/05/2019 > [tab] New > > 1. Warrants > * Police and dispatch can now add, edit, search and remove arrest warrants. > 2. Vehicle Citations > * Police and dispatch can now add, edit, search and remove vehicle citations. > 3. View Online Units > * Police can now press the “Online Units” button to view all active units on their CAD server. > 4. View 10-Codes > * Police and dispatch can now press “10-Codes” at the top menu to view all custom 10-codes currently configured. > 5. Stay Signed In > * Select “Stay Signed In” on the login page to reduce the amount of times a sign in is required. > 6. Lookup Search - Shortcut > * Police and dispatch can now press enter/return in the lookup textbox to search faster than manually pressing the search button. > 7. Police Call Viewer - Status > * Added new functionality to update units on the police call viewer in real time (status changes). > 8. Support Discord Links > * Navigation links to the Sonoran CAD Discord have been added to the side navigation menu. > 9. Reset Password - Email Template > * Added a new styled password reset email template for Sonoran CAD password reset functionality. > 10. UI Improvements > * General UI improvements, darker theme, window calculation sizes, button colors and more! > [tab] Fixed > > App Logo - Android > > 1. * Fixed an issue causing the splash screen logo on Android to get cut off. ### 1.2.1 (Alpha) - 10/30/2019 > [tab] New > > 1. Mobile Action Menu > * Police and Dispatch pages now have a dropdown "Actions" menu for all action buttons > [tab] Fixed > > 1. Desktop Download Link > * Fixed an issue causing the Windows download link at homepage to be outdated. ### 1.2.0 (Alpha) - 10/29/2019 > [tab] New > > 1. Sonoran CAD Windows Desktop Application > * Downloadable desktop application for OSX and Windows, powered by Electron. Download link displays for desktop browser users. > * NOTE: During the Alpha release, the Windows EXE is not currently signed with a developer certificate. You may see warnings on install. > 2. Custom Window and Tab System > * A fully custom draggable, resizable window and tab system. You can minimize, open, close, etc. > * This allows users to open multiple record or lookup windows at one time, improving multi-tasking. > * NOTE: The MAXIMIZE functionality has not yet been added. > 3. Arrest Records > * Arrest records can now be added, edited, searched and removed. > * Create a new arrest record by pressing the "New Record" button on the police or dispatch page. > * NOTE: Other record types will be added shortly, this is just to test the functionality of the system. > 4. Records Lookup > * Police and dispatch users can now press the "Lookup" button to open a new records search window. > * Users can enter a full or partial name, or search by a license plate. > * NOTE: Currently, only arrest records are shown, more will be added soon. > 5. Voice Commands - PANIC > * The police page will now prompt users for access to their microphone (Chrome). > * The voice command "Sonoran Panic" will toggle your unit's PANIC state. > [tab] Changed > > 1. Session Storage > * Cookies are no longer used to store user's session IDs and information required to handle a page refresh. > * Local browser session storage is used in place of prior cookie storage. > 2. No-Reply Registration Email > * Sonoran CAD now sends all emails from [no-reply@sonoransoftware.com](mailto:no-reply@sonoransoftware.com) > 3. Dispatch - Separate Connection Grouping > * Dispatchers are now added to an additional SignalR grouping. > * This will be to ensure server calls (Ex: ackDispatchCall) are only sent to dispatchers, and not all other units within the server. > 4. Dispatch - Postal or Address > * Dispatches now only require the postal or address. > * Text-to-speech notifications state the postal and/or the address when applicable. > 5. Department Structure - Table Wording > * Admin department structuring, changed to "Districts/Departments/Subdivisions" per page for the table view amount. > [tab] Fixed > > 1. Reset Password > * Fixed an issue with the reset password system not working properly. > * NOTE: These UI elements are outdated and will be modified soon. > 2. Toolbar - Mobile > * Fixed an issue causing the top toolbar "Sonoran CAD" title gets cut off and brought down on mobile screens. > 3. Department Structuring - Toggle Edit > * When modifying a community's department structure, the background now properly turns red to inform the user that the editing mode is toggled. > 4. Registration Email Template > * Fixed the background of the Sonoran LLC logo. > 5. Disconnection - Null Value > * Disconnection context values being NULL after hours of inactivity. > > Fixed an issue where this causes an unhandled exception after disconnection from the connection hub. ### 1.1.0 (Alpha) - 10/15/2019 > [tab] New > > 1. Police Panic Button > * Police units can press the red "PANIC" button to inform other online units and dispatchers when in distress. This will pulse the screen red for the unit. The unit on the dispatcher panel will also pulse red. > 2. Audio Alerts > * Police unit's will recieve customized audio alerts when a dispatch is created, updated or removed. > * Police unit's will hear a brief tone when changing their 10-status. (10-06, 10-07, 10-08) > 3. Settings Modal > * The left drawer now contains a "Settings" option. Opening this will allow the user to change their system volume for audio alerts and tones. > 4. Dispatch Call - Unit Removal Logic > * Sonoran CAD now tracks the removed units when updating a call. Removing units from a call will now inform the unit that the call is closed (for them) and will clear their screen. > 5. Dispatch Active Calls - 10-Status Logic > * Unit 10-Statuses are updated in real-time. However, when a new dispatcher first loads in, existing calls are pulled from the database. When a unit updates their status, this is not updated in the unit's current active call. As a result, dispatchers loading in previous calls will show unit's status colors incorrectly. Dispatchers now search locally for updated unit statuses on their active calls list. > 6. Status - Cooldown > * A 500ms cooldown delay has been added to prevent units from spam updating their status. > [tab] Changed > > 1. Title Bar and Icon > * The top title bar and icon of the website now displays "Sonoran CAD" and the Sonoran Logo. > 2. Login Logo Padding > * Additional margin space added to the top of the Sonoran logo on the login page for mobile users. > 3. Popup Modal Color > * Popup editor modal backgrounds have been changed from a red-blue gradient to a dark purple gradient. > 4. Side Drawer > * The side navigation drawer is now NOT displayed by default. The drawer now lays over the screen and does not push content over. > [tab] Fixed > > 1. Unit Overflow - Mobile > * Call editor with multiple units can no longer flow over and cover up the call editor. > 2. Duplicated Server Calls > * Fixed issue with client websocket events not being properly un-registered when navigating away from a page. > 3. Switch Community > * Fixed a bug causing users to be unable to view navigation buttons when switching communities without a page refresh. > 4. Community Menu > * Fixed an issue causing the community menu to be blank when navigating back after a page refresh. > 5. Police - Empty Call > * Fixed an issue causing an empty/no active call from displaying some information on the police call viewer. These fields are now blank instead of displaying default values. > 6. Sidebar Navigation Items > * Fixed an issue where sidebar navigation items would be incorrect when refreshing the community admin, police or dispatch page. # Administration Source: https://docs.sonoransoftware.com/cad/tutorials/administration Everything you need to know about administrating your new CAD system. # Deleting or Transferring your CAD Source: https://docs.sonoransoftware.com/cad/tutorials/administration/deleting-or-transferring-your-cad Sonoran CAD offers you the ability to delete/transfer your current CAD. > [!WARNING] > > Only the community owner can delete or transfer the community. ## Access the Menu Navigate to Admin > Advanced > Transfer or Delete CAD ![Advanced Dropdown Menu](https://docs-assets.sonoransoftware.com/sha256/7a/7a29dde9efa5b6b3b4c84bc713330d4aeb4763fadfef6bf62ac96f5000a7aa66.png) ## Transfer or Delete the CAD Select **TRANSFER CAD** or **REMOVE CAD**: ![Transfer or Remove CAD options](https://docs-assets.sonoransoftware.com/sha256/55/5538764e7162b3e3d0affa1be9792759f00000b639f58699309d64e6af95f8fb.png) Once you have chosen an option, you will be **required** to verify your email. (This will be the email you originally signed up for the CAD with.) Upon clicking the verification link, the process will be completed. > [!WARNING] > > Once a CAD is deleted, there is NO WAY for us to recover it. Please consider this before making your choice. # Remove User Account Source: https://docs.sonoransoftware.com/cad/tutorials/administration/remove-user-account Looking to remove your Sonoran Software account? ### Access your Sonoran Software Account You can access your Sonoran Software account by going to [account.sonoransoftware.com](https://account.sonoransoftware.com), or by selecting "Modify" in the side menu's account modal. ![Sonoran CAD - Modify Account](https://docs-assets.sonoransoftware.com/sha256/0a/0af5db9282e9180f26300756985fea331513debf85ffa5b6d4f6ae06f0e07882.png) ### Send an Account Removal Email On the Sonoran Account website, select Account > Advanced > Delete Account This will send an email confirmation to the address on file. ![Sonoran Account - Delete Account](https://docs-assets.sonoransoftware.com/sha256/b1/b15ab72aeaa84fa678552dcb263e9895a7411af9d7dfb099f8821e0474d2d1ea.png) ### Verify your Email Check your email for an account removal request and click the "Remove Account" button.\ Having trouble seeing it? Be sure to check your spam/junk folder. ![Sonoran Account - Removal Email](https://docs-assets.sonoransoftware.com/sha256/a7/a7fa45f3d44b6185472d59222e4f62bfc1b8bcd2d7c2290558baa99482f9751e.png) # System Logs Source: https://docs.sonoransoftware.com/cad/tutorials/administration/system-logs Learn more about Sonoran CAD's advanced logging feature! Sonoran CAD logs all user actions in-depth, allowing community administrators to take action against user abuse and help debug common issues. ![Sonoran CAD - Admin Logs](https://docs-assets.sonoransoftware.com/sha256/fc/fcaabad38707ddde93d11e25e51a2badb1a04ba447bb65901c1c1b7ebe0ec9d5.png) ## Searching for Logs ### Access the Log Panel In the admin page, navigate to `Advanced` > `Logs` ### Filtering and Searching for Logs The log panel allows you to filter search results by date, log type, username, and log contents. #### Log Type The log `Type` dropdown allows you to search and select specific log types. This allows you to search only for logs pertaining to a specific action in the CAD. If left blank, no log filtering will be applied. ![](https://docs-assets.sonoransoftware.com/sha256/5a/5a4153cc7d3d40d63855168701280a590114e05228fb1e52f0763e6a3607ad56.png) #### Log Date The log `Date` selection allows you to choose the specific date the logs are from.\ \&#xNAN;*Note: Dates and the accompanying timestamps are based in UTC.* ![](https://docs-assets.sonoransoftware.com/sha256/37/3735db478a52482ed5d1db1aff0b44547e285c03592f50bc70b80305ffccba34.png) #### Username The log `Username` selection allows you to search and filter logs down to a specific username. You can also search for a partial username. #### Log Text You can also filter logs based on partial text put into the `Log` field. # Customization Source: https://docs.sonoransoftware.com/cad/tutorials/customization Sonoran CAD offers dozens of customization options for your community. Check out the configuration options below! # 10-Codes Source: https://docs.sonoransoftware.com/cad/tutorials/customization/10-codes Learn more about importing your 10-codes into Sonoran CAD. ## What are 10-Codes? 10-Codes are used to differentiate and abbreviate dispatch situations.\ Ex: 10-10: Fight in Progress ### Modify 10-Codes Under Admin > Customization > 10-Codes you can add, edit, or remove 10-codes for your community. ![](https://docs-assets.sonoransoftware.com/sha256/95/95920501cb2909cd8af6fe70abac633d2c2f7d1f0dd4c27ad9b3dc1fbde562fd.png) ### My locality doesn't call them "10-Codes" Sonoran CAD allows you to change the naming of "10-Codes" to anything else you'd like.\ Learn more about our [geographical customization](/cad/tutorials/customization/geographical-settings). ## Import from Premade Spreadsheet (CSV) We've compiled 10-code spreadsheets for all 50 US states. Download a CSV from our [10-code repository](https://github.com/Sonoran-Software/CAD-10-Codes) and [import it into the CAD](/cad/tutorials/customization/10-codes#id-4.-import-the-csv-file). ## Import 10-Codes from a Spreadsheet (CSV) Sonoran CAD allows you to import 10-codes directly from a spreadsheet. > [!WARNING] > > **Spreadsheet (CSV) importing is only supported directly from Google sheets.** > > Support will not be provided to users modifying their spreadsheets with Excel, or any other program. The official Google sheet includes specific safety checks preventing invalid formats, blank spaces, etc. ### Copy the Google Sheet Navigate to our official [10-code Google sheet](https://docs.google.com/spreadsheets/d/1XOqjkrKcvP6hc9F6DynK03HqLVY8KWV7M4g6aQddBu8/copy) and make a copy. Using a copy of our official sheet ensures your 10-codes are formatted correctly. **You may ONLY use the Google sheet directly. Editing this via Excel or any other program is NOT supported.** ![Sonoran CAD - Copy 10-Codes Spreadsheet](https://docs-assets.sonoransoftware.com/sha256/9f/9f0f968dc6eaee9ff58e6f566deac144fc0a97ff47c0f7179f15453417d9dcdb.png) ### Add Your 10-Codes Now that you have copied this sheet into your Google Drive, you can add new rows and format your 10-codes. > [!WARNING] > > **Do NOT add additional columns.**\ > Every 10-code must be on a separate row to be properly imported into Sonoran CAD. ![Sonoran CAD - 10-Codes CSV](https://docs-assets.sonoransoftware.com/sha256/58/58993ad976005122f4b3f66db29a9b1a734f6a6ae42c3ac5243acde09ef6acc5.png) ### Download the CSV In Google Sheets, navigate to File > Download > Comma Separated Values (.csv) to download the file. ![Google Sheets - Download CSV](https://docs-assets.sonoransoftware.com/sha256/4e/4efd9279acf1830a798522e9bc20e5ae72c89ae0abc680a430a987bcbfeafbdc.png) ### Import the CSV File In Sonoran CAD, navigate to Admin > Customization > 10-Codes In the 10-codes section, select the "Import" button.\ Then, select "CSV" as the import type and select your downloaded CSV file. ![Sonoran CAD - Import Data](https://docs-assets.sonoransoftware.com/sha256/81/81b26d13f1ec9f2e3bbdbac5f82ff1482ac1c3308b75c40699fe8833bb0e16d9.png) ![File Selector - Select CSV](https://docs-assets.sonoransoftware.com/sha256/89/8924cc1c67910a6db7d54d269a838884f81a48592b9a4abbbfe3da3f157bdc8b.png) After selecting the CSV file, your 10-codes will be imported into the CAD and saved automatically. ### Troubleshooting Having issues importing your CSV? [Be sure you are using and editing our Google Sheet with the Google Sheets program only](/cad/tutorials/customization/10-codes#1-copy-the-google-sheet). Our Google sheet includes specific error checking and validation to handle common mistakes.\ **Support is not provided if you are using Excel, or any other program.** ## Import from JSON You can also build and format your 10-Codes directly into JSON. These JSON formatted 10-Codes can then be pasted directly into the UI. ### Format the JSON Structure The JSON structure is an string array. Be sure to strictly follow the format. ```javascript theme={null} [ "10-10: Fight In Progress", "10-11: Dog Case", "10-15: Civil Disturbance", "10-16: Domestic Problem", "10-17: Meet Complainant", "10-25: Report in Person (Meet)", "10-31: Crime in Progress", "10-32: Man with Gun", "10-33: Emergency", "10-34: Riot", "10-35: Major Crime Alert", "10-37: Suspicious Vehicle", "10-45: Animal Carcass", "10-46: Assist Motorist", "10-52: Ambulance Needed", "10-55: Intoxicated Driver", "10-56: Intoxicated Pedestrian", "10-57: Hit and Run", "10-59: Escort", "10-70: Fire Alarm", "10-73: Smoke Report", "10-80: Chase in Progress", "10-89: Bomb Threat", "10-90: Bank Alarm", "10-91: Pick Up Prisoner / Subject", "10-92: Improperly Parked Vehicle", "10-94: Street Racing", "10-96: Mental Subject", "10-98: Prison / Jail Break" ] ``` ### Import the JSON Structure In Sonoran CAD, navigate to Admin > Customization > 10-Codes In the penal codes section, select the "Import" button.\ Then, select "JSON" and paste the JSON string array of 10-codes. ![](https://docs-assets.sonoransoftware.com/sha256/81/81b26d13f1ec9f2e3bbdbac5f82ff1482ac1c3308b75c40699fe8833bb0e16d9.png) ![Sonoran CAD - Paste JSON Content](https://docs-assets.sonoransoftware.com/sha256/7d/7dd03275fb94cc737c9d32a0ad975aca1d8e14c0618fc30f61d31e1520ac5a3c.png) After pasting the JSON content, your 10-codes will be imported into the CAD and saved automatically. # Addresses and Street Names Source: https://docs.sonoransoftware.com/cad/tutorials/customization/addresses-and-street-names Sonoran CAD allows you to upload custom street names to auto-populate in the dispatch call editor. > [!WARNING] > > Street address customization requires the **plus** version of Sonoran CAD or higher.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ![](https://docs-assets.sonoransoftware.com/sha256/01/014c7031fa8788bb1d6d2876daf939ff1507555002baf4ebe20d4ea5b5ed5b7c.png) ## Import Street Names from a Spreadsheet (CSV) ### Copy the Google Sheet * [GTAV Street Names](https://docs.google.com/spreadsheets/d/1IkbNJNhMYToqHQE6eb3ujp6ufkjPkLgDgq29g9woGR0/copy) * [ER:LC Roblox Street Names](https://docs.google.com/spreadsheets/d/1QEuImE6GH1H6sZFltLMYt7HUcExBF3_-hhNWAB9r6Hg/edit?usp=sharing) Navigate to one of our official street name Google sheet and make a copy. Using a copy of our official sheet ensures your street names are formatted correctly. ![Sonoran CAD - Copy Street Name Spreadsheet](https://docs-assets.sonoransoftware.com/sha256/7e/7e56bf54289db36a9567ac7e135ecf25507156893fc94cc243fc8ade5bf6a446.png) ### Add Your Street Names Now that you have copied this sheet into your Google Drive, you can add new rows and format your street names and addresses. > [!WARNING] > > **Do NOT add additional columns.**\ > Every street name must be on a separate row to be properly imported into Sonoran CAD. ![Sonoran CAD - Street Names CSV](https://docs-assets.sonoransoftware.com/sha256/c6/c6f134f6633a2c7e6811c8183620a82196a4f37f99598c4695f6dd26dfc5801c.png) ### Download the CSV In Google Sheets, navigate to File > Download > Comma Separated Values (.csv) to download the file. ![Google Sheets - Download CSV](https://docs-assets.sonoransoftware.com/sha256/aa/aac43822b1b2f35ad87c96715d4802581eefedb6b57be6bdfed86de901b6bfe9.png) ### Import the CSV File In Sonoran CAD, navigate to Admin > Customization > Customization > Addresses In the addresses section, select the "Import" button.\ Then, select "CSV" as the import type and select your downloaded CSV file. ![Sonoran CAD - Import Data](https://docs-assets.sonoransoftware.com/sha256/81/81b26d13f1ec9f2e3bbdbac5f82ff1482ac1c3308b75c40699fe8833bb0e16d9.png) ![File Selector - Select CSV](https://docs-assets.sonoransoftware.com/sha256/2b/2b778936d2e51d3ab908f4017ce0e3251f2d77c243db458301a1c58d1eda6272.png) After selecting the CSV file, your street names and addresses will be imported into the CAD and saved automatically. ### View the Call Editor In the dispatch call editor, the `address` section is now a dropdown. This dropdown will auto-filter and suggest your street names and addresses as you type. ![](https://docs-assets.sonoransoftware.com/sha256/3f/3fc8fa926999e8c3324ba202a612ad671fa560425d95034c2c7db68d68ce75c9.gif) ### Utilize in Custom Records Custom records can also have a field with the type set to `address`. This field will auto-filter the same list of street addresses from your gamemode. ![Custom Records - Address Field](https://docs-assets.sonoransoftware.com/sha256/70/709ed5a5e58a84f6fdc6fae2c9221d64cf88731c19188b4494e2f0d4c86474db.gif) # Advanced Query Strings Source: https://docs.sonoransoftware.com/cad/tutorials/customization/advanced-query-strings Sonoran CAD provides additional query string options for embedded use! ### Force Mobile | String | Usage | Description | | - | - | - | | forcemobile | app.sonorancad.com/#/?forcemobile=TRUE | Your CAD will forcefully format the emergency services action bars to mobile format. This is beneficial for communities that are embedding the CAD in-game on a smaller format that does not quite meet the standard mobile dimensions. | ![Sonoran CAD's 'forcemobile' action bar](https://docs-assets.sonoransoftware.com/sha256/bc/bcfe894690d11aaf022bec6a7ae27230198b24e9eecef92dd2672f58e52ee005.png) ### Default Audio Level | String | Usage | Description | | - | - | - | | audiolevel | app.sonorancad.com/#/?audiolevel=25 | Your CAD audio settings will be set by default to the value provided. This is beneficial to communities that are embedding the CAD inside of a resource, and may wish to mute the audio by default. | ![Sonoran CAD's 'audiolevel' query string result](https://docs-assets.sonoransoftware.com/sha256/b7/b735f321c30d28ee0c70e15dcfc5c28e6ba93a62957c68a31b6e9a7edf61b61b.png) ### Hide "Switch Community" | String | Usage | Description | | - | - | - | | lockCommunity | app.sonorancad.com/#/?lockCommunity=true | For communities using the [tablet ](/cad/integration-plugins/in-game-integration/available-plugins/tablet)resource or [custom login page](/cad/tutorials/customization/custom-login-page), this query string locks the user to your community and hides the "Switch Community" buttons. | # Community Branding and Settings Source: https://docs.sonoransoftware.com/cad/tutorials/customization/community-branding-and-info Customize your community's settings, branding, information, and more! ### Community Information The admin customization info section allows you to customize your community's image, name, time zone, and more! ![](https://docs-assets.sonoransoftware.com/sha256/0b/0b3185f4d0287218298f8a6978805209d5c6c81d0a2c83cc2edc4cf0c7a4f555.png) | Field | Description | | - | - | | Image | Click the image at the top and upload the image to the CAD. | | Name | This is your community's name.This will be displayed on your custom login page, community card, and top header. | | Subtitle | This is the text displayed below your community name on your custom login page and community card. | | Website | This is a link to your community website, to be displayed in the community menu. | | Discord | This is a link to your community Discord, to be displayed in the community menu. | | Voice Command Keyword | This allows you to change the default [voice command](/cad/tutorials/other-features/voice-commands) keyword to something custom. | | Timezone | All users in the CAD will have the clock at the top of the screen synced to this timezone. This helps avoid confusion, and improves report consistency. | ### Community ID > [!WARNING] > > Custom community IDs require the **starter** version of Sonoran CAD or higher.\ > For more information, see our [pricing](https://sonorancad.com/app/#/pricing) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). Looking to change your community ID?\ Navigate to `Admin` > `Advanced` > `Change Community ID` ![Sonoran CAD's Community ID Change](https://docs-assets.sonoransoftware.com/sha256/06/069cb8297038c26c64e5e216990a36a1ca08d23c242c0e0662fa05148979d323.png) Here, you can enter in and request a new community ID.\ Once submitted, you will be logged out. All active community members will also need to log out and back in to avoid any issues. > [!WARNING] > > If your community has an active subscription, you will automatically be downgraded to the free version. > > To transfer the subscription to the new community ID, update your community ID by pressing "Modify" on the active subscription in the [payment center](/cad/pricing/faq/accessing-the-payment-center). # Configuring Multiple Servers Source: https://docs.sonoransoftware.com/cad/tutorials/customization/configuring-multiple-servers Sonoran CAD allows you to configure servers to separate units and dispatchers, but still share all records globally. > [!NOTE] > > The free version of Sonoran CAD is limited to one (1) server.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ### Configuring An Additional Server In the Admin Customization menu, expand the "Servers" section to add, edit, or remove additional servers in your CAD. ![Additional servers are configured in the customization menu](https://docs-assets.sonoransoftware.com/sha256/a1/a10172e75f3d9b538971b1fbf96f5c5eb5dad86c9837c901d985e196388533c9.png) ### Changing Servers in the CAD #### Civilian Page In the civilian page, the top right header allows users to swap back and forth between servers. ![Users can select their server in the top header](https://docs-assets.sonoransoftware.com/sha256/d7/d75fa85117cda678d7e139746d7fc611bf739a66b80e8ba80bc9ff4c19ae9ba5.png) #### Emergency Pages In the police, fire, EMS, and dispatch pages; users can select their server by clicking on the start menu. ![Emergency Pages - Server Selector](https://docs-assets.sonoransoftware.com/sha256/3e/3e60c051049a0fc8e5454b30910e26f3ebede85d857a842e7519483ed25c2edf.png) # Creating Custom Record and Report Types Source: https://docs.sonoransoftware.com/cad/tutorials/customization/creating-custom-record-and-report-types Design record templates visually and choose how each field behaves. Build forms for your community's licenses, records, and reports in **Administration > Customization > Custom Records**. Available record types and limits depend on your [subscription](/cad/pricing/faq). ## Open or Create a Template Use **Record template** to search for an existing template, or select **New** and choose a record type. Enter its **Record Type Name**. ![Visual incident-report template editor with Priority selected and Allow limited editing enabled](https://docs-assets.sonoransoftware.com/sha256/4a/4afc7872d5526a1296d02db84eaba7449cae86ce17ffffe4522909e112dc2b6d.png) *Select a field in the preview to edit its settings.* ## Arrange the Form * **Add a section:** Select **Add section**, then choose a custom or premade section. * **Add a field:** Use the **+** button beside a custom section's label. * **Edit a field:** Click it in the preview. Change its label, type, and options in the panel on the right. * **Move fields or sections:** Drag their grip handles to reorder them. * **Resize a field:** Drag its lower corner to change its width. * **Add a record image:** Click the image area to select an image. Open a section's **...** menu for its settings: | Setting | What it does | | - | - | | Search Civilians | Lets the person filling out the record find a character and import their details into the section. | | Search Vehicles | Lets them find a vehicle and import its details. | | Enable Duplicate | Lets them add another copy of the section while filling out a record. | | Duplicate section | Adds another copy to the template now. | | Copy | Copies the section; use the **Paste** button in the side panel to insert it. | | Dependency | Shows the section only when a selected field matches a condition. | Search imports require matching field IDs. See [Linking Vehicle and Character Searches](#linking-vehicle-and-character-searches). ## Field Settings | Setting | What it does | | - | - | | Show in lookup | Shows this field's label and value in record search results. Enable it on at least one field. | | Required | Requires a value before the record can be submitted. | | Supervisor only | Requires **Supervisor fields** permission for this record template in addition to an editing permission. Unit identifier status does not grant it. | | Read only | Prevents users from changing the field manually. | | Allow limited editing (previously Editable by other users) | Opts this field into **Edit selected fields on others' records**. Edit own and Edit any do not require field opt-in. | | Unique value | Prevents duplicate values within this template, where supported. Found under **Advanced**. | ### Editing Other Users' Records > [!NOTE] > > CAD 3.44.1 separates full editing from selected-field editing. See [record editing permissions](/cad/tutorials/getting-started/permissions#record-editing-permissions) for existing-community guidance. To let officers update only license points or status: 1. Select the license template and click **Points** in the preview. 2. Enable **Allow limited editing**. Repeat for **Status** if needed. 3. Turn it off on fields they should not change, such as the license holder's name. 4. Save the template. 5. In [account permissions](/cad/tutorials/getting-started/permissions), grant the officer **Police page** access and **View** and **Edit selected fields on others' records** for the license template. Ensure no permission key or role mapping also grants **Edit any**, which allows full editing. Add **Edit own** separately if needed. The officer can then open another account's license from a lookup and save changes to the allowed fields. These rules apply regardless of which panel opens the record. Read-only fields stay protected. Supervisor-only fields also require **Supervisor fields** permission. To change a field automatically based on its value, use [Record Automations](/cad/tutorials/customization/record-automations). Administrator-created automations can update supported read-only and supervisor-only fields; those settings still restrict manual editing. Actual synced values and unique fields remain protected from automation actions. ### Field Types | Type | Use | | - | - | | Text / Text area | Short values or longer notes. | | Select / Checkboxes | A dropdown or a list of selectable options. Add each option in the field settings. | | Date / Time | Dates and times. Read-only date and time fields fill automatically on new records. | | Random | Generates a value using the field's formatting mask. | | Image / Label | An image or static text. | | Bodycam clips | Select recordings or add a video URL for playback inside the record. See [attaching bodycam clips](/cad/integration-plugins/in-game-integration/available-plugins/bodycam#attach-clips-to-custom-records). | | Address | Suggestions from your [imported street names](/cad/tutorials/customization/addresses-and-street-names). | | Status | The record's available status choices. | | Unit information | Automatically fills details such as unit number, name, rank, agency, or department. | Premade sections provide additional controls, including flags and linked records. Flags appear as alerts in lookups. ### Linked Records Add a linked records section to connect related records and reports. ### Formatting and Field Mapping IDs Expand **Advanced** for formatting and the **Field Mapping ID**. A formatting mask controls the expected input: * `#`: Number. * `S`: Letter. * `X`: Letter or number. For example, `###` accepts three digits, and `(###) ###-####` formats a phone number. Keep field mapping IDs stable after the template is in use. They connect saved values, search imports, dependencies, and integrations to the correct fields. ## Dependencies Show a field or section only when another field meets a condition. 1. For a field, open **Advanced > Dependency**. For a section, open **... > Dependency**. 2. Select the controlling field by name. Type to filter the list. 3. Choose **Equal**, **Not Equal**, or **Contains**. 4. Select or enter the values that should make the field or section appear. ![Dependency editor with a searchable list of fields grouped by section](https://docs-assets.sonoransoftware.com/sha256/80/8006d5358c424c1393ada18c5d976cddf0160ac71508c2f2e2962ffc91724b60.png) *Select the controlling field without copying its mapping ID.* Clear the selected field to remove the dependency. Close the dependency editor and save the template to keep your changes. ## Save the Template The editor shows **Unsaved changes** when the template has changed. Select **Save** to apply them; Save is disabled when there are no changes. **Cancel** closes the editor without saving the pending edits. Members also need [permissions for the template](/cad/tutorials/getting-started/permissions) before they can view, create, edit, or delete its records. Records are available through [record lookups](/cad/tutorials/records-management/searching-for-records); reports are available in the **Reports** center. ## Updating Old Records with New Preview Fields If you enable **Show in lookup** after records have already been created, open **Template actions (...) > Rebuild lookup previews** to refresh their search-result summaries. Keep the same field mapping IDs so saved values can be matched. Rebuilding is available once every ten minutes. Database-synced records stay up to date without this step. ## Linking Vehicle and Character Searches For **Search Civilians** or **Search Vehicles** to populate a custom section, its field mapping IDs must match the corresponding fields in your character or vehicle template. ### Civilian Field UIDs Default character field IDs include: `first`, `last`, `mi`, `dob`, `age`, `sex`, `aka`, `zip`, `occupation`, `height`, `weight`, `skin`, `hair`, `eyes`, `emergencyContact`, `emergencyRelationship`, `emergencyContactNumber`, and `residence`. ### Vehicle Field UIDs Default vehicle field IDs include: `type`, `plate`, `make`, `model`, `color`, and `year`. Select each destination field and check **Advanced > Field Mapping ID**. If your community changed the source template's IDs, use those current IDs instead. ## Common Issues **The template has no fields enabled for preview:** Enable **Show in lookup** on at least one useful field, such as name, plate, or license number. **An officer cannot edit a field:** Check page access, **View**, and an editing permission for the template. For limited editing of another account's record, check **Edit selected fields on others' records** and **Allow limited editing** on the field. **Edit any** permits full editing without field opt-in; **Edit own** applies only to the account's records. Check **Read only** and **Supervisor only** as well. **A template change is blocked by an automation:** Update or disable the [automation](/cad/tutorials/customization/record-automations) that uses the affected field, then save the template again. To export or import a template, open **Template actions (...)**. See [Sharing Custom Records](/cad/tutorials/customization/sharing-custom-records). # Custom Audio Notifications Source: https://docs.sonoransoftware.com/cad/tutorials/customization/custom-audio-notifications Learn more about customizing the audio notifications for new dispatches, dispatch signals, and more! > [!NOTE] > > Custom audio notifications are limited based upon your community's version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ## Customizing your Audio Notifications ### Access the Customization Menu In the admin page, navigate to `Customization` > `Customization` > `Notification Tones` ![Sonoran CAD - Custom Audio Notifications](https://docs-assets.sonoransoftware.com/sha256/c6/c6c187e42e1fe65e20790819ef46252c34614168729d1b8f8f6d2781aeef4d7b.png) ### Customize the Audio Tones Here, you can specify the audio file that will play for new dispatches, panic sounds, dispatch signals, and more. ### Save Don't forget to press save! ### Toggle On/Off Text-To-Speech (Optional) Text-to-speech notifications are currently only available on the Chrome web version. You can toggle these on/off in the settings menu. ![Sonoran CAD - Toggle TTS](https://docs-assets.sonoransoftware.com/sha256/64/6433bd098b24a4e3359fb044b14edb0806b4264e4df4129872fe3c4b86ea4114.png) ## Troubleshooting ### Text-To-Speech Cuts Out Game Audio For some users, text-to-speech sounds may cut out in-game or other audio sources. This is because the selected voice may be a Windows or system based source. Simply change the selected TTS voice to a non-windows or system based source to resolve. ### Text-To-Speech Wrong Language Text-to-speech voice and language options varry based on the user device or browser. If your text-to-speech notifications are in the wrong language (Ex: not English) use the following: #### OSX Web * Users report limited or incorrect languages when using Safari. Switch to Chrome for the best compatability. #### Windows Desktop * PC Settings > Time & Language > Speech * Install additional voice options # Custom Dispatch Call Formats Source: https://docs.sonoransoftware.com/cad/tutorials/customization/custom-dispatch-call-formats Customize the dispatch call form for your community. ## What are Custom Call Formats? Dispatch calls are created by filling out several form fields such as status, title, description, attached units, and more. Some communities and localities may have different names for these input boxes. Or, some communities may wish to add or remove additional fields. Sonoran CAD lets communities customize the exact fields shown in their dispatch call editor. ## Customizing the Call Format Under **Admin** > **Customization** > **Dispatch Call Layouts** > communities can add or remove sections along with fields inside the sections. Once configured, dispatchers can switch between layouts directly in the call editor. Formatting for Call ID numbers can also be customized under [Geographical Customization](/cad/tutorials/customization/geographical-settings). ![](https://docs-assets.sonoransoftware.com/sha256/15/15fc1ea9316dbb7a85cec90a757512e77c123222fcd85cc602ffe5b672cebd5b.png) ![](https://docs-assets.sonoransoftware.com/sha256/97/97b3498d81758dbfcf0c222cf9e754aab47801da9d82e3493892152d189716bf.png) # Custom Emails Source: https://docs.sonoransoftware.com/cad/tutorials/customization/custom-emails Sonoran CAD allows you to send customized, branded emails when your community members register from your custom login page. > [!WARNING] > > NOTE: If you have not already, you will need to configure your [custom login page](/cad/tutorials/customization/custom-login-page). > [!NOTE] > > Community customizations is not enabled with the free version of Sonoran CAD.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). #### Configure Your Emails In the admin customization menu, expand the "Custom Community Emails" section.\ Here, you can set the email header, sub-header, and body text.\ \ \&#xNAN;*NOTE:* Your community logo will automatically be inserted into all emails. ![The email customization panel allows you to enter your own text](https://docs-assets.sonoransoftware.com/sha256/4b/4ba32b82e213a4696c51f06b545d90a5c8543c6ab871099e8e40cbcc1dc913c0.png) #### Save and Enjoy! Once saved, all user account registration and password recovery emails sent from your custom login page will be customized as configured. ![Custom emails are sent to users as configured](https://docs-assets.sonoransoftware.com/sha256/c9/c997eedb9a6e3ad9dbdb0ece197c7f170d09a663e96c345c725b5536d276944e.png) # Custom Domain & Vanity URLs Source: https://docs.sonoransoftware.com/cad/tutorials/customization/custom-login-page Share a free CAD vanity URL or connect your own custom domain. Share your CAD with a free vanity URL based on your community ID, or connect a domain you own. Either link opens your community's login page. When members log in through the link, Sonoran CAD automatically joins them to your community and takes them directly there. ![Example community login page at mwrpdev.sonorancad.com](https://docs-assets.sonoransoftware.com/sha256/05/058a3c4c8c5471c5a7a49092419153af3f0e2c62a43fa39ed038df83ddbb0477.jpg) ## Free Vanity URL Your free vanity URL uses your community ID: `https://your-community-id.sonorancad.com`. For example, the ID `mwrpdev` gives you `https://mwrpdev.sonorancad.com`. In Sonoran CAD, open **Administration > Customization > Custom Domain** to copy your community URL. You can also find it beside your community ID in the API key section. Vanity URLs are free and require no DNS changes. Share the link wherever you [invite users](/cad/tutorials/getting-started/inviting-users-to-your-cad); people who sign in or register through it are joined to your community automatically. ![Custom Domain settings under Administration and Customization in Sonoran CAD](https://docs-assets.sonoransoftware.com/sha256/47/476d4cf53c1fbe21199a413e8365316d3a34e1287e0f4f53176bb7f5994756ed.jpg) *Copy your free community URL from Custom Domain.* ## Use Your Own Domain A custom domain displays your CAD login page at a domain or subdomain you own. It also supports [custom branding](/cad/tutorials/customization/custom-emails) for signups and password recovery emails. ## DNS Record Method (Recommended) > [!WARNING] > > **If you are unsure how to add a DNS record, you will need to contact your domain registrar.** ### Enter your Desired Domain In **Custom Domain**, enter a domain or subdomain you own, such as **example.com** or **cad.example.com**. ### Add DNS Records > [!WARNING] > > When updating or changing an existing DNS record the changes may not be visible until public cache expires. Depending on your DNS provider, this can be anywhere from a **few minutes to 24-48 hours**.\ > \ > You can try running `ipconfig /flushdns` in a Windows CMD window and restarting your browser. Otherwise, you can test with other browsers/devices/users while you wait. In your domain registrar’s DNS management panel, add two CNAME records using the name and content provided in Sonoran CAD, and add one TXT record to verify domain ownership. ![](https://docs-assets.sonoransoftware.com/sha256/a4/a4d0537e6d915bbae4c615cfdb8b8c17e95c1b998d13b841099c71b28313cc90.png) #### DNS Example > [!WARNING] > > **Cloudflare Users:** Be sure to have the **DNS record proxy DISABLED** - and set to `DNS Only`. The example below shows the `TXT` record verifying the community ID, and two CNAME records verifying domain ownership. ![](https://docs-assets.sonoransoftware.com/sha256/9c/9c7974ceafdf086d08d6c9087bc6b4d57d821593839b9b757835c478f3e72182.png) ### View your Custom Login Page Users can now visit this custom domain to view the CAD with a custom login page, including receiving your [branded emails](/cad/tutorials/customization/custom-emails) for signups and password recovery messages. ## iFrame Method If you are unable to use the [DNS method](/cad/tutorials/customization/custom-login-page#dns-record-method-recommended), you can also host an HTML page that renders the CAD in an iFrame. ### Download the HTML File [You can download a ZIP of the HTML page here.](https://sonoransoftware.com/tutorials/sonorancad/index.zip) ### Edit the HTML File Replace `YOUR_COMMUNITY_ID_HERE` in the `index.html` file with your [community ID](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code). ![](https://docs-assets.sonoransoftware.com/sha256/47/477ae99f614203f6bbcb00f56437b1a0bc1a93d45cb9212a8ff8d03353768b86.png) ### Host the HTML File Now that you've saved the custom URL inside of the HTML file, you can host this with your own domain on your own web server. Users can now register and access your CAD from your custom domain, and will even receive your [custom branded emails](/cad/tutorials/customization/custom-emails) for account actions. ## In-Game Tablet If you wish to use a custom login page when using the [in-game Tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet), you can set a convar in your server.cfg.\ \ The easiest way to show your [custom login page](/cad/tutorials/customization/custom-login-page) is to use a query string. `"https://sonorancad.com/#/?comid=YOUR_COMMUNITY_ID_HERE"` Simply replace `YOUR_COMMUNITY_ID_HERE` in the URL with your [community ID](/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code).\ EX: `https://sonorancad.com?comid=midwestrp` Add the following to your server.cfg **before** starting the tablet resource: ``` setr sonorantablet_cadUrl "YOUR_URL_HERE" ``` Fill in with your actual URL above with the comid you want. # Custom Page Colors Source: https://docs.sonoransoftware.com/cad/tutorials/customization/custom-page-colors Customize your community's page colors with Sonoran CAD! > [!NOTE] > > Community customization is not included with the free version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ### Custom Page Colors The admin customization menu allows you to customize the page colors in Sonoran CAD: ![Sonoran CAD's custom page color options](https://docs-assets.sonoransoftware.com/sha256/1b/1ba075f5ed66b7ac86368a9655fd374945f586082ed9e3af86e9def4260ff6b1.png) | Field | Description | | - | - | | Login Page Background | This is the background color of the page on your [custom login page](/cad/tutorials/customization/custom-login-page). | | Login Box Background | This is the background color of the login box on your [custom login page](/cad/tutorials/customization/custom-login-page). | | Menu Page Background | This is the background color of the community menu page. | | Menu Box Background | This is the background color of the menu box in your community menu page. | # Custom Search Types Source: https://docs.sonoransoftware.com/cad/tutorials/customization/custom-search-types Create lookup types for your custom record fields. Search by any custom record field in your community! ## Custom Lookup Types With Sonoran CAD’s custom records, communities can define custom lookup types that enable users to search records using tailored criteria. Example: Vehicle Search — locate a registration by attributes such as make, model, color, etc. ![](https://docs-assets.sonoransoftware.com/sha256/f7/f7a065b1cf1ff9214956ce927322e54956336375643b2f36e0fdd9eaf4a72003.png) ## Configuring Lookup Types Lookup Types can be customized under **Admin** > **Customization** > **Customization** > **Lookup Types** ### Basic Lookup Types Basic lookup types allow you to search based on a single record field. In this example, we will create a lookup type to look for a civilian character's SSN (Social Security Number). > [accordion] 1. Add Lookup Type > > Select **Add Lookup Type** at the bottom of the menu. > > Enter the lookup name, **SSN**. > > ![](https://docs-assets.sonoransoftware.com/sha256/44/448efc2d87b8e015b91228cf284bda261d18cc2cf3088d643c50109054c55756.png) > [accordion] 2. Select the Record Field > > Select the **Record Field** button. This will open a dialog to select a specific record field. Once selected, this field will be searchable when opening a record lookup. > > ![](https://docs-assets.sonoransoftware.com/sha256/ce/ce013947f0c6c6f2f795727744ac63df4f251773554515bfea2907376e7613fc.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/af/afbb962e4e849cb9d8b0140aa2f242549eefddf1ea4cdcc023a06aff07c58d4f.png) > [accordion] 3. Optional: Re-Index Record Fields > > Whenever a record is created or updated, any fields tied to custom lookup types are re-indexed in the database. These indices are what power custom lookup queries. > > To ensure records created before a custom lookup type existed are included, [those records must be re-indexed](/cad/tutorials/customization/custom-search-types#re-index-records). ### Advanced Lookup Types Advanced lookup types allow you to search based on multiple record field criteria at once. In this example, we will create a lookup type to look for a character based off of optional address, height, weight, skin color, etc. > [accordion] 1. Add Lookup Type > > Select **Add Lookup Type** at the bottom of the menu. > > Enter the lookup name, **Character**. > > Toggle the mode to **Advanced**. > > ![](https://docs-assets.sonoransoftware.com/sha256/e9/e9543869d92f28f05e565ecc4ab96938b136567c86794cd31888cd961ab61f1a.png) > [accordion] 2. Select the Record Fields > > Advanced lookup types work the same as basic lookup types, but allow for more than one criteria. > > * Select the **Add Field** button. > * Enter a **Field Label** (Address). > * Select the **Record Field**. This will open a dialog to select a specific record field. > > ![](https://docs-assets.sonoransoftware.com/sha256/c6/c6d471ed2ea4cbbe39f2b91795e2e0d7b6843d5f356748cb52d92d08968e42bd.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/05/05df7d2dd9888b026bfc0e8e39cc0baf0a1d0eca26834ee5891c3ebc8029d8bb.png) > > Repeat the steps above to add as many search fields as desired. > [accordion] 4. Additional Field Options > > **Requirement** > > Toggle **Requirement** from **Optional** to **Required** to force users in the lookup window to enter data into this field prior to running a lookup. > > **Width** > > The **Width** determines how wide the search field is in the lookup window. For custom search types with several search fields, this can be used to condense the UI. > > Width values range from 1-12, with 12 being full-width. > > Select the **Preview** button at the top of the section to see the layout of your custom lookup type. Fields can be reordered via drag-and-drop. > > ![](https://docs-assets.sonoransoftware.com/sha256/c6/c61a57648fd3014777b3e67786a074c2dc8802671640ef85b23f064f9a3d3064.png) > > **Range Search** > > Text fields with a mask restricting input to numbers only (`#` symbol) will display the option to enable a range input. This allows users to search based on minimum and maximum number values. > > Ex: Search by minimum and/or maximum age. > > **Placeholder** > > Placeholder text will be displayed inside the lookup field when empty. > > **Mask** > > Custom text input search fields can have a mask applied to enforce a specific format of numbers, symbols, letters, etc. > [accordion] 3. Optional: Re-Index Record Fields > > Whenever a record is created or updated, any fields tied to custom lookup types are re-indexed in the database. These indices are what power custom lookup queries. > > To ensure records created before a custom lookup type existed are included, [those records must be re-indexed](/cad/tutorials/customization/custom-search-types#re-index-records). ## Re-Index Records Whenever a record is created or updated, any fields tied to custom lookup types are re-indexed in the database. These indices are what power custom lookup queries. To re-index all existing records, select **Re-Index All Records** at the top to start this process. Depending on the number of custom records in your community, this may take some time. **Record re-indexing can only be performed once per 12-hours.** ![](https://docs-assets.sonoransoftware.com/sha256/de/de8f5f2fd826dd2c9fd1161adcfdef718af6231e5678968d05429f61a2d6881b.png) ## Lookups Across Multiple Record Types When a custom lookup type is configured with a linked field, the system uses the **Field Mapping ID** to determine which database fields to query. The **Field Mapping ID** defined in the lookup type is shown in the **Record Field** selector. Any [custom record type](/cad/tutorials/customization/creating-custom-record-and-report-types) containing a field with the same **Field Mapping ID** will be included in the search. ![](https://docs-assets.sonoransoftware.com/sha256/8f/8fad92c7f913cd41730c38d9cfd43dbc4a8369b80192d466cdf14834b627538b.png) ![](https://docs-assets.sonoransoftware.com/sha256/2d/2d9ce6910cc4c1ead1a09e51d51d4a8e22545e2666aa951c23bbf2c817810d52.png) ## Database Sync Configuration > [accordion] Database Sync Configuration > > If the search field is provided by your in-game database with [database sync](/cad/integration-plugins/database-sync-and-merge), this custom record column will be display in your database sync configuration for any character, license, or vehicle registration. > > This will then allow you to search characters, licenses, or vehicle registrations from your in-game database based on this custom column value. > > ![Sonoran CAD - Database Sync and Custom Searches](https://docs-assets.sonoransoftware.com/sha256/f0/f04c9f49c4f1ff123bd610d0be2d8e4aa2b7ab0b4ab828dea7c7d061ecad2929.png) # Customizing Your Layout Source: https://docs.sonoransoftware.com/cad/tutorials/customization/customizing-your-layout Sonoran CAD allows for fully customizable layouts to improve efficiency in your workflows. ## Getting Started > [!WARNING] > > By default, "[Classic Layout](/cad/tutorials/customization/customizing-your-layout#enable-classic-mode)" is enabled in the customization menu. > > To customize your dispatch/unit panel layout, you will need to [disable this](/cad/tutorials/customization/customizing-your-layout#8-classic-layout). ![](https://docs-assets.sonoransoftware.com/sha256/56/56c0cd3a0c469913b4eb44f5d03bf39e2ef324d42f03b5c531c0c84ec71dae4d.png) ### Context Menu Options You can right click on any panel and to reveal multiple menu options. 1. [Lock/Unlock Window](/cad/tutorials/customization/customizing-your-layout#4-locking-unlocking): This locks and saves the window's position into place. 2. [Quick Resize](/cad/tutorials/customization/customizing-your-layout#2-quick-resize): This opens the quick resize tools for the window. 3. [Change Desktop](/cad/tutorials/customization/customizing-your-layout#multi-desktop): Move the window to a different desktop. 4. Bring to Top: This brings the window in front of any other open windows. 5. Minimize: This minimizes the window to a tab at the top of your screen. 6. Close: This closes the window. ![](https://docs-assets.sonoransoftware.com/sha256/33/3341830c308b5ec508e2fa252941c238f3337062efbcbf06390d44161887d7aa.png) ### Quick Resize Windows can be resized and positioned in multiple ways: You can select one of the quick positions to move the window to one of the 9 quadrants on your screen. Or, toggle "Show Advanced" to specify the window's dimensions and positions down to the pixel. Additionally, you can hover over the top edges of the window to click and drag the size. ![Sonoran CAD - Quick Resize](https://docs-assets.sonoransoftware.com/sha256/5e/5e68f81cbbbe939afcbfa3091178e086df9ef113d6227cdd285d004bc1fd3938.png) ### Dragging to Position Popout windows like a lookup, 10-code sheet, etc. can all be easily dragged and resized using the top header in addition to the quick resize tools. Popout windows with in quick resize enabled or unlocked required windows (dispatch call editor, etc.) can be dragged simply by clicking and dragging anywhere on the window. ### Locking/Unlocking When a window is locked into place it can no longer be moved. Additionally, the size and positioning is saved locally to your device and will persist after a refresh or relog. You can lock or unlock the window by right clicking on the window. ### Taskbar #### Search Box The task bar can be opened with a configurable [hotkey](/cad/tutorials/other-features/configurable-hotkeys) or with our [Streamdeck](/cad/integration-plugins/stream-deck-integration) integration. When opened, a search bar will be automatically focused on all non-mobile devices.‌ Here, you can search to quickly filter options. When the results have been filtered down to a single window, the search label will turn green indicating the window shortcut is available. Simply press `ENTER` to open the window. ![Sonoran CAD - Taskbar Filter](https://docs-assets.sonoransoftware.com/sha256/0e/0e3f41a0663896e643f018c68652ad853cf5caf46a3bb525f52f5fdce6df12a4.png) ## Multi-Desktop Add additional desktops for more window space. Access the desktop menu in the right of the taskbar. Quickly swap between desktops using [hotkeys](/cad/tutorials/other-features/configurable-hotkeys). ![](https://docs-assets.sonoransoftware.com/sha256/ab/ab61ddec2fbbc73f4822216b09aad84abfa79bfd5b48f96b8e38cb80a495e124.png) ## Customization Menu Access the customization menu from the taskbar, or from the start menu. ![](https://docs-assets.sonoransoftware.com/sha256/ee/ee5f3e92561d21ce666fd305c2352689592b616ddd9195351be096157775a627.png) ![](https://docs-assets.sonoransoftware.com/sha256/3a/3a75dca07ec53e446c1acff5c4c90bd5a1366ec47adf487c8774b73ddbc54c64.png) ![](https://docs-assets.sonoransoftware.com/sha256/48/489de71067484b1bae31355e50faddffb2a49c70f895bc5e6493fc3c7ccba511.png) ### Reset Layouts If something goes wrong or you just want to start fresh, you can reset your saved layouts in the layout customization menu. Simply right click on the empty area in the taskbar, or navigate to Start > System > Customization #### Positioning The taskbar is a desktop style action bar that will contain the "Start Menu" (Sonoran CAD logo) and your active/pinned tabs. The taskbar can be positioned on the top, bottom, left, or right of your screen. ### Tab System Sonoran CAD's advanced tab system allows for efficient window management and quickly accessing new programs. ![](https://docs-assets.sonoransoftware.com/sha256/05/05313cc050f6757e6a7c13aa297c1bce163ab9ffe2634c54bc004ea3ba017c6a.gif) **Drag-and-Drop:** Tabs can be dragged and dropped into new positions for organization. Pinned tabs will save their ordering past a refresh. **Duplicate Windows:** When more than one window of the same type is minimized, the tab will show the number of minimized tabs in the top right. Clicking on a tab with more than one window minimized will display a menu allowing you to select a specific tab or open an entirely new one. **Pinned Tabs:** Tabs can be pinned to the taskbar by right-clicking and selecting "Pin to taskbar" on the context menu. Pinned tabs will save their ordering past a page refresh. Pinned tabs with no actively minimized windows will be displayed as a lighter grey. Clicking on a pinned tab with no actively minimized windows will open a new window of that type. **Icon and Label:** Tabs can be set to display as an icon, text, or both. This is toggleable in the customization menu.\ \&#xNAN;*Note: Text will only be displayed if the taskbar is in the top or bottom screen position.* ### Classic Layout For some users, modifying the positions of dispatching panels may be too complicated. You can easily toggle on the "Classic Layout" to have the call windows automatically placed and responsive. Don't worry, popout windows can still be moved around and locked into place as normal. #### Change Taskbar and Button Position(s) Don't forget, you can easily [move the taskbar to the top or sides of the screen](/cad/tutorials/customization/customizing-your-layout#6-taskbar), [change what buttons appear](/cad/tutorials/customization/customizing-your-layout#7-tab-system), and [change the order of the buttons](/cad/tutorials/customization/customizing-your-layout#7-tab-system)! ### Theme Customization Customize your CAD theme colors, desktop background, and more! Use the import and export buttons to share themes with other users. ![](https://docs-assets.sonoransoftware.com/sha256/6e/6e19b945a3c893caefbf151f3ebee2e2b1b6f53ac4f54f358c48e817a12f7e1d.png) ### Saving Themes Once you've customized your theme, press the save icon, enter a name, and your theme will be saved. Saved themes can be selected to switch between. ![](https://docs-assets.sonoransoftware.com/sha256/a9/a9411f93b35c25cbd7a8303bfc8574dbc0689f807e029638777d9726640df539.png) ### Import/Export Themes Press **Export** to export the currently selected theme to a JSON file. Or, right-click the **Export** button to export all of your saved themes to a JSON file. Press **Import** to select a JSON file with one or more saved themes. # Geographical Settings Source: https://docs.sonoransoftware.com/cad/tutorials/customization/geographical-settings For communities outside of the US, Sonoran CAD allows you to change your CAD's geographical settings! ## Geographical Settings Sonoran CAD offers additional phrasing customization for any country or locality. Under **Admin** > **Customization** > **Geographical Settings** > communities can customize additional phrasing, currency symbols, and more. ![](https://docs-assets.sonoransoftware.com/sha256/85/853a87dbb91c9d14a4ee2c5616b9c925ec26408a01274735ab25d0a81dbd71fa.png) # Penal Codes Source: https://docs.sonoransoftware.com/cad/tutorials/customization/penal-codes Sonoran CAD allows you to customize your community's penal codes, charge type names, bond type names, and more! ## What are penal codes? > [accordion] Penal Codes Explained > > Penal codes can easily be referenced and cited in records/reports as charges. > > ![Sonoran CAD - Penal Code Reference Window](https://docs-assets.sonoransoftware.com/sha256/87/8727dc7f03faca40e7c901242d9b79a6b1721980c228b78656ac2686117caafe.png) > > ![Sonoran CAD - Charges Section](https://docs-assets.sonoransoftware.com/sha256/13/13d18ac67000708209ca0aa5c185c80f37ef7cdf8a2fedc06a93a346e79c324f.png) > > ### Charge Types > > You can create your own "Charge Type" options for penal codes. If your country does not have "felonies" you can edit or remove this option. > > You can also use the "Auto Sort" feature to quickly format the order of these charge types. > > Be sure to hit "Save" before exiting the page. > > ![Sonoran CAD - Custom Charge Types](https://docs-assets.sonoransoftware.com/sha256/3c/3c42259d58389751a99e0c4e73dd6a9803f934d41c0143c00f0bf2111740403a.png) > > ### Bond Types > > You can create your own "Bond'/Bail Type" options for penal codes. Again, if your country does not use these, you can edit or remove them as needed. > > You can also use the "Auto Sort" feature to quickly format the order of these charge types. > > ![Sonoran CAD - Custom Bond & Bail Types](https://docs-assets.sonoransoftware.com/sha256/84/849578b263a08ec03db1783da5282780a5d005b52c0639e5196831301faa7b5c.png) > > ### Penal Codes > > Adding, editing, or removing a penal code is easy. Simply click on the existing code to edit it, or press "New Penal Code" to create a new one. > > ![Sonoran CAD - Penal Code Management](https://docs-assets.sonoransoftware.com/sha256/cf/cf3627f57020c750f081e4c336e6789ed3ba16608edfd0f69a065277d4165774.png) > > ![Sonoran CAD - Penal Code Editor](https://docs-assets.sonoransoftware.com/sha256/c3/c3ca9e4b86785d9f309a49b7d66c6a91a739b8e89c99eaf3773e2403dd08f88f.png) > > ### My locality doesn't call them "Penal Codes" > > Sonoran CAD allows you to change the naming of "Penal Codes" to anything else you'd like.\ > Learn more about our [geographical customization](/cad/tutorials/customization/geographical-settings). ## Import from Premade Spreadsheet (CSV) We've compiled realistic, roleplay-focused penal code spreadsheets for all 50 US states and several popular international jurisdictions. Select a direct download below, then [import the CSV into the CAD](/cad/tutorials/customization/penal-codes#id-4.-import-the-csv-file). > [accordion] United States \u2014 all 50 states > > | State | Premade CSV | > | - | - | > | Alabama | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_AL.csv) | > | Alaska | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_AK.csv) | > | Arizona | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_AZ.csv) | > | Arkansas | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_AR.csv) | > | California | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_CA.csv) | > | Colorado | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_CO.csv) | > | Connecticut | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_CT.csv) | > | Delaware | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_DE.csv) | > | Florida | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_FL.csv) | > | Georgia | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_GA.csv) | > | Hawaii | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_HI.csv) | > | Idaho | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_ID.csv) | > | Illinois | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_IL.csv) | > | Indiana | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_IN.csv) | > | Iowa | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_IA.csv) | > | Kansas | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_KS.csv) | > | Kentucky | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_KY.csv) | > | Louisiana | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_LA.csv) | > | Maine | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_ME.csv) | > | Maryland | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MD.csv) | > | Massachusetts | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MA.csv) | > | Michigan | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MI.csv) | > | Minnesota | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MN.csv) | > | Mississippi | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MS.csv) | > | Missouri | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MO.csv) | > | Montana | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_MT.csv) | > | Nebraska | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NE.csv) | > | Nevada | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NV.csv) | > | New Hampshire | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NH.csv) | > | New Jersey | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NJ.csv) | > | New Mexico | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NM.csv) | > | New York | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NY.csv) | > | North Carolina | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_NC.csv) | > | North Dakota | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_ND.csv) | > | Ohio | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_OH.csv) | > | Oklahoma | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_OK.csv) | > | Oregon | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_OR.csv) | > | Pennsylvania | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_PA.csv) | > | Rhode Island | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_RI.csv) | > | South Carolina | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_SC.csv) | > | South Dakota | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_SD.csv) | > | Tennessee | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_TN.csv) | > | Texas | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_TX.csv) | > | Utah | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_UT.csv) | > | Vermont | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_VT.csv) | > | Virginia | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_VA.csv) | > | Washington | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_WA.csv) | > | West Virginia | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_WV.csv) | > | Wisconsin | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_WI.csv) | > | Wyoming | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/US_WY.csv) | > [accordion] International jurisdictions > > > [!WARNING] > > > > Australia and the United Kingdom do not have one uniform nationwide penal code. The premade Australian file is for **New South Wales**, and the UK file is for **England and Wales**. > > > > International files use local charge classifications and a `Court Determined` bail type. Review your [Charge Types](/cad/tutorials/customization/penal-codes#id-1.-charge-types) and [Bond Types](/cad/tutorials/customization/penal-codes#id-2.-bond-types) after importing. > > | Jurisdiction | Premade CSV | > | - | - | > | Canada | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/CA.csv) | > | England and Wales | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/GB_EAW.csv) | > | New South Wales, Australia | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/AU_NSW.csv) | > | New Zealand | [Download CSV](https://github.com/Sonoran-Software/CAD-Penal-Codes/raw/refs/heads/master/NZ.csv) | ## Import from Customized Spreadsheet (CSV) > [accordion] Custom Spreadsheet Import > > Sonoran CAD allows you to easily import your penal codes from a spreadsheet (.CSV) file. > > > [!WARNING] > > > > **Spreadsheet (CSV) importing is only supported directly from Google sheets.** > > > > Support will not be provided to users modifying their spreadsheets with Excel, or any other program. The official Google sheet includes specific safety checks preventing invalid formats, blank spaces, etc. > > ### Copy the Google Sheet > > Navigate to our [official penal code Google sheet](https://docs.google.com/spreadsheets/d/1Hcm0gHPq8nZx8aPetDRiQXgeAoQMz3CYk2ouwyabmOc/copy) and make a copy. Using a copy of our official sheet ensures your penal codes are formatted correctly. > > **You may ONLY use the Google sheet directly. Editing this via Excel or any other program is NOT supported.** > > ![Penal Codes - Copy Sheet](https://docs-assets.sonoransoftware.com/sha256/94/943c9ab3e5a758c5e36c5c6255e71eb109be8621f54bd06a25913a4dd7f02d2a.png) > > ### Add Your Penal Codes > > Now that you have copied this sheet into your Google Drive, you can add new rows and format your penal codes. > > > [!WARNING] > > > > **Do NOT modify the very first row.** These names must remain the same to properly format the penal code structure. > > > > Additionally, the `bondAmount` column must be kept as a number.\ > > All other columns must be formatted as text. > > ![](https://docs-assets.sonoransoftware.com/sha256/d7/d7d0d802061d40fa3ade5535b3116911237769abfe8f0ef83c607e066f1350b7.png) > > ### Download the CSV > > In Google Sheets, navigate to File > Download > Comma Separated Values (.csv) to download the file. > > ![Google Sheets - Download CSV](https://docs-assets.sonoransoftware.com/sha256/31/3130cce0e14d8cfa98ead8132114038a0ef75b5a8e175284a68c24636559f4a2.png) > > ### Import the CSV File > > In Sonoran CAD, navigate to Admin > Customization > Penal Codes > > In the penal codes section, select the "Import" button.\ > Then, select "CSV" as the import type and select your downloaded CSV file. > > ![Sonoran CAD - Import Data](https://docs-assets.sonoransoftware.com/sha256/58/58d02097399267682ee7de0b960955ac3b5105fd2f9ac262180c87c7ce7e6f17.png) > > ![File Selector - Select File](https://docs-assets.sonoransoftware.com/sha256/66/660f86798dc59b2cc945d8a9c5610a5a7e37567d5bf32071a3d57c0c673096e0.png) > > After selecting the CSV file, your penal codes will be imported into the CAD and saved automatically. > [accordion] Troubleshooting > > Having issues importing your CSV? [Be sure you are using and editing our Google Sheet with the Google Sheets program only](/cad/tutorials/customization/penal-codes#1-copy-the-google-sheet). > > Our Google sheet includes specific error checking and validation to handle common mistakes.\ > **Support is not provided if you are using Excel, or any other program.** ## Import from JSON > [accordion] JSON Import > > You can also build and format your penal codes directly into JSON. These JSON formatted penal codes can be sent via our [API endpoint](/cad/api-integration/api-endpoints-v2/general/configuration/set-penal-codes), or pasted directly into the UI for a more user-friendly experience. > > ### Format the JSON Structure > > The JSON structure is an object array. Be sure to strictly follow the format. All keys are strings, with the exception of `bondAmount` being a number. > > ```javascript theme={null} > [ > { > "code": "(2)06", > "type": "Felony", > "title": "Armed Robbery", > "bondType": "Federal Bail Bond", > "jailTime": "5-10 Years", > "bondAmount": 20000 > }, > { > "code": "(2)07", > "type": "Felony", > "title": "Murder", > "bondType": "Federal Bail Bond", > "jailTime": "5-50 Years", > "bondAmount": 100000 > } > ] > ``` > > ### Import the JSON Structure > > In Sonoran CAD, navigate to Admin > Customization > Penal Codes > > In the penal codes section, select the "Import" button.\ > Then, select "JSON" and paste the JSON object array of penal codes. > > ![Sonoran CAD - Import Data](https://docs-assets.sonoransoftware.com/sha256/58/58d02097399267682ee7de0b960955ac3b5105fd2f9ac262180c87c7ce7e6f17.png) > > ![Sonoran CAD - Paste JSON Content](https://docs-assets.sonoransoftware.com/sha256/59/59dcbe002e2d1ea973708e92087908d654852704c2c6d5860946aaa559cb1de2.png) > > After pasting the JSON content, your penal codes will be imported into the CAD and saved automatically. # Quick Links Source: https://docs.sonoransoftware.com/cad/tutorials/customization/quick-links Sonoran CAD allows you to add and customize quick links for all emergency services to view. > [!WARNING] > > Community customization is not included with the free version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ### Adding Quick Links In the admin customization menu, expand the Quick Links section: #### Add, edit and remove quick links by specifying the label, link, and color code. ![Sonoran CAD's quick link customization panel](https://docs-assets.sonoransoftware.com/sha256/9e/9efecafee324cb3d0b5f55ae8c71a9729eb6ed77e8d242dcf2c4e7fbdb3a1326.png) #### Be sure to press SAVE ![Save Quick Links](https://docs-assets.sonoransoftware.com/sha256/e4/e404b0ab40115970b1037ed1a6a52f403fc999f9f90601a751a95c37fd4f6c2a.png) ### Viewing Quick Links Quick links can be found in the taskbar under Documentation > Quick Links Or via the taskbar search and [pinning](/cad/tutorials/customization/customizing-your-layout#7.-tab-system) system. ![](https://docs-assets.sonoransoftware.com/sha256/ed/ed65d645facd8c892eef532630e7125a3d1aeb09eb4091faa4f590e57a113c6f.png) *Sonoran CAD - Quick Links Page* # Record Automations Source: https://docs.sonoransoftware.com/cad/tutorials/customization/record-automations Automatically update fields when a record is created or saved. Record automations apply a field change when a saved record meets your conditions. For example, mark a high-priority incident report for review, change a license's custom status when its points exceed a limit, or stamp a review date when a checklist is complete. Open **Administration > Customization > Automations**. Your account needs the **Customize community** permission. These rules are separate from [dispatch automations](/cad/tutorials/dispatching/automations), which control unit statuses and timers. ## Create an automation 1. Select **Add automation**, enter a descriptive name, and leave **Enabled** on. 2. Under **When**, select the record template. You can type to filter the template and field dropdowns. 3. Under **If**, choose a field, comparison, and accepted value. Use **Add condition** for additional checks. **All conditions** requires every check to match; **Any condition** requires at least one. A rule supports 1–20 conditions in one group. 4. Under **Then**, choose the field to update, the action, and any required value. 5. Select **Save**. Create or edit a test record, save it, then reopen it to confirm the result. ![Record automation that sends high-priority incident reports for review](https://docs-assets.sonoransoftware.com/sha256/33/33cd22282636e2db4b7e564baeb2078011b46a686405ca13e0cf2cdeff2b713e.png) In this example, saving an Incident Report with **Priority = High** changes **Review status** to **Supervisor review**. Both choices already exist in the template. A custom license status such as `SUSPENDED` likewise needs to be an option in a custom select field; built-in status fields keep their predefined statuses. ### Example: Suspend a License at Eight Points Use a license template with a **Points** field and a **Status** dropdown containing **Valid**, **Suspended**, and **Expired**. * **When:** License. * **If:** Points is **At least** `8`. * **Then:** Set Status to **Suspended**. ## Let Officers Update License Points Allow officers to edit the points on another person's license so their changes can trigger the automation. These steps require the [selected-field editing model](/cad/tutorials/getting-started/permissions#record-editing-permissions), included in CAD 3.44.1: 1. Open **Administration > Customization > Custom Records** and select the license template. 2. Click **Points** in the preview and enable **Allow limited editing** in the field settings. Leave **Read only** off. 3. Keep **Allow limited editing** off for fields officers should not change, such as the license holder's name. Select **Save**. 4. In [account permissions](/cad/tutorials/getting-started/permissions), give officers **Police page** access and **View** and **Edit selected fields on others' records** for that license template. Remove **Edit any** from all permission sources for roles that should only edit selected fields. If Points is marked **Supervisor only**, they also need **Supervisor fields** permission. Officers can now look up a civilian's license, update **Points**, and save. With the example automation enabled, saving eight or more points sets **Status** to **Suspended**. The Status field only needs **Allow limited editing** enabled if officers should also change it manually. For more field settings, see [Editing Other Users' Records](/cad/tutorials/customization/creating-custom-record-and-report-types#editing-other-users-records). ## Available Fields | Field | Conditions | Actions | | - | - | - | | Text, text area, and number | Text equality/inequality, numeric comparisons, empty/not empty | Set a value; clear an optional field | | Select and built-in status | Is one of / is not one of the selected values; empty/not empty | Set an existing option; clear an optional select field | | Checkboxes | Contains any, all, or none of the selected choices; empty/not empty | Replace, add, or remove selections; clear an optional field | | Date and time | Equals, does not equal, before/after, on or before/after, empty/not empty | Set a date/time, use **Current community date/time**, or clear an optional field | | Image | Empty/not empty | Set an HTTP(S) image URL; clear an optional field | Text and select comparisons ignore letter case. Numeric comparisons require a plain number without commas or exponent notation. A blank, missing, or malformed value does not pass a numeric comparison. Use explicit **Is empty** checks for empty values; a missing field is not considered an empty field. **Contains none (not empty)** requires at least one existing checkbox selection. ![Checkbox conditions with a current community date action](https://docs-assets.sonoransoftware.com/sha256/0c/0cddcbf9e2c1fa68fb553dd32da8c4af59738b7de9e1a02b62cded7d9c8abbf9.png) This example stamps **Review date** when the record is saved with both **Evidence reviewed** and **Supervisor notified** checked. Current date/time uses the [community timezone](/cad/tutorials/customization/community-branding-and-info), or UTC when unset. If those conditions still match on a later save, the date is stamped again. Time passing by itself does not run an automation. ## Field restrictions Conditions and actions use supported fields in non-repeating custom sections. Generated identifiers, random fields, address fields, unit-information fields, labels, and fields without a unique field UID are unavailable. Administrator-created actions can update **Read only** and **Supervisor only** fields. Those settings still restrict manual editing. Actual database-synced values and unique fields cannot be action targets; editable local overlay fields on merged records can be updated when the merged record is saved. A native field's old database-mapping flag alone does not exclude it. Required fields cannot be cleared. Removing the final selection from a required checkbox field prevents the save from applying the automation changes. ## How Rules Behave * Rules run when native records or civilians are created or edited, including API saves, and when editable database-merge overlays are saved. * Each rule changes one field on the record being saved. Conditions use the submitted values; one automation's action does not trigger another automation. * A matching rule applies its action on every save. If its conditions do not match, it leaves the field unchanged. There is no automatic restoration to an earlier value. * Saving, disabling, or deleting a rule does not update existing records retroactively or undo previous changes. * External database changes, direct SQL updates, template maintenance, and elapsed time are not triggers. Rules do not schedule jobs, total values across records, or perform external actions. ## Change or Disable a Rule Use a rule's **Enabled/Disabled** button to pause it, the pencil to edit it, or the trash button to delete it. A community supports up to 100 rules. Only one enabled rule may update a particular field on a particular template; edit or disable the conflicting rule first. If you need to remove a template or change a field/option used by an enabled rule, update or disable that rule first. Labels can change because rules identify fields by UID. If another administrator has changed a rule while your editor is open, close the editor and refresh before trying again. If a field is unavailable, check its type, section, UID, and target restrictions above. If the panel reports that database setup is required, contact Sonoran support; this is CAD service setup, not a change to your game-server database. # Sharing Custom Records Source: https://docs.sonoransoftware.com/cad/tutorials/customization/sharing-custom-records Share record templates between communities. ## Export a Template 1. Open **Administration > Customization > Custom Records**. 2. Select the template in **Record template**. 3. Open **Template actions (...) > Export template** to download its JSON file. ![Template actions menu with Import and Export template](https://docs-assets.sonoransoftware.com/sha256/89/89c0473532c429801e0ad76f3a8ee757ae7dc855b7063b88597e97f1519afbb6.png) ## Import a Template 1. Open **Template actions (...) > Import**. 2. Select **JSON**. In the web app, choose the downloaded `.json` file. The current desktop app retains a paste prompt: open the file as text and paste its JSON there. 3. Review the imported template in the [visual record editor](/cad/tutorials/customization/creating-custom-record-and-report-types), make any changes, and select **Save**. Review [account permissions](/cad/tutorials/getting-started/permissions) for the imported template before members use it. Importing loads the template into the editor; review and save it before use. Configure [record automations](/cad/tutorials/customization/record-automations) separately. # Tone Board Source: https://docs.sonoransoftware.com/cad/tutorials/customization/tone-board Learn more about Sonoran CAD's customizable tone board! > [!NOTE] > > The tone board is limited based upon your community's version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ## Customizing Tones ### Access the Customization Menu In the admin page, navigate to `Customization` > `Customization` > `Tone Board` ![Sonoran CAD - Tone Board Customization](https://docs-assets.sonoransoftware.com/sha256/fe/fec782fb919755e691daaf21a50229ec0aec931ec59caa7c70c1a1b95e49e892.png) ### Uploading Tones #### Direct Upload You can upload .mp3, .wav, and .mp4 files directly to the CAD with the **plus** version. ![Sonoran CAD - Tone Uploader](https://docs-assets.sonoransoftware.com/sha256/93/931773692a86af5e21c468edb133347c9862ba190bbd2ab34c3abcc0bebcd8f2.png) #### External Upload If your community is not on the plus version or higher, you will need to link your tone from an external URL. You can upload to a website or file store of your choosing, but it must be a direct link ending in the file extension (.mp3, .mp4, .wav). You can even use something as easy as Discord. 1. Upload your tone file to Discord in any chat 2. Right click on the file name or download button 3. Select `Copy Link` 4. Paste the direct URL into Sonoran CAD ![Discord - Copy Direct File Link](https://docs-assets.sonoransoftware.com/sha256/23/2398ee0f11f6a63fe95f40d89142057af4453d5c7f2c01d3a0723f1bc29551c5.gif) Your direct link will look something like this:\ `https://cdn.discordapp.com/attachments/12345/abc123/signal_100.mp3` ### Customize the Available Tones Here, you can add new tones and specify the following: * Tone Label * Tone Link/URL (Direct uploading available based on your [version](/cad/pricing/faq)) * Tone Button Color (Hex) * Tone Button Icon #### Tone Icons Tone buttons support icons from several different web libraries. Clicking the search icon will open the [Font Awesome icon library](https://fontawesome.com/v5.15/icons) search. Here, you can search for an icon - click on it - and paste the icon name into the CAD. You can also use [material theme icons](https://fonts.google.com/icons). ![Font Awesome - Example Icon Name](https://docs-assets.sonoransoftware.com/sha256/74/74202ce4c1b6a983c1c21b4ceeaa6dff65342de83787d732fe9830264e5a5640.png) #### Save your Tones Don't forget to press save! ## Selecting the Tone "Play To" Groups The tone board can be set to play tones for specific identifiers, groups, agencies, departments, subdivisions, and dispatch calls. You can click on any one of these items and select "Tone Board" to add this group to the play target on the tone board. ![Sonoran CAD - Tone Board Targets](https://docs-assets.sonoransoftware.com/sha256/72/72115ba494b5898c21ee23eaf6775e60a7bbaab9ac5aca35dda04d2f4584b9fb.gif) ## Playing Tones as Dispatch ### Opening the Tone Board Window The tone board can be opened by users in dispatch or self-dispatch mode. From the start menu, this panel is located under `Dispatch` > `Tone Board` This window can also be opened via a [custom hotkey](/cad/tutorials/other-features/configurable-hotkeys), also supported with our [Streamdeck Integration](/cad/integration-plugins/stream-deck-integration). The window can also be minimized, and [pinned to the taskbar](/cad/tutorials/customization/customizing-your-layout#7-tab-system) on your screen for quick access. ### Tone Board Shortcuts The tone board is designed to be as efficient as possible. #### Search Filtering The top of the tone board includes a search box, allowing you to quickly filter tone options as you type.\ If you filter down the options to a single tone, the search label will turn green - allowing you to press `ENTER` to play the tone. The tone board is also designed to auto-focus this search box whenever it is opened, or the header is clicked. ![Sonoran CAD - Tone Board](https://docs-assets.sonoransoftware.com/sha256/64/6449b2c1261075bd85aa21dc3a7e4748b56d1f59b9c683bb30a3bca6f7e9edf1.png) #### Hotkey Auto-Window [Global hotkeys](/cad/tutorials/other-features/configurable-hotkeys) allow you to open the tone board in a more advanced way. Opening the tone board with your [keyboard ](/cad/tutorials/other-features/configurable-hotkeys)or [Streamdeck ](/cad/integration-plugins/stream-deck-integration)shortcut will first check for any existing tone board window opened or minimized. If one is found, that existing window will be opened and focused to the search bar. Otherwise, a new tone board window will be opened with the search box focused. #### Manual Tone Select Instead of using the search box filtering, users can also manually click the tone board button to play the audio. ### Tone Board Repeat Tones can be repeated at a specific interval. When sending a new tone, toggle `repeat` on and customize the `seconds` and `count` values. When the tone is sent, the repeat timer and counter will visualize any actively repeating tones. ![](https://docs-assets.sonoransoftware.com/sha256/5d/5dff10f659689b948a5cdf9328665541dfc0bd50f17536b79df99af159407e2b.png) ### Stacked Tones Toggle the **Stack** icon on and select multiple tones to be played in order. Drag-and-drop the tones to re-order. Press the **Play** button to play the stack. ![](https://docs-assets.sonoransoftware.com/sha256/2c/2c1e75885aea9acc91ba5093dd0081e3babedfa8a7eead21efce81a97984d309.png) ### Text-to-Speech The tone board can also play text-to-speech to users. Enter text into the **Text To Speech** box to send. Additionally, you can select the **Microphone** button to record your own voice and translate that to text before sending out the speech-to-text tone. ![](https://docs-assets.sonoransoftware.com/sha256/50/5051aee3b4df0dc8ea9f55f46832a4e9a002df540991b309b9cd605730211d7b.png) # Unit Status Codes Source: https://docs.sonoransoftware.com/cad/tutorials/customization/unit-status-codes Sonoran CAD allows you to customize your unit status code options! > [!NOTE] > > Community customization is not included with the free version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ### Unit Status Codes The admin customization info section allows you to customize your community's unit status codes: ![Customize your unit status codes](https://docs-assets.sonoransoftware.com/sha256/ef/ef3aa010f0146a6df340b3643239325053090f95c9c785f46c4d18a424cf9014.png) Once saved, your status options will be shown for emergency units: ![Configured unit status options are displayed in the top unit action bar](https://docs-assets.sonoransoftware.com/sha256/e1/e19fca11a2cd37c064873e8d37a9010f099184b9d763c705c6e817a1a20f4686.png) # User Account Restrictions Source: https://docs.sonoransoftware.com/cad/tutorials/customization/user-account-restrictions Sonoran CAD allows you to restrict how many characters a user can create! > [!NOTE] > > Community customization is not included with the free version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). ### User Account Restrictions ![](https://docs-assets.sonoransoftware.com/sha256/cc/cce0de87e202307e832b4d615866ce68c2d01452b71c760fc3485df5daa5370c.png) | Field | Description | | - | - | | Max Civilian Characters | This allows you to restrict the number of civilian characters a single user can register. | # Dispatching Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching Looking to get started dispatching with Sonoran CAD? See our guides below! # Automations Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/automations Automate key parts of your dispatching workflow. To update record fields based on saved values, see [Record Automations](/cad/tutorials/customization/record-automations) in Administration. This page covers dispatch unit statuses and timers. ## Dispatch Automations Menu The **Automations** menu is available to dispatchers in the call editor. ![](https://docs-assets.sonoransoftware.com/sha256/95/9565bf321da69279a51fe3c13fa091e96db4ce01d6e5c07a04d30d91896876eb.png) ### Call Attachment: Auto Status Automatically change the status of a unit when they're attached and detached to a call, or when their call is closed. ![](https://docs-assets.sonoransoftware.com/sha256/43/43fdf3d796d2558f448e0b2c3a8d41b76ba30637b9e2f87cdbfe37f828d23c1f.png) ### Unit Status: Timers Automatically start a countdown/up [timer](/cad/tutorials/dispatching/timers) when a unit status is changed. This can be helpful to quickly see how long a unit has been at a particular status, or to be notified once a unit status has been set for too long. ![](https://docs-assets.sonoransoftware.com/sha256/03/03a7fb0b2aa4f0dab64e79e934120ac63cd3c52c4f6e1824f603a7032201e85d.png) # Chat Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/chat Communicate with other units and send record attachments via chat. ## CAD Chat The Sonoran CAD chat system allows units to send text messages to eachother, or in groups. Messages can also contain links to custom records. ## Using CAD Chat ### Opening the Chat The **Chat** window can be found under the **Taskbar** > **Unit Management** > **Chat** Additionally, it can be found by searching for **Chat** in the taskbar search. ![](https://docs-assets.sonoransoftware.com/sha256/ee/eeddee4ecb968904c74cde5f8a87646c4c0bda925d2bd2f5e5338c6f475a888c.png) ### Creating a Chat Select the green **Plus** button to create a new chat. In the **Recipients** drop-down, type to filter for user options. Individual units can be selected, entire departments, specific dispatch calls, or even all online units. Once you enter a message and press **send** the chat room is created. ![](https://docs-assets.sonoransoftware.com/sha256/20/20ce338e2512d49a7ac3f5b1ce4123dddcbc985ed9f483a6ebfff105c30b9143.png) ### Attachments Just like dispatch call notes, chat messages can contain records to be quickly referenced and opened. On a record window, select the **copy** button at the top left. Then, in the chat window, select the blue **paste attachment** button. Once sent, units can click on the attachment to open the record. ![](https://docs-assets.sonoransoftware.com/sha256/ff/ff184b3c02e9a57c600ca843338e2f13dc6de1935fe50a0b5071801c4e0103a0.png) ![](https://docs-assets.sonoransoftware.com/sha256/bd/bd70c74daef9444217996aedcc978a268d4fb9d39dc7465129f460b2e6949441.png) ### Text-to-Speech Users can optionally toggle on text-to-speech, which will read out incoming messages. Text-to-speech voice can be customized in the **settings** panel. ![](https://docs-assets.sonoransoftware.com/sha256/07/07247abab1dd5b72cc31ecad2fd1abd3f5f8ec0555dbf7bd87156159eefc5f1e.png) ### Data Retention Currently, chat messages are temporary and stored locally on the client and are wiped on refresh. Messages are not stored or persisted in any database. # Command Line Interface (CLI) Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/command-line-interface-cli Sonoran CAD's CLI allows you to quickly create and close dispatch calls, attach, detach, add notes, change statuses, and more right from your keyboard! ## UI Overview The CLI allows you to more quickly run common dispatch actions without the need to move your mouse, click, or drag-and-drop. The CLI is optimized to make these actions as fast as possible. ### Accessing the CLI #### Via Hotkey The CLI can be brought up using a [global hotkey](/cad/tutorials/other-features/configurable-hotkeys). This will automatically open the CLI in a popup modal with the input field focused. ![](https://docs-assets.sonoransoftware.com/sha256/d7/d7f0e8b87104c398b096297fd458bdb147763284d46c029567e24bb12ea67b88.png) #### Via Window Tab You can also access add the CLI panel to your custom layout. ![](https://docs-assets.sonoransoftware.com/sha256/1a/1afa1a0a2a9428dcce1e3306b783068da19d47c958f90404eebb4e68db94f8ba.png) ### Utilizing the CLI The CLI uses custom commands and arguments to complete actions. For example, to create a new dispatch call: `NEW "TRAFFIC STOP" A-10 123 Example Description` `[Command] [Saved Call Type] [Unit] [Postal] [Description` Arguments are type-to-filter for items like units or [saved call types](/cad/tutorials/dispatching/creating-a-call#saved-call-types). Press **TAB** to auto-complete the argument. Press **Enter** to send the command. ### Customizing Commands Select the **Customize Commands** icon to configure custom commands and arguments. ![](https://docs-assets.sonoransoftware.com/sha256/7d/7dbc15d5abfeb79075aa08b7e8f7b2bc80031fae77caefd70b69092dd0a63f4b.png) ### Custom Shortcuts Users can also configure custom shortcuts. Shortcuts can be configured to enter custom CLI variables. > [card] [Shortcuts](/cad/tutorials/dispatching/shortcuts) # Creating a Call Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/creating-a-call This guide covers creating a new dispatch call in Sonoran CAD. ## Select a Call Layout > [accordion] Selecting a Dispatch Call Layout > > If your community has configured [custom dispatch layouts](/cad/tutorials/customization/custom-dispatch-call-formats), you can change between them in the top right icon. > > ![](https://docs-assets.sonoransoftware.com/sha256/97/97b3498d81758dbfcf0c222cf9e754aab47801da9d82e3493892152d189716bf.png) ## Creating a Call > [accordion] Add Available Units > > **Manually Add Unit** > > To add a unit to your call editor, click on an available unit or unit group, and select "Add to Call" > > ![Sonoran CAD - Add Unit to Call](https://docs-assets.sonoransoftware.com/sha256/27/27dfd9dde01619a84dd7d08caa50237affbe1a342a619b62dcfd85d78f5c930d.png) > > **Attach Nearest Units** > > When emergency calls are sent from in-game, they contain a coordinate location. Importing the emergency call from the table or live map will display an option to select and attach the closest units. > > Entering a postal code will work as a secondary option to find the nearest units. You must have the [postals submodule](/cad/integration-plugins/in-game-integration/available-plugins/postals) enabled. > > ![](https://docs-assets.sonoransoftware.com/sha256/00/00895ce96c50600192e84c23046834231c80b14588b90025e595fbcbbce5ff84.gif) > > *Dispatch Editor: Nearest Units* > > ![](https://docs-assets.sonoransoftware.com/sha256/17/17864a8b29fa0abd93b07aded6bdf73cc346ee1acc631a2e4c6b2568b46a0c01.gif) > > *Dispatch Editor: Nearest Postal Units* > > **Drag-and-Drop** > > Drag-and-drop is another fast way to add a unit to an existing call: > > ![Sonoran CAD - Attach Unit to Existing Call](https://docs-assets.sonoransoftware.com/sha256/33/3343711ecaf248db2fd4a8d24b2aaefac2aaee90bd5e8af9f53a83c633e42c49.gif) > > You can also easily detach units from an existing call, or drag a unit from one call to another: > > ![Sonoran CAD - Existing Call Detach and Switch](https://docs-assets.sonoransoftware.com/sha256/c8/c8af1d0f605698477f93f9bc01e1f1fb537920fad00fe3439a712af0e3e3f5f7.gif) > [accordion] Insert Call Information > > In the call editor, you can view attached units and fill out the call information.\ > Once completed, select "Create Call" to initiate the new dispatch call. > > ![Sonoran CAD - Unit Editor](https://docs-assets.sonoransoftware.com/sha256/20/20ba194368d8ab56ec01dad92b2070698a65aaa39efc0ed4fe5dce1ba1f5934a.png) ## Manage a Call > [accordion] Import Emergency Call > > Emergency calls can be imported directly to the call editor for faster transfer of information. Click on the call to select `Open In Call Editor` to import the call description, address, and more. > > ![](https://docs-assets.sonoransoftware.com/sha256/53/5386977778f26a594f80d19c176f44b1492cb4585a49ba58b4a70b0e365ce575.gif) > > *Sonoran CAD: Import Emergency Call* > [accordion] Merge Additional Emergency Call > > Often times civilians will continue to make additional emergency calls with updated information. At any time, you can merge these additional emergency calls into ongoing dispatch calls. Click on the emergency call to `Merge Emergency Call` to your dispatch call editor. > > This will append the latest emergency call information to the description and update any address, postal, etc. information. > > ![](https://docs-assets.sonoransoftware.com/sha256/95/956a39e4e9cee4bddb2c19d9fef94bda04dd09c2c8c29c48dcb533340a6cfaee.gif) > > *Sonoran CAD: Merge Emergency Call* > [accordion] Track, Update, and Manage the Call > > The new dispatch will be displayed in your "Active Calls" window.\ > You can select this call at anytime to preview, edit, or close.\ > You can also drag-and-drop the call ID to the call editor to open the call. > > ![Sonoran CAD - Active Calls](https://docs-assets.sonoransoftware.com/sha256/7f/7f68034e310016bcb9d0d7617ac014a3bf4bbadeab13f91f4254347991b10ce5.png) > [accordion] Call Notes > > Notes can be sent by units attached to the call. > > **Text Notes** > > Text based notes can be added in the note box and sent by pressing `enter` or `add note`. > > **Note Links** > > Record links for characters, arrest reports, etc. can also be sent in the dispatch call notes section. [Copy a record link](/cad/tutorials/records-management/searching-for-records#copy-record-links), then press the `Paste` button in the call notes section. > > ![](https://docs-assets.sonoransoftware.com/sha256/3e/3e331773cb2984d2a76726cda0a05312b32b3d65ff23dab640e7e1e950dfde5f.png) > > *Sonoran CAD - Dispatch Call Notes* > [accordion] Close the Call > > To close the active dispatch, click on the active call and press "Close Call". > > Or, you can select "Edit Call", change the status to "Closed", and press "Update Call". > > ![Sonoran CAD - Close Call](https://docs-assets.sonoransoftware.com/sha256/1f/1fc6b1e08788c1f661d0533208196803a1f95e5cd1f5fd15e9218ceb70652e89.png) ## Saved Call Types > [accordion] Create a Saved Call Type > > Saved call types allow dispatchers to quickly create commonly used calls. > > To add a new saved call type, simply fill the information out in your editor, and press the save button. The saved types are organized based off of the call's title. > > Saving a call with an identical title as another one will override it. > > ![Saved Dispatch Calls - Create](https://docs-assets.sonoransoftware.com/sha256/76/7602c8d2549b8d9855d415522faba9330482109409196ea2caac26da4d595c5f.png) > [accordion] Open a Saved Call Type > > To open a saved call type, simply select it from the dropdown at the top of the editor. The dropdown will also automatically filter as you type. > > ![Saved Dispatch Calls - Select](https://docs-assets.sonoransoftware.com/sha256/05/051afefe05ede9001473cf913181be0bca42f6e23659e22042d8cb5eb240d04a.png) > [accordion] Remove a Saved Call Type > > To remove a saved call type, simply select it from the dropdown and press the trash icon. > > ![Saved Dispatch Calls - Remove](https://docs-assets.sonoransoftware.com/sha256/95/95b4b274f65e8f8dd89651c783f1e10f766dfc627a079de4397ac968f81c7587.png) > [accordion] Import/Export Saved Call Types > > With a saved call type selected, the export button will allow you to save the current call type to a JSON file. Or, right-click the export button to export all of your saved call tyles to a JSON file. > > ![](https://docs-assets.sonoransoftware.com/sha256/9e/9e0031b12285043076baa40c6c8e953962ead6dcb9598ede317b2741e816ca47.png) > > To import saved call types, the import button will appear when no saved call is selected. Click the icon to import a JSON file with one or more saved call types. > > ![](https://docs-assets.sonoransoftware.com/sha256/c0/c07fd95865f3f556a4ee5116cb2e559750a670b916197df59087c8400b8e4bed.png) # Rapid IQ Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/rapid-iq Rapid IQ guides emergency call-takers through dynamic, protocol-driven medical intake flows, enabling faster triage, consistent decision-making, and accurate dispatching. ![](https://docs-assets.sonoransoftware.com/sha256/1c/1c58189b4ef6195858e72fa56ddd9002430f8dd68cf6cfa0c13a7164e8c739bb.png) ## What is Rapid IQ? **Rapid IQ** (Rapid Intake Questionnaire) is an emergency call intake system that helps dispatchers ask the right questions during medical calls designed after [standardized MPDS systems](https://en.wikipedia.org/wiki/Medical_Priority_Dispatch_System). It guides dispatchers step-by-step through a structured flow based on the caller’s answers, making sure important details aren’t missed. Rapid IQ combines these responses into the dispatch call description, giving the best possible information to responding units. ## Using Rapid IQ ### Opening Rapid IQ > [accordion] Via Call Editor > > Select the **Rapid IQ** button at the top of the call editor to open the window. > > ![](https://docs-assets.sonoransoftware.com/sha256/30/3078a6d381dac954108b1d0e1579352005a3b0684b657472b6cbbac8461d1768.png) > [accordion] Via Taskbar > > In the taskbar, use the search box or navigate to **Dispatch** > **Rapid IQ** to open the window. > > ![](https://docs-assets.sonoransoftware.com/sha256/99/99f2f93ce3e65dbeac7dc1471f648ad85eef02570edf6c31e49bbb8804691ca6.png) ### Navigating Flows > [accordion] Inputs > > Rapid IQ is designed for quick, seamless information inputs. > > **Text Inputs** > > * Inputs are automatically focused > * Pressing **Enter** navigates to the next question > * Custom addresses are type-to-filter > * If results are filtered to a single result, pressing **Enter** automatically selects it and navigates to the next question. Pressing **Enter** with more than one result left will select the top option. > > **Checkbox Inputs** > > * Type-to-filter search at the top is automatically focused > * If results are filtered to a single result, pressing **Enter** automatically selects it and navigates to the next question. Pressing **Enter** with more than one result left will select the top option. > * Selecting a checkbox navigates to the next question > > **Navigation** > > * Use the **Left** and **Right** arrow keys to navigate forward and backwards manually > > **Masks** > > * Flow inputs that use a mask (strict formatting for numbers, text, symbols, etc.) will automatically navigate to the next question once all text has been entered > [accordion] End Toggle Options > > Once all information has been entered, Rapid IQ offers different data display options. > > **Import to Call Editor** > > When toggled, all information will be automatically imported into the dispatch call editor and the window will be automatically closed (unless **Display Card** is enabled). > > This feature is automatically toggled on when opening Rapid IQ from the call editor. > > ![](https://docs-assets.sonoransoftware.com/sha256/31/310e713c5a5c438d885e13fc27b155681b823e2f774c085261cd9965a6f9fbde.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/09/09d26c7419aa999c9a471668f27faa047b7513a30f64537602d48f5764ece671.png) > > **Display Card** > > When toggled, all information will be displayed in a card of questions and answers. Users can also press the **Copy** button (top right) to copy and paste all questions and answers elsewhere. > > This feature is automatically toggled on when opening Rapid IQ from the taskbar. > > ![](https://docs-assets.sonoransoftware.com/sha256/99/995a59b4250b3329150b8b31425da1318fdf330cf8189ca260b39d520c345603.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/8d/8dfcb2315c525109a9f6bea720c19de79e1de757b23b05a0021558013dec496e.png) ## Customizing Flows The default Rapid IQ flow is complex and configured by real-world dispatchers and medical personnel. **With heavy knowledge**, the system can be customized for different localities and situations. [You can read more about standard MPDS systems here](https://en.wikipedia.org/wiki/Medical_Priority_Dispatch_System). #### Accessing the Editor The Rapid IQ configuration is accessible under **Admin** > **Customization** > **Customization** > **Rapid IQ** #### Default Path The **Default Path** section configures the initial questions asked in-order. These questions can be selected and reordered via drag-and-drop. ![](https://docs-assets.sonoransoftware.com/sha256/e9/e9aa600c0e38a7426f14190b7b0e765031f34c3121f310d8e9a7072884e73f6c.png) #### Questions Configure custom **Questions** to be asked in order to gain more information about the medical issue. Questions have specific input types like **Text**, **Number**, [**Address**](/cad/tutorials/customization/addresses-and-street-names), or **Choices**. **Text** and **Number** inputs can also have a **Mask** input. A **Mask** enforces a specific input format. Once a user has entered all numbers/letters into the input, it will automatically advance to the next question. Ex: `(###) ### - ####` forces a phone number format. > [accordion] Mask Options > > | Token | Description | > | - | - | > | # | Numeric | > | S | Letter A-Z | > | X | Alphanumeric | ![](https://docs-assets.sonoransoftware.com/sha256/df/df506c1c6113c142bcfac730e7da43c0c20032026036797f197f25c09e7fffb2.png) #### Codes Once all questions have been answered, Rapid IQ will display a code. The code is a short way to classify and triage the severity of the incident and to determine how best to respond. #### What a code means > [accordion] What a code means > > A Rapid IQ code is a triage label in this format: > > ``` > [Protocol Number][Priority Letter][Branch Number] > ``` > > Example: `31C3` > > * `31` = Unconscious / Fainting > * `C` = priority tier > * `3` = specific branch inside that protocol #### Protocol numbers > [accordion] Protocol Numbers > > 1. Abdominal Pain > 2. Allergies / Envenomations > 3. Animal Bites / Attacks > 4. Assault / Sexual Assault > 5. Back Pain > 6. Breathing Problems > 7. Burns / Explosion > 8. Carbon Monoxide / Inhalation / HazMat > 9. Cardiac / Respiratory Arrest / Death > 10. Chest Pain > 11. Choking > 12. Convulsions / Seizures > 13. Diabetic Problems > 14. Drowning / Diving / SCUBA > 15. Electrocution / Lightning > 16. Eye Problems / Injuries > 17. Falls > 18. Headache > 19. Heart Problems / AICD > 20. Heat / Cold Exposure > 21. Hemorrhage / Lacerations > 22. Inaccessible Incident / Entrapment > 23. Overdose / Poisoning > 24. Pregnancy / Childbirth / Miscarriage > 25. Psychiatric / Abnormal Behavior / Suicide Attempt > 26. Sick Person > 27. Penetrating Trauma > 28. Stroke / TIA > 29. Traffic / Transportation Incidents > 30. Traumatic Injuries > 31. Unconscious / Fainting > 32. Unknown Problems (Person Down) #### Priority Letters > [accordion] Priority Letters > > * E = highest severity / most urgent > * D = very high severity > * C = high severity > * B = moderate severity > * A = lower severity > * Ω = public assist / lowest-acuity pathway > * 000 = no final code (an error code) #### How the system picks a code > [accordion] Flow Code Selection > > 1. Ask default intake questions. > 2. Check flow rules in order (top to bottom). > 3. If a rule needs an unanswered question, ask that question next. > 4. When a full rule matches, return that rule’s code. > 5. Some rules use @ to auto-set/re-route (example: nature\@chestpain). #### Flows Flows combine everything above. Flows string a list of questions together and determine which questions should be asked next, based on response. Once a flow is completed, a code will be generated. #### Flow rule format `{question} -> condition is “answered” {question=value} -> equals {question>=number} -> numeric compare {question<=number} -> numeric compare {question@value} -> auto-set answer {cond1}.{cond2}.{cond3}->CODE` Example: `{nature=abdominalPain}.{fainting=true}.{age>=50}->1C1` ![](https://docs-assets.sonoransoftware.com/sha256/d3/d393139717f5bdac26ebaf50ae31965f0a1ca06a55d5729153130c828373e1e9.png) ### Import and Export Rapid IQ configurations can be imported and exported to save and share with other communities. Simply select the **Import** or **Export** button at the top to handle JSON files. ![](https://docs-assets.sonoransoftware.com/sha256/ef/ef60eece74f1788aecb08058ca7c269baef2774612f24a1ce84a8ae80a3a58a8.png) # Self Dispatch Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/self-dispatch Sonoran CAD allows units to create new calls, self-attach, and preview calls without the need for a dedicated dispatcher! > [!NOTE] > > Self Dispatch requires an additional user account permission! > > Users will need the "Self Dispatch" permission to enable this feature. View our guide on [granting account permissions](/cad/tutorials/getting-started/permissions) for more information. ### Enable Self-Dispatch In the top right of the call viewer, select "Self Dispatch" ![Sonoran CAD's "Self Dispatch" option](https://docs-assets.sonoransoftware.com/sha256/88/88caaa016a0644e9500d0cabf8f2fe55e3295ae89d3248a5ab75eb20bfd12cec.png) ### Add, Edit, or Attach With self dispatch enabled, regular units can now open additional windows to view dispatch calls, 911 calls, and active units. ![Sonoran CAD's "Self Dispatch" windows](https://docs-assets.sonoransoftware.com/sha256/7e/7e4accbd20360f8a08aa6cdb16c4ade4a18bd1f21410cd575547d7b50ffa6f10.png) # Shortcuts Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/shortcuts Record and automate flows with shortcuts! ## What are Shortcuts? Shortcuts allow you to record multiple button presses, menu selections, key presses, and replay them with a hotkey, taskbar click, or Stream Deck key. Ex: A **Plate** shortcut automatically opens a new lookup, selects the plate search type, and highlights the search box for entry. ## Creating a Shortcut ### Recording a Shortcut Select **Shortcuts** in the taskbar > **Record New Shortcut**. This will start recording all menu selections, button presses, and more. Select **Stop** at the top of your screen once you are finished recording the workflow. ![](https://docs-assets.sonoransoftware.com/sha256/d9/d933b3022af57b62f2f6b45a618f60d7c02fd0e44c2c6cd24a7c629915a58c6b.png) ### Customizing a Shortcut Once a shortcut has been recorded, edit the label, icon, optional l hotkey, and optional CLI command. Select **Add Step** to record an additional step, a keypress, or mark a textbox as a new CLI variable. ![](https://docs-assets.sonoransoftware.com/sha256/ed/ed7ddf78e66205dfec003bbaa490316c9d2ecc4ccdfc3b1828954d4d5f0b993a.png) ### Command Line Interface (CLI) Shortcuts also integrate with the [CLI](/cad/tutorials/dispatching/command-line-interface-cli). Enter a **CLI Command** name to add the shortcut to your CLI options. Additionally, select **Add Step** > **CLI Variable** > name the variable and select the step where the variable's CLI answer should be entered. ![](https://docs-assets.sonoransoftware.com/sha256/d2/d2c1fb0f63a6d727a986c39c2ea77b1f30dedd3bc39c951d3bdb7ed5930a359a.png) ![](https://docs-assets.sonoransoftware.com/sha256/e5/e5803d049990dcc7fbc1c4ae47ac9f49a9225b0b32c85318927f4ebc2c83c171.png) # Timers Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/timers Create custom timers to check in on pursuits, dispatch calls, units, and more! ## What are Dispatch Timers? Sonoran CAD allows users to create custom dispatch timers. Some example use cases of these timers are as follows: * Creating a 10 minute pursuit timer before authorizing a pit maneuver * Reminders to periodically check in on a unit * Reminders to check in on a specific dispatch call When a timer has completed, it will flash an icon next to any [attachments ](/cad/tutorials/dispatching/timers#timer-attachments)and play a [customizable tone](/cad/tutorials/customization/custom-audio-notifications). ## Creating a New Timer Dispatch timers can be created through multiple different shortcuts. ### Via the Timer Panel From the start menu: `Unit Management` > `Timers` Press `New` to create a new timer. ![Sonoran CAD - Timer Panel](https://docs-assets.sonoransoftware.com/sha256/d4/d4dfe38ab4b21704bd38af2e68bd76a0c6368ae28aba184cf7ac39a107d62c18.png) ### Drag-And-Drop to Tab If you have the timer [panel tab minimized or pinned](/cad/tutorials/customization/customizing-your-layout#7.-tab-system), you can drag a unit, group, or dispatch call right to the tab. ![Sonoran CAD - Drag Unit to Timer Tab](https://docs-assets.sonoransoftware.com/sha256/ab/ab0ad2d80f74f45f6710ccf2e516a27df81e29bf5b4df94ffbb0273369d70c74.gif) ### From the Context Menu Left click on a unit ID, group name, or dispatch call ID: `Timers` > `New Timer` ![Sonoran CAD - New Timer from Context Menu](https://docs-assets.sonoransoftware.com/sha256/a9/a9d198cc5dca2336ff08225c82bd90dfb6f899da479eb434df93edc18d5e5f48.gif) ## Editing a Timer ### Via Timer Panel The timer panel has options to start, pause, restart, and remove a timer. Additionally, you can expand the timer to change the name and duration. ![Sonoran CAD - Timer Panel](https://docs-assets.sonoransoftware.com/sha256/cf/cf0144418ac0a6849046c6aca85a9db79969d0d254b8e93758b9697c0bb8c385.png) ### Via the Context Menu When a unit, group, or call is [attached to a timer](/cad/tutorials/dispatching/timers#undefined) you can click on the timer icon. A timer menu will be displayed, allowing you to start, pause, restart, or clear the timer's attachment. ![Sonoran CAD - Timer Context Menu](https://docs-assets.sonoransoftware.com/sha256/65/65f710820994738df4e2c73be7c312ceff51b581bdea05cda3525dad1afd22a0.png) ## Timer Attachments You can attach a unit, group, or call to a timer. This will display a timer icon next to the attached unit or call. You can hover over this icon to view the remaining time, or click on it for the timer context menu. ### Via Drag-And-Drop In addition to dragging a unit, group, or dispatch call to a minimized tab you can also drag it to a timer in the panel. ![Sonoran CAD - Drag Unit to Timer Panel](https://docs-assets.sonoransoftware.com/sha256/f9/f9f6f4694edd65d2174e3b117baab6ae981e49976db79bee375fb0228e3fb8f7.gif) ### Via Context Menu Click on a unit, group, or dispatch call: `Timers` > `Select a Timer` ![Sonoran CAD - Attach to Timer from Context Menu](https://docs-assets.sonoransoftware.com/sha256/20/2048d9f79aa2f51f33c284062a44bf2f5c2775f20fec4dc3260420cb8c730cbe.png) ## Automations Timers can also be created via [dispatcher automations](/cad/tutorials/dispatching/automations). # Unit Management Source: https://docs.sonoransoftware.com/cad/tutorials/dispatching/unit-management Learn more about managing unit information, statuses, and more! ## Unit Management > [accordion] Modifying Status > > You can click on a unit's status for a dropdown menu to quickly modify it. > > ![](https://docs-assets.sonoransoftware.com/sha256/73/7350da3adda2bb37253e36ad4bfd72c8459fbe9d0fd697bcdc9552cbe60c77d7.png) > > Units can also select one of the status buttons in the header: > > ![](https://docs-assets.sonoransoftware.com/sha256/31/3137428a41cd7212de25e54bc44936ed40fa50d542868440a8c576bb4350eea9.png) > [accordion] Modifying Unit Information > > Click on any active unit and select "Edit Unit" to change their identifier information. > > ![](https://docs-assets.sonoransoftware.com/sha256/66/66e5d526e078c07c55a55ae3a33eace1d3fd71ebab0749b7d00e421ddb47e6a2.png) > > Units with the edit identifier permission can also click on their unit number in the header to open the identifier editor: > > ![](https://docs-assets.sonoransoftware.com/sha256/82/826764df0b2536349c21873fc75ad2cb52d1596e39e39d666c2dbf44db259cf2.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/ef/efe5859d26804a4ca01b0154548d56c752fc3cda87fa1564a26b95d9f28958aa.png) > [accordion] Unit Groups > > Unit groups are a way to combine two units together, typically when they're in the save vehicle or apparatus. > > To add a unit to a group, simply select the unit and select **Add to Group > New Group** or an existing group. > > Or, drag-and-drop a unit to an existing group to attach. > > ![](https://docs-assets.sonoransoftware.com/sha256/bf/bf7abee6a71a4d5d066e5faa86ecf254a142d433898192765c3d7461b616fab9.png) > [accordion] Persistent Unit Groups > > Unit groups can be configured as **persistent**, meaning they remain visible even when no units are assigned. > > Persistent groups are set up in the Department Editor under **Admin → Customization → Departments**. These groups can optionally enforce a maximum number of units that may be attached. > > ![](https://docs-assets.sonoransoftware.com/sha256/61/6198fd5c9e3f17992204906c5a22ea0d01286d92b066625b1028908ea83c6289.png) > > Once configured, persistent groups can be dragged into the Call Editor or onto an existing dispatch call to attach them. > > ![](https://docs-assets.sonoransoftware.com/sha256/36/36a78d28ebd608e8daef91c3bf622e8bfe8b4236d8b3b0e4e2503775461f1712.png) > > Units can self-attach to these groups by clicking on their unit number to open the identifier editor **→ Persistent Group** > > ![](https://docs-assets.sonoransoftware.com/sha256/2e/2ea0d125cda0e0cfe473ee60cec3226eade9ccf0d86058803812b3bce7836c73.png) > [accordion] Automatic Unit Status > > Dispatchers can also customize what to automatically set unit statuses to after specific actions. Select the [**Automations**](/cad/tutorials/dispatching/automations) button in the call editor to enable status changes on call attachment, detachment, and closure. > > ![](https://docs-assets.sonoransoftware.com/sha256/02/0218a1aed5f2249a7d3704acd9f7dfca5c4b810839c3b37a85eee0e8433a0ed0.png) # Getting Started Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started Looking to use Sonoran CAD with your community? Check out our getting started guides below! ### Registering Your Account Create your Sonoran CAD account to create a new community, or join an existing one. It's fast, easy, and free! > [card] [Registering Your Account](/cad/tutorials/getting-started/registering-your-account) ### Registering Your Community Registering your community and creating your CAD is free and only takes seconds! See our guide below: > [card] [Registering Your Community](/cad/tutorials/getting-started/registering-your-community) # Community ID and Ownership Code Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/finding-your-community-id-and-authentication-code This guide covers finding your community ID as well as finding your ownership authentication code. ## Finding your Community ID Your community ID lets users [join your community manually](/cad/tutorials/getting-started/inviting-users-to-your-cad). You can also copy your free community URL from **Administration > Customization > Custom Domain** and share it so users join automatically when they log in. See [Custom Domain & Vanity URLs](/cad/tutorials/customization/custom-login-page) for details. The ID can be found in the account menu dropdown once inside of a community. ![](https://docs-assets.sonoransoftware.com/sha256/ce/ce9212df90929bcb8b1a338a6b6b1a342b51948c048b2ba7098dc45a2ffea7e4.png) ## Authenticating your Ownership While requesting support from an [official Sonoran team member](https://support.sonoransoftware.com/) (via our support portal), you may be asked to authenticate your community's ownership. > [!WARNING] > > Your community's ownership authentication code can only be retrieved from your CAD owner.\ > \ > This code is used in support tickets to confirm that you are the registered owner of the community. **NEVER** give this code out to anyone that is not a member of the Sonoran support team! 1. In the admin page, navigate to `Advanced` > `Authenticate` 2. Press the "Request Code" button 3. Your ownership authentication code will be displayed on the screen ![](https://docs-assets.sonoransoftware.com/sha256/a2/a2c152b7efd6e2db219db9e24b839dc10fb793265e04e8f9f1d39b65fdc74ed1.png) # Inviting Users to Your CAD Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/inviting-users-to-your-cad Invite your community members to join your community, and grant them access. ## Invitation Options Share your free vanity URL or your own custom domain to bring members straight to your community. When they log in through either link, Sonoran CAD automatically joins them to your community. Members can also join manually with your community ID. ### Share Your Vanity URL (Free) Your vanity URL is `https://your-community-id.sonorancad.com`. For example, a community with the ID `mwrpdev` can share `https://mwrpdev.sonorancad.com`. See [Custom Domain & Vanity URLs](/cad/tutorials/customization/custom-login-page) for a screenshot of where to copy your URL and instructions for connecting your own domain. Copy your community URL from **Administration > Customization > Custom Domain** and share it with new members. They can sign in or register there, join your community automatically, and go directly to your CAD without selecting it from a community list. There is no DNS setup or additional cost. ### [Sonoran CMS Auto-Join](/cms) [Sonoran CMS](/cms) can automatically add and remove accounts on your Sonoran CAD. ![](https://docs-assets.sonoransoftware.com/sha256/25/25784999018f7190659e160c645d824a66c970117546a9ccd9f0fcd6974ad84a.png) *Sonoran CAD x Sonoran CMS - Account Auto-Join* ### Use Your Own Custom Domain If you have a domain of your own, you can connect it to your CAD instead. See the custom domain and vanity URL guide: > [card] [Custom Domain & Vanity URLs](/cad/tutorials/customization/custom-login-page) ### Manually Join with a Community ID If you cannot share a vanity URL or custom domain, users can [create an account](/cad/tutorials/getting-started/registering-your-account), and enter in your community ID in the "Join Community" popup.\ Users can search using your community ID and can press the "Join" button to add your community.\ \ From there, users can select your community card in the "My Communities" section to log into your CAD.\ ![](https://docs-assets.sonoransoftware.com/sha256/5e/5e4398313555be1ea4a8559df85b04344fab6658bcc7a00cce32810aea458046.png) > [!NOTE] > > Forgot your community ID? > > You can find this in your admin panel under Advanced > Limits > Community ID # Granting Account Permissions Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/permissions Choose page access and record permissions for each member of your community. ## Discord role sync Let Discord roles manage member permissions. Choose a role and its permissions in CAD; changes save automatically. > [card] [Discord role sync](/cad/integration-plugins/discord-bot-integration/role-sync) ## Manually Granting Permissions 1. Open **Administration > Accounts**. 2. Find the member and select their account. Use the **Pending** filter for members without permissions. 3. Choose permissions, then select **Save permissions**. ![Account permission editor for Alex Morgan with Police page access enabled](https://docs-assets.sonoransoftware.com/sha256/78/78e34cca57c2920b2da51c89bd80c4c1bb8ccbf1f2059a694e421f51614e40a6.png) *Choose the pages and tools a member can use.* The editor has three tabs: * **Access:** Community pages and operational tools. * **Records:** Permissions for each of your community's record templates. * **Administration:** Account management and other administrative tools. Click a permission card to enable or disable it. Use **Search permissions** to find a setting or template, and **Enabled only** to review the permissions already selected. For an editable pending or active membership, saving a nonempty permission list makes the account **Active** (subject to your member limit). Clearing all permissions returns it to **Pending**. Bans are managed separately under **Account actions**. The Accounts table now shows **Community User ID**, the current identifier used by FiveM `/link`, in place of legacy API IDs. See [Link User In-Game](/cad/integration-plugins/in-game-integration/link-user-in-game). ## Record Permissions Open **Records** and expand a template. Permissions apply to that template, so a member can edit licenses without receiving the same access to arrest reports or other records. ![Incident Report permissions with View, Create, Edit own and selected-field editing enabled](https://docs-assets.sonoransoftware.com/sha256/3d/3d41c2bfd2d6a1b8bf73c4e6b5fee633816b1ad6efe86933509a368abaedc09d.png) *Choose the actions allowed for each record template.* | Permission | Allows the member to | | - | - | | View | Find and view records of this type. | | Create | Create a record of this type. | | Edit own | Edit records owned by their account. | | Edit any | Edit records owned by any account, including their own, without field opt-in. | | Edit selected fields on others' records | Edit only opted-in fields on records owned by another account. Does not include Edit own. | | Delete own | Delete records owned by their account. | | Delete any | Delete records owned by any account, including their own. | | Supervisor fields | Update fields marked supervisor-only, alongside the required record editing permission. | ## Record editing permissions > [!NOTE] > > CAD 3.44.1 separates full editing from selected-field editing. Integrations should use the [permission catalog](/cad/api-integration/api-endpoints-v2/general/accounts/get-permission-catalog) to discover supported grants, including `edit.selected`. Each record template has independent editing permissions: | Permission | Access | | - | - | | **Edit own** | Edit records created by the account. | | **Edit selected fields on others' records** | Edit only fields marked **Allow limited editing** on records created by other accounts. Does not include Edit own. | | **Edit any** | Edit anyone's records, including the account's own records, without field opt-in. Includes Edit own. | **Supervisor fields** is an additional requirement for supervisor-only fields, not a substitute for an editing permission. **Read-only** fields remain locked. View, page access, record creation and deletion are separate permissions. These rules apply to all record templates, regardless of which panel opens a record. For example: * Give an officer **Edit own** to write and maintain their own reports, together with the separate Create and View permissions. * Give a records supervisor **Edit any** to edit other officers' reports without enabling every field individually. * For an officer who should change only license points or a character's address, grant **Edit selected fields on others' records** on that template and enable **Allow limited editing** on those specific fields. Leave Edit any off for that template. * An administrator who should edit the whole character record can receive **Edit any** instead. ### Configure limited editing 1. Open Administration > Customization > Custom Records and select the record template. 2. Select each field officers may update and enable **Allow limited editing**. This field setting was previously labeled **Editable by other users**. 3. Save the template. 4. In the account or permission-key editor, grant **Edit selected fields on others' records** for that template, along with the required page and View permissions. Add **Edit own** separately if needed. 5. Ensure the account does not also receive **Edit any** for that template through another permission key or role mapping. Full editing takes precedence. 6. Close and reopen an existing record created by a different account to verify the allowed fields. Test supervisor-only and read-only fields separately. ### Existing communities No database migration, template recreation or report recreation is needed. Existing Edit own and Edit any grants are retained, and existing field selections are preserved. The new selected-fields permission is not automatically assigned. Edit any now means full editing; communities that want limited access should replace Edit any with the selected-fields permission for those roles. Turning off Read-only does not opt a field into limited editing. Enabling Supervisor fields does not bypass the limited-field selection. On the updated backend, Edit any users do not need field opt-in. Role sync can overwrite manually assigned permissions. Update the role's permissions in the [Role sync panel](/cad/integration-plugins/discord-bot-integration/role-sync) when applicable. ## Permission Keys ### Create a Key Open **Administration > Permission Keys**, select **+**, enter a key name, and choose its permissions using the same editor. Save the key and share it with the intended members. ### Apply a Key Members enter the key in the community menu. Keys are case-sensitive, so they must enter the exact capitalization. ![Enter a permission key from the community menu](https://docs-assets.sonoransoftware.com/sha256/90/90012989f941130e9d2c327d767086008909644b737921d99d031b22a4d79a92.png) ## Role Sync Choose the setup your community uses: * **Discord roles → CAD permissions:** Follow the [Sonoran Bot setup guide](/bot/tutorials/sonoran-cad-integration). * **CMS ranks → CAD permissions:** Follow the [Sonoran CMS setup guide](/cms/integration-capabilities/sonoran-cad-sync). Use this path if the bot is configured for CMS. Update permissions in the role or rank mapping. A later sync can overwrite manual changes and permission-key grants made directly in CAD. Sonoran CMS supports granular per-template CAD permissions in its role/rank mappings. Apply the same distinction between **Edit any** and **Edit selected fields on others' records** when configuring sync. # Registering Your Account Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/registering-your-account Register your account with Sonoran CAD to easily create a new community, or join an existing one. ### Navigate to the Login Page On the website or app, select one of the login options: ![](https://docs-assets.sonoransoftware.com/sha256/97/97bf271da39394b5d19ede0e90372c4cc3bc28f6d258ae1cbf5e875dc9ef53b3.png) Users can register a Sonoran Software account at [account.sonoransoftware.com](https://account.sonoransoftware.com/). ### Verify Your Email Address > [!WARNING] > > Account verification emails may not be shown in your primary inbox. > > If you're having trouble finding the email, check your spam, junk, promotions, or all mail folder. If you've registered a new account, check your inbox for an email from Sonoran CAD.\ \ Select the "Verify Email" button, and your account will be automatically verified.\ ![Account verification emails are sent as shown above](https://docs-assets.sonoransoftware.com/sha256/ea/eaf2546d26b5b23f470dd158520072ec9a2b12fcacdc54b1792e0127f36a6282.png) # Registering Your Community Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/registering-your-community Registering your community and creating a CAD is fast, easy, and free! *NOTE:* If you have not already, you will need to [create a user account](/cad/tutorials/getting-started/registering-your-account) with Sonoran CAD. #### Enter In Your Community Information Once logged in, press "Create Community" on the community selection menu.\ You will be prompted for three information fields: 1. Community Name 2. Website (Optional) ![](https://docs-assets.sonoransoftware.com/sha256/4c/4c47b286c9e2ea1cff0c52b7d6fc3cd9cddf0ae5b7c064b34572079cd8210759.png) **2. Register Your Community**\ \ Once you've filled out the information, press "Register Community" to create your CAD.\ \ Your community icon will now be displayed under the "My Communities" section. You can click on this to log into your new CAD. # Troubleshooting Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/troubleshooting Troubleshooting steps for common issues in CAD ## Cannot Load Sonoran CAD ### Tablet Not Loading If you are using the in-game Tablet, please ensure that you are using the `Login with Sonoran` option, as both Apple and Discord have disabled OAuth over iFrames. If you created your account through Discord or Apple and need help adding a Sonoran login, [contact our support team](https://support.sonoransoftware.com/). For help linking your in-game player to CAD, see [Link User In-Game](/cad/integration-plugins/in-game-integration/link-user-in-game). Alternatively, if the tablet shows completely blank, then please delete your `nui-storage` folder as shown [here](/cad/integration-plugins/in-game-integration/available-plugins/tablet#tablet-showing-grey). ### CAD Not Loading After Recent Update If you cannot load Sonoran CAD due to a recent update, then please do `Ctrl` + `Shift` + `Refresh` to hard refresh the page and load it from scratch. ### CAD Not Loading (ESET Antivirus) In certain cases, antivirus programs such as ESET are also known to block connections to the CAD. To add CAD to ESET's allow list, please follow the following instructions: 1. Open ESET program on your computer 2. Press the `F5` key to open Advanced setup. 3. Click `Web access protection`. Expand `URL list management` and click `Edit` next to `Address list` 4. Select `List of allowed addresses` and click `Edit` 5. Click `Add` in the `Edit list` window. Paste `*.sonorancad.com*` in the respective field, click `OK` → `OK` to save your changes, and exit the Advanced setup window. * If using CMS, also add `*sonorancms.com*` For more information, see [here](https://support.eset.com/en/kb2960-exclude-a-safe-website-from-being-blocked-by-web-access-protection). # View Your Limits Source: https://docs.sonoransoftware.com/cad/tutorials/getting-started/view-your-limits In addition to our free version, Sonoran CAD offers optional paid subscriptions. Find out how to view your community's limits below! ### Admin > Advanced > Limits In the admin page, select "Advanced" > "Limits" to view your community limitations. ![](https://docs-assets.sonoransoftware.com/sha256/f2/f22d75a92d8901b37a58a06526524d4d2981135c1d62c8237d08c4d0cc91b931.png) ### Interested in a Paid Subscription? View our [pricing](https://app.sonorancad.com/#/pricing) page for more information! # Other Features Source: https://docs.sonoransoftware.com/cad/tutorials/other-features Check out some of Sonoran CAD's other features below! # Configurable Hotkeys Source: https://docs.sonoransoftware.com/cad/tutorials/other-features/configurable-hotkeys Learn more about Sonoran CAD's customizable global hotkey system! > [!WARNING] > > Configurable hotkeys are not included with the free version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). > [!NOTE] > > Hotkeys are enabled **globally** on the [Desktop ](/cad/download)application. This means users do not have to have the app or page in focus or visible for the hotkeys to be registered. > > For desktop users, we **highly recommend** viewing our [guide on in-game use](/cad/download/steam-browser-workaround)! ### Configure your Hotkeys In the side menu, open the "Settings" modal to display your hotkey configuration menu.\ Here, you can configure your prefix and hotkey buttons using the drop-downs below. Once changed, your settings are automatically applied and saved. ![Sonoran CAD's hotkey configuration menu](https://docs-assets.sonoransoftware.com/sha256/bf/bfb1675cfb5cfd2240b239dd0e0923ebf7464baa363f7f982c79e9aacc57c8a5.png) > [!NOTE] > > *Note:* This image also displays [custom unit status options](/cad/tutorials/customization/unit-status-codes), and may differ slightly from your view. # Voice Commands Source: https://docs.sonoransoftware.com/cad/tutorials/other-features/voice-commands Sonoran CAD’s voice commands allow for quick and easy to use actions via voice. > [!WARNING] > > Currently, Sonoran CAD only supports voice commands in the **Chrome desktop browser**. > > Voice recognition is provided by Google, and performance may vary based upon pronunciation, speed, and other factors. ### Enable Microphone Access When navigating to a page with voice commands enabled, the browser will prompt you for microphone access. ![Enable microphone access](https://docs-assets.sonoransoftware.com/sha256/24/24d4df413d158b41385c9a25459bdede9cf45060550cab8e7a66c4efe07b7fd8.png) ### Ensure Your Microphone is being Received Now that microphone access has been granted, a red circle will appear at the top right of the browser tab. ![A red, blinking light appears in the browser tab](https://docs-assets.sonoransoftware.com/sha256/4b/4bcb9c80d49b68a11c5d0c75191cd6f0500b42ff6623ff0e5021c67cfb72d479.png) ### Test out the Voice Commands Your keyword can be changed from "Sonoran" to something customizable. For more information, check out our guide on [custom voice command keywords](/cad/tutorials/customization/community-branding-and-info). #### PANIC ``` Sonoran, Panic ``` #### Lookup Name ``` Sonoran, lookup name John Doe ``` #### Lookup Plate ``` Sonoran, lookup plate ABCD1234 ``` # Volume and Language Source: https://docs.sonoransoftware.com/cad/tutorials/other-features/volume-and-language This guide covers changing your volume and TTS language settings in Sonoran CAD. ### Open the Settings Modal In the sidebar menu, select the settings button: ![The settings button is displayed in the side navigation menu](https://docs-assets.sonoransoftware.com/sha256/18/18639b5348633d657dbda9e4903e6b361f31a1d4b2c52ef0e716cdc469e512ad.png) ### Change your Volume and Language You can easily adjust your volume, and set your text-to-speech voice in the settings modal: ![Sonoran CAD's settings modal](https://docs-assets.sonoransoftware.com/sha256/64/6444d512520d2683ba9dd0888f5ee1ee6f0fae0c521714a9347b558bdffec1e5.png) ### Translation Support Sonoran CAD also supports full language translation support for any country or locality. Click below for more information. > [card] [Translation Support](/other/translation-support) # Records Management Source: https://docs.sonoransoftware.com/cad/tutorials/records-management Sonoran CAD offers an in-depth record management system. For more information, see our guides below! # Adding a Record Source: https://docs.sonoransoftware.com/cad/tutorials/records-management/adding-a-criminal-record This guide covers creating a new record in Sonoran CAD. ### Open the Record Editor In the police, fire, EMS, or dispatch page open the record panel. This can be found as a [pinned tab](/cad/tutorials/customization/customizing-your-layout#7.-tab-system), via [taskbar search](/cad/tutorials/customization/customizing-your-layout#search-box), or in the taskbar sub menu. ![](https://docs-assets.sonoransoftware.com/sha256/c7/c7099a28106969105f51ba07391f63a713cd5b92bebf6198757d1cea34c6d764.png) ### Select The Record Type Click the "New Record" button and a dropdown menu will appear, where users can select the new record type. ![Selecting the New Record you would like to make](https://docs-assets.sonoransoftware.com/sha256/77/770565d597a3d9858cc37ebbeb3b1f42bf3fa3e299827f519cb3268f67ddc1a1.png) Records (by default) are comprised of several sections: 1. Record Flags 2. Agency/Department Information 3. Civilian Information 4. Vehicle Information 5. Charges 6. Narrative 7. Status > [!NOTE] > > All records and reports are fully customizable, you may change the fields as much as you want. Each of the default record types are customizable as well and may look different if your community has customized the record shown below. Civilian and vehicle information sections also include a search feature. Here, you can search and import information from a registered civilian or vehicle. This feature can also [search for civilians and vehicles directly from your in-game database](/cad/integration-plugins/database-sync-and-merge). ![Sonoran CAD's record information search feature](https://docs-assets.sonoransoftware.com/sha256/c1/c1df847887fb39d8e400ba2822d80d35a7f18f47cfb1c06289a2f5fd9302ea34.png) ## Record Drafts Working on a record but not ready to submit? Records can be saved as drafts and revisited later from the report center before final submission. ![](https://docs-assets.sonoransoftware.com/sha256/97/9765f72a8856eee2f2f882d9a14f39088564aa78cca517066c11d10395fd9304.png) # PDF Records Source: https://docs.sonoransoftware.com/cad/tutorials/records-management/pdf-records Sonoran CAD allows you to print criminal records, civilian records, and call history logs to a PDF document! > [!NOTE] > > PDF records are not included with the free version.\ > For more information, see our [pricing](/cad/pricing/faq) or view how to check your community [limits](/cad/tutorials/getting-started/view-your-limits). > [!WARNING] > > Having trouble opening the PDF in the web version? > > Your Ad-Blocker may be preventing the PDF from opening in a new window. Disable your Ad-Blocker on our website to prevent this issue. ![](https://docs-assets.sonoransoftware.com/sha256/63/63a6e7bac26b672515fb3d8032b1658523f12bc9c9fdc4681eb0359479dad4d3.png) ### Records To download a PDF copy of a criminal or civilian record, select the PDF button in the bottom action bar. ![PDF print options are shown at the bottom of the record viewer](https://docs-assets.sonoransoftware.com/sha256/99/99c75a949be61a0f12e176dadcf6674ac6355e314b6c67c0924e0f948d25a84c.png) ![PDF records are generated and can be saved](https://docs-assets.sonoransoftware.com/sha256/08/08ab0e3d68defa97be88577c2c6fa079fb552da0ffd3df05e842119c6be0b84d.png) ### Call Logs Prior call logs can also be printed to a PDF record. 1. Navigate to the "Active Calls" window 2. Select the "Call History" tab 3. Click the call and select "Print Call" ![The "Call History" tab's PDF print option is displayed for all users](https://docs-assets.sonoransoftware.com/sha256/47/479be55f8e9e5cf87ca3b4de78d681bd6b13849ac45a7d832f4ff97eaacd8020.png) ![Call logs are formatted and printed to a PDF as shown](https://docs-assets.sonoransoftware.com/sha256/46/4665f7d349f0e00d9e0e7ee72cc28e457eae2d30d6a8acfa28c1d126d39fac3d.png) # Scene Diagram Builder Source: https://docs.sonoransoftware.com/cad/tutorials/records-management/scene-diagram-builder Build detailed scene diagrams in custom records! ![](https://docs-assets.sonoransoftware.com/sha256/27/2750ab0ce70320bedbb831a7716b04f300c58ce79392dcafe3dc9d645238e5cc.png) *Sonoran CAD: Scene Diagram Builder* ## Adding the Diagram Builder The scene diagram builder allows you to create detailed visuals of vehicle accidents, crime scenes, and more. The diagram builder can be added to any [custom record template](/cad/tutorials/customization/creating-custom-record-and-report-types). Select `Diagram` from the `Premade Sections` dropdown. ## Using the Diagram Builder Custom records with a diagram section will show an interactive canvas inside the record. Select the edit icon to open up the builder. ![](https://docs-assets.sonoransoftware.com/sha256/df/df8bba3f026a1b4889d2e957025a372b32e5ccd1d821917dd3f8c6101f3848ae.png) *Record: Diagram Viewer* ![](https://docs-assets.sonoransoftware.com/sha256/05/0597c3975e11df88bd57be29b30a2b5e0c03ac9b56338c7a44aa169b05d9fc7a.png) *Diagram Builder* ### Adding, Editing, and Removing Elements #### Adding * Drag-and-drop items from the toolbox to the canvas. #### Editing * When selected, items can be moved, resized, and edited. * When an item is selected, the gear icon will open up an options menu for more customization. * Select multiple items at once with `SHIFT` + `CLICK`. #### Removing * Select the item(s) and click the trash icon ([or the shortcut](/cad/tutorials/records-management/scene-diagram-builder#shortcuts)) to remove ![](https://docs-assets.sonoransoftware.com/sha256/23/23c27e5497a57240e6bb801ffc6962f1ca19dd71704aa2a439c2409f24f3e12f.png) *Diagram: Road Element Resize* ![](https://docs-assets.sonoransoftware.com/sha256/f0/f045fa9a691c9532d0ec8d3375f0429c148b60f74b26f415416dddf19788f361.png) *Diagram: Road Element Options* ### Shortcuts The diagram builder is packed with powerful shortcuts to help quickly build the scene. Hover over any of the top action items for a tooltip listing the shortcut. ![](https://docs-assets.sonoransoftware.com/sha256/35/351c51d6b461af4b11922454ac20923839284fc7e184b7a2aab9dcaf648212b4.png) *Diagram Builder: Action Buttons* > [accordion] List of Shortcuts > > | Shortcut | Description | > | - | - | > | `O` | Opens the item options/settings when an element is selected. | > | `UP ARROW` or `SHIFT` + `UP ARROW` | Moves the selected item up a layer. Shift option brings it to the very top. | > | `DOWN ARROW` or `SHIFT` + `DOWN ARROW` | Moves the selected item down a layer. Shift option brings it to the very bottom. | > | `L` | Locks the selected item(s) from moving. | > | `G` | Groups or ungroups the selected items together. Use `SHIFT` + `CLICK` to select multiple items. | > | `CTRL` + `Z` | Undo last action(s) | > | `CTRL` + `SHIFT` + `Z` | Redo last action(s) | > | `DELETE` | Delete selected item(s) | > | `CTRL` + `C` | Copy selected item(s) | > | `CTRL` + `V` | Paste copied item(s) | ### Default Images and More Communities can also customize the diagram builder to have default images (like a [medical diagram](/cad/tutorials/records-management/scene-diagram-builder#using-the-diagram-builder)) for each record type. Simply hit the edit (pencil icon) in the custom record builder on the diagram to customize and save the template. # Record Lookups Source: https://docs.sonoransoftware.com/cad/tutorials/records-management/searching-for-records Sonoran CAD's in-depth record management system makes searching for records easy! ## Getting Started From the start menu select `Record Management` > `Lookup` to open a new lookup window.\ You can also [minimize and pin this window type](/cad/tutorials/customization/customizing-your-layout#7-tab-system) to your taskbar for faster access. ![Sonoran CAD - New Lookup](https://docs-assets.sonoransoftware.com/sha256/7e/7e0ee567abfc60746afa4aa02f05b224e7d0974f951bb63b01534611c549de12.png) ## Running a Search The lookup window has tabs at the top to search via name, license plate, unit identifier, record ID, or one of your [custom lookup types](/cad/tutorials/customization/custom-search-types). ### Partial vs Exact Lookups The lookup window allows you to toggle the search to return only exact matches, or partial matches. #### Example: Partial Search Running partial lookup on `John Anderson` will return results for `John Anderson` and `John Handerson`. Running an exact lookup on `John Anderson` will only return results for `John Anderson` as `Handerson` is not an exact last name match. ### Record Type Filters Click on the filter button just above the results tab to expand the filters section. Here, you can toggle on/off exactly what record types to search for. ![](https://docs-assets.sonoransoftware.com/sha256/f7/f7cfdf055548ae2ee1fc0a1391b2bc64cfef5d8d3bd0de5eb35206cffe683cfa.png) ### Send Lookup to Units Anyone on the Dispatcher page, or in self-dispatch mode has the option to send the lookup results to other units. Performing this action will have all record results sent to their CAD. #### Shortcut and Drag-and-Drop You can click on any active unit and select `Lookup` to open a new lookup window with this unit added, or have it added to any existing lookup windows. Additionally, units and unit groups can be dragged-and-dropped directly to the lookup window. ![Sonoran CAD - Send Lookup to Unit(s)](https://docs-assets.sonoransoftware.com/sha256/a8/a8d4ae2e3dad63da42fc9d54be1bfbc3f8ee3042e3031e1c65900e59a60609e7.gif) #### Manual Search and Selection Next to the search button, you can click on the `Send to Unit(s)` button to toggle this mode on. Using the dropdown, you can type to filter active units or select them from the list directly. ![Sonoran CAD - Send Lookup to Unit(s)](https://docs-assets.sonoransoftware.com/sha256/df/df81ca73d7ef006479cf1d6fb32b8215936109febfd5cbbdf82784410fe132d7.gif) ### Copy Record Links Records can be [linked to other records](/cad/tutorials/customization/creating-custom-record-and-report-types#linked-records) via the `Linked Records` custom section, or [added to dispatch call notes](/cad/tutorials/dispatching/creating-a-call#note-links). Press the link icon in the top left to copy the record to your clipboard. ![](https://docs-assets.sonoransoftware.com/sha256/ad/ad902201eb3e4796aea8d17e91dfc4a9b3edfd1556fe72ed3e71ff6f4e36b6ef.png) *Sonoran CAD - Copy Record Link* ### Lookup from Plate Lock Our [Wraith radar plugin](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2) allows you to lock your plate reader in-game and have the lookup automatically ran in your CAD. ### Voice Commands Lookups can also be ran via a search [voice command](/cad/tutorials/other-features/voice-commands). ## Record Audit History ![](https://docs-assets.sonoransoftware.com/sha256/7d/7d6ed275ef332af8515c49db0abf33c05af52696aa00d4f9f998207e61dc6861.png) Select the **History** button when viewing a record to see an audit log of all changes. ### PDF Printing Any record results returned can be opened and printed to [PDF](/cad/tutorials/records-management/pdf-records). # 🏆 Why Sonoran CMS? Source: https://docs.sonoransoftware.com/cms Sonoran CMS manages your community's website, forums, document drive, whitelisting, in-game permissions, and more! Learn more about how Sonoran CMS can be your community's single point of management. ## What is Sonoran CMS? Sonoran CMS is the all-in-one management system built for gaming communities. With advanced applications, Discord role sync, FiveM and ER:LC game panels, a built-in file drive, and more—Sonoran CMS streamlines your operations like never before. > [card] [getting-started](/cms/tutorials/getting-started) ### 📂 [CMS Document Drive](/cms/tutorials/your-drive-and-documents) Manage your community's documents, spreadsheets, and presentations natively in the CMS! [Create and live edit documents](/cms/tutorials/your-drive-and-documents) to share with members based on rank. Sonoran CMS allows you to watermark documents as sensitive, organize files with folders, and more! ![](https://docs-assets.sonoransoftware.com/sha256/01/012a4cbde031605edd652a9c447d43769d0f8ab714e3a38c52e4a011dc56f77e.png) *CMS - Document Drive* ## 🌐 [Website Builder](/cms/tutorials/community-website/website-builder) and [Forums](/cms/tutorials/community-website/forum-system) Create your own [community website](/cms/tutorials/community-website/website-builder), all [on your own domain](/cms/tutorials/customization/custom-domain)! Create custom pages with community information, multi-media, announcements, and more! Sonoran CMS even allows you to add [community forums](/cms/tutorials/community-website/forum-system) for posts, discussions, and more! ![Sonoran CMS - Custom Pages](https://docs-assets.sonoransoftware.com/sha256/61/616cb9cc7ff1b209656b1c6a1e8c91a0cdacda644bebd5d8588996abdc92cb2e.png) ## 💬 [Discord Role Management](/cms/integration-capabilities/discord-bot-integration) Control your member's access to *everything*, just by [changing a Discord role](/cms/integration-capabilities/discord-bot-integration)! Or, manage Discord roles right through the CMS! ![](https://docs-assets.sonoransoftware.com/sha256/a0/a010c715d15beb501be5fce209bdf727db6aff866d49ea965238690ff28c0688.png) ## ✍️ [Custom Applications and Forms](/cms/tutorials/forms/creating-custom-forms) [Create fully customizable member applications](/cms/tutorials/forms/creating-custom-forms), forms for tracking, and more! Whether it's a new member application, promotion request, or ban appeal, Sonoran CMS allows you to customize it all. [AI processing can automatically move forms](/cms/tutorials/forms/ai-form-processing) to various stages based on your requirements. Each form stage has [powerful automations](/cms/tutorials/forms/creating-custom-forms#form-stages) to add/remove permissions, send push notifications, Discord webhooks or DMs, and more! ![](https://docs-assets.sonoransoftware.com/sha256/92/92797d51bbf363749855f60c897ad24d79ce19edd8adf9910c184e989f52c15e.png) ![](https://docs-assets.sonoransoftware.com/sha256/82/82837d2fd7e4aa88683228985a8ccdb8f9fe6916e105d952381f45d3870ebc31.png) ## ✅ [In-Game Whitelisting](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/whitelist) Sonoran CMS is your single point of management for in-game whitelisting! Automatically whitelist players based on CMS rank for [FiveM](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/whitelist), [Minecraft](/cms/integration-capabilities/in-game-integration-resources/minecraft-integrations/available-resources/whitelist), [Roblox](/cms/integration-capabilities/in-game-integration-resources/roblox-integrations/available-resources/whitelist), and more! ![Sonoran CMS - Whitelist Management](https://docs-assets.sonoransoftware.com/sha256/72/7224d4e3f94771b5a04ca23085ec9465d9e7d5501f2deb184628f952a9dc1f56.png) ## 🔒 [Advanced Security and Alt Account Detection](/cms/tutorials/administrative/security-center) Sonoran CMS is the best way to ensure your community stays protected. Prevent banned users from ever applying or joining your community again with [advanced alternate account detection](/cms/tutorials/administrative/security-center#account-flags). Or, easily filter and find [user action logs](/cms/tutorials/administrative/security-center#logging-center) throughout your CMS platform. ![](https://docs-assets.sonoransoftware.com/sha256/73/73d7657d3ab8ca3079f23d4f5c6847682a3a80ddb5b7de79f18150df8b2448e5.png) *Sonoran CMS - Security Center* ## 🎮 [FiveM Management Panel](/cms/integration-capabilities/fivem-game-panel) Sonoran CMS manages your entire FiveM server with a [dedicated panel for QBCore, Qbox, and menu servers](/cms/integration-capabilities/fivem-game-panel)! ![](https://docs-assets.sonoransoftware.com/sha256/15/15b1656928a4bf0dc9e3760003f92b8cb7e1af69f6e80f43a3c36eb57f1d9263.png) *CMS: FiveM Management Panel* ## 🖥️ [Sonoran CAD Account Management](/cms/integration-capabilities/sonoran-cad-sync) Automatically add users to your Sonoran CAD community when you accept their application or manually grant a role! ![](https://docs-assets.sonoransoftware.com/sha256/25/25784999018f7190659e160c645d824a66c970117546a9ccd9f0fcd6974ad84a.png) *Sonoran CMS - CAD Auto-Join* ## 🖥️ [Sonoran CAD Permission Sync](/cms/integration-capabilities/sonoran-cad-sync) Remove all the hassle of managing your community's [Sonoran CAD](/cad) permissions. Sonoran CMS is now your single point of management! Sonoran CMS allows you to easily manage your community's Sonoran CAD permissions based on their Sonoran CMS rank automatically! ![Sonoran CMS x Sonoran CAD - Permissions Sync](https://docs-assets.sonoransoftware.com/sha256/f1/f10fce92b3fbfd08af19b624ada2be2fd562a495dcc2755086145c4da9d936b9.png) ## [📅](https://emojipedia.org/calendar/) [Event Management](/cms/tutorials/community-events) Sonoran CMS makes organizing [community events](/cms/tutorials/community-events) easy! Manage member RSVPs, event information, Discord webhooks, and more! ![](https://docs-assets.sonoransoftware.com/sha256/40/404b3df4d46cfc101eec2c58c92b8e449618ff8dfafaa79f85031a34b3dc22b5.png) *Sonoran CMS - Calendar Features* ## 📱 [Downloadable Apps](/cms/download) > [card] [Download the App](/cms/download) Learn more about accessing and downloading Sonoran CMS on web, desktop, and mobile devices! It's never been more easy to manage your gaming community, regardless of your platform! ## 🌎 [Full Translation and Locality Support](/other/translation-support) Only Sonoran CMS supports full[ i18n localization](/other/translation-support). Regardless of your community's native language, Sonoran CMS supports it!\ \ Sonoran CMS translations are made possible by our community contributors! Anyone is allowed to [contribute to our GitHub translation files](https://github.com/Sonoran-Software/sonorancms_translations). ## 📋 [Frequent Updates](/cms/roadmap/roadmap-and-changelog/changelog) As shown in our [changelog](/cms/roadmap/roadmap-and-changelog/changelog), new features, fixes, and suggestions are added all the time! # API Integration Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration Sonoran CMS's open API endpoints allow you to utilize the whitelist system, clock in and out users, etc. ## Sonoran JS - NPM Library Sonoran CMS offers a complete Node API library from NPM! `npm i @sonoransoftware/sonoran.js` [Learn more about our NPM library](https://www.npmjs.com/package/@sonoransoftware/sonoran.js)! ## How are API calls sent? The v2 API uses standard HTTP methods, bearer authentication, and JSON request bodies where applicable. ## Can I integrate this with my gamemode/framework? Yes, you can integrate with nearly any gamemode using a language that can send HTTP requests. We provide several drag-and-drop resources written in JS/TS. You can also write your own script using the v2 API: > [card] [API Endpoints v2](/cms/developer-api-documentation/api-integration/api-endpoints-v2) ## Are there rate limits? Yes. See [Rate Limits](/cms/developer-api-documentation/api-integration/api-endpoints-v2/rate-limits) for the limits by endpoint. > [card] [getting-started](/cms/developer-api-documentation/api-integration/getting-started) # API Endpoints V2 Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2 REST-style v2 API documentation for Sonoran CMS. > [!NOTE] > > The v2 API uses `Authorization: Bearer `, standard HTTP verbs, proper status codes, and a consistent success envelope: > > ```json theme={null} > { > "success": true, > "data": {}, > "meta": { > "timestamp": "2026-04-14T00:00:00.000Z", > "path": "/v2/community" > } > } > ``` > > Errors are returned as `application/problem+json`. Base URL example: `https://api.sonorancms.com/v2` Each section below expands into individual endpoint pages. ## Rate Limits > [card] [Rate Limits](/cms/developer-api-documentation/api-integration/api-endpoints-v2/rate-limits) ## Available Sections ### Libraries Use the official Sonoran SDK libraries if you want package-managed helpers for the v2 API. > [card] [Libraries](/cms/developer-api-documentation/api-integration/api-endpoints-v2/libraries) ### General > [card] [general](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general) ### Accounts > [card] [accounts](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts) ### Servers > [card] [servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers) ### Events > [card] [events](/cms/developer-api-documentation/api-integration/api-endpoints-v2/events) ### Forms > [card] [forms](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms) ### Rosters > [card] [rosters](/cms/developer-api-documentation/api-integration/api-endpoints-v2/rosters) ### Disciplinary > [card] [disciplinary](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary) ### ERLC > [card] [erlc](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc) ### Sessions > [card] [sessions](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions) # Accounts Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts Accounts endpoints for the v2 API. This section groups the v2 accounts endpoints. > [card] [Get Accounts](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-accounts) > [card] [Search Accounts](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/search-accounts) > [card] [Get Account](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account) > [card] [Get Account Ranks](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account-ranks) > [card] [Get Account Identifiers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account-identifiers) > [card] [Register Identifiers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/register-identifiers) > [card] [Set Account Name](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/set-account-name) > [card] [Set Account Ranks](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/set-account-ranks) > [card] [Edit Profile Fields](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/edit-profile-fields) > [card] [Clock Account](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/clock-account) > [card] [Get Current Clock In](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-current-clock-in) > [card] [Get Latest Activity](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-latest-activity) > [card] [Force Sync](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/force-sync) # Clock Account Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/clock-account Clock an account in or out. `POST` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Clock an account in or out. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | \| `intention` | string | Yes | See example request for the shape. | \| `type` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000", > ["intention"] = "in", > ["type"] = "regular" > } > > local response = sonoran.cms:clockAccountV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "intention": "in", > "type": "regular" > }; > > const response = await instance.cms.clockAccountV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "intention": "in", > "type": "regular" > } > > response = instance.cms.clockAccountV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000", > intention = "in", > type = "regular" > }; > > var response = await sonoran.Cms.clockAccountV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Clock Account" > > version: "1.0.0" > > description: "Clock an account in or out." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/clock: > > post: > > summary: "Clock Account" > > operationId: "clockAccount" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "55555555-5555-5555-5555-555555555555" > > startTime: "2026-04-15T00:00:00.000Z" > > endTime: null > > completed: false > > notes: [] > > type: "patrol" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000","intention":"in","type":"regular"}' > ``` ## Response The `data` value is usually the saved clock row. In no-op cases, the service can also return `true` when the requested clock action does not need to write a new row. ```json theme={null} { "success": true, "data": { "id": "55555555-5555-5555-5555-555555555555", "startTime": "2026-04-15T00:00:00.000Z", "endTime": null, "completed": false, "notes": [], "type": "patrol" }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock" } } ``` # Edit Profile Fields Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/edit-profile-fields Update profile field values for an account. `PATCH` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/profile-fields` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update profile field values for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `profileFields` | array | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["profileFields"] = { > { > ["id"] = "discord", > ["value"] = "1234567890" > } > } > } > > local response = sonoran.cms:editProfileFieldsV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "profileFields": [ > { > "id": "discord", > "value": "1234567890" > } > ] > }; > > const response = await instance.cms.editProfileFieldsV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "profileFields": [ > { > "id": "discord", > "value": "1234567890" > } > ] > } > > response = instance.cms.editProfileFieldsV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > profileFields = new[] { > new { > id = "discord", > value = "1234567890" > } > } > }; > > var response = await sonoran.Cms.editProfileFieldsV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Edit Profile Fields" > > version: "1.0.0" > > description: "Update profile field values for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/profile-fields: > > patch: > > summary: "Edit Profile Fields" > > operationId: "editProfileFields" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "discord" > > value: "1234567890" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/profile-fields" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/profile-fields" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"profileFields":[{"id":"discord","value":"1234567890"}]}' > ``` ## Response The `data` array is the updated profile field payload saved back onto the account. Each entry is just an `{ id, value }` pair. ```json theme={null} { "success": true, "data": [ { "id": "discord", "value": "1234567890" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/profile-fields" } } ``` # Force Sync Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/force-sync Force a sync for an account. `POST` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/sync` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Force a sync for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:forceSyncV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.forceSyncV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.forceSyncV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.forceSyncV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Force Sync" > > version: "1.0.0" > > description: "Force a sync for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/sync: > > post: > > summary: "Force Sync" > > operationId: "forceSync" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "Sync triggered for: Example Community (Example Account - 00000000-0000-0000-0000-000000000000)" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/sync" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/sync" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000"}' > ``` ## Response The `data` value is a confirmation string emitted by the sync service. ```json theme={null} { "success": true, "data": "Sync triggered for: Example Community (Example Account - 00000000-0000-0000-0000-000000000000)", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/sync" } } ``` # Get Account Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account Retrieve a single community account. `GET` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve a single community account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > > local response = sonoran.cms:getAccountV2(accountId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > > const response = await instance.cms.getAccountV2(accountId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > > response = instance.cms.getAccountV2(accountId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > > var response = await sonoran.Cms.getAccountV2(accountId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Account" > > version: "1.0.0" > > description: "Retrieve a single community account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}: > > get: > > summary: "Get Account" > > operationId: "getAccount" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > accId: "00000000-0000-0000-0000-000000000000" > > sysStatus: true > > comStatus: true > > accName: "ExampleAccount" > > comName: "Example Community" > > joinDate: "2026-04-15T00:00:00.000Z" > > lastLogin: "2026-04-15T00:00:00.000Z" > > owner: false > > banned: false > > archived: false > > activeApiIds: > > - "discord:1234567890" > > discordId: "1234567890" > > uniqueId: 1001 > > identifiers: > > idents: > > - > > id: "55555555-5555-5555-5555-555555555555" > > accId: "00000000-0000-0000-0000-000000000000" > > type: "discord" > > value: "1234567890" > > refCount: 1 > > verified: true > > metadata: {} > > flagId: null > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > profileFields: > > data: > > - > > id: "discord" > > value: "1234567890" > > clockData: > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > startTime: "2026-04-15T00:00:00.000Z" > > endTime: null > > completed: false > > notes: [] > > type: "patrol" > > teamspeakId: null > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response Successful requests return `application/json` and use the standard v2 envelope. This endpoint returns the API-selected account subset plus hydrated `clockData` and `teamspeakId`. ```json theme={null} { "success": true, "data": { "accId": "00000000-0000-0000-0000-000000000000", "sysStatus": true, "comStatus": true, "accName": "ExampleAccount", "comName": "Example Community", "joinDate": "2026-04-15T00:00:00.000Z", "lastLogin": "2026-04-15T00:00:00.000Z", "owner": false, "banned": false, "archived": false, "activeApiIds": [ "discord:1234567890" ], "discordId": "1234567890", "uniqueId": 1001, "identifiers": { "idents": [ { "id": "55555555-5555-5555-5555-555555555555", "accId": "00000000-0000-0000-0000-000000000000", "type": "discord", "value": "1234567890", "refCount": 1, "verified": true, "metadata": {}, "flagId": null, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null } ] }, "ranks": [ "22222222-2222-2222-2222-222222222222" ], "profileFields": { "data": [ { "id": "discord", "value": "1234567890" } ] }, "clockData": { "data": [ { "id": "55555555-5555-5555-5555-555555555555", "startTime": "2026-04-15T00:00:00.000Z", "endTime": null, "completed": false, "notes": [], "type": "patrol" } ] }, "teamspeakId": null }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000" } } ``` # Get Account Identifiers Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account-identifiers Retrieve the identifiers stored for an account. `GET` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the identifiers stored for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > > local response = sonoran.cms:getAccountIdentifiersV2(accountId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > > const response = await instance.cms.getAccountIdentifiersV2(accountId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > > response = instance.cms.getAccountIdentifiersV2(accountId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > > var response = await sonoran.Cms.getAccountIdentifiersV2(accountId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Account Identifiers" > > version: "1.0.0" > > description: "Retrieve the identifiers stored for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/identifiers: > > get: > > summary: "Get Account Identifiers" > > operationId: "getAccountIdentifiers" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > accId: "00000000-0000-0000-0000-000000000000" > > type: "discord" > > value: "1234567890" > > refCount: 1 > > verified: true > > metadata: {} > > flagId: null > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the full security identifier entities for the account, including verification, metadata, and optional flag information. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "accId": "00000000-0000-0000-0000-000000000000", "type": "discord", "value": "1234567890", "refCount": 1, "verified": true, "metadata": {}, "flagId": null, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers" } } ``` # Get Account Ranks Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account-ranks Retrieve the ranks assigned to an account. `GET` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the ranks assigned to an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > > local response = sonoran.cms:getAccountRanksV2(accountId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > > const response = await instance.cms.getAccountRanksV2(accountId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > > response = instance.cms.getAccountRanksV2(accountId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > > var response = await sonoran.Cms.getAccountRanksV2(accountId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Account Ranks" > > version: "1.0.0" > > description: "Retrieve the ranks assigned to an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/ranks: > > get: > > summary: "Get Account Ranks" > > operationId: "getAccountRanks" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - "22222222-2222-2222-2222-222222222222" > > - "33333333-3333-3333-3333-333333333333" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains only the account rank ids, in the same order stored on the account row. ```json theme={null} { "success": true, "data": [ "22222222-2222-2222-2222-222222222222", "33333333-3333-3333-3333-333333333333" ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks" } } ``` # Get Accounts Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-accounts Retrieve a list of community accounts. `GET` `https://api.sonorancms.com/v2/community/accounts` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve a list of community accounts. ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `skip` | number | Yes | See example request for the shape. | \| `take` | number | Yes | See example request for the shape. | \| `sysStatus` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local query = { > ["skip"] = 0, > ["take"] = 25, > ["sysStatus"] = true > } > > local response = sonoran.cms:getAccountsV2(query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const query = { > "skip": 0, > "take": 25, > "sysStatus": true > }; > > const response = await instance.cms.getAccountsV2(query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > query = { > "skip": 0, > "take": 25, > "sysStatus": True > } > > response = instance.cms.getAccountsV2(query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var query = new { > skip = 0, > take = 25, > sysStatus = true > }; > > var response = await sonoran.Cms.getAccountsV2(query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Accounts" > > version: "1.0.0" > > description: "Retrieve a list of community accounts." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts: > > get: > > summary: "Get Accounts" > > operationId: "getAccounts" > > parameters: > > - > > description: "Number of rows to skip." > > name: "skip" > > in: "query" > > schema: > > type: "integer" > > required: false > > - > > description: "Number of rows to take." > > name: "take" > > in: "query" > > schema: > > type: "integer" > > required: false > > - > > description: "Filter by system status." > > name: "sysStatus" > > in: "query" > > schema: > > type: "boolean" > > required: false > > - > > description: "Filter by community status." > > name: "comStatus" > > in: "query" > > schema: > > type: "boolean" > > required: false > > - > > description: "Filter by banned state." > > name: "banned" > > in: "query" > > schema: > > type: "boolean" > > required: false > > - > > description: "Filter by archived state." > > name: "archived" > > in: "query" > > schema: > > type: "boolean" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > items: > > - > > accId: "00000000-0000-0000-0000-000000000000" > > uniqueId: 1001 > > accName: "ExampleAccount" > > comName: "Example Community" > > activeApiIds: > > - "discord:1234567890" > > discordId: "1234567890" > > sysStatus: true > > comStatus: true > > archived: false > > banned: false > > teamspeakId: null > > total: 1 > > skip: 0 > > take: 25 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts?skip=0&take=25&sysStatus=true" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is a paginated account collection. `items` contains the selected account fields plus `teamspeakId`, and `total`, `skip`, and `take` describe the page. ```json theme={null} { "success": true, "data": { "items": [ { "accId": "00000000-0000-0000-0000-000000000000", "uniqueId": 1001, "accName": "ExampleAccount", "comName": "Example Community", "activeApiIds": [ "discord:1234567890" ], "discordId": "1234567890", "sysStatus": true, "comStatus": true, "archived": false, "banned": false, "teamspeakId": null } ], "total": 1, "skip": 0, "take": 25 }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts" } } ``` # Get Current Clock In Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-current-clock-in Retrieve the current clock-in state for an account. `GET` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock/current` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the current clock-in state for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local query = { > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:getCurrentClockInV2(accountId, query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const query = { > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.getCurrentClockInV2(accountId, query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > query = { > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.getCurrentClockInV2(accountId, query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var query = new { > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.getCurrentClockInV2(accountId, query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Current Clock In" > > version: "1.0.0" > > description: "Retrieve the current clock-in state for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/clock/current: > > get: > > summary: "Get Current Clock In" > > operationId: "getCurrentClockIn" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > - > > description: "Target API identifier. Provide exactly one identifier." > > name: "apiId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target username. Provide exactly one identifier." > > name: "username" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target Discord id. Provide exactly one identifier." > > name: "discordId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target community unique id. Provide exactly one identifier." > > name: "uniqueId" > > in: "query" > > schema: > > type: "integer" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "55555555-5555-5555-5555-555555555555" > > startTime: "2026-04-15T00:00:00.000Z" > > endTime: null > > completed: false > > notes: [] > > type: "patrol" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock/current" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock/current?accId=00000000-0000-0000-0000-000000000000" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` value is either the active clock row or the string `"Not Clocked In"` when the account has no open clock. ```json theme={null} { "success": true, "data": { "id": "55555555-5555-5555-5555-555555555555", "startTime": "2026-04-15T00:00:00.000Z", "endTime": null, "completed": false, "notes": [], "type": "patrol" }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/clock/current" } } ``` # Get Latest Activity Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-latest-activity Retrieve the latest activity for an account. `GET` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/activity/latest` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the latest activity for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | \| `type` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local query = { > ["accId"] = "00000000-0000-0000-0000-000000000000", > ["type"] = "activity" > } > > local response = sonoran.cms:getLatestActivityV2(accountId, query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const query = { > "accId": "00000000-0000-0000-0000-000000000000", > "type": "activity" > }; > > const response = await instance.cms.getLatestActivityV2(accountId, query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > query = { > "accId": "00000000-0000-0000-0000-000000000000", > "type": "activity" > } > > response = instance.cms.getLatestActivityV2(accountId, query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var query = new { > accId = "00000000-0000-0000-0000-000000000000", > type = "activity" > }; > > var response = await sonoran.Cms.getLatestActivityV2(accountId, query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Latest Activity" > > version: "1.0.0" > > description: "Retrieve the latest activity for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/activity/latest: > > get: > > summary: "Get Latest Activity" > > operationId: "getLatestActivity" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > - > > description: "Return clock-in activity or general activity." > > name: "type" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Query parameter serverId." > > name: "serverId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Filter clock-in history by clock-in type id." > > name: "clockInType" > > in: "query" > > schema: > > type: "string" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > startTime: "2026-04-15T00:00:00.000Z" > > endTime: null > > completed: false > > notes: [] > > type: "patrol" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/activity/latest" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/activity/latest?accId=00000000-0000-0000-0000-000000000000&type=activity" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response When `type=clockin` the `data` array contains the three newest clock rows. When `type=activity` the same endpoint returns recent activity log rows instead of clock rows. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "startTime": "2026-04-15T00:00:00.000Z", "endTime": null, "completed": false, "notes": [], "type": "patrol" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/activity/latest" } } ``` # Register Identifiers Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/register-identifiers Register one or more identifiers for an account. `POST` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Register one or more identifiers for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `identifiers` | array | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["identifiers"] = { > { > ["type"] = "discord", > ["value"] = "1234567890" > } > } > } > > local response = sonoran.cms:registerAccountIdentifiersV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "identifiers": [ > { > "type": "discord", > "value": "1234567890" > } > ] > }; > > const response = await instance.cms.registerAccountIdentifiersV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "identifiers": [ > { > "type": "discord", > "value": "1234567890" > } > ] > } > > response = instance.cms.registerAccountIdentifiersV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > identifiers = new[] { > new { > type = "discord", > value = "1234567890" > } > } > }; > > var response = await sonoran.Cms.registerAccountIdentifiersV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Register Identifiers" > > version: "1.0.0" > > description: "Register one or more identifiers for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/identifiers: > > post: > > summary: "Register Identifiers" > > operationId: "registerIdentifiers" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "201": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > type: "discord" > > value: "1234567890" > > - > > type: "roblox" > > value: "987654321" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"identifiers":[{"type":"discord","value":"1234567890"}]}' > ``` ## Response The `data` array contains only the identifier type/value pairs that were registered successfully for the account. ```json theme={null} { "success": true, "data": [ { "type": "discord", "value": "1234567890" }, { "type": "roblox", "value": "987654321" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/identifiers" } } ``` # Search Accounts Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/search-accounts Search for community accounts. `GET` `https://api.sonorancms.com/v2/community/accounts/search` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Search for community accounts. ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `username` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local query = { > ["username"] = "ExampleUser" > } > > local response = sonoran.cms:searchAccountsV2(query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const query = { > "username": "ExampleUser" > }; > > const response = await instance.cms.searchAccountsV2(query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > query = { > "username": "ExampleUser" > } > > response = instance.cms.searchAccountsV2(query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var query = new { > username = "ExampleUser" > }; > > var response = await sonoran.Cms.searchAccountsV2(query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Search Accounts" > > version: "1.0.0" > > description: "Search for community accounts." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/search: > > get: > > summary: "Search Accounts" > > operationId: "searchAccounts" > > parameters: > > - > > description: "Target account UUID. Provide exactly one identifier." > > name: "accountId" > > in: "query" > > schema: > > type: "string" > > format: "uuid" > > required: false > > - > > description: "Target API identifier. Provide exactly one identifier." > > name: "apiId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target username. Provide exactly one identifier." > > name: "username" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target community account id. Provide exactly one identifier." > > name: "accId" > > in: "query" > > schema: > > type: "string" > > format: "uuid" > > required: false > > - > > description: "Target Discord id. Provide exactly one identifier." > > name: "discord" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target community unique id. Provide exactly one identifier." > > name: "uniqueId" > > in: "query" > > schema: > > type: "integer" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > items: > > - > > accId: "00000000-0000-0000-0000-000000000000" > > uniqueId: 1001 > > accName: "ExampleAccount" > > comName: "Example Community" > > activeApiIds: > > - "discord:1234567890" > > discordId: "1234567890" > > sysStatus: true > > comStatus: true > > archived: false > > banned: false > > teamspeakId: null > > total: 1 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/search" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/accounts/search?username=ExampleUser" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object contains the matched accounts and a `total` count. This search endpoint does not page the result set beyond the service-level filters. ```json theme={null} { "success": true, "data": { "items": [ { "accId": "00000000-0000-0000-0000-000000000000", "uniqueId": 1001, "accName": "ExampleAccount", "comName": "Example Community", "activeApiIds": [ "discord:1234567890" ], "discordId": "1234567890", "sysStatus": true, "comStatus": true, "archived": false, "banned": false, "teamspeakId": null } ], "total": 1 }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/search" } } ``` # Set Account Name Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/set-account-name Update the display name for an account. `PATCH` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/name` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the display name for an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `newName` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["newName"] = "Example Account" > } > > local response = sonoran.cms:setAccountNameV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "newName": "Example Account" > }; > > const response = await instance.cms.setAccountNameV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "newName": "Example Account" > } > > response = instance.cms.setAccountNameV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > newName = "Example Account" > }; > > var response = await sonoran.Cms.setAccountNameV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Set Account Name" > > version: "1.0.0" > > description: "Update the display name for an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/name: > > patch: > > summary: "Set Account Name" > > operationId: "setAccountName" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "New Community Name (00000000-0000-0000-0000-000000000000): Example Account" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/name" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/name" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"newName":"Example Account"}' > ``` ## Response The `data` value is a confirmation string, not an account object. The account update still happens in the background through the service layer. ```json theme={null} { "success": true, "data": "New Community Name (00000000-0000-0000-0000-000000000000): Example Account", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/name" } } ``` # Set Account Ranks Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/set-account-ranks Update the ranks assigned to an account. `PATCH` `https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks` > **Rate limit:** `22 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the ranks assigned to an account. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | \| `add` | array | Yes | See example request for the shape. | \| `active` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000", > ["add"] = { > "rank-1" > }, > ["active"] = true > } > > local response = sonoran.cms:setAccountRanksV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "add": [ > "rank-1" > ], > "active": true > }; > > const response = await instance.cms.setAccountRanksV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "add": [ > "rank-1" > ], > "active": True > } > > response = instance.cms.setAccountRanksV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000", > add = new[] { > "rank-1" > }, > active = true > }; > > var response = await sonoran.Cms.setAccountRanksV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Set Account Ranks" > > version: "1.0.0" > > description: "Update the ranks assigned to an account." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/accounts/{accountId}/ranks: > > patch: > > summary: "Set Account Ranks" > > operationId: "setAccountRanks" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > accId: "00000000-0000-0000-0000-000000000000" > > sysStatus: true > > comStatus: true > > accName: "ExampleAccount" > > comName: "Example Community" > > joinDate: "2026-04-15T00:00:00.000Z" > > lastLogin: "2026-04-15T00:00:00.000Z" > > owner: false > > banned: false > > banInfo: null > > banExpiration: null > > apiIdPreference: 0 > > apiIds: > > ids: [] > > activeApiIds: > > - "discord:1234567890" > > identifiers: > > idents: > > - > > id: "55555555-5555-5555-5555-555555555555" > > accId: "00000000-0000-0000-0000-000000000000" > > type: "discord" > > value: "1234567890" > > refCount: 1 > > verified: true > > metadata: {} > > flagId: null > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > clockData: > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > startTime: "2026-04-15T00:00:00.000Z" > > endTime: null > > completed: false > > notes: [] > > type: "patrol" > > profileFields: > > data: > > - > > id: "discord" > > value: "1234567890" > > bio: null > > archived: false > > discordId: "1234567890" > > robloxId: "987654321" > > uniqueId: 1001 > > customUniqueId: false > > notificationPreferences: > > forms: > > statusChange: > > inbox: true > > desktop: true > > mobile: true > > email: true > > discord: true > > teamspeakId: null > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000","add":["rank-1"],"active":true}' > ``` ## Response The `data` object is the updated account row returned by the rank update service. It reflects the new `ranks` and community status after the update. ```json theme={null} { "success": true, "data": { "accId": "00000000-0000-0000-0000-000000000000", "sysStatus": true, "comStatus": true, "accName": "ExampleAccount", "comName": "Example Community", "joinDate": "2026-04-15T00:00:00.000Z", "lastLogin": "2026-04-15T00:00:00.000Z", "owner": false, "banned": false, "banInfo": null, "banExpiration": null, "apiIdPreference": 0, "apiIds": { "ids": [] }, "activeApiIds": [ "discord:1234567890" ], "identifiers": { "idents": [ { "id": "55555555-5555-5555-5555-555555555555", "accId": "00000000-0000-0000-0000-000000000000", "type": "discord", "value": "1234567890", "refCount": 1, "verified": true, "metadata": {}, "flagId": null, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null } ] }, "ranks": [ "22222222-2222-2222-2222-222222222222" ], "clockData": { "data": [ { "id": "55555555-5555-5555-5555-555555555555", "startTime": "2026-04-15T00:00:00.000Z", "endTime": null, "completed": false, "notes": [], "type": "patrol" } ] }, "profileFields": { "data": [ { "id": "discord", "value": "1234567890" } ] }, "bio": null, "archived": false, "discordId": "1234567890", "robloxId": "987654321", "uniqueId": 1001, "customUniqueId": false, "notificationPreferences": { "forms": { "statusChange": { "inbox": true, "desktop": true, "mobile": true, "email": true, "discord": true } } }, "teamspeakId": null }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/accounts/00000000-0000-0000-0000-000000000000/ranks" } } ``` # Disciplinary Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary Disciplinary endpoints for the v2 API. This section groups the v2 disciplinary endpoints. > [card] [Get Member Points](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/get-member-points) > [card] [Get Member Records](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/get-member-records) > [card] [Add Member Record](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/add-member-record) > [card] [Update Member Record Points](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-points) > [card] [Update Member Record Reason](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-reason) > [card] [Update Member Record Status](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-status) # Add Member Record Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/add-member-record Create a disciplinary record. `POST` `https://api.sonorancms.com/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Create a disciplinary record. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `points` | number | Yes | See example request for the shape. | \| `reason` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["points"] = 5, > ["reason"] = "Training violation" > } > > local response = sonoran.cms:addDisciplinaryRecordV2(accountId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "points": 5, > "reason": "Training violation" > }; > > const response = await instance.cms.addDisciplinaryRecordV2(accountId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > payload = { > "points": 5, > "reason": "Training violation" > } > > response = instance.cms.addDisciplinaryRecordV2(accountId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > points = 5, > reason = "Training violation" > }; > > var response = await sonoran.Cms.addDisciplinaryRecordV2(accountId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Add Member Record" > > version: "1.0.0" > > description: "Create a disciplinary record." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/disciplinary/accounts/{accountId}/records: > > post: > > summary: "Add Member Record" > > operationId: "addMemberRecord" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "201": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > status: true > > accId: "00000000-0000-0000-0000-000000000000" > > source: "api" > > sourceId: "api-request" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > history: > > 2026-04-15T00:00:00.000Z: > > action: "init" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > timestamp: "2026-04-15T00:00:00.000Z" > > source: "api" > > sourceId: "api-request" > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > expired: false > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"points":5,"reason":"Training violation"}' > ``` ## Response The `data` array contains the newly created disciplinary record rows, one per affected account. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "status": true, "accId": "00000000-0000-0000-0000-000000000000", "source": "api", "sourceId": "api-request", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "history": { "2026-04-15T00:00:00.000Z": { "action": "init", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "timestamp": "2026-04-15T00:00:00.000Z", "source": "api", "sourceId": "api-request" } }, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null, "expired": false } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records" } } ``` # Get Member Points Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/get-member-points Retrieve disciplinary point totals for a member. `GET` `https://api.sonorancms.com/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/points` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve disciplinary point totals for a member. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local query = { > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:getDisciplinaryPointsV2(accountId, query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const query = { > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.getDisciplinaryPointsV2(accountId, query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > query = { > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.getDisciplinaryPointsV2(accountId, query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var query = new { > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.getDisciplinaryPointsV2(accountId, query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Member Points" > > version: "1.0.0" > > description: "Retrieve disciplinary point totals for a member." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/disciplinary/accounts/{accountId}/points: > > get: > > summary: "Get Member Points" > > operationId: "getMemberPoints" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > - > > description: "Target API identifier. Provide exactly one identifier." > > name: "apiId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target username. Provide exactly one identifier." > > name: "username" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target Discord id. Provide exactly one identifier." > > name: "discordId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target community unique id. Provide exactly one identifier." > > name: "uniqueId" > > in: "query" > > schema: > > type: "integer" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: 12 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/points" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/points?accId=00000000-0000-0000-0000-000000000000" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` value is the computed disciplinary point total for the account. ```json theme={null} { "success": true, "data": 12, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/points" } } ``` # Get Member Records Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/get-member-records Retrieve disciplinary records for a member. `GET` `https://api.sonorancms.com/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve disciplinary records for a member. ## Route Parameters \| Name | Type | Required | Description | \| ----------- | ------------- | -------- | ----------------- | \| `accountId` | string (uuid) | Yes | Target accountId. | ## Query Parameters \| Name | Type | Required | Description | \| ------- | ------ | -------- | ---------------------------------- | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local accountId = "00000000-0000-0000-0000-000000000000" > local query = { > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:getDisciplinaryRecordsV2(accountId, query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const accountId = "00000000-0000-0000-0000-000000000000"; > const query = { > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.getDisciplinaryRecordsV2(accountId, query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > accountId = "00000000-0000-0000-0000-000000000000" > query = { > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.getDisciplinaryRecordsV2(accountId, query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var accountId = "00000000-0000-0000-0000-000000000000"; > var query = new { > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.getDisciplinaryRecordsV2(accountId, query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Member Records" > > version: "1.0.0" > > description: "Retrieve disciplinary records for a member." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/disciplinary/accounts/{accountId}/records: > > get: > > summary: "Get Member Records" > > operationId: "getMemberRecords" > > parameters: > > - > > description: "Target account UUID." > > name: "accountId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > - > > description: "Target API identifier. Provide exactly one identifier." > > name: "apiId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target username. Provide exactly one identifier." > > name: "username" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target Discord id. Provide exactly one identifier." > > name: "discordId" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Target community unique id. Provide exactly one identifier." > > name: "uniqueId" > > in: "query" > > schema: > > type: "integer" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > status: true > > accId: "00000000-0000-0000-0000-000000000000" > > source: "api" > > sourceId: "api-request" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > history: > > 2026-04-15T00:00:00.000Z: > > action: "init" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > timestamp: "2026-04-15T00:00:00.000Z" > > source: "api" > > sourceId: "api-request" > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > expired: false > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records?accId=00000000-0000-0000-0000-000000000000" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the disciplinary records for the account. On the API path the records are annotated with an `expired` flag when the community uses expiration windows. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "status": true, "accId": "00000000-0000-0000-0000-000000000000", "source": "api", "sourceId": "api-request", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "history": { "2026-04-15T00:00:00.000Z": { "action": "init", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "timestamp": "2026-04-15T00:00:00.000Z", "source": "api", "sourceId": "api-request" } }, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null, "expired": false } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/disciplinary/accounts/00000000-0000-0000-0000-000000000000/records" } } ``` # Update Member Record Points Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-points Update the points on a disciplinary record. `PATCH` `https://api.sonorancms.com/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/points` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the points on a disciplinary record. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `recordId` | string (uuid) | Yes | Target recordId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `points` | number | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local recordId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["points"] = 10 > } > > local response = sonoran.cms:setDisciplinaryRecordPointsV2(recordId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const recordId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "points": 10 > }; > > const response = await instance.cms.setDisciplinaryRecordPointsV2(recordId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > recordId = "00000000-0000-0000-0000-000000000000" > payload = { > "points": 10 > } > > response = instance.cms.setDisciplinaryRecordPointsV2(recordId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var recordId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > points = 10 > }; > > var response = await sonoran.Cms.setDisciplinaryRecordPointsV2(recordId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Update Member Record Points" > > version: "1.0.0" > > description: "Update the points on a disciplinary record." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/disciplinary/records/{recordId}/points: > > patch: > > summary: "Update Member Record Points" > > operationId: "updateMemberRecordPoints" > > parameters: > > - > > description: "Target disciplinary record id." > > name: "recordId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > status: true > > accId: "00000000-0000-0000-0000-000000000000" > > source: "api" > > sourceId: "api-request" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > history: > > 2026-04-15T00:00:00.000Z: > > action: "init" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > timestamp: "2026-04-15T00:00:00.000Z" > > source: "api" > > sourceId: "api-request" > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > expired: false > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/points" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/points" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"points":10}' > ``` ## Response The `data` array contains the updated disciplinary record row(s) returned by the update query. The endpoint is reused for points, reason, and status updates. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "status": true, "accId": "00000000-0000-0000-0000-000000000000", "source": "api", "sourceId": "api-request", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "history": { "2026-04-15T00:00:00.000Z": { "action": "init", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "timestamp": "2026-04-15T00:00:00.000Z", "source": "api", "sourceId": "api-request" } }, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null, "expired": false } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/points" } } ``` # Update Member Record Reason Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-reason Update the reason on a disciplinary record. `PATCH` `https://api.sonorancms.com/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/reason` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the reason on a disciplinary record. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `recordId` | string (uuid) | Yes | Target recordId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `reason` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local recordId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["reason"] = "Updated reason" > } > > local response = sonoran.cms:setDisciplinaryRecordReasonV2(recordId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const recordId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "reason": "Updated reason" > }; > > const response = await instance.cms.setDisciplinaryRecordReasonV2(recordId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > recordId = "00000000-0000-0000-0000-000000000000" > payload = { > "reason": "Updated reason" > } > > response = instance.cms.setDisciplinaryRecordReasonV2(recordId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var recordId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > reason = "Updated reason" > }; > > var response = await sonoran.Cms.setDisciplinaryRecordReasonV2(recordId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Update Member Record Reason" > > version: "1.0.0" > > description: "Update the reason on a disciplinary record." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/disciplinary/records/{recordId}/reason: > > patch: > > summary: "Update Member Record Reason" > > operationId: "updateMemberRecordReason" > > parameters: > > - > > description: "Target disciplinary record id." > > name: "recordId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > status: true > > accId: "00000000-0000-0000-0000-000000000000" > > source: "api" > > sourceId: "api-request" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > history: > > 2026-04-15T00:00:00.000Z: > > action: "init" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > timestamp: "2026-04-15T00:00:00.000Z" > > source: "api" > > sourceId: "api-request" > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > expired: false > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/reason" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/reason" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"reason":"Updated reason"}' > ``` ## Response The `data` array contains the updated disciplinary record row(s) returned by the update query. The endpoint is reused for points, reason, and status updates. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "status": true, "accId": "00000000-0000-0000-0000-000000000000", "source": "api", "sourceId": "api-request", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "history": { "2026-04-15T00:00:00.000Z": { "action": "init", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "timestamp": "2026-04-15T00:00:00.000Z", "source": "api", "sourceId": "api-request" } }, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null, "expired": false } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/reason" } } ``` # Update Member Record Status Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-status Update the status of a disciplinary record. `PATCH` `https://api.sonorancms.com/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/status` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the status of a disciplinary record. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `recordId` | string (uuid) | Yes | Target recordId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `status` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local recordId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["status"] = true > } > > local response = sonoran.cms:setDisciplinaryRecordStatusV2(recordId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const recordId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "status": true > }; > > const response = await instance.cms.setDisciplinaryRecordStatusV2(recordId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > recordId = "00000000-0000-0000-0000-000000000000" > payload = { > "status": True > } > > response = instance.cms.setDisciplinaryRecordStatusV2(recordId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var recordId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > status = true > }; > > var response = await sonoran.Cms.setDisciplinaryRecordStatusV2(recordId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Update Member Record Status" > > version: "1.0.0" > > description: "Update the status of a disciplinary record." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/disciplinary/records/{recordId}/status: > > patch: > > summary: "Update Member Record Status" > > operationId: "updateMemberRecordStatus" > > parameters: > > - > > description: "Target disciplinary record id." > > name: "recordId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > status: true > > accId: "00000000-0000-0000-0000-000000000000" > > source: "api" > > sourceId: "api-request" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > history: > > 2026-04-15T00:00:00.000Z: > > action: "init" > > points: 5 > > reason: "Example disciplinary action" > > metadata: > > executionSource: "discord" > > timestamp: "2026-04-15T00:00:00.000Z" > > source: "api" > > sourceId: "api-request" > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > expired: false > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/status" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/status" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"status":true}' > ``` ## Response The `data` array contains the updated disciplinary record row(s) returned by the update query. The endpoint is reused for points, reason, and status updates. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "status": true, "accId": "00000000-0000-0000-0000-000000000000", "source": "api", "sourceId": "api-request", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "history": { "2026-04-15T00:00:00.000Z": { "action": "init", "points": 5, "reason": "Example disciplinary action", "metadata": { "executionSource": "discord" }, "timestamp": "2026-04-15T00:00:00.000Z", "source": "api", "sourceId": "api-request" } }, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null, "expired": false } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/disciplinary/records/11111111-1111-1111-1111-111111111111/status" } } ``` # ERLC Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc ERLC endpoints for the v2 API. This section groups the v2 erlc endpoints. > [card] [Get Online Players](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/get-online-players) > [card] [Get Player Queue](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/get-player-queue) > [card] [Add ERLC Record](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/add-record) > [card] [Execute Command](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/execute-command) > [card] [Lock Team](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/lock-team) > [card] [Unlock Team](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/unlock-team) # Add ERLC Record Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/add-record Create an ER:LC record. `POST` `https://api.sonorancms.com/v2/community/erlc/records` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Create an ER:LC record. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `robloxJoinCode` | string | Yes | See example request for the shape. | \| `executerDiscordId` | string | Yes | See example request for the shape. | \| `type` | string | Yes | See example request for the shape. | \| `reason` | string | Yes | See example request for the shape. | \| `points` | number | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["robloxJoinCode"] = "ABC123", > ["executerDiscordId"] = "1234567890", > ["type"] = "note", > ["reason"] = "Example note", > ["points"] = 0 > } > > local response = sonoran.cms:addErlcRecordV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "robloxJoinCode": "ABC123", > "executerDiscordId": "1234567890", > "type": "note", > "reason": "Example note", > "points": 0 > }; > > const response = await instance.cms.addErlcRecordV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "robloxJoinCode": "ABC123", > "executerDiscordId": "1234567890", > "type": "note", > "reason": "Example note", > "points": 0 > } > > response = instance.cms.addErlcRecordV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > robloxJoinCode = "ABC123", > executerDiscordId = "1234567890", > type = "note", > reason = "Example note", > points = 0 > }; > > var response = await sonoran.Cms.addErlcRecordV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Add Record" > > version: "1.0.0" > > description: "Create an ER:LC record." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/erlc/records: > > post: > > summary: "Add Record" > > operationId: "addErlcRecord" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "201": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > success: true > > message: "Records added successfully" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/erlc/records" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/erlc/records" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"robloxJoinCode":"ABC123","executerDiscordId":"1234567890","type":"note","reason":"Example note","points":0}' > ``` ## Response The response shape varies by record `type`: * `note`, `kick`, and custom log types return a confirmation object such as `{ success: true, message: "Records added successfully" }`. * `ban` returns `{ success: true }` after the ban queue is updated. * `disciplinary` returns the disciplinary service payload, which is usually `{ success: true, data: [DisciplinaryRecord] }`. ```json theme={null} { "success": true, "data": { "success": true, "message": "Records added successfully" }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/erlc/records" } } ``` # Execute Command Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/execute-command Execute an ER:LC command. `POST` `https://api.sonorancms.com/v2/community/erlc/commands` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Execute an ER:LC command. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `robloxJoinCode` | string | Yes | See example request for the shape. | \| `discordId` | string | Yes | See example request for the shape. | \| `type` | string | Yes | See example request for the shape. | \| `args` | string | Yes | See example request for the shape. | \| `includesPlayerNameOrId` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["robloxJoinCode"] = "ABC123", > ["discordId"] = "1234567890", > ["type"] = "announce", > ["args"] = "Server restart in 10 minutes", > ["includesPlayerNameOrId"] = false > } > > local response = sonoran.cms:executeErlcCommandV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "robloxJoinCode": "ABC123", > "discordId": "1234567890", > "type": "announce", > "args": "Server restart in 10 minutes", > "includesPlayerNameOrId": false > }; > > const response = await instance.cms.executeErlcCommandV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "robloxJoinCode": "ABC123", > "discordId": "1234567890", > "type": "announce", > "args": "Server restart in 10 minutes", > "includesPlayerNameOrId": False > } > > response = instance.cms.executeErlcCommandV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > robloxJoinCode = "ABC123", > discordId = "1234567890", > type = "announce", > args = "Server restart in 10 minutes", > includesPlayerNameOrId = false > }; > > var response = await sonoran.Cms.executeErlcCommandV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Execute Command" > > version: "1.0.0" > > description: "Execute an ER:LC command." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/erlc/commands: > > post: > > summary: "Execute Command" > > operationId: "executeErlcCommand" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "Successfully added command to queue" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/erlc/commands" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/erlc/commands" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"robloxJoinCode":"ABC123","discordId":"1234567890","type":"announce","args":"Server restart in 10 minutes","includesPlayerNameOrId":false}' > ``` ## Response The `data` value is a confirmation string once the command has been queued for ERLC execution. ```json theme={null} { "success": true, "data": "Successfully added command to queue", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/erlc/commands" } } ``` # Get Online Players Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/get-online-players Retrieve the online ER:LC players. `GET` `https://api.sonorancms.com/v2/community/erlc/players/online` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the online ER:LC players. ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `robloxJoinCode` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local query = { > ["robloxJoinCode"] = "ABC123" > } > > local response = sonoran.cms:getOnlinePlayersV2(query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const query = { > "robloxJoinCode": "ABC123" > }; > > const response = await instance.cms.getOnlinePlayersV2(query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > query = { > "robloxJoinCode": "ABC123" > } > > response = instance.cms.getOnlinePlayersV2(query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var query = new { > robloxJoinCode = "ABC123" > }; > > var response = await sonoran.Cms.getOnlinePlayersV2(query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Online Players" > > version: "1.0.0" > > description: "Retrieve the online ER:LC players." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/erlc/players/online: > > get: > > summary: "Get Online Players" > > operationId: "getOnlinePlayers" > > parameters: > > - > > description: "Target Roblox join code." > > name: "robloxJoinCode" > > in: "query" > > schema: > > type: "string" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > Player: "ExamplePlayer:123456789" > > Permission: "Normal" > > Callsign: "" > > Team: "Civilian" > > Actioned: null > > Location: > > LocationX: 0 > > LocationY: 0 > > LocationZ: 0 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/erlc/players/online" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/erlc/players/online?robloxJoinCode=ABC123" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the ERLC player projection rows returned by the hub cache. Each item follows the panel player shape. ```json theme={null} { "success": true, "data": [ { "Player": "ExamplePlayer:123456789", "Permission": "Normal", "Callsign": "", "Team": "Civilian", "Actioned": null, "Location": { "LocationX": 0, "LocationY": 0, "LocationZ": 0 } } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/erlc/players/online" } } ``` # Get Player Queue Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/get-player-queue Retrieve the ER:LC queue. `GET` `https://api.sonorancms.com/v2/community/erlc/players/queue` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the ER:LC queue. ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `robloxJoinCode` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local query = { > ["robloxJoinCode"] = "ABC123" > } > > local response = sonoran.cms:getPlayerQueueV2(query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const query = { > "robloxJoinCode": "ABC123" > }; > > const response = await instance.cms.getPlayerQueueV2(query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > query = { > "robloxJoinCode": "ABC123" > } > > response = instance.cms.getPlayerQueueV2(query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var query = new { > robloxJoinCode = "ABC123" > }; > > var response = await sonoran.Cms.getPlayerQueueV2(query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Player Queue" > > version: "1.0.0" > > description: "Retrieve the ER:LC queue." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/erlc/players/queue: > > get: > > summary: "Get Player Queue" > > operationId: "getPlayerQueue" > > parameters: > > - > > description: "Target Roblox join code." > > name: "robloxJoinCode" > > in: "query" > > schema: > > type: "string" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: 3 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/erlc/players/queue" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/erlc/players/queue?robloxJoinCode=ABC123" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` value is the current queue length for the target server, not the queue entries themselves. ```json theme={null} { "success": true, "data": 3, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/erlc/players/queue" } } ``` # Lock Team Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/lock-team Lock an ER:LC team. `POST` `https://api.sonorancms.com/v2/community/erlc/teams/lock` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Lock an ER:LC team. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `robloxJoinCode` | string | Yes | See example request for the shape. | \| `team` | string | Yes | See example request for the shape. | \| `maxPlayers` | number | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["robloxJoinCode"] = "ABC123", > ["team"] = "Police", > ["maxPlayers"] = 10 > } > > local response = sonoran.cms:lockTeamV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "robloxJoinCode": "ABC123", > "team": "Police", > "maxPlayers": 10 > }; > > const response = await instance.cms.lockTeamV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "robloxJoinCode": "ABC123", > "team": "Police", > "maxPlayers": 10 > } > > response = instance.cms.lockTeamV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > robloxJoinCode = "ABC123", > team = "Police", > maxPlayers = 10 > }; > > var response = await sonoran.Cms.lockTeamV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Lock Team" > > version: "1.0.0" > > description: "Lock an ER:LC team." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/erlc/teams/lock: > > post: > > summary: "Lock Team" > > operationId: "lockTeam" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "The police team has been locked down to a maximum of 12 players." > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/erlc/teams/lock" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/erlc/teams/lock" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"robloxJoinCode":"ABC123","team":"Police","maxPlayers":10}' > ``` ## Response The `data` value is a confirmation string. The exact wording changes for lock and unlock, but both endpoints return a string rather than a structured object. ```json theme={null} { "success": true, "data": "The police team has been locked down to a maximum of 12 players.", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/erlc/teams/lock" } } ``` # Unlock Team Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/unlock-team Unlock an ER:LC team. `POST` `https://api.sonorancms.com/v2/community/erlc/teams/unlock` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Unlock an ER:LC team. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `robloxJoinCode` | string | Yes | See example request for the shape. | \| `team` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["robloxJoinCode"] = "ABC123", > ["team"] = "Police" > } > > local response = sonoran.cms:unlockTeamV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "robloxJoinCode": "ABC123", > "team": "Police" > }; > > const response = await instance.cms.unlockTeamV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "robloxJoinCode": "ABC123", > "team": "Police" > } > > response = instance.cms.unlockTeamV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > robloxJoinCode = "ABC123", > team = "Police" > }; > > var response = await sonoran.Cms.unlockTeamV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Unlock Team" > > version: "1.0.0" > > description: "Unlock an ER:LC team." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/erlc/teams/unlock: > > post: > > summary: "Unlock Team" > > operationId: "unlockTeam" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "The police team has been locked down to a maximum of 12 players." > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/erlc/teams/unlock" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/erlc/teams/unlock" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"robloxJoinCode":"ABC123","team":"Police"}' > ``` ## Response The `data` value is a confirmation string. The exact wording changes for lock and unlock, but both endpoints return a string rather than a structured object. ```json theme={null} { "success": true, "data": "The police team has been locked down to a maximum of 12 players.", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/erlc/teams/unlock" } } ``` # Events Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/events Events endpoints for the v2 API. This section groups the v2 events endpoints. > [card] [RSVP](/cms/developer-api-documentation/api-integration/api-endpoints-v2/events/rsvp) # RSVP Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/events/rsvp Create an RSVP for an event. `POST` `https://api.sonorancms.com/v2/community/events/11111111-1111-1111-1111-111111111111/rsvps` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Create an RSVP for an event. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `eventId` | string (uuid) | Yes | Target eventId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local eventId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:rsvpEventV2(eventId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const eventId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.rsvpEventV2(eventId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > eventId = "00000000-0000-0000-0000-000000000000" > payload = { > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.rsvpEventV2(eventId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var eventId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.rsvpEventV2(eventId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Rsvp" > > version: "1.0.0" > > description: "Create an RSVP for an event." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/events/{eventId}/rsvps: > > post: > > summary: "Rsvp" > > operationId: "createRsvp" > > parameters: > > - > > description: "Target event id." > > name: "eventId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "RSVP_SUCCESS" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/events/11111111-1111-1111-1111-111111111111/rsvps" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/events/11111111-1111-1111-1111-111111111111/rsvps" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000"}' > ``` ## Response The `data` value is a toggle code. The service returns `RSVP_SUCCESS` when the account is added and `UNRSVP_SUCCESS` when the existing RSVP is removed. ```json theme={null} { "success": true, "data": "RSVP_SUCCESS", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/events/11111111-1111-1111-1111-111111111111/rsvps" } } ``` # Forms Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms Forms endpoints for the v2 API. This section groups the v2 forms endpoints. > [card] [Change Form Stage](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/change-stage) > [card] [Get Template Submissions](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-template-submissions) > [card] [Get Form Lock Status](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-lock-status) > [card] [Set Form Lock Status](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/set-lock-status) > [card] [Get Submission](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-submission) # Change Form Stage Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/change-stage Move a form submission to a new stage. `PATCH` `https://api.sonorancms.com/v2/community/forms/1/stage` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Move a form submission to a new stage. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `formId` | number | Yes | Target formId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | \| `newStageId` | string | Yes | See example request for the shape. | \| `optionalReason` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local formId = 1 > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000", > ["newStageId"] = "review", > ["optionalReason"] = "Reviewed manually." > } > > local response = sonoran.cms:changeFormStageV2(formId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const formId = 1; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "newStageId": "review", > "optionalReason": "Reviewed manually." > }; > > const response = await instance.cms.changeFormStageV2(formId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > formId = 1 > payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "newStageId": "review", > "optionalReason": "Reviewed manually." > } > > response = instance.cms.changeFormStageV2(formId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var formId = 1; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000", > newStageId = "review", > optionalReason = "Reviewed manually." > }; > > var response = await sonoran.Cms.changeFormStageV2(formId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Change Stage" > > version: "1.0.0" > > description: "Move a form submission to a new stage." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/forms/{formId}/stage: > > patch: > > summary: "Change Stage" > > operationId: "changeFormStage" > > parameters: > > - > > description: "Target form id." > > name: "formId" > > in: "path" > > schema: > > type: "integer" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > authorized: true > > failed: false > > data: > > form: > > formId: 42 > > sysStatus: true > > submissionTime: "2026-04-15T00:00:00.000Z" > > lastActionTime: "2026-04-15T00:00:00.000Z" > > formSubmitter: "00000000-0000-0000-0000-000000000000" > > formContextUser: null > > relatedUsers: [] > > formStructure: > > _label: "Example Form Submission" > > fields: [] > > formComments: > > comments: [] > > stageId: "22222222-2222-2222-2222-222222222222" > > stageGroupId: "11111111-1111-1111-1111-111111111111" > > stageInfoBackup: > > stages: [] > > groups: [] > > formTemplateId: 100 > > formType: 0 > > formReplySettings: > > locked: false > > submitter: true > > rankIds: [] > > showInProfile: false > > stages: [] > > newStage: > > id: "33333333-3333-3333-3333-333333333333" > > label: "Interview" > > availableStages: > > - > > id: "44444444-4444-4444-4444-444444444444" > > label: "Training" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/forms/1/stage" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/forms/1/stage" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000","newStageId":"review","optionalReason":"Reviewed manually."}' > ``` ## Response The `data` object includes the saved form, the chosen stage, and the remaining available stages. The outer service contract also carries `authorized` and `failed` flags. ```json theme={null} { "success": true, "data": { "authorized": true, "failed": false, "data": { "form": { "formId": 42, "sysStatus": true, "submissionTime": "2026-04-15T00:00:00.000Z", "lastActionTime": "2026-04-15T00:00:00.000Z", "formSubmitter": "00000000-0000-0000-0000-000000000000", "formContextUser": null, "relatedUsers": [], "formStructure": { "_label": "Example Form Submission", "fields": [] }, "formComments": { "comments": [] }, "stageId": "22222222-2222-2222-2222-222222222222", "stageGroupId": "11111111-1111-1111-1111-111111111111", "stageInfoBackup": { "stages": [], "groups": [] }, "formTemplateId": 100, "formType": 0, "formReplySettings": { "locked": false, "submitter": true, "rankIds": [] }, "showInProfile": false, "stages": [] }, "newStage": { "id": "33333333-3333-3333-3333-333333333333", "label": "Interview" }, "availableStages": [ { "id": "44444444-4444-4444-4444-444444444444", "label": "Training" } ] } }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/forms/1/stage" } } ``` # Get Form Lock Status Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-lock-status Retrieve the lock status for a form template. `GET` `https://api.sonorancms.com/v2/community/forms/1/lock` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the lock status for a form template. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `templateId` | number | Yes | Target templateId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local templateId = 1 > > local response = sonoran.cms:getFormLockV2(templateId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const templateId = 1; > > const response = await instance.cms.getFormLockV2(templateId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > templateId = 1 > > response = instance.cms.getFormLockV2(templateId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var templateId = 1; > > var response = await sonoran.Cms.getFormLockV2(templateId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Lock Status" > > version: "1.0.0" > > description: "Retrieve the lock status for a form template." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/forms/{templateId}/lock: > > get: > > summary: "Get Lock Status" > > operationId: "getFormLockStatus" > > parameters: > > - > > description: "Target form template id." > > name: "templateId" > > in: "path" > > schema: > > type: "integer" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: true > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/forms/1/lock" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/forms/1/lock" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` value is a boolean. `true` means the form template is locked; `false` means it is open. ```json theme={null} { "success": true, "data": true, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/forms/1/lock" } } ``` # Get Submission Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-submission Retrieve a single form submission. `GET` `https://api.sonorancms.com/v2/community/forms/submissions/1` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve a single form submission. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `submissionId` | number | Yes | Target submissionId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local submissionId = 1 > > local response = sonoran.cms:getSubmissionV2(submissionId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const submissionId = 1; > > const response = await instance.cms.getSubmissionV2(submissionId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > submissionId = 1 > > response = instance.cms.getSubmissionV2(submissionId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var submissionId = 1; > > var response = await sonoran.Cms.getSubmissionV2(submissionId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Submission" > > version: "1.0.0" > > description: "Retrieve a single form submission." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/forms/submissions/{submissionId}: > > get: > > summary: "Get Submission" > > operationId: "getFormSubmission" > > parameters: > > - > > description: "Target form submission id." > > name: "submissionId" > > in: "path" > > schema: > > type: "integer" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > formId: 42 > > sysStatus: true > > submissionTime: "2026-04-15T00:00:00.000Z" > > lastActionTime: "2026-04-15T00:00:00.000Z" > > formSubmitter: "00000000-0000-0000-0000-000000000000" > > formContextUser: null > > relatedUsers: [] > > formStructure: > > _label: "Example Form Submission" > > fields: [] > > formComments: > > comments: [] > > stageId: "22222222-2222-2222-2222-222222222222" > > stageGroupId: "11111111-1111-1111-1111-111111111111" > > stageInfoBackup: > > stages: [] > > groups: [] > > formTemplateId: 100 > > formType: 0 > > formReplySettings: > > locked: false > > submitter: true > > rankIds: [] > > showInProfile: false > > stages: [] > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/forms/submissions/1" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/forms/submissions/1" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is the audited form submission. It includes the hydrated template `stages` plus the normalized `formReplySettings` block. ```json theme={null} { "success": true, "data": { "formId": 42, "sysStatus": true, "submissionTime": "2026-04-15T00:00:00.000Z", "lastActionTime": "2026-04-15T00:00:00.000Z", "formSubmitter": "00000000-0000-0000-0000-000000000000", "formContextUser": null, "relatedUsers": [], "formStructure": { "_label": "Example Form Submission", "fields": [] }, "formComments": { "comments": [] }, "stageId": "22222222-2222-2222-2222-222222222222", "stageGroupId": "11111111-1111-1111-1111-111111111111", "stageInfoBackup": { "stages": [], "groups": [] }, "formTemplateId": 100, "formType": 0, "formReplySettings": { "locked": false, "submitter": true, "rankIds": [] }, "showInProfile": false, "stages": [] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/forms/submissions/1" } } ``` # Get Template Submissions Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-template-submissions Retrieve submissions for a form template. `GET` `https://api.sonorancms.com/v2/community/forms/1/submissions` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve submissions for a form template. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `templateId` | number | Yes | Target templateId. | ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `skip` | number | Yes | See example request for the shape. | \| `take` | number | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local templateId = 1 > local query = { > ["skip"] = 0, > ["take"] = 25 > } > > local response = sonoran.cms:getFormSubmissionsV2(templateId, query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const templateId = 1; > const query = { > "skip": 0, > "take": 25 > }; > > const response = await instance.cms.getFormSubmissionsV2(templateId, query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > templateId = 1 > query = { > "skip": 0, > "take": 25 > } > > response = instance.cms.getFormSubmissionsV2(templateId, query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var templateId = 1; > var query = new { > skip = 0, > take = 25 > }; > > var response = await sonoran.Cms.getFormSubmissionsV2(templateId, query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Template Submissions" > > version: "1.0.0" > > description: "Retrieve submissions for a form template." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/forms/{templateId}/submissions: > > get: > > summary: "Get Template Submissions" > > operationId: "getTemplateSubmissions" > > parameters: > > - > > description: "Target form template id." > > name: "templateId" > > in: "path" > > schema: > > type: "integer" > > required: true > > - > > description: "Number of rows to skip." > > name: "skip" > > in: "query" > > schema: > > type: "integer" > > required: false > > - > > description: "Number of rows to take." > > name: "take" > > in: "query" > > schema: > > type: "integer" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > count: 1 > > forms: > > - > > formId: 42 > > sysStatus: true > > submissionTime: "2026-04-15T00:00:00.000Z" > > lastActionTime: "2026-04-15T00:00:00.000Z" > > formSubmitter: "00000000-0000-0000-0000-000000000000" > > formContextUser: null > > relatedUsers: [] > > formStructure: > > _label: "Example Form Submission" > > fields: [] > > formComments: > > comments: [] > > stageId: "22222222-2222-2222-2222-222222222222" > > stageGroupId: "11111111-1111-1111-1111-111111111111" > > stageInfoBackup: > > stages: [] > > groups: [] > > formTemplateId: 100 > > formType: 0 > > formReplySettings: > > locked: false > > submitter: true > > rankIds: [] > > showInProfile: false > > stages: [] > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/forms/1/submissions" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/forms/1/submissions?skip=0&take=25" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object contains the total submission count and the audited form list for the requested template id. ```json theme={null} { "success": true, "data": { "count": 1, "forms": [ { "formId": 42, "sysStatus": true, "submissionTime": "2026-04-15T00:00:00.000Z", "lastActionTime": "2026-04-15T00:00:00.000Z", "formSubmitter": "00000000-0000-0000-0000-000000000000", "formContextUser": null, "relatedUsers": [], "formStructure": { "_label": "Example Form Submission", "fields": [] }, "formComments": { "comments": [] }, "stageId": "22222222-2222-2222-2222-222222222222", "stageGroupId": "11111111-1111-1111-1111-111111111111", "stageInfoBackup": { "stages": [], "groups": [] }, "formTemplateId": 100, "formType": 0, "formReplySettings": { "locked": false, "submitter": true, "rankIds": [] }, "showInProfile": false, "stages": [] } ] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/forms/1/submissions" } } ``` # Set Form Lock Status Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/set-lock-status Update the lock status for a form template. `PATCH` `https://api.sonorancms.com/v2/community/forms/1/lock` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the lock status for a form template. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `templateId` | number | Yes | Target templateId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `state` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local templateId = 1 > local payload = { > ["state"] = true > } > > local response = sonoran.cms:setFormLockV2(templateId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const templateId = 1; > const payload = { > "state": true > }; > > const response = await instance.cms.setFormLockV2(templateId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > templateId = 1 > payload = { > "state": True > } > > response = instance.cms.setFormLockV2(templateId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var templateId = 1; > var payload = new { > state = true > }; > > var response = await sonoran.Cms.setFormLockV2(templateId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Set Lock Status" > > version: "1.0.0" > > description: "Update the lock status for a form template." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/forms/{templateId}/lock: > > patch: > > summary: "Set Lock Status" > > operationId: "setFormLockStatus" > > parameters: > > - > > description: "Target form template id." > > name: "templateId" > > in: "path" > > schema: > > type: "integer" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "Successfully set the lock state for Example Form to: LOCKED" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/forms/1/lock" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/forms/1/lock" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"state":true}' > ``` ## Response The `data` value is a confirmation string returned by the community service after the lock state is updated. ```json theme={null} { "success": true, "data": "Successfully set the lock state for Example Form to: LOCKED", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/forms/1/lock" } } ``` # General Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general General endpoints for the v2 API. This section groups the v2 general endpoints. > [card] [Get Community](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-community) > [card] [Get Sub Version](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-sub-version) > [card] [Lookup Community](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/lookup-community) > [card] [Get Departments](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-departments) > [card] [Get Profile Fields](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-profile-fields) > [card] [Get Clock In Types](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-clockin-types) > [card] [Get Custom Log Types](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-custom-log-types) > [card] [Get Promotion Flows](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-promotion-flows) > [card] [Trigger Promotion Flows](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/trigger-promotion-flows) > [card] [Undo Rank Change](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/undo-rank-change) > [card] [Create Short URL](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/create-short-url) # Create Short URL Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/create-short-url Create a short URL for the community. `POST` `https://api.sonorancms.com/v2/community/short-urls` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Create a short URL for the community. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `path` | string | Yes | See example request for the shape. | \| `isCustomDomain` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["path"] = "/go/example", > ["isCustomDomain"] = false > } > > local response = sonoran.cms:createShortUrlV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "path": "/go/example", > "isCustomDomain": false > }; > > const response = await instance.cms.createShortUrlV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "path": "/go/example", > "isCustomDomain": False > } > > response = instance.cms.createShortUrlV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > path = "/go/example", > isCustomDomain = false > }; > > var response = await sonoran.Cms.createShortUrlV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Create Short Url" > > version: "1.0.0" > > description: "Create a short URL for the community." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/short-urls: > > post: > > summary: "Create Short Url" > > operationId: "createShortUrl" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "201": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > success: true > > redirect: "https://sonorancms.com/dashboard" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/short-urls" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/short-urls" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"path":"/go/example","isCustomDomain":false}' > ``` ## Response The `data` object is the nested short-url lookup result. On success it contains `success: true` and the resolved `redirect` URL. ```json theme={null} { "success": true, "data": { "success": true, "redirect": "https://sonorancms.com/dashboard" }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/short-urls" } } ``` # Get Clock In Types Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-clockin-types Retrieve the configured clock-in types. `GET` `https://api.sonorancms.com/v2/community/clockin-types` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the configured clock-in types. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getClockInTypesV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getClockInTypesV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getClockInTypesV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getClockInTypesV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Clockin Types" > > version: "1.0.0" > > description: "Retrieve the configured clock-in types." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/clockin-types: > > get: > > summary: "Get Clockin Types" > > operationId: "getClockInTypes" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "patrol" > > label: "Patrol" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/clockin-types" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/clockin-types" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the community clock-in types exactly as configured in the community settings. ```json theme={null} { "success": true, "data": [ { "id": "patrol", "label": "Patrol" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/clockin-types" } } ``` # Get Community Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-community Retrieve the current community summary. `GET` `https://api.sonorancms.com/v2/community` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the current community summary. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getCommunityV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getCommunityV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getCommunityV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getCommunityV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Community" > > version: "1.0.0" > > description: "Retrieve the current community summary." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community: > > get: > > summary: "Get Community" > > operationId: "getCommunity" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "CMS-1000" > > uuid: "00000000-0000-0000-0000-000000000000" > > name: "Example Community" > > subVersion: 5 > > tier: "SonoranOne" > > servers: 3 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is the community summary returned by `V2Service.summary()`. It includes the community identifier, UUID, name, sub-version, resolved tier, and server count. ```json theme={null} { "success": true, "data": { "id": "CMS-1000", "uuid": "00000000-0000-0000-0000-000000000000", "name": "Example Community", "subVersion": 5, "tier": "SonoranOne", "servers": 3 }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community" } } ``` # Get Custom Log Types Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-custom-log-types Retrieve the configured custom log types. `GET` `https://api.sonorancms.com/v2/community/custom-log-types` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the configured custom log types. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getCustomLogTypesV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getCustomLogTypesV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getCustomLogTypesV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getCustomLogTypesV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Custom Log Types" > > version: "1.0.0" > > description: "Retrieve the configured custom log types." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/custom-log-types: > > get: > > summary: "Get Custom Log Types" > > operationId: "getCustomLogTypes" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "33333333-3333-3333-3333-333333333333" > > label: "Internal Warning" > > shortCode: "warn" > > melonlyId: "101" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/custom-log-types" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/custom-log-types" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the configured custom log types used by ERLC and disciplinary integrations. ```json theme={null} { "success": true, "data": [ { "id": "33333333-3333-3333-3333-333333333333", "label": "Internal Warning", "shortCode": "warn", "melonlyId": "101" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/custom-log-types" } } ``` # Get Departments Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-departments Retrieve the community departments. `GET` `https://api.sonorancms.com/v2/community/departments` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the community departments. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getDepartmentsV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getDepartmentsV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getDepartmentsV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getDepartmentsV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Departments" > > version: "1.0.0" > > description: "Retrieve the community departments." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/departments: > > get: > > summary: "Get Departments" > > operationId: "getDepartments" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > uuid: "11111111-1111-1111-1111-111111111111" > > label: "Police Department" > > labelTwo: "Police" > > ranks: > > - > > id: "22222222-2222-2222-2222-222222222222" > > label: "Cadet" > > primaryOnly: true > > secondaryOnly: false > > power: 10 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/departments" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/departments" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array is the community department list. Each department includes its label pair and the ranks nested beneath it. ```json theme={null} { "success": true, "data": [ { "uuid": "11111111-1111-1111-1111-111111111111", "label": "Police Department", "labelTwo": "Police", "ranks": [ { "id": "22222222-2222-2222-2222-222222222222", "label": "Cadet", "primaryOnly": true, "secondaryOnly": false, "power": 10 } ] } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/departments" } } ``` # Get Profile Fields Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-profile-fields Retrieve the configured profile fields. `GET` `https://api.sonorancms.com/v2/community/profile-fields` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the configured profile fields. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getProfileFieldsV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getProfileFieldsV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getProfileFieldsV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getProfileFieldsV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Profile Fields" > > version: "1.0.0" > > description: "Retrieve the configured profile fields." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/profile-fields: > > get: > > summary: "Get Profile Fields" > > operationId: "getProfileFields" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "discord" > > label: "Discord" > > type: "discord" > > options: null > > metadata: > > placeholder: "username#0000" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/profile-fields" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/profile-fields" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the community profile field definitions with their ids, labels, types, options, and metadata. ```json theme={null} { "success": true, "data": [ { "id": "discord", "label": "Discord", "type": "discord", "options": null, "metadata": { "placeholder": "username#0000" } } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/profile-fields" } } ``` # Get Promotion Flows Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-promotion-flows Retrieve the configured promotion flows. `GET` `https://api.sonorancms.com/v2/community/promotion-flows` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the configured promotion flows. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getPromotionFlowsV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getPromotionFlowsV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getPromotionFlowsV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getPromotionFlowsV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Promotion Flows" > > version: "1.0.0" > > description: "Retrieve the configured promotion flows." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/promotion-flows: > > get: > > summary: "Get Promotion Flows" > > operationId: "getPromotionFlows" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "44444444-4444-4444-4444-444444444444" > > communityUuid: "00000000-0000-0000-0000-000000000000" > > labelFrom: "Cadet" > > labelTo: "Officer" > > ranksToAdd: > > - "22222222-2222-2222-2222-222222222222" > > ranksToRemove: [] > > actions: > > data: [] > > promotionType: "both" > > promotionType: "both" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/promotion-flows" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/promotion-flows" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains promotion flow entities with the derived `promotionType` field added by the v2 service. ```json theme={null} { "success": true, "data": [ { "id": "44444444-4444-4444-4444-444444444444", "communityUuid": "00000000-0000-0000-0000-000000000000", "labelFrom": "Cadet", "labelTo": "Officer", "ranksToAdd": [ "22222222-2222-2222-2222-222222222222" ], "ranksToRemove": [], "actions": { "data": [], "promotionType": "both" }, "promotionType": "both" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/promotion-flows" } } ``` # Get Sub Version Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-sub-version Retrieve the community subscription tier. `GET` `https://api.sonorancms.com/v2/community/sub-version` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the community subscription tier. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getSubVersionV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getSubVersionV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getSubVersionV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getSubVersionV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Sub Version" > > version: "1.0.0" > > description: "Retrieve the community subscription tier." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/sub-version: > > get: > > summary: "Get Sub Version" > > operationId: "getSubVersion" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > subVersion: 5 > > tier: "SonoranOne" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/sub-version" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/sub-version" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is the current community sub-version and the resolved tier name from `SubNumLevelToName()`. ```json theme={null} { "success": true, "data": { "subVersion": 5, "tier": "SonoranOne" }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/sub-version" } } ``` # Lookup Community Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/lookup-community Look up the community by ID or UUID. `GET` `https://api.sonorancms.com/v2/community/lookup` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Look up the community by ID or UUID. ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `id` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local query = { > ["id"] = "YOUR_COMMUNITY_ID" > } > > local response = sonoran.cms:lookupCommunityV2(query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const query = { > "id": "YOUR_COMMUNITY_ID" > }; > > const response = await instance.cms.lookupCommunityV2(query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > query = { > "id": "YOUR_COMMUNITY_ID" > } > > response = instance.cms.lookupCommunityV2(query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var query = new { > id = "YOUR_COMMUNITY_ID" > }; > > var response = await sonoran.Cms.lookupCommunityV2(query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Lookup Community" > > version: "1.0.0" > > description: "Look up the community by ID or UUID." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/lookup: > > get: > > summary: "Lookup Community" > > operationId: "lookupCommunity" > > parameters: > > - > > description: "Community id. Provide exactly one identifier." > > name: "id" > > in: "query" > > schema: > > type: "string" > > required: false > > - > > description: "Community UUID. Provide exactly one identifier." > > name: "uuid" > > in: "query" > > schema: > > type: "string" > > format: "uuid" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "CMS-1000" > > uuid: "00000000-0000-0000-0000-000000000000" > > name: "Example Community" > > subVersion: 5 > > tier: "SonoranOne" > > servers: 3 > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/lookup" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/lookup?id=YOUR_COMMUNITY_ID" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is the community summary returned by `V2Service.summary()`. It includes the community identifier, UUID, name, sub-version, resolved tier, and server count. This lookup returns the same community summary shape as `GET /v2/community`, but it can resolve the community by id or UUID. ```json theme={null} { "success": true, "data": { "id": "CMS-1000", "uuid": "00000000-0000-0000-0000-000000000000", "name": "Example Community", "subVersion": 5, "tier": "SonoranOne", "servers": 3 }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/lookup" } } ``` # Trigger Promotion Flows Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/trigger-promotion-flows Trigger one or more promotion flow actions. `POST` `https://api.sonorancms.com/v2/community/promotion-flows/trigger` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Trigger one or more promotion flow actions. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `data` | array | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["data"] = { > { > ["flowId"] = "flow-1", > ["users"] = { > "ExampleUser" > }, > ["promote"] = true > } > } > } > > local response = sonoran.cms:triggerPromotionFlowsV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "data": [ > { > "flowId": "flow-1", > "users": [ > "ExampleUser" > ], > "promote": true > } > ] > }; > > const response = await instance.cms.triggerPromotionFlowsV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "data": [ > { > "flowId": "flow-1", > "users": [ > "ExampleUser" > ], > "promote": True > } > ] > } > > response = instance.cms.triggerPromotionFlowsV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > data = new[] { > new { > flowId = "flow-1", > users = new[] { > "ExampleUser" > }, > promote = true > } > } > }; > > var response = await sonoran.Cms.triggerPromotionFlowsV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Trigger Promotion Flows" > > version: "1.0.0" > > description: "Trigger one or more promotion flow actions." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/promotion-flows/trigger: > > post: > > summary: "Trigger Promotion Flows" > > operationId: "triggerPromotionFlows" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > users: > > - "00000000-0000-0000-0000-000000000000" > > flow: "44444444-4444-4444-4444-444444444444" > > promote: true > > succeeded: true > > message: "Promotion executed successfully" > > config: > > id: "44444444-4444-4444-4444-444444444444" > > communityUuid: "00000000-0000-0000-0000-000000000000" > > labelFrom: "Cadet" > > labelTo: "Officer" > > ranksToAdd: > > - "22222222-2222-2222-2222-222222222222" > > ranksToRemove: [] > > actions: > > data: [] > > promotionType: "both" > > promotionType: "both" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/promotion-flows/trigger" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/promotion-flows/trigger" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"data":[{"flowId":"flow-1","users":["ExampleUser"],"promote":true}]}' > ``` ## Response The `data` array contains one result object per flow/user combination. Each entry includes the users involved, the flow id, whether it was a promotion or demotion, the execution result, and the resolved flow config. ```json theme={null} { "success": true, "data": [ { "users": [ "00000000-0000-0000-0000-000000000000" ], "flow": "44444444-4444-4444-4444-444444444444", "promote": true, "succeeded": true, "message": "Promotion executed successfully", "config": { "id": "44444444-4444-4444-4444-444444444444", "communityUuid": "00000000-0000-0000-0000-000000000000", "labelFrom": "Cadet", "labelTo": "Officer", "ranksToAdd": [ "22222222-2222-2222-2222-222222222222" ], "ranksToRemove": [], "actions": { "data": [], "promotionType": "both" }, "promotionType": "both" } } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/promotion-flows/trigger" } } ``` # Undo Rank Change Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/undo-rank-change Undo a previously recorded rank change. `POST` `https://api.sonorancms.com/v2/community/rank-changes/11111111-1111-1111-1111-111111111111/undo` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Undo a previously recorded rank change. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `undoId` | string (uuid) | Yes | Target undoId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `userId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local undoId = "00000000-0000-0000-0000-000000000000" > local payload = { > ["userId"] = "11111111-1111-1111-1111-111111111111" > } > > local response = sonoran.cms:undoRankChangeV2(undoId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const undoId = "00000000-0000-0000-0000-000000000000"; > const payload = { > "userId": "11111111-1111-1111-1111-111111111111" > }; > > const response = await instance.cms.undoRankChangeV2(undoId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > undoId = "00000000-0000-0000-0000-000000000000" > payload = { > "userId": "11111111-1111-1111-1111-111111111111" > } > > response = instance.cms.undoRankChangeV2(undoId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var undoId = "00000000-0000-0000-0000-000000000000"; > var payload = new { > userId = "11111111-1111-1111-1111-111111111111" > }; > > var response = await sonoran.Cms.undoRankChangeV2(undoId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Undo Rank Change" > > version: "1.0.0" > > description: "Undo a previously recorded rank change." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/rank-changes/{undoId}/undo: > > post: > > summary: "Undo Rank Change" > > operationId: "undoRankChange" > > parameters: > > - > > description: "Target rank change undo id." > > name: "undoId" > > in: "path" > > schema: > > type: "string" > > format: "uuid" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > undoId: "55555555-5555-5555-5555-555555555555" > > account: > > accId: "00000000-0000-0000-0000-000000000000" > > sysStatus: true > > comStatus: true > > accName: "ExampleAccount" > > comName: "Example Community" > > joinDate: "2026-04-15T00:00:00.000Z" > > lastLogin: "2026-04-15T00:00:00.000Z" > > owner: false > > banned: false > > banInfo: null > > banExpiration: null > > apiIdPreference: 0 > > apiIds: > > ids: [] > > activeApiIds: > > - "discord:1234567890" > > identifiers: > > idents: > > - > > id: "55555555-5555-5555-5555-555555555555" > > accId: "00000000-0000-0000-0000-000000000000" > > type: "discord" > > value: "1234567890" > > refCount: 1 > > verified: true > > metadata: {} > > flagId: null > > createdAt: "2026-04-15T00:00:00.000Z" > > updatedAt: null > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > clockData: > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > startTime: "2026-04-15T00:00:00.000Z" > > endTime: null > > completed: false > > notes: [] > > type: "patrol" > > profileFields: > > data: > > - > > id: "discord" > > value: "1234567890" > > bio: null > > archived: false > > discordId: "1234567890" > > robloxId: "987654321" > > uniqueId: 1001 > > customUniqueId: false > > notificationPreferences: > > forms: > > statusChange: > > inbox: true > > desktop: true > > mobile: true > > email: true > > discord: true > > teamspeakId: null > > previousRanks: > > - "11111111-1111-1111-1111-111111111111" > > currentRanks: > > - "22222222-2222-2222-2222-222222222222" > > originalLogId: "44444444-4444-4444-4444-444444444444" > > reversalUndoId: "33333333-3333-3333-3333-333333333333" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/rank-changes/11111111-1111-1111-1111-111111111111/undo" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/rank-changes/11111111-1111-1111-1111-111111111111/undo" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"userId":"11111111-1111-1111-1111-111111111111"}' > ``` ## Response The `data` object contains the undo summary, the updated account, the previous and current ranks, and the original/reversal log ids. ```json theme={null} { "success": true, "data": { "undoId": "55555555-5555-5555-5555-555555555555", "account": { "accId": "00000000-0000-0000-0000-000000000000", "sysStatus": true, "comStatus": true, "accName": "ExampleAccount", "comName": "Example Community", "joinDate": "2026-04-15T00:00:00.000Z", "lastLogin": "2026-04-15T00:00:00.000Z", "owner": false, "banned": false, "banInfo": null, "banExpiration": null, "apiIdPreference": 0, "apiIds": { "ids": [] }, "activeApiIds": [ "discord:1234567890" ], "identifiers": { "idents": [ { "id": "55555555-5555-5555-5555-555555555555", "accId": "00000000-0000-0000-0000-000000000000", "type": "discord", "value": "1234567890", "refCount": 1, "verified": true, "metadata": {}, "flagId": null, "createdAt": "2026-04-15T00:00:00.000Z", "updatedAt": null } ] }, "ranks": [ "22222222-2222-2222-2222-222222222222" ], "clockData": { "data": [ { "id": "55555555-5555-5555-5555-555555555555", "startTime": "2026-04-15T00:00:00.000Z", "endTime": null, "completed": false, "notes": [], "type": "patrol" } ] }, "profileFields": { "data": [ { "id": "discord", "value": "1234567890" } ] }, "bio": null, "archived": false, "discordId": "1234567890", "robloxId": "987654321", "uniqueId": 1001, "customUniqueId": false, "notificationPreferences": { "forms": { "statusChange": { "inbox": true, "desktop": true, "mobile": true, "email": true, "discord": true } } }, "teamspeakId": null }, "previousRanks": [ "11111111-1111-1111-1111-111111111111" ], "currentRanks": [ "22222222-2222-2222-2222-222222222222" ], "originalLogId": "44444444-4444-4444-4444-444444444444", "reversalUndoId": "33333333-3333-3333-3333-333333333333" }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/rank-changes/11111111-1111-1111-1111-111111111111/undo" } } ``` # Libraries Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/libraries Install links for the official Sonoran SDK libraries used with the v2 API. The official Sonoran SDK libraries provide package-managed access to Sonoran CMS integrations and v2 API helpers. ## Package Manager Links * [Sonoran.js on npm](https://www.npmjs.com/package/@sonoransoftware/sonoran.js) * [Sonoran.lua on LuaRocks](https://luarocks.org/modules/sonoransoftware/sonoran.lua) * [Sonoran.Net on NuGet](https://www.nuget.org/packages/Sonoran.Net) * [Sonoran.py on PyPI](https://pypi.org/project/Sonoran.py/) # Rate Limits Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/rate-limits Rate limits for the v2 API. The documented ceilings below are intentionally a little lower than the live gateway limits so normal integration bursts still have a safety buffer. All limits are enforced per credential. ## General | Endpoint | Safe Limit | | - | - | | [Get Community](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-community) | `13 requests/min` | | [Get Sub Version](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-sub-version) | `13 requests/min` | | [Lookup Community](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/lookup-community) | `13 requests/min` | | [Get Departments](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-departments) | `13 requests/min` | | [Get Profile Fields](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-profile-fields) | `13 requests/min` | | [Get Clock In Types](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-clockin-types) | `13 requests/min` | | [Get Custom Log Types](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-custom-log-types) | `13 requests/min` | | [Get Promotion Flows](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-promotion-flows) | `13 requests/min` | | [Trigger Promotion Flows](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/trigger-promotion-flows) | `13 requests/min` | | [Undo Rank Change](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/undo-rank-change) | `13 requests/min` | | [Create Short URL](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/create-short-url) | `13 requests/min` | ## Accounts | Endpoint | Safe Limit | | - | - | | [Get Accounts](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-accounts) | `22 requests/min` | | [Search Accounts](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/search-accounts) | `27 requests/min` | | [Get Account](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account) | `27 requests/min` | | [Get Account Ranks](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account-ranks) | `27 requests/min` | | [Get Account Identifiers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-account-identifiers) | `22 requests/min` | | [Register Identifiers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/register-identifiers) | `22 requests/min` | | [Set Account Name](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/set-account-name) | `22 requests/min` | | [Set Account Ranks](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/set-account-ranks) | `22 requests/min` | | [Edit Profile Fields](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/edit-profile-fields) | `22 requests/min` | | [Clock Account](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/clock-account) | `22 requests/min` | | [Get Current Clock In](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-current-clock-in) | `27 requests/min` | | [Get Latest Activity](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/get-latest-activity) | `27 requests/min` | | [Force Sync](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/force-sync) | `27 requests/min` | ## Servers | Endpoint | Safe Limit | | - | - | | [Get Servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/get-servers) | `13 requests/min` | | [Set Servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-servers) | `9 requests/min` | | [Add Servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/add-servers) | `9 requests/min` | | [Get ACE Config](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/get-ace-config) | `27 requests/min` | | [Set ACE Config](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-ace-config) | `18 requests/min` | | [Set Server Type](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-server-type) | `18 requests/min` | | [Verify Whitelist](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/verify-whitelist) | `27 requests/min` | | [Full Whitelist](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/full-whitelist) | `13 requests/min` | | [Activity Tracker](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker) | `27 requests/min` | | [Activity Tracker Server Start](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker-server-start) | `27 requests/min` | ## Events | Endpoint | Safe Limit | | - | - | | [RSVP](/cms/developer-api-documentation/api-integration/api-endpoints-v2/events/rsvp) | `27 requests/min` | ## Forms | Endpoint | Safe Limit | | - | - | | [Change Form Stage](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/change-stage) | `27 requests/min` | | [Get Template Submissions](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-template-submissions) | `13 requests/min` | | [Get Form Lock Status](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-lock-status) | `27 requests/min` | | [Set Form Lock Status](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/set-lock-status) | `18 requests/min` | | [Get Submission](/cms/developer-api-documentation/api-integration/api-endpoints-v2/forms/get-submission) | `27 requests/min` | ## Rosters | Endpoint | Safe Limit | | - | - | | [Get Roster Contents](/cms/developer-api-documentation/api-integration/api-endpoints-v2/rosters/get-roster-contents) | `9 requests/min` | ## Disciplinary | Endpoint | Safe Limit | | - | - | | [Get Member Points](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/get-member-points) | `27 requests/min` | | [Get Member Records](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/get-member-records) | `27 requests/min` | | [Add Member Record](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/add-member-record) | `18 requests/min` | | [Update Member Record Points](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-points) | `18 requests/min` | | [Update Member Record Reason](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-reason) | `18 requests/min` | | [Update Member Record Status](/cms/developer-api-documentation/api-integration/api-endpoints-v2/disciplinary/update-member-record-status) | `18 requests/min` | ## ERLC | Endpoint | Safe Limit | | - | - | | [Get Online Players](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/get-online-players) | `27 requests/min` | | [Get Player Queue](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/get-player-queue) | `27 requests/min` | | [Add ERLC Record](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/add-record) | `18 requests/min` | | [Execute Command](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/execute-command) | `18 requests/min` | | [Lock Team](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/lock-team) | `18 requests/min` | | [Unlock Team](/cms/developer-api-documentation/api-integration/api-endpoints-v2/erlc/unlock-team) | `18 requests/min` | ## Sessions | Endpoint | Safe Limit | | - | - | | [Get Current Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/get-current-session) | `27 requests/min` | | [Start Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/start-session) | `27 requests/min` | | [Stop Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/stop-session) | `27 requests/min` | | [Cancel Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/cancel-session) | `9 requests/min` | # Rosters Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/rosters Rosters endpoints for the v2 API. This section groups the v2 rosters endpoints. > [card] [Get Roster Contents](/cms/developer-api-documentation/api-integration/api-endpoints-v2/rosters/get-roster-contents) # Get Roster Contents Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/rosters/get-roster-contents Retrieve the contents of a roster. `GET` `https://api.sonorancms.com/v2/community/rosters/1` > **Rate limit:** `9 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the contents of a roster. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `rosterId` | number | Yes | Target rosterId. | ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `skip` | number | Yes | See example request for the shape. | \| `limit` | number | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local rosterId = 1 > local query = { > ["skip"] = 0, > ["limit"] = 25 > } > > local response = sonoran.cms:getRosterV2(rosterId, query) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const rosterId = 1; > const query = { > "skip": 0, > "limit": 25 > }; > > const response = await instance.cms.getRosterV2(rosterId, query); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > rosterId = 1 > query = { > "skip": 0, > "limit": 25 > } > > response = instance.cms.getRosterV2(rosterId, query) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var rosterId = 1; > var query = new { > skip = 0, > limit = 25 > }; > > var response = await sonoran.Cms.getRosterV2(rosterId, query); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Roster Contents" > > version: "1.0.0" > > description: "Retrieve the contents of a roster." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/rosters/{rosterId}: > > get: > > summary: "Get Roster Contents" > > operationId: "getRosterContents" > > parameters: > > - > > description: "Target roster id." > > name: "rosterId" > > in: "path" > > schema: > > type: "integer" > > required: true > > - > > description: "Number of rows to skip." > > name: "skip" > > in: "query" > > schema: > > type: "integer" > > required: false > > - > > description: "Maximum number of rows to return." > > name: "limit" > > in: "query" > > schema: > > type: "integer" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > rows: > > - > > uuid: "55555555-5555-5555-5555-555555555555" > > sortPower: 10 > > name: "ExampleAccount" > > rank: "Cadet" > > total: 1 > > skip: 0 > > limit: 25 > > columns: > > - > > field: "name" > > type: "text" > > mask: "" > > reverseMask: false > > label: "Name" > > options: [] > > metadata: {} > > cosmetic: > > font: null > > textColor: null > > color: null > > align: null > > style: {} > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/rosters/1" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/rosters/1?skip=0&limit=25" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object includes the paginated roster rows, paging metadata, and the roster column definitions that were used to shape the rows. Row keys are dynamic and follow the roster template. ```json theme={null} { "success": true, "data": { "rows": [ { "uuid": "55555555-5555-5555-5555-555555555555", "sortPower": 10, "name": "ExampleAccount", "rank": "Cadet" } ], "total": 1, "skip": 0, "limit": 25, "columns": [ { "field": "name", "type": "text", "mask": "", "reverseMask": false, "label": "Name", "options": [], "metadata": {}, "cosmetic": { "font": null, "textColor": null, "color": null, "align": null }, "style": {} } ] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/rosters/1" } } ``` # Servers Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers Servers endpoints for the v2 API. This section groups the v2 servers endpoints. > [card] [Get Servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/get-servers) > [card] [Set Servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-servers) > [card] [Add Servers](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/add-servers) > [card] [Get ACE Config](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/get-ace-config) > [card] [Set ACE Config](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-ace-config) > [card] [Set Server Type](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-server-type) > [card] [Verify Whitelist](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/verify-whitelist) > [card] [Full Whitelist](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/full-whitelist) > [card] [Activity Tracker](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker) > [card] [Activity Tracker Server Start](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker-server-start) # Activity Tracker Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker Record a server activity event. `POST` `https://api.sonorancms.com/v2/community/servers/1/activity` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Record a server activity event. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | \| `forceStart` | boolean | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000", > ["forceStart"] = true > } > > local response = sonoran.cms:createActivityV2(serverId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "forceStart": true > }; > > const response = await instance.cms.createActivityV2(serverId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > payload = { > "accId": "00000000-0000-0000-0000-000000000000", > "forceStart": True > } > > response = instance.cms.createActivityV2(serverId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000", > forceStart = true > }; > > var response = await sonoran.Cms.createActivityV2(serverId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Activity Tracker" > > version: "1.0.0" > > description: "Record a server activity event." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/activity: > > post: > > summary: "Activity Tracker" > > operationId: "activityTracker" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "55555555-5555-5555-5555-555555555555" > > status: true > > accId: "00000000-0000-0000-0000-000000000000" > > serverId: 1 > > start: "2026-04-15T00:00:00.000Z" > > end: null > > clearReason: null > > metadata: {} > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/activity" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/servers/1/activity" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000","forceStart":true}' > ``` ## Response The `data` object is the activity row that was created or updated. Stop/clear branches can return partial row objects with the updated timestamps or clear reason. ```json theme={null} { "success": true, "data": { "id": "55555555-5555-5555-5555-555555555555", "status": true, "accId": "00000000-0000-0000-0000-000000000000", "serverId": 1, "start": "2026-04-15T00:00:00.000Z", "end": null, "clearReason": null, "metadata": {} }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/activity" } } ``` # Activity Tracker Server Start Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker-server-start Start activity tracking for a server. `POST` `https://api.sonorancms.com/v2/community/servers/1/activity/start` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Start activity tracking for a server. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > > local response = sonoran.cms:startActivityV2(serverId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > > const response = await instance.cms.startActivityV2(serverId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > > response = instance.cms.startActivityV2(serverId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > > var response = await sonoran.Cms.startActivityV2(serverId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Activity Tracker Server Start" > > version: "1.0.0" > > description: "Start activity tracking for a server." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/activity/start: > > post: > > summary: "Activity Tracker Server Start" > > operationId: "activityTrackerServerStart" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > id: "55555555-5555-5555-5555-555555555555" > > accId: "00000000-0000-0000-0000-000000000000" > > serverId: 1 > > end: "2026-04-15T00:00:00.000Z" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/activity/start" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/servers/1/activity/start" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the rows that were force-finished when a server start reset cleared in-progress activity. ```json theme={null} { "success": true, "data": [ { "id": "55555555-5555-5555-5555-555555555555", "accId": "00000000-0000-0000-0000-000000000000", "serverId": 1, "end": "2026-04-15T00:00:00.000Z" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/activity/start" } } ``` # Add Servers Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/add-servers Append one or more servers to the configuration. `POST` `https://api.sonorancms.com/v2/community/servers` > **Rate limit:** `9 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Append one or more servers to the configuration. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `servers` | array | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["servers"] = { > { > ["id"] = 1, > ["name"] = "Main Server", > ["description"] = "Primary community server", > ["ip"] = "127.0.0.1", > ["port"] = "30120", > ["type"] = "FiveM", > ["erlcApiKey"] = "", > ["robloxJoinCode"] = "ABC123", > ["aceConfig"] = { }, > ["robloxMetadata"] = { } > } > } > } > > local response = sonoran.cms:addServersV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "servers": [ > { > "id": 1, > "name": "Main Server", > "description": "Primary community server", > "ip": "127.0.0.1", > "port": "30120", > "type": "FiveM", > "erlcApiKey": "", > "robloxJoinCode": "ABC123", > "aceConfig": {}, > "robloxMetadata": {} > } > ] > }; > > const response = await instance.cms.addServersV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "servers": [ > { > "id": 1, > "name": "Main Server", > "description": "Primary community server", > "ip": "127.0.0.1", > "port": "30120", > "type": "FiveM", > "erlcApiKey": "", > "robloxJoinCode": "ABC123", > "aceConfig": {}, > "robloxMetadata": {} > } > ] > } > > response = instance.cms.addServersV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > servers = new[] { > new { > id = 1, > name = "Main Server", > description = "Primary community server", > ip = "127.0.0.1", > port = "30120", > type = "FiveM", > erlcApiKey = "", > robloxJoinCode = "ABC123", > aceConfig = new { }, > robloxMetadata = new { } > } > } > }; > > var response = await sonoran.Cms.addServersV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Add Servers" > > version: "1.0.0" > > description: "Append one or more servers to the configuration." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers: > > post: > > summary: "Add Servers" > > operationId: "addServers" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > servers: > > - > > id: 1 > > name: "Main Server" > > description: "Primary gameplay server" > > ip: "127.0.0.1" > > port: "30120" > > typeLastUpdated: "2026-04-15T00:00:00.000Z" > > type: "erlc" > > robloxJoinCode: "ABCD-1234" > > aceConfig: > > mappings: > > - > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > principal: "group:123456" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/servers" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"servers":[{"id":1,"name":"Main Server","description":"Primary community server","ip":"127.0.0.1","port":"30120","type":"FiveM","erlcApiKey":"","robloxJoinCode":"ABC123","aceConfig":{},"robloxMetadata":{}}]}' > ``` ## Response The `data` object is the community `servers` container. It exposes the server list the backend stores for the community. ```json theme={null} { "success": true, "data": { "servers": [ { "id": 1, "name": "Main Server", "description": "Primary gameplay server", "ip": "127.0.0.1", "port": "30120", "typeLastUpdated": "2026-04-15T00:00:00.000Z", "type": "erlc", "robloxJoinCode": "ABCD-1234", "aceConfig": { "mappings": [ { "ranks": [ "22222222-2222-2222-2222-222222222222" ], "principal": "group:123456" } ] } } ] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers" } } ``` # Full Whitelist Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/full-whitelist Retrieve the full whitelist for a server. `GET` `https://api.sonorancms.com/v2/community/servers/1/whitelist` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the full whitelist for a server. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > > local response = sonoran.cms:getWhitelistV2(serverId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > > const response = await instance.cms.getWhitelistV2(serverId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > > response = instance.cms.getWhitelistV2(serverId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > > var response = await sonoran.Cms.getWhitelistV2(serverId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Full Whitelist" > > version: "1.0.0" > > description: "Retrieve the full whitelist for a server." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/whitelist: > > get: > > summary: "Full Whitelist" > > operationId: "getFullWhitelist" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > name: "ExampleAccount" > > apiIds: > > - "discord:1234567890" > > - "roblox:987654321" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/whitelist" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/servers/1/whitelist" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains the full whitelist entries, each with the community account name and the API identifiers that should be allowed into the server. ```json theme={null} { "success": true, "data": [ { "name": "ExampleAccount", "apiIds": [ "discord:1234567890", "roblox:987654321" ] } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/whitelist" } } ``` # Get ACE Config Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/get-ace-config Retrieve the ACE configuration for a server. `GET` `https://api.sonorancms.com/v2/community/servers/1/ace-config` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the ACE configuration for a server. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > > local response = sonoran.cms:getAceConfigV2(serverId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > > const response = await instance.cms.getAceConfigV2(serverId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > > response = instance.cms.getAceConfigV2(serverId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > > var response = await sonoran.Cms.getAceConfigV2(serverId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Ace Config" > > version: "1.0.0" > > description: "Retrieve the ACE configuration for a server." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/ace-config: > > get: > > summary: "Get Ace Config" > > operationId: "getAceConfig" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > - > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > principal: "group:123456" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/ace-config" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/servers/1/ace-config" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` array contains ACE mapping objects for the requested server. The v2 service returns the flattened `mappings` array. ```json theme={null} { "success": true, "data": [ { "ranks": [ "22222222-2222-2222-2222-222222222222" ], "principal": "group:123456" } ], "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/ace-config" } } ``` # Get Servers Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/get-servers Retrieve the configured servers. `GET` `https://api.sonorancms.com/v2/community/servers` > **Rate limit:** `13 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the configured servers. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local response = sonoran.cms:getServersV2() > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const response = await instance.cms.getServersV2(); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > response = instance.cms.getServersV2() > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var response = await sonoran.Cms.getServersV2(); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Servers" > > version: "1.0.0" > > description: "Retrieve the configured servers." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers: > > get: > > summary: "Get Servers" > > operationId: "getServers" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > servers: > > - > > id: 1 > > name: "Main Server" > > description: "Primary gameplay server" > > ip: "127.0.0.1" > > port: "30120" > > typeLastUpdated: "2026-04-15T00:00:00.000Z" > > type: "erlc" > > robloxJoinCode: "ABCD-1234" > > aceConfig: > > mappings: > > - > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > principal: "group:123456" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/servers" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is the community `servers` container. It exposes the server list the backend stores for the community. ```json theme={null} { "success": true, "data": { "servers": [ { "id": 1, "name": "Main Server", "description": "Primary gameplay server", "ip": "127.0.0.1", "port": "30120", "typeLastUpdated": "2026-04-15T00:00:00.000Z", "type": "erlc", "robloxJoinCode": "ABCD-1234", "aceConfig": { "mappings": [ { "ranks": [ "22222222-2222-2222-2222-222222222222" ], "principal": "group:123456" } ] } } ] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers" } } ``` # Set ACE Config Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-ace-config Update the ACE configuration for a server. `PATCH` `https://api.sonorancms.com/v2/community/servers/1/ace-config` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the ACE configuration for a server. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `mappings` | array | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > local payload = { > ["mappings"] = { > { > ["discordRoleId"] = "1234567890", > ["aceGroup"] = "admin" > } > } > } > > local response = sonoran.cms:setAceConfigV2(serverId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > const payload = { > "mappings": [ > { > "discordRoleId": "1234567890", > "aceGroup": "admin" > } > ] > }; > > const response = await instance.cms.setAceConfigV2(serverId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > payload = { > "mappings": [ > { > "discordRoleId": "1234567890", > "aceGroup": "admin" > } > ] > } > > response = instance.cms.setAceConfigV2(serverId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > var payload = new { > mappings = new[] { > new { > discordRoleId = "1234567890", > aceGroup = "admin" > } > } > }; > > var response = await sonoran.Cms.setAceConfigV2(serverId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Set Ace Config" > > version: "1.0.0" > > description: "Update the ACE configuration for a server." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/ace-config: > > patch: > > summary: "Set Ace Config" > > operationId: "setAceConfig" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > mappings: > > - > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > principal: "group:123456" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/ace-config" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/servers/1/ace-config" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"mappings":[{"discordRoleId":"1234567890","aceGroup":"admin"}]}' > ``` ## Response The `data` object is the updated ACE config wrapper with the saved `mappings` array. ```json theme={null} { "success": true, "data": { "mappings": [ { "ranks": [ "22222222-2222-2222-2222-222222222222" ], "principal": "group:123456" } ] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/ace-config" } } ``` # Set Server Type Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-server-type Update the server type. `PATCH` `https://api.sonorancms.com/v2/community/servers/1/type` > **Rate limit:** `18 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Update the server type. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `type` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > local payload = { > ["type"] = "FiveM" > } > > local response = sonoran.cms:setServerTypeV2(serverId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > const payload = { > "type": "FiveM" > }; > > const response = await instance.cms.setServerTypeV2(serverId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > payload = { > "type": "FiveM" > } > > response = instance.cms.setServerTypeV2(serverId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > var payload = new { > type = "FiveM" > }; > > var response = await sonoran.Cms.setServerTypeV2(serverId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Set Server Type" > > version: "1.0.0" > > description: "Update the server type." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/type: > > patch: > > summary: "Set Server Type" > > operationId: "setServerType" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: 1 > > name: "Main Server" > > description: "Primary gameplay server" > > ip: "127.0.0.1" > > port: "30120" > > typeLastUpdated: "2026-04-15T00:00:00.000Z" > > type: "erlc" > > robloxJoinCode: "ABCD-1234" > > aceConfig: > > mappings: > > - > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > principal: "group:123456" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/type" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/servers/1/type" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"type":"FiveM"}' > ``` ## Response The `data` object is the updated server row. It includes the new `type` and `typeLastUpdated` values. ```json theme={null} { "success": true, "data": { "id": 1, "name": "Main Server", "description": "Primary gameplay server", "ip": "127.0.0.1", "port": "30120", "typeLastUpdated": "2026-04-15T00:00:00.000Z", "type": "erlc", "robloxJoinCode": "ABCD-1234", "aceConfig": { "mappings": [ { "ranks": [ "22222222-2222-2222-2222-222222222222" ], "principal": "group:123456" } ] } }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/type" } } ``` # Set Servers Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/set-servers Replace the configured server list. `PUT` `https://api.sonorancms.com/v2/community/servers` > **Rate limit:** `9 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Replace the configured server list. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `servers` | array | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["servers"] = { > { > ["id"] = 1, > ["name"] = "Main Server", > ["description"] = "Primary community server", > ["ip"] = "127.0.0.1", > ["port"] = "30120", > ["type"] = "FiveM", > ["erlcApiKey"] = "", > ["robloxJoinCode"] = "ABC123", > ["aceConfig"] = { }, > ["robloxMetadata"] = { } > } > } > } > > local response = sonoran.cms:setServersV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "servers": [ > { > "id": 1, > "name": "Main Server", > "description": "Primary community server", > "ip": "127.0.0.1", > "port": "30120", > "type": "FiveM", > "erlcApiKey": "", > "robloxJoinCode": "ABC123", > "aceConfig": {}, > "robloxMetadata": {} > } > ] > }; > > const response = await instance.cms.setServersV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "servers": [ > { > "id": 1, > "name": "Main Server", > "description": "Primary community server", > "ip": "127.0.0.1", > "port": "30120", > "type": "FiveM", > "erlcApiKey": "", > "robloxJoinCode": "ABC123", > "aceConfig": {}, > "robloxMetadata": {} > } > ] > } > > response = instance.cms.setServersV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > servers = new[] { > new { > id = 1, > name = "Main Server", > description = "Primary community server", > ip = "127.0.0.1", > port = "30120", > type = "FiveM", > erlcApiKey = "", > robloxJoinCode = "ABC123", > aceConfig = new { }, > robloxMetadata = new { } > } > } > }; > > var response = await sonoran.Cms.setServersV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Set Servers" > > version: "1.0.0" > > description: "Replace the configured server list." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers: > > put: > > summary: "Set Servers" > > operationId: "setServers" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > servers: > > - > > id: 1 > > name: "Main Server" > > description: "Primary gameplay server" > > ip: "127.0.0.1" > > port: "30120" > > typeLastUpdated: "2026-04-15T00:00:00.000Z" > > type: "erlc" > > robloxJoinCode: "ABCD-1234" > > aceConfig: > > mappings: > > - > > ranks: > > - "22222222-2222-2222-2222-222222222222" > > principal: "group:123456" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PUT \ > > --url "https://api.sonorancms.com/v2/community/servers" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"servers":[{"id":1,"name":"Main Server","description":"Primary community server","ip":"127.0.0.1","port":"30120","type":"FiveM","erlcApiKey":"","robloxJoinCode":"ABC123","aceConfig":{},"robloxMetadata":{}}]}' > ``` ## Response The `data` object is the community `servers` container. It exposes the server list the backend stores for the community. ```json theme={null} { "success": true, "data": { "servers": [ { "id": 1, "name": "Main Server", "description": "Primary gameplay server", "ip": "127.0.0.1", "port": "30120", "typeLastUpdated": "2026-04-15T00:00:00.000Z", "type": "erlc", "robloxJoinCode": "ABCD-1234", "aceConfig": { "mappings": [ { "ranks": [ "22222222-2222-2222-2222-222222222222" ], "principal": "group:123456" } ] } } ] }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers" } } ``` # Verify Whitelist Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/verify-whitelist Check whether an account is whitelisted on a server. `POST` `https://api.sonorancms.com/v2/community/servers/1/whitelist/check` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Check whether an account is whitelisted on a server. ## Route Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | Target serverId. | ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > local payload = { > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:verifyWhitelistV2(serverId, payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > const payload = { > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.verifyWhitelistV2(serverId, payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > payload = { > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.verifyWhitelistV2(serverId, payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > var payload = new { > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.verifyWhitelistV2(serverId, payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Verify Whitelist" > > version: "1.0.0" > > description: "Check whether an account is whitelisted on a server." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/servers/{serverId}/whitelist/check: > > post: > > summary: "Verify Whitelist" > > operationId: "verifyWhitelist" > > parameters: > > - > > description: "Target server id." > > name: "serverId" > > in: "path" > > schema: > > type: "integer" > > required: true > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: "ExampleAccount" > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/servers/1/whitelist/check" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/servers/1/whitelist/check" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"accId":"00000000-0000-0000-0000-000000000000"}' > ``` ## Response The `data` value is the account display name when the whitelist check succeeds. If the account is not allowed, the endpoint throws a problem-details error instead of returning a negative boolean. ```json theme={null} { "success": true, "data": "ExampleAccount", "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/servers/1/whitelist/check" } } ``` # Sessions Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions Sessions endpoints for the v2 API. This section groups the v2 sessions endpoints. > [card] [Get Current Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/get-current-session) > [card] [Start Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/start-session) > [card] [Stop Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/stop-session) > [card] [Cancel Session](/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/cancel-session) # Cancel Session Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/cancel-session Cancel an active session. `DELETE` `https://api.sonorancms.com/v2/community/sessions` > **Rate limit:** `9 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Cancel an active session. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | See example request for the shape. | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["serverId"] = 1, > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:cancelSessionV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "serverId": 1, > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.cancelSessionV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "serverId": 1, > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.cancelSessionV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > serverId = 1, > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.cancelSessionV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Cancel Session" > > version: "1.0.0" > > description: "Cancel an active session." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/sessions: > > delete: > > summary: "Cancel Session" > > operationId: "cancelSession" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "204": > > description: "No Content" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request DELETE \ > > --url "https://api.sonorancms.com/v2/community/sessions" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"serverId":1,"accId":"00000000-0000-0000-0000-000000000000"}' > ``` ## Response The cancel endpoint intentionally returns no JSON body when it succeeds. This endpoint returns `204 No Content` on success, so there is no response body. # Get Current Session Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/get-current-session Retrieve the current session for a server. `GET` `https://api.sonorancms.com/v2/community/sessions/current` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Retrieve the current session for a server. ## Query Parameters \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local serverId = 1 > > local response = sonoran.cms:getCurrentSessionV2(serverId) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const serverId = 1; > > const response = await instance.cms.getCurrentSessionV2(serverId); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > serverId = 1 > > response = instance.cms.getCurrentSessionV2(serverId) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var serverId = 1; > > var response = await sonoran.Cms.getCurrentSessionV2(serverId); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Get Current Session" > > version: "1.0.0" > > description: "Retrieve the current session for a server." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/sessions/current: > > get: > > summary: "Get Current Session" > > operationId: "getCurrentSession" > > parameters: > > - > > description: "Query parameter serverId." > > name: "serverId" > > in: "query" > > schema: > > type: "string" > > required: false > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "55555555-5555-5555-5555-555555555555" > > sysStatus: true > > community: "00000000-0000-0000-0000-000000000000" > > serverId: 1 > > startedBy: "00000000-0000-0000-0000-000000000000" > > startedAt: "2026-04-15T00:00:00.000Z" > > endedBy: null > > endedAt: null > > cancelledBy: null > > stats: {} > > metadata: {} > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/sessions/current" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > > --url "https://api.sonorancms.com/v2/community/sessions/current?serverId=1" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" > ``` ## Response The `data` object is the session row. `GET`, `POST`, and `PATCH` all return the `CommunityServerSession` entity shape on success. ```json theme={null} { "success": true, "data": { "id": "55555555-5555-5555-5555-555555555555", "sysStatus": true, "community": "00000000-0000-0000-0000-000000000000", "serverId": 1, "startedBy": "00000000-0000-0000-0000-000000000000", "startedAt": "2026-04-15T00:00:00.000Z", "endedBy": null, "endedAt": null, "cancelledBy": null, "stats": {}, "metadata": {} }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/sessions/current" } } ``` # Start Session Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/start-session Start a new session. `POST` `https://api.sonorancms.com/v2/community/sessions` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Start a new session. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | See example request for the shape. | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["serverId"] = 1, > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:startSessionV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "serverId": 1, > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.startSessionV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "serverId": 1, > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.startSessionV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > serverId = 1, > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.startSessionV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Start Session" > > version: "1.0.0" > > description: "Start a new session." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/sessions: > > post: > > summary: "Start Session" > > operationId: "startSession" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "201": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "55555555-5555-5555-5555-555555555555" > > sysStatus: true > > community: "00000000-0000-0000-0000-000000000000" > > serverId: 1 > > startedBy: "00000000-0000-0000-0000-000000000000" > > startedAt: "2026-04-15T00:00:00.000Z" > > endedBy: null > > endedAt: null > > cancelledBy: null > > stats: {} > > metadata: {} > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/sessions" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request POST \ > > --url "https://api.sonorancms.com/v2/community/sessions" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"serverId":1,"accId":"00000000-0000-0000-0000-000000000000"}' > ``` ## Response The `data` object is the session row. `GET`, `POST`, and `PATCH` all return the `CommunityServerSession` entity shape on success. ```json theme={null} { "success": true, "data": { "id": "55555555-5555-5555-5555-555555555555", "sysStatus": true, "community": "00000000-0000-0000-0000-000000000000", "serverId": 1, "startedBy": "00000000-0000-0000-0000-000000000000", "startedAt": "2026-04-15T00:00:00.000Z", "endedBy": null, "endedAt": null, "cancelledBy": null, "stats": {}, "metadata": {} }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/sessions" } } ``` # Stop Session Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/api-endpoints-v2/sessions/stop-session Stop an active session. `PATCH` `https://api.sonorancms.com/v2/community/sessions` > **Rate limit:** `27 requests per minute` > Authenticated v2 endpoints are rate limited per credential rather than per IP address. Stop an active session. ## Request Body \| Name | Type | Required | Description | \| --- | --- | --- | --- | \| `serverId` | number | Yes | See example request for the shape. | \| `accId` | string | Yes | See example request for the shape. | ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local sonoran = Sonoran.createClient({ > product = Sonoran.productEnums.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1, > timeoutMs = 30000, > }) > > local payload = { > ["serverId"] = 1, > ["accId"] = "00000000-0000-0000-0000-000000000000" > } > > local response = sonoran.cms:stopSessionV2(payload) > > if response.success then > print(response.data) > else > print(response.reason) > end > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require("sonoran.js"); > > const instance = Sonoran.instance({ > apiKey: "YOUR_API_KEY", > communityId: "YOUR_COMMUNITY_ID", > product: Sonoran.productEnums.CMS, > serverId: 1, > }); > > async function main() { > const payload = { > "serverId": 1, > "accId": "00000000-0000-0000-0000-000000000000" > }; > > const response = await instance.cms.stopSessionV2(payload); > > if (response.success) { > console.log(response.data); > } else { > console.error(response.reason); > } > } > > main().catch((error) => { > console.error(error); > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.CMS, > serverId=1, > ) > > payload = { > "serverId": 1, > "accId": "00000000-0000-0000-0000-000000000000" > } > > response = instance.cms.stopSessionV2(payload) > > if response.success: > print(response.data) > else: > print(response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > using System.Text.Json; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.CMS, > apiKey = "YOUR_API_KEY", > communityId = "YOUR_COMMUNITY_ID", > defaultServerId = 1 > }); > > var payload = new { > serverId = 1, > accId = "00000000-0000-0000-0000-000000000000" > }; > > var response = await sonoran.Cms.stopSessionV2(payload); > > if (response.success) > { > Console.WriteLine(JsonSerializer.Serialize(response.data)); > } > else > { > Console.WriteLine(response.reason); > } > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: "3.0.3" > > info: > > title: "Sonoran CMS v2 - Stop Session" > > version: "1.0.0" > > description: "Stop an active session." > > servers: > > - > > url: "https://api.sonorancms.com" > > paths: > > /v2/community/sessions: > > patch: > > summary: "Stop Session" > > operationId: "stopSession" > > requestBody: > > required: true > > content: > > application/json: > > schema: > > type: "object" > > security: > > - > > bearerAuth: [] > > responses: > > "200": > > description: "Successful response" > > content: > > application/json: > > schema: > > type: "object" > > example: > > success: true > > data: > > id: "55555555-5555-5555-5555-555555555555" > > sysStatus: true > > community: "00000000-0000-0000-0000-000000000000" > > serverId: 1 > > startedBy: "00000000-0000-0000-0000-000000000000" > > startedAt: "2026-04-15T00:00:00.000Z" > > endedBy: null > > endedAt: null > > cancelledBy: null > > stats: {} > > metadata: {} > > meta: > > timestamp: "2026-04-15T00:00:00.000Z" > > path: "/v2/community/sessions" > > components: > > securitySchemes: > > bearerAuth: > > type: "http" > > scheme: "bearer" > > bearerFormat: "JWT" > ``` > [tab] cURL > > ```bash theme={null} > curl --request PATCH \ > > --url "https://api.sonorancms.com/v2/community/sessions" \ > > --header "Authorization: Bearer YOUR_API_KEY" \ > > --header "Accept: application/json" \ > > --data '{"serverId":1,"accId":"00000000-0000-0000-0000-000000000000"}' > ``` ## Response The `data` object is the session row. `GET`, `POST`, and `PATCH` all return the `CommunityServerSession` entity shape on success. ```json theme={null} { "success": true, "data": { "id": "55555555-5555-5555-5555-555555555555", "sysStatus": true, "community": "00000000-0000-0000-0000-000000000000", "serverId": 1, "startedBy": "00000000-0000-0000-0000-000000000000", "startedAt": "2026-04-15T00:00:00.000Z", "endedBy": null, "endedAt": null, "cancelledBy": null, "stats": {}, "metadata": {} }, "meta": { "timestamp": "2026-04-15T00:00:00.000Z", "path": "/v2/community/sessions" } } ``` # Development Branch Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/development-branch Sonoran CMS provides a dedicated development API server and web version to work directly with our communities. Find out more information below! > [!WARNING] > > The development API and CMS branches are entirely separate from the current production version. For more information in working with our development team please [contact us](https://support.sonoransoftware.com/). or join our community [Discord](http://discord.sonorancad.com/). ## Rate Limiting Sonoran CMS' development branch maintains the same rate limiting as production. However, rate limits only result in a one minute block as opposed to an hour. ## Development API Server All API endpoints and requests should be made to the following address: ``` https://staging-api.dev.sonorancms.com ``` ## Development CMS The latest CMS development version can be accessed at the following address: ``` https://staging.dev.sonorancms.com ``` ## Development Subscription - Free Data will be reset at random times and **this environment is not suitable for production use**. Use only for testing new features when requested by Sonoran Software Development and for developing API based resources. When building or testing our API library, you can upgrade your development community to pro for free! 1. Create a new PRO subscription in the development billing portal. 2. At checkout enter `4242 4242 4242 4242` as the card number with any CVV and expiration date. 3. Apply the subscription to your development testing community. ## Developer Discord Join our [Discord](http://discord.sonorancad.com/) and access the `#community-development` channel. Here you can discuss API related issues, development, and more. # Getting Started Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/getting-started Integrating your gamemode with Sonoran CMS's API will require a couple of things to get started. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). ## Gather Your Credentials All API calls require some basic authentication. Here's how to find your community ID and API key. > [card] [Retrieving Your Credentials](/cms/developer-api-documentation/api-integration/getting-started/retrieving-your-credentials) ### API ID System To map your API calls to a Sonoran CMS account, your users must place a unique ID inside their community account settings. > [card] [API ID System](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) # API ID System Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/getting-started/api-id-system Setting your account's API ID allows your account to be easily used with the public API. ## Changing Your Global Account's API ID Settings ### Navigate to Account Profile Select `Community Profile` in the dropdown below your username. ![Sonoran CMS - Top Left Drop-Down](https://docs-assets.sonoransoftware.com/sha256/4b/4b6277390b58a559f2ed0024a05ccf0a77c81f6d915bdaef16e313e7150eaab2.png) ### Open API ID Settings Click `Settings` under profile view ![Sonoran CMS - Profile View](https://docs-assets.sonoransoftware.com/sha256/75/75db57ecb41fa2c9abc598ce821092dc3131c07dfe6c8584b37c7149db85b267.png) ### Enter API ID Details Input the ID you're wanting to save and set the nickname for it ![Sonoran CMS - API ID Settings](https://docs-assets.sonoransoftware.com/sha256/54/549a5c10621f0bf200495a17b398bc0c1b965ce93ba601c095b019a43b479b66.png) ### Add API ID & Save Click the blue "ADD API ID" button and click the green "SAVE API IDS" button at the top to save it in the backend. ![Sonoran CMS - Saving API ID Settings](https://docs-assets.sonoransoftware.com/sha256/b2/b28b6f252b0ebd09e15d1c9a05ac5f09f05d18ef163f9a5f4cccba52150a37f1.png) ## Changing Your Community Account's API ID Settings ### Open Settings From the main Sonoran CMS community Dashboard view, select "Settings" at the bottom of the left menu ![Sonoran CMS - Main Community Dashboard Side Menu](https://docs-assets.sonoransoftware.com/sha256/29/298640e20024daf3b4867e5d74710224bf6b955fdba28c91b1ff87d0bd2fc371.png) ### Select your API ID Preferences Select the drop-down for API ID preferences and select your preference ![Sonoran CMS - Community API ID Settings](https://docs-assets.sonoransoftware.com/sha256/ad/ad5c589bb28124c705e775235936ecbfe538c49b383396234ab72368b0d22933.png) ### Add API ID's Depending on your preferences you can add more API IDs that are specifically only on your community account. ![Sonoran CMS - Community API ID Settings](https://docs-assets.sonoransoftware.com/sha256/33/336486099460d37d3491878d44cd21baa7ec971403116295ba292e9bae5d418b.png) # Retrieving Your Credentials Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/getting-started/retrieving-your-credentials All API calls must be authenticated with a community ID and API key. ### Retrieving Your Credentials Navigate to `Administrative Panel` > `API Integration` > `Sonoran CMS API` You can click any box displayed to copy the corresponding information to your clipboard ![Sonoran CMS - API Integration](https://docs-assets.sonoransoftware.com/sha256/23/23a3f1d5467aae26091b0777ee0ac6fa7ade32c58dc6aad31bc53b6d8d1a19a5.png) # Push Events Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/push-events Sonoran CMS pushes event data to your community for further integration possibilities. Learn more below! ### NOT IMPLEMENTED ON PRODUCTION > [!WARNING] > > All push events require the **Plus** version of Sonoran CMS or higher. For more information, see our [pricing ](https://sonorancms.com/pricing)page. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). ## Configuring your Listener ### Admin Panel Configuration In the Administrative Panel, navigate to: Advanced > API Integration Enter your server's public IP address and your game server's port. Sonoran CMS will send events to `http://ip:gameport/sonorancms/events` **utilizing your existing game port**. ## Developer Documentation Our [integration plugins](/cms/integration-capabilities/in-game-integration-resources) may rely on these push events for full functionality. Interested in developing your own plugins? Expand the push event and API endpoint documentation in the left side drawer. # Account Banned Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/push-events/account-banned This push event sends data when an account gets banned. ### ACCOUNT\_KICKED POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "ACCOUNT_BANNED", "data": { "discordId": "235947056630333440", "accountId": "67ceebae-ee63-43c1-a6a6-5234b2210abf", } } ``` # Account Kicked Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/push-events/account-kicked This push event sends data when an account gets kicked. ### ACCOUNT\_KICKED POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "ACCOUNT_KICKED", "data": { "discordId": "235947056630333440", "accountId": "67ceebae-ee63-43c1-a6a6-5234b2210abf", } } ``` # Account Updated Source: https://docs.sonoransoftware.com/cms/developer-api-documentation/api-integration/push-events/account-updated This push event sends data when an account gets updated. ### ACCOUNT\_UPDATED POST ```javascript theme={null} { "key": "YOUR_API_KEY", // Authenticate legitimate event traffic "type": "ACCOUNT_UPDATED", "data": { "discordId": "235947056630333440", "accId": "67ceebae-ee63-43c1-a6a6-5234b2210abf", "comStatus": true, "accName": "Dawson G.", "comName": "Dawson G.", "primaryIdentifier": "1A-1", "secondaryIdentifiers": [], "primaryRank": "fc2c3825-df41-4485-ad9a-6c2ac900b4f4", "secondaryRanks": [ "331d4ece-b582-4c9c-885b-7060341cf482" ], "primaryDepartment": "00116ef0-9d22-491e-964c-1eb1b6ffd167", "secondaryDepartments": [ "7dbedb0e-4df2-4405-b241-cb5dee253ab8" ], "joinDate": "2022-02-22 20:28:40.000 -0800", "owner": true, "banned": false, "lastLogin": "2022-02-22 22:43:46.000 -0800", "activeApiIds": [ "235947056630333440" ] } } ``` # Download the App Source: https://docs.sonoransoftware.com/cms/download Sonoran CMS is available on the web, Windows desktop, macOS, Linux, iOS App Store, and Google Play store! Select your platform below and download the official app today! ![](https://docs-assets.sonoransoftware.com/sha256/15/15a6d3570e88546da706f567c4b3c169521e5ae009b590dd1e9b6dccd0d30bbb.png) | Website | [View](https://sonorancms.com) | | - | - | | iOS App Store | [Download](https://apps.apple.com/us/app/sonoran-cms/id1576259945) | | Google Play Store | [Download](https://play.google.com/store/apps/details?id=com.sonorancms) | | Windows Desktop | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cms\&platform=windows) | | MacOS Desktop | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cms\&platform=macos) | | Linux (AppImage) | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=cms\&platform=linux) | ### Linux Download the AppImage, mark it executable in your file manager, and open it to start the app. These desktop downloads follow the latest available release for each platform. [Verify the Linux download signature](https://sonoran-software.github.io/Sonoran-Desktop-Apps/signing.html). # Discord Bot Integration Source: https://docs.sonoransoftware.com/cms/integration-capabilities/discord-bot-integration Bi-Directionally Sync Discord & CMS, allowing you to easily manage permissions from Discord or CMS roles. ![](https://docs-assets.sonoransoftware.com/sha256/a0/a010c715d15beb501be5fce209bdf727db6aff866d49ea965238690ff28c0688.png) *Sonoran Bot - Discord Role Sync* ### Getting Started Get started with Sonoran Bot today by inviting it to your Discord: > [card] [Open guide](/bot) ### CMS Integration Learn more about Sonoran Bot's CMS integration features: > [card] [Open guide](/bot/tutorials/sonoran-cms-integration) ### Settings Configure Sonoran Bot's settings in your server: > [card] [Open guide](/bot/tutorials/usage/settings) ### Commands Reference a list of bot commands: > [card] [Open guide](/bot/tutorials/usage/commands) # Discord Rich Presence Source: https://docs.sonoransoftware.com/cms/integration-capabilities/discord-rich-presence Our desktop app allows you to advertise your community right in Discord! > [!WARNING] > > **ATTENTION**: This feature is currently no longer within Sonoran CMS and will be reintroduced in a future update. > [!NOTE] > > Rich presence is included with all versions of Sonoran CMS, but customization requires the **Standard** plan or higher, and the **Pro** plan for complete customization with the icon.\ > For more information, see our [pricing](/cms/pricing/pricing-faq) or view how to check your community [limits](/cms/tutorials/administrative/view-your-limits). ## What is Discord Rich Presence? When running our [desktop application](/cms/download), Discord can automatically detect and display information about your community. ![Sonoran CMS - Discord Rich Presence](https://docs-assets.sonoransoftware.com/sha256/2a/2ace73cff982345358cfec71a9c1ceee9408f8a14d96970e17793b889643a02a.png) ## Customizing your Rich Presence ![Sonoran CMS - Discord Rich Presence Customization](https://docs-assets.sonoransoftware.com/sha256/b2/b2e54d75a156d3cd3da560b53e0ca0154ba5f3983e83fc31576dd7b892b8443f.png) ### Customizing Buttons Discord presence currently allows for two customizable buttons. Navigate to Administrator Panel > Customization > Community Customization > Discord Rich Presence Customization #### For communities on the **Standard** plan or higher: \- Button #2 may be customized to any [Sonoran CAD](/cad) or [Sonoran CMS](/cms) invitation link.\ \- Ex: `https://sonorancad.com/#/?comid=mycommunityid` or `https://sonorancms.com/#/?comid=mycommunityid` #### For communities on the Pro plan: \- Both buttons may be customized to any URL desired.\ \- The Icon and title can also be customized with a Discord developer application. ### Customizing the Icon Communities on the **Pro** version may customize the rich presence icon: #### Create a new Discord Application On [https://discord.com/developers/applications](https://discord.com/developers/applications) create a new application ![Discord Developer - New Application](https://docs-assets.sonoransoftware.com/sha256/26/26b667205df33634d7a2ac9fb93ba25e7f1188f2b4ba60a8896b18518909f8ad.png) #### Copy your Client ID Under OAuth2, copy your `Client ID` ![Discord Developer - Application Client ID](https://docs-assets.sonoransoftware.com/sha256/3f/3ffd20ee73ea6b40581ca351182b88d5a6c08523e3688fffcd2bf3d3a1c6682f.png) #### Add an Icon Next, upload an icon for your new application. Be sure to copy down the name of the icon for later. ![Discord Developer - Application Icon](https://docs-assets.sonoransoftware.com/sha256/26/26c82bfafb80fa2ce860d1dad6298322fd08143f0288052cfa6a5c9cfe55f293.png) #### Configure in Sonoran CMS Back in the admin customization menu, we can paste the Discord application's Client ID and Icon name. ![Sonoran CMS - Custom Discord Presence Config](https://docs-assets.sonoransoftware.com/sha256/7f/7f336dd09b4e1826e4bd5424b2620cc299f0eb2d9db388410c4d96d70cad9fba.png) Once saved, your Discord presence for all community members will reflect your custom icon, title, and buttons. ![Sonoran CAD - Custom Discord Presence View](https://docs-assets.sonoransoftware.com/sha256/94/94647dcd952886e80cc961ba4af076686ca77ebf94abad4f88c615d7cfaaa174.png) ## Toggle On/Off Rich Presence ### Community Toggle To hide the invite button for your community's Discord Rich Presence, simply leave the button text and URL blank. ### User Toggle In the profile dropdown, users can toggle this display on or off for their individual desktop client. ![Sonoran CMS Profile Dropdown - Disable Discord's Rich Presence](https://docs-assets.sonoransoftware.com/sha256/34/34948b28a3d6f0b664cad11f1f88961473a95b73a82b43973d1ccccbb9d6a2a0.png) # Discord Webhooks Source: https://docs.sonoransoftware.com/cms/integration-capabilities/discord-webhooks Receive instant notifications in your Discord channel when new forms are submitted, community customization changes, and much more! [Video tutorial](https://www.youtube-nocookie.com/embed/EsoYW-tROMs) > [!NOTE] > > **Notice:** Managing Discord Webhooks now requires Sonoran Bot as of [v0.5.56](/cms/roadmap/roadmap-and-changelog/changelog#v0.5.56-beta-pending-release)! ### Invite & Configure Sonoran Bot In the Sonoran CMS Administrator Panel, under Advanced select `Integrations` > `Discord`\ In order to configure your Sonoran CMS Webhooks you must invite and configure Sonoran Bot. Follow each step in the setup process stepper directly in the Sonoran CMS UI. ![](https://docs-assets.sonoransoftware.com/sha256/a6/a633ce5258963d20bd8e7e76d91d68bebc104d34fc73dff180d298b972111f38.png) *Sonoran CMS - Discord Webhook Setup - Sonoran Bot Setup* ### Configure the Sonoran CMS Webhook Select the channel you want your webhook logs to send to for each log type\ When you are done editing, click anywhere outside and it will automatically save any changes. ![Sonoran CMS - Discord Webhook Setup](https://docs-assets.sonoransoftware.com/sha256/ab/ab3253cae7e68d87782f4e0498dd7448b42a0c03862193ce018a2170230fd258.png) ### Role Mention In the middle drop down menu you can select any roles you would like to be mentioned in the webhook. You can select as many roles as you wish and this will mention these roles at the beginning of the message. ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d5b0be0d73e6f7db89ae6f493decae755c218897bf47515502a0015b9a5fa85.png) *Sonoran CMS - Discord Webhook Mentions Menu* Alternatively, if you would like to integrate the mention into the content message, you can also manually mention roles. > [!NOTE] > > Copying IDs in Discord requires Developer mode to be enabled. > > \ > Go to `User Settings` > `Advanced` > `enable Developer Mode` To tag and mention a role in the webhook edit the `Webhook Content` box and format the mention as `<@&ID>` with `ID` being the Discord Role ID. You can copy a Discord Role ID in your Discord server's `Settings` > `Roles` > Right-Click on the role > `Copy ID` You can also right-click on any user's role in their profile popup and copy the Role ID from there. Example: `<@&1234567890>` ![](https://docs-assets.sonoransoftware.com/sha256/c1/c1d21a9cda7efbfa6ea1382bf25628005e5eba2bdb0126d1c5e20992f8b64590.png) *Discord Role ID Copy* ### User Mention > [!NOTE] > > Copying IDs in Discord requires Developer mode to be enabled. > > \ > Go to `User Settings` > `Advanced` > `enable Developer Mode` To tag and mention a user in the webhook edit the `Webhook Content` box and format the mention as `<@ID>` with `ID` being the Discord User ID. You can copy a Discord User ID in your Discord. Right-Click on the user > `Copy ID` Example: `<@1234567890>` # ER:LC Game Panel Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel Sonoran CMS allows you to fully manage your ER:LC server(s) with player records, whitelisting, automations, commands, weather, shifts, and so much more! All ER:LC features are included for free! ## Installation Setting up the ER:LC management panel is easy! Learn more below: > [card] [Installation](/cms/integration-capabilities/er-lc-game-panel/installation) ## Panel Usage Learn more about each of the ER:LC panel's features using the guides below: > [card] [usage](/cms/integration-capabilities/er-lc-game-panel/usage) # Compare to Other Providers Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/compare-to-other-providers Compare the Sonoran CMS ER:LC panel to other providers! ## Feature Comparison The Sonoran CMS ER:LC panel offers all ER:LC features, unlimited servers, unlimited roles, unlimited actions/automations, and more free of charge! Compare paid features from top competitors below: | Feature | Melonly | Sonoran CMS | | - | - | - | | **ER:LC Integration** | Melonly+ (\$5.99/mo) | Free | | **Multiple ER:LC Servers** | One Active Server | Unlimited | | **Custom Shift Types** | Melonly+ (\$5.99/mo) | Free | | **Discord Role Sync** | Melonly+ (\$5.99/mo) | Free | | **Roles/Ranks** | Free: 10 Paid: 20 | Free: Unlimited | | **Actions** | Free: 5 Paid: 20 | Free: Unlimited | | **Vehicle Restrictions** | Free: 5 Paid: 15 | Free: Unlimited | | **ER:LC Auto Shifts** | Melonly+ (\$5.99/mo) | **Free** | | **Custom Log/Record Types** | Melonly+ (\$5.99/mo) | Free | | Custom Discord Messages | Melonly+ (\$5.99/mo) | Free | | iOS, Android, Windows, and OSX Applications | N/A | Free | ## Migrate to Sonoran CMS Migrating your existing data is easy! Learn more below: > [card] [Migration Import](/cms/integration-capabilities/er-lc-game-panel/usage/migration-import) # Installation Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/installation Manage your ER:LC Roblox server right from Sonoran CMS! ## ER:LC Panel Setup ## Create an ER:LC API Key Your `ERLC API Key` authorizes Sonoran CMS to access your game server information. ### Purchase API Access from ER:LC ER:LC grants API access as a paid upgrade. Once in-game, select the `Menu` button at the top left > `Servers` > `Owned Servers` > Select your private server > `Upgrade Packs` > `API Pack`. ![](https://docs-assets.sonoransoftware.com/sha256/2b/2b3891d01558a0257e91dc256505baef90ac8fd6c4a2c4d47b5bdf02de945575.png) *ER:LC Menu* ![](https://docs-assets.sonoransoftware.com/sha256/91/91df1895b9010744cee0482059d11857cd880f52e05200f4d00031b29170ffaa.png) *ER:LC API Pack* ### Copy Your ER:LC API Key Once in your private ER:LC server, open the `Server Info` tab. Select `Edit Server Settings` > Navigate To `ER:LC API` > Select `Edit` to Copy. ![](https://docs-assets.sonoransoftware.com/sha256/e2/e2ee42d1b6c20fd4b9b5d7d7ec8999983fb9336957c9091faa995658696fd2e4.png) *ER:LC Server Info* ![](https://docs-assets.sonoransoftware.com/sha256/72/72485ee6d6247b3babdfb6434cc55b1130117e262402f9d703ffa2010c396f09.png) *ER:LC Server Settings* ![](https://docs-assets.sonoransoftware.com/sha256/d6/d60a4aff56d3dd6aae9132755de0adf4646f6ac3ed7249e77b1b1f83e96bd88b.png) *ER:LC API Key* ## Enter Your ER:LC API Key In the CMS navigate to **Admin** (grey gear icon) > **Integrations** > **ER:LC Game Panel** Paste the ER:LC API key into the setup modal. ![](https://docs-assets.sonoransoftware.com/sha256/72/72ecc09f52aafc33e9956373f129a9d7ef010c520330a46b54fc176f94a5358c.png) ## Link Roblox and Discord to CMS For full functionality, users must link their Roblox and Discord accounts to their CMS account. The **Discord account link banner** automatically appears once one or more Discord servers are added in the Integrations panel. The **Roblox account link banner** appears when the ER:LC panel is enabled. These banners will show at the top of the CMS for all users who do not have their social accounts linked. Additionally, you can [enforce Roblox and Discord account linking requirements in the ER:LC Whitelist panel](/cms/integration-capabilities/er-lc-game-panel/usage/whitelist#social-requirements). ![](https://docs-assets.sonoransoftware.com/sha256/04/04007a344ef279b70fe4b684d4e3976fc795eb94ee7faaa96ef39290a419c71e.png) ![](https://docs-assets.sonoransoftware.com/sha256/a3/a32c49d46ef034729bb18679c80bd203f1013239c12b4c875db6deb2759daf65.png) ### Import Data from Another Provider Migrating to Sonoran CMS from another ER:LC management panel provider? Import your data by using the import wizard! > [card] [Migration Import](/cms/integration-capabilities/er-lc-game-panel/usage/migration-import) # Usage Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage Learn more about the ER:LC game panel's features! # CMS Integrations Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/cms-integrations The ER:LC panel also has extended functionality from other areas of the CMS ## Form Stage Actions > [accordion] Form Stage Actions > > [Form stages have configurable actions](/cms/tutorials/forms/creating-custom-forms#form-stages) to send webhooks, messages, modify ranks, in-game commands, and more. When a form submission is moved to the stage, the stage actions are ran. > > CMS form stage actions also support running ER:LC commands. > > The ER:LC commands can be ran on the form submitter, the user who changed the form stage, or on a specific user selected in the submission with a **Member Select** type form field. > > **Example: Priority Request** > > In this example, when a user's **Priority Request** form submission is moved to **Accepted** we send that user an in-game private message. > > ![](https://docs-assets.sonoransoftware.com/sha256/e7/e71e12903cb7565dd3eed23c1d5f1ac0bb2342db10de2c1fa8a57c63b4d54bf9.png) ## Roster Activity Time > [accordion] Roster Activity Time > > The ER:LC panel extends functionality to [CMS rosters](/cms/tutorials/rosters/creating-custom-rosters) by allowing you to add an `Activity Tracker Hours` column that automatically displays each user’s in-game time over a configurable period. This column can also be configured to track time spent on specific ER:LC team(s). > > ![](https://docs-assets.sonoransoftware.com/sha256/4a/4a731b27febdf5b3e23cef52e8031933d27852a6a48deb0ffcb2b178d1abb362.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/4c/4c746a1b0ed2f9dbbc58dbbb41a14eb274eb2e78b9c831237bf214ecccb21558.png) ## Routine Actions > [accordion] Routine Actions > > The [CMS Actions panel](/cms/tutorials/administrative/actions) performs routine actions at custom intervals. This panel integrates with the ER:LC panel to offer automated in-game hints and notifications. > > ![](https://docs-assets.sonoransoftware.com/sha256/e4/e45767e35b55ece2b8dcd94cb443e6c8061cf7146e25c31f45cc9108b7dbb872.png) > > Additionally, actions can be triggered via a manual in-game ER:LC command. > > ![](https://docs-assets.sonoransoftware.com/sha256/c7/c71301b9dceabedf8a7e7cd9a5dd4ac452dab602b5ab52a835c84e58d2769403.png) ## Disciplinary Points > [accordion] Disciplinary Points > > [Disciplinary points](/cms/tutorials/administrative/disciplinary-panel) can be assigned either through an [ER:LC player record](/cms/integration-capabilities/er-lc-game-panel/usage/player-records) or manually in the CMS. Once a user exceeds a defined point threshold, the associated disciplinary actions are executed automatically. > > The ER:LC panel extends this functionality by enabling automated kicks or bans when a user reaches the configured disciplinary point limit. > > ![](https://docs-assets.sonoransoftware.com/sha256/3f/3f75eb75bdfa2fe0ac8fbd7797b82ba716bc66b544c1469d5ccb8a6b387a44ad.png) # Command Palette Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/command-palette Run ER:LC commands from the CMS management panel. ## Commands Via CMS > [accordion] Commands Via CMS > > Select `Run Command` on the panel to open up the ER:LC command palette. Here, you can select a command, player(s), enter additional information, and execute the command. > > Some commands have two states (e.g., Jail/Unjail, Admin/Unadmin). Simply click the command badge again to toggle between states. > > The `Kick` and `Ban` command will create a [corresponding player record](/cms/integration-capabilities/er-lc-game-panel/usage/player-records) when used. > > ![](https://docs-assets.sonoransoftware.com/sha256/c7/c7488a541d505c5a111be56840eddeb061fdcc2a81c68a84e4dc14866d44e44f.png) ## Commands Via Discord > [accordion] Commands Via Discord > > ![](https://docs-assets.sonoransoftware.com/sha256/ed/ed1793bef12b6dd0afb416b97e2eec6fd25ccbec8fb140fc7994d9bf8e89ea17.png) > > ER:LC commands can be ran via [Discord bot](/cms/integration-capabilities/discord-bot-integration) using `/erlc command`. ## Commands via In-Game > [accordion] Commands via In-Game > > Some specific commands can be ran entirely [in-game with the `:log` syntax](/cms/integration-capabilities/er-lc-game-panel/usage/player-records#via-in-game-command). ## Commands via Form Stage Automations > [accordion] Commands via Form Stage Automations > > ER:LC commands can also be ran when a form's stage is changed. > > [Learn more here!](/cms/integration-capabilities/er-lc-game-panel/usage/cms-integrations#form-stage-actions) > > ![](https://docs-assets.sonoransoftware.com/sha256/e7/e71e12903cb7565dd3eed23c1d5f1ac0bb2342db10de2c1fa8a57c63b4d54bf9.png) # Dashboard Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/dashboard Learn about the ER:LC game panel's dashboard. The ER:LC game panel's dashboard provides basic server information at a glance. ## Online Players > [accordion] Online Players > > Quickly glance at your online players, or use the search bar and team filters to find a specific one. > > ![](https://docs-assets.sonoransoftware.com/sha256/7b/7b299f3dd0731d665047f77200dee3e561cddbb6ce3ff517f487e43b4edd0b06.png) ### Priority Player Ranks > [accordion] Priority Player Ranks > > Players with [configured priority CMS ranks](/cms/integration-capabilities/er-lc-game-panel/usage/moderation#priority-player-list) will appear at the top of the list. Their CMS rank icon will be displayed at the top left of the avatar and can be hovered over for more information. > > ![](https://docs-assets.sonoransoftware.com/sha256/f0/f05b5f882738e2ba168ca8d9ffc1aa4a5c14f684d154713b1623429760765a90.png) ### Recent Player Commands > [accordion] Recent Player Commands > > Players who recently [had a command ran on them](/cms/integration-capabilities/er-lc-game-panel/usage/command-palette) will be displayed at the top of the player list with a badge reflecting the command. > > ![](https://docs-assets.sonoransoftware.com/sha256/0e/0eb2bb0dd64bc1216457f4280f0c4d8a6de808fbc43d2aebe2e893ed35b800b0.png) ### Player Connection Time > [accordion] Player Connection Time > > On each player card, a clock icon will show the current connection time. Player time can also be automatically shown on a [community roster](/cms/integration-capabilities/er-lc-game-panel/usage/cms-integrations#roster-activity-time). > > ![](https://docs-assets.sonoransoftware.com/sha256/9e/9e0f2c10f9a2c6e66c41ac2821c3fe3eb6e3abe3421f16b913d8c7f87113d468.png) ### Player Actions > [accordion] Player Actions > > Clicking on a player opens a modal with more information and player actions. Here, you can kick, ban, or add disciplinary points. Additionally, you can view their linked Discord account and Roblox profile. > > **Player Recent Activity** > > The `Activity` expansion area will show all recent player logs and records. Click the orange icon to change between viewing all activity and viewing [player records](/cms/integration-capabilities/er-lc-game-panel/usage/player-records) only. > > **Player Vehicle** > > The `Vehicle` expansion area will show the player's current vehicle in-game. > > ![](https://docs-assets.sonoransoftware.com/sha256/83/83e5ccb0820e6569bec4d8b883ee892ccdad0dcbe5f35fb4c4ed2b143bbcdcd3.png) ## Create Player Records > [accordion] Creating Player Records > > The player record panel allows for the [creation of player records](/cms/integration-capabilities/er-lc-game-panel/usage/player-records). > > ![](https://docs-assets.sonoransoftware.com/sha256/dc/dc67c8765db715ad9c3c1e7b41f0c559a4c3e11ffde48484bbcccdd5c9c3a73a.png) ## Latest Activity > [accordion] Latest Activity > > The Latest Activity section displays real-time logs for player connections, disconnections, commands, and player records. Click the orange icon to toggle between viewing all logs and viewing only player records. > > Use the search bar to find logs by username, or apply filters to locate specific player records. > > ![](https://docs-assets.sonoransoftware.com/sha256/2d/2d7c89580e27670206bd1afec28bc3c0fdc4c4ace44f1de8f399caa809551618.png) > > [Request form types](/cms/integration-capabilities/er-lc-game-panel/usage/moderation#request-form-types) will also be displayed at the top of the activity box. > > ![](https://docs-assets.sonoransoftware.com/sha256/f0/f0954b24a310fb75b6e6cc9dc4b89daf99b100cf51564bda04a28661c0b1a0ee.png) ## Server Selection > [accordion] Server Selection > > At the top left, you can select what game server to view. Use the join button on the right to automatically launch Roblox and join the ER:LC server. You can also add a new ER:LC server or delete an existing one from the dropdown. > > ![](https://docs-assets.sonoransoftware.com/sha256/81/8146cc2cdc0b86be40288016d13217818c63986bc0582b6a0f59b6b1a8c242a4.png) # Environment Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/environment The ER:LC environment panel allows you to sync in-game time and weather with a real geographical location! ## Time & Weather Sync To sync the in-game time and weather to a real-world location, click a location on the map. Then, toggle on `Sync Weather` and `Sync Time` to enable environment sync. ![](https://docs-assets.sonoransoftware.com/sha256/57/57031ce219c24fc727f0449ec95a25253cd545e4398b810d7ec5a725f1372d9f.png) # Migration Import Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/migration-import Migrating to Sonoran CMS from another ER:LC management panel provider? Import your data by using the import wizard! ## Migrate from Melonly Easily import your Melonly player logs to convert them to CMS player records! ### Create a Melonly API Key > [accordion] 1. Create a Melonly API Key > > On the Melonly dashboard select **Settings** > **Panel** > **Server API Tokens** > **Create Token** > > Create and copy the API token to be used with Sonoran CMS. > > ![](https://docs-assets.sonoransoftware.com/sha256/42/424b2378adb48a10d66154b126a3b1ada78a6c08a68b628ee66532102513b44a.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/51/511a4f2876dc867a20fff9ac894fe00ac24f19d101ce613efc00cc803a69e006.png) ### Import into CMS > [accordion] 2. Import into CMS > > Select **Import** on the side panel > **Melonly** > paste your Melonly API Token > **Initiate Import** > > Once started, the CMS will begin importing your Melonly player logs, including any custom log types. After a few minutes, your Melonly logs will begin to display in the activity feed and > > ![](https://docs-assets.sonoransoftware.com/sha256/15/15de3f186f89454be076852676097b72691867c5c987403cabacabb5c016412a.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/72/724ab121149da922673a36da35ddba0bb226278ecd5ddd9c42e341204ca4772e.png) > > *CMS: Import Melonly Logs* ### Custom Log Types > [accordion] 3. Custom Log Types > > Both Melonly and Sonoran CMS allow for the creation of custom player log/record types. Because Melonly does not expose the record type labels in their API these logs will be imported as `Unknown Custom Log Type`. > > You can [rename these custom log types from Melonly properly in the Moderation panel](/cms/integration-capabilities/er-lc-game-panel/usage/moderation#custom-record-types). > > ![](https://docs-assets.sonoransoftware.com/sha256/78/788bf68a0f249ce6fbd8aca0bb9e839391ef171cd13d587e352867d8ea71758f.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/c7/c7844589a417bbb9a4b17a554155935fe14d281d95396fb91d963ca2c769dd81.png) # Moderation Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/moderation Configure moderation standards in the ER:LC panel. ## Priority Player List > [accordion] Priority Player List > > The Priority Player List highlights in-game users with specific CMS ranks by moving them to the top of the player list. This is useful for quickly identifying which staff members (or other ranks) are currently online. > > Players with one of the configured CMS ranks will display a rank badge on their player card and appear at the top of the dashboard list. > > ![](https://docs-assets.sonoransoftware.com/sha256/f4/f4876df69d7b2fb6c8d8133addc87aedab7624fe1395abbfd8f87fbc0a10438a.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/f0/f05b5f882738e2ba168ca8d9ffc1aa4a5c14f684d154713b1623429760765a90.png) ## Custom Record Types > [accordion] Custom Record Types > > These custom log types can be created via [CMS](/cms/integration-capabilities/er-lc-game-panel/usage/player-records#via-cms-panel), [Discord](/cms/integration-capabilities/er-lc-game-panel/usage/player-records#via-discord-bot), or [in-game](/cms/integration-capabilities/er-lc-game-panel/usage/player-records#via-in-game-command)! > > ![](https://docs-assets.sonoransoftware.com/sha256/af/afe64f866918c79ca73265542a94ff3e923165a91d6fa3f7902fd432811444fd.png) > > Create additional, custom player record types for things like RDM, Combat, and more! ## Request Form Types > [accordion] Custom Request Forms > > Request form types are CMS form submissions that are displayed [right in the ER:LC panel](/cms/integration-capabilities/er-lc-game-panel/usage/dashboard#latest-activity) for quick processing. > > **Example: Priority Requests** > > Many communities require approval for a "priority" scene (a roleplay scene with multiple users, weapons, etc.) > > In the **Request Form Types** we've selected a custom CMS form for **Priority Requests**. When a user submits this form and it's in the **Awaiting Review** stage, it will be [displayed on the ER:LC panel](/cms/integration-capabilities/er-lc-game-panel/usage/dashboard#latest-activity). > > Additionally, players can submit this form (as long as their Roblox account is linked) from in-game using a custom `:log` command**.** All additional text after the command will be inserted into the selected form field. > > Ex: `:log prio this is an example` > would create a new **Priority Request** form submission with "this is an example" inserted into the form field "What is the priority for?" > > **Stage Actions** > > When a form stage is changed [automated actions, including ER:LC commands](/cms/integration-capabilities/er-lc-game-panel/usage/cms-integrations#stage-actions) can be ran. > > ![](https://docs-assets.sonoransoftware.com/sha256/24/240ea039c6f4274e0e30a219209fbb13372bc733e7b2b1e763dfc341295f9cd4.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d551740ab0ca284be9c31896b1c4e17d787cea4ca861a37774f1f9f24908d28.png) ## Username Moderation > [accordion] Username Moderation > > Even with Roblox’s built-in username moderation, some inappropriate names can still bypass filters. The Username Moderation panel allows you to automatically kick users with “All” or “Others” in their username — preventing commands targeting them from affecting the entire server. > > You can also configure AI-based moderation standards to automatically detect and handle inappropriate usernames. > > ![](https://docs-assets.sonoransoftware.com/sha256/d1/d1829c1fd7d3ecddc804963a819ed45272c84ffcaa821253cbc453c2f1f2863d.png) # Player Records Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/player-records Log player records for warnings, punishments, notes, and more! ## Creating Player Records ### Via CMS Panel > [accordion] Via CMS Panel > > New player records can be created directly from the ER:LC server dashboard. > > * **Kick** and **Ban** records automatically execute the corresponding in-game commands. > * **Disciplinary Point** records add a specified number of points to a user and can be used for warnings or punishments. > * **Note** records allow staff to store important information or observations about a player. > > ![](https://docs-assets.sonoransoftware.com/sha256/44/44bbde55a9c295041dcc06f5d36a57813b3adaaca07bb35d3a43034f1bc70df4.png) ### Via In-Game Vision > [accordion] Via CMS Vision > > Users with the CMS desktop application can use [Vision with a hotkey to open an in-game overlay](/cms/integration-capabilities/er-lc-game-panel/usage/vision) and quickly add records to the nearby player. > > ![](https://docs-assets.sonoransoftware.com/sha256/6a/6a1f451df33b449e69e4b4083b3348a717f7ad7f64529cbb8ff7bffaf94709fe.webp) ### Via Discord Bot > [accordion] Via Discord Bot > > ![](https://docs-assets.sonoransoftware.com/sha256/9f/9ff539caa9de7663f76fe905d961db5759fc812355d089202aa72a364183992f.png) > > Player records can be added via [Discord bot](/cms/integration-capabilities/discord-bot-integration) by using the `/erlc record` command. > > * **ServerID** specifies the ER:LC server you wish to add this player record to. > * **Player** is a selected Discord user or Roblox user ID. > * Players must [have their Discord linked](/cms/integration-capabilities/er-lc-game-panel/installation#id-3.-link-roblox-and-discord-to-cms) for this to work! > * **Type** is the type of player record (kick, ban, disciplinary, note, etc.) > * Additional inputs may be needed for reasoning, points, etc. ### Via In-Game Command > [accordion] Via In-Game Command > > Players in-game can use the `:log` command to create records. > > Syntax: `:log record [type] [player name] [points - optional] [reason]` > > Example: `:log record note John This is an example note!` > > Record Types: > > * `points` (uses extra `[points]` parameter) > * `note` > * `kick` > * `ban` > * [Custom Log Type](/cms/integration-capabilities/er-lc-game-panel/usage/moderation#custom-record-types) > > Players can also manage their timeclock in-game using the `:log` command. > > [Learn more about in-game timeclock commands here.](/cms/integration-capabilities/er-lc-game-panel/usage/shifts-and-activity#timeclock) ## Adding Custom Record Types Communities can [configure additional custom record types in the Moderation panel](/cms/integration-capabilities/er-lc-game-panel/usage/moderation#custom-record-types). ## Searching Player Records ### Search Filters > [accordion] Search Filters > > Find a specific record by expanding the filter menu on the Latest Activity section to specify a record's type, staff member, user, and date range. > > ![](https://docs-assets.sonoransoftware.com/sha256/16/1629300a121882908eda9af31502df819f9e1438af9111a202f52b1773c97107.png) ### In Latest Activity > [accordion] In Latest Activity > > Click the orange icon to toggle the latest activity from viewing all activity logs and records to viewing only recently added records. > > ![](https://docs-assets.sonoransoftware.com/sha256/5e/5ef82bf6c52834ebe197d68c42a5649c659df4150954e73cba11f5aa835c8446.png) ### In Player Activity > [accordion] In Player Activity > > Click any player to open their account modal. You can view all recent activity and records in the `Activity` expansion area. Additionally, click the orange icon to toggle from viewing all activity logs and records to viewing only recently added records. ## Editing Player Records > [accordion] Editing Player Records > > Click any player record to open it in the editor. Here, you can modify the record and view the record's edit history. > > ![](https://docs-assets.sonoransoftware.com/sha256/10/109f53ec30f724f2c1b9eceb25fd6d464e1c5bb34691ebd7cb76e13d5fbc743f.png) # Shifts and Activity Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/shifts-and-activity Learn more about powerful time tracking with the ER:LC panel! ## Timeclock Timeclock [shift types are configured in the community customization panel](/cms/tutorials/customization). ### Via In-Game Command > [accordion] Via In-Game Command > > Users can clock in or out of their timeclock by using the `:log` command in-game. > > Format: `:log clockin [shift type - optional]` ### Via Discord Command > [accordion] Via Discord Command > > Users can clock in or out of their timeclock by using the `/clickockin > ![](https://docs-assets.sonoransoftware.com/sha256/7b/7b333c3a485304b7923b53d0caba9d8821646e2717f698bb23a4efbe37ffcd86.png) ### Via CMS > [accordion] Via CMS > > Users can clock in or out of their timeclock by selecting the timer icon at the top of the CMS navigation bar. > > ![](https://docs-assets.sonoransoftware.com/sha256/0d/0d779448700b71fdae1dee8ed47eab755a163cd56c39bb477137b19cebe8e699.png) ## Activity Time When a user joins the ER:LC game server, an automatic activity timer starts. This timer captures a start and stop time log based on your team. These time logs can be [displayed on a roster](/cms/integration-capabilities/er-lc-game-panel/usage/cms-integrations#roster-activity-time), or be shown in one of the integrations below. ## Discord Activity ### Discord Shift Reports > [accordion] Discord Shift Reports > > When a player exits the ER:LC server, a shift report will automatically be direct messaged to them via Discord. > > These notifications can be disabled in the CMS notification settings. > > ![](https://docs-assets.sonoransoftware.com/sha256/99/9921775077b9e015cef7c0182d85d1e51cfec5566b8968fddd1953e826621016.png) ### Discord Activity Review > [accordion] Discord Activity Review > > Users can review their activity logs with the `/activity ` Discord command. This allows you to review manual timeclock shifts or automatic activity time logs. # Vision Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/vision Point at a player in-game and press a keybind to instantly access their player records and activity. ![](https://docs-assets.sonoransoftware.com/sha256/d9/d9a307548a5d88206a95b9ea38ac6d7fad9f61e9e2446abf7ba332ade1d4ec55.png) ## What Is ER:LC Vision? CMS Vision for ER:LC lets users hover over a player’s in-game name, press a keybind, and instantly open an overlay displaying that player’s latest activity with the ability to create [custom records](/cms/integration-capabilities/er-lc-game-panel/usage/player-records) on the spot. By eliminating the need to leave the game to access or manage records, it streamlines workflows and significantly reduces response time. ## Using Vision ### Vision Settings > [accordion] Keybinds > > Vision keybinds and other settings are available under **Community Settings** > **Vision** > > By default, the vision keybind is **Command/Control + Shift + O**. This can be customized by clicking on the keybind to record, pressing a new keybind combination, and clicking to save it. > > ![](https://docs-assets.sonoransoftware.com/sha256/9c/9c9e2d8f35a03dcf92683a51908b7baf9b5df882857486f171a730960933dc24.png) > [accordion] Capture Zone > > Vision captures a small area around your cursor to detect and search for usernames. The capture box can be adjusted in size and vertically offset from the cursor for precise alignment. Use the eye icon to preview the exact dimensions and position of the capture area in real time. > > ![](https://docs-assets.sonoransoftware.com/sha256/1e/1e917dfac089672991fbaea70e3bfdcd35eabe5b57c444365ebb971652e5df9a.png) > [accordion] Server Selection > > The CMS ER:LC panel supports configuring multiple servers under a single community. By default, Vision selects the first server in the list. If your community has multiple servers configured, a server selection option will appear in the Vision settings—make sure to choose the server you are currently playing in to ensure accurate data. ### CMS User Permissions > [accordion] CMS Vision User Permissions > > In order to utilize CMS vision, users must have the following [rank permissions](/cms/tutorials/user-management/creating-departments): > > * **Create Record (Left Panel):** > * Disciplinary Panel (To add Disciplinary Point Records) > * Kick/Ban/Warn Player (To add Kick/Ban/Warn Records) > * **View User (Center Panel):** View Game Panel > * **View Activity (Right Panel):** View Game Panel ### Mac OSX Permissions > [accordion] Granting Vision Access on OSX > > On Mac OSX, Vision requires explicit permissions to access your screen. If not granted, a red notice will appear in the settings menu. Select **Open System Settings** > **Select the + Symbol** > Select **Sonoran CMS** from your **Applications** folder. > > ![](https://docs-assets.sonoransoftware.com/sha256/2e/2e4b8bced693c178a6600745b4ae57860aeeae4b1b96f391f326d177e7cab5ff.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/e4/e4ff09de77a6e1964f87d613cfeae91f0891555c7c630b7ee2df3a920eaab236.png) ### Vision In-Game #### Open the CMS Community Open the CMS desktop application for OSX or Windows, then open the CMS community that you are in. #### Hover and Hotkey Once in-game, with the CMS application and community open, move your cursor just below a username and press your hotkey combination. #### Access the Player Menu Once the hotkey is pressed, the player card popup will display on your screen. * Press **ESC** to close this menu * Press **Left Arrow Key** to access the [new record panel](/cms/integration-capabilities/er-lc-game-panel/usage/player-records) * Press **Right Arrow Key** to access the player's [recent activity](/cms/integration-capabilities/er-lc-game-panel/usage/dashboard#latest-activity) ![](https://docs-assets.sonoransoftware.com/sha256/6a/6a1f451df33b449e69e4b4083b3348a717f7ad7f64529cbb8ff7bffaf94709fe.webp) # Whitelist Source: https://docs.sonoransoftware.com/cms/integration-capabilities/er-lc-game-panel/usage/whitelist The ER:LC whitelist panel enables social, server, team, vehicle, and livery restrictions. ## Social Requirements The `Social Requirements` section allows you to require that CMS accounts be linked to both Discord and Roblox accounts. When users have both social accounts connected, the ER:LC panel and Discord integrations can operate with full functionality. ### Enabling Social Requirements > [accordion] Enabling Social Requirements > > Toggle the `Roblox` and/or `Discord` requirement(s). Then, define custom actions to trigger when a user joins your ER:LC panel without having a linked Roblox or Discord account in the CMS. > > Available actions include public or private in-game messages, Discord webhooks, push notifications, and more. > > ![](https://docs-assets.sonoransoftware.com/sha256/67/67d297a786ca6d15cee4bf1e8937a7959515717bf058c51473eb0b6c057cc6b9.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/d1/d1319dd5d98f9aa6e8b748decab3db39d0750ef64bc3c47768ebe9fe79fa72ac.png) ## Allow and Deny Players Whitelist > [accordion] Allow and Deny List > > The allow and deny lists let you control game access based on CMS ranks. These lists are activated once one or more ranks are configured. > > When enabled, only users with a Roblox account linked to a CMS account that holds an **allowed rank** can join the server. Users without an allowed rank will be kicked automatically. > > If a user’s CMS rank appears on the **deny list**, that restriction overrides the allow list — those users will be kicked upon joining. > > ![](https://docs-assets.sonoransoftware.com/sha256/ac/ac88632db4049f0d50d9ab108b3bd16d364427de534b4546509f236fdac6c291.png) ## Team Locks and Restrictions ### Team Locks Each ER:LC team can be locked down to a maximum amount of players. Teams can be locked via the CMS **Lock** icon, or via Discord bot command. #### Lock via CMS > [accordion] Lock via CMS > > Next to the team, select the **Lock** icon to enable or disable the lock, then enter a number into the **Max** > > Use the **Shield** icon to add CMS ranks that bypass and ignore this lock. > > ![](https://docs-assets.sonoransoftware.com/sha256/3a/3aec265ad75406c858c391fadb6ca2e60be12150f914091383efba92298b75ee.png) #### Lock via Discord > [accordion] Lock via Discord > > Team locks can also be configured via [Discord bot](/cms/integration-capabilities/discord-bot-integration) by using the `/erlc lock` and `/erlc unlock` commands. > > ![](https://docs-assets.sonoransoftware.com/sha256/12/12f3050c3239de58a10a61652c463043143e7572f55247c7b37de770cd22ff7e.png) #### Lock Actions > [accordion] Lock Actions > > When a player joins a team that has already reached its maximum amount of players, custom actions can be used to kick the user off of the team, send a message, Discord webhook, and more! > > Select **Actions** next to the team > Add a new action > And toggle the mode to **Lock** to apply this action whenever a team lock is reached. > > ![](https://docs-assets.sonoransoftware.com/sha256/e2/e2bd118fa6185b3564b6816741c986e7e7b83277351b37451f4bbfca4581ab31.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/c1/c1ab71102f3684003a521d07d6e892ff86750f57f362f70e00ecd82c58e1cc6d.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/cf/cfff3d5b0092bd51452db79821ecfbcc6236d45e21f3601e4897bba6a124878a.png) ### Team Restrictions > [accordion] Team Restrictions > > Each team can also be locked to users with specific CMS ranks. > > Select the **Shield** icon to configure which ranks are allowed to join the team. > > Select the **Actions** panel to create actions that apply when a user joins a team without the proper CMS rank. > > ![](https://docs-assets.sonoransoftware.com/sha256/c1/c1a8cef2e2fd59bdab24fd5b19503177ce12dc9fc6fd9f50a32dc67e12f66ea1.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/94/947a42750ce95c6cc39cc40d623161c4dd4bd20425132bb19101ae8152785d0d.png) ## Vehicle & Livery Restrictions > [accordion] Vehicle & Livery Restrictions > > Vehicles and vehicle liveries can also be restricted to users with specific CMS ranks. > > Just like teams, select the **Shield** icon to which ranks are allowed to use the vehicle and vehicle liveries. > > Select the **Actions** panel to create actions that apply when a user uses a vehicle or livery without the proper CMS rank. > > ![](https://docs-assets.sonoransoftware.com/sha256/0d/0dde480d3caa28d9f48918fbac3f623d8b91bf4592918c27cda932d3d8896899.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/68/68f4a8054c24bda160dd63a61bd676b3fd41df2c217c109d63c8c14b8a84cc2f.png) ## AOP (Area-of-Play) > [accordion] AOP Restrictions > > Some communities wish to restrict users to an AOP (area-of-play) on the map. > > In the CMS, use the polygon, square, or circle tool to create a custom AOP. Once created, the AOP can be enabled and disabled. Select the **Actions** tab to configure custom CMS automations that will fire once a player is outside of all enabled AOPs. > > Select the **Rank** button to add CMS ranks that bypass AOP restrictions. > > ![](https://docs-assets.sonoransoftware.com/sha256/83/83ebda4bbf15d6ba913e38c525b2f8a5478a0075bc0cd4610bfdd35e4c528d39.png) # FiveM Game Panel Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel Manage your FiveM server with the CMS QBCore, QBox, and vMenu game panels! ![](https://docs-assets.sonoransoftware.com/sha256/15/15b1656928a4bf0dc9e3760003f92b8cb7e1af69f6e80f43a3c36eb57f1d9263.png) *Sonoran CMS: FiveM Management Panel* ## Get Started Today! > [card] [Installation](/cms/integration-capabilities/fivem-game-panel/installation) ## Using the QBCore & QBox Panel > [card] [qbcore-and-qbox-panel](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) ## Using the vMenu Panel > [card] [vmenu-panel](/cms/integration-capabilities/fivem-game-panel/vmenu-panel) # Installation Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/installation Sonoran CMS manages your QB Core server for free! ## Video Tutorial [Video tutorial](https://www.youtube-nocookie.com/embed/pkdC-qgM64E) ![](https://docs-assets.sonoransoftware.com/sha256/c8/c8e8403db399922e5ffce8700293b8775c481ee911493ac5bbc2ffbaf14b0eb4.png) *Sonoran CMS - Integrations* ## Install the CMS Core Framework The QB Core management panel will help walk you through each step. ![](https://docs-assets.sonoransoftware.com/sha256/43/434676ba54583a3be44cf4f2bb6cf6d8c51377fc792479f743a7dc453d2d7b08.png) Download the CMS Core. This download will already have the config filled with your Community ID (or UUID) and API Key. ## Configure the Core ![](https://docs-assets.sonoransoftware.com/sha256/a2/a2399e20b9ac6927ece353dc83a62115b5eb1e8156fab59cb2037a19695f99ae.png) Once installed, the `config.lua` will configure your Community ID (or UUID) and your API key. It is recommended to keep all remaining config options with their default values. ## Configure your Server In your `server.cfg` file, add the following lines to run the CMS core resource and grant permissions to the auto-updater. ``` # file system permissions (if using QB-Core) add_filesystem_permission sonorancms write qb-core # file system permissions (if using QBox) add_filesystem_permission sonorancms write qbx_core add_filesystem_permission sonorancms write ox_inventory exec @sonorancms/sonorancms.cfg ``` ![](https://docs-assets.sonoransoftware.com/sha256/a3/a30fc3776f27d1f79d67e439443598d54a9e394ace1b8fc7ed546367622e008f.png) ## Configure your Server (Required for QB-Core and QBox) Due to recent changes to FiveM there is now security limitations to the file system which the game panel uses to update Items, Jobs, Gangs, etc. This requires the `add_filesystem_permission` line(s) to be added to the `server.cfg` shown above, as well as the author of the resources to be updated. You can find out more information on why this is required [here](https://docs.fivem.net/docs/developers/sandbox/#file-system-permissions). **QB-Core Specific** * Update `qb-core/fxmanifest.lua` author line to the following: * `author ''` **QBox Specific** * Update `ox_inventory/fxmanifest.lua` author line to the following: * `author ''` *Note: We're working on making this not a requirement in the future but need to work with the respective resource developers to get it updated.* ## Configure the Panel Select `Edit Servers` to include the IP address and port used to direct connect to your server. ![](https://docs-assets.sonoransoftware.com/sha256/9e/9e582c77edd36ca353f4925015cd3c3509ff7d2454d6857d0f3f3ee9ee80ecd5.png) ![](https://docs-assets.sonoransoftware.com/sha256/44/444aa7b2102320a543305a8024ef5db4ed81e6d07627b10bf81e6e617e7e8a18.png) ## Grant Permissions By default, only community owners will have access to the QB Core management panel. In the [Rank Manager](/cms/tutorials/user-management/creating-departments), you will need to add the associated permissions under the tab `Game Servers` ![](https://docs-assets.sonoransoftware.com/sha256/1f/1fc9bee6c012b2930f13b31a5cb2d933a284ded90e0a5e79bb18626b0d0e56bb.png) ## Using the Game Panel View the next guide below to start using the QB Core game panel. > [card] [qbcore-and-qbox-panel](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) # QBCore & Qbox Panel Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel Once configured, you can easily manage your entire QB server! ## Video Tutorial [Video tutorial](https://www.youtube-nocookie.com/embed/_FLs4M2EOR4) ## Written Guides Click the cards below to learn more about each feature: > [card] [Dashboard](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/dashboard) > > View your server statistics right from the CMS QB Core management panel! > [card] [Players](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/players) > > Manage in-game players with the CMS QB Core management panel! > [card] [Vehicles](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/vehicles) > > Manage in-game vehicles with the CMS QB Core management panel! > [card] [Whitelisting](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/whitelist) > > Automate whitelisting in your server with the CMS QB Core management panel. > [card] [Logs](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/logs) > > View server logs with the CMS QB Core management panel! > [card] [Characters](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/characters) > > Manage in-game characters with the CMS QB Core management panel! > [card] [Jobs](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/jobs) > > Manage in-game jobs with the CMS QB Core management panel! > [card] [Gangs](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/gangs) > > Manage in-game gangs with the CMS QB Core management panel! > [card] [Items](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/items) > > Manage in-game items with the CMS QB Core management panel! > [card] [Resources](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/resources) > > Start, stop, and ensure in-game resources with the CMS QB Core management panel! > [card] [Aces and Principals](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/aces-and-principals) > > Manage in-game ACE permissions with the CMS QB Core management panel! > [card] [Environment](https://docs-assets.sonoransoftware.com/sha256/8d/8d95b92d5ba7571602b600f5638c6fdeeb82d671802d304924425ec466d47ccb.png) > > Manage in-game weather and time with the QB Core management panel! # Aces & Principals Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/aces-and-principals Easily grant ACE Permissions to users directly from CMS. ![](https://docs-assets.sonoransoftware.com/sha256/f0/f0da288a104d9ac12c0fc5406876a03f5f3ac39fb0ee1116ee5596ea1b79180d.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Setup Ensure you have the following in your `server.cfg` (if you don't permissions won't be able to be granted) ``` add_ace resource.sonorancms command allow ``` ## Mapping Ranks to ACE Principal Identifiers You can select the ranks you would like and input the principal identifier you would like to grant them. This makes it easy to grant users in-game permissions en masse. ![](https://i.imgur.com/j5XTpYT.png) *Sonoran CMS -QBCore Game Panel - Aces & Principals* You can further customize the permissions each Principal group receives in your `server.cfg`, make sure to follow the conventions outlined in [this guide](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917). Additionally, ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS. For more details, read our documentation on the "Ace Permission Sync" module for CMS Core [here](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/ace-permission-sync). # Characters Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/characters Easily manage in-game characters with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/6f/6f40ba1b38d9c161283271ebb5efb798a0ab005b1de439bdf269f28c90cfcbba.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Manage a Character ![](https://docs-assets.sonoransoftware.com/sha256/f9/f96f21405180d99e56abcdc773c4c26e63373faffe53c4a41d901f54fccbb2c6.png) The characters tab allows you to view and edit: * First Name * Last Name * Gender * DOB * Nationality * Phone Number * Cash Balance * Bank Balance * Crypto Balance * and more! ## Player Inventories Select the `Inventory` tab on a character to open a drag-and-drop inventory manager. ![](https://docs-assets.sonoransoftware.com/sha256/84/8419fd57fb08fea9be6c9ca1b7c6f6655b416e8a395cb6cb36e30880834b3467.png) ## Supported Inventory Scripts Currently, Sonoran CMS supports the following QB Core inventory scripts: * QB (Base) Inventory * Ox Inventory * Quasar Inventory * Project Sloth Inventory * Origen Inventory * Core Inventory * Tgiann Inventory You can suggest more integrations on our [support portal](https://support.sonoransoftware.com). # Dashboard Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/dashboard View your server statistics right from the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/c9/c9a2949543b629a1a95df71fd44bad2a4cbc98ab3369d6df9aaad2177805855a.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Viewing the Dashboard The dashboard offers a brief overview of your server statistics, including: * Players Online * Server Uptime * CPU Usage * Memory Usage # Environment Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/environment Easily set the weather and time in your server, directly from CMS! ![](https://docs-assets.sonoransoftware.com/sha256/8d/8d95b92d5ba7571602b600f5638c6fdeeb82d671802d304924425ec466d47ccb.png) ## Manage Weather Here you can set the current weather on your server. Open the dropdown menu and choose from 15 different weather options! You can also toggle `Freeze` and `Blackout` on the side. `Freeze` forces the weather to stay as what you set it to, if toggled, it will not change on its own. `Blackout` simulates a power outage, and all buildings will show as if they don't have electricity. ![](https://docs-assets.sonoransoftware.com/sha256/3a/3a2fd37449cc5cae33671b6d13ed06c32cbe88afd5550cda1f518d4279bdd07a.png) *Sonoran CMS - VMenu Game Panel - Weather* ![](https://docs-assets.sonoransoftware.com/sha256/8c/8c4f68f1d5adf30a2f2106b904143a111e05e7ac0365f4d32b4f556b5af2d660.png) *Sonoran CMS - VMenu Game Panel - Weather Options* ## Manage Time You can also set the time to any time of day using the time selector. You can also toggle `Freeze` which locks the time to whatever you've set it to. ![](https://docs-assets.sonoransoftware.com/sha256/8b/8bc747235b98bd2923dc30fc3d3ba39a6f82802c4f1ebb3963616b5ead0dc46c.png) *Sonoran CMS - VMenu Game Panel - Time* ## Weather Flickering Issue Sometimes, having CMS installed can cause an issue where the weather and time in the server seem to rapidly "flicker". This occurs when another resource is also trying to manage weather. If you are encountering this issue and would like to disable CMS's weather management, then please set `Config.EnableWeatherSync` to `false` in the resource's `config.lua`. # Gangs Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/gangs Easily manage in-game gangs with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/ba/ba750bc3dbc04f2fef5bd9f4ddc76c14e0b9384f34241286561c1e5a8bf579ad.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Managing Gangs Click any gang to expand the contained grades/ranks. Select the `+` symbol to add a new grade and the pencil icon to edit a job type. You can toggle a grade as boss and reorder them via drag-and-drop. ![](https://docs-assets.sonoransoftware.com/sha256/5f/5fa938b64531949192881c5f8e488ba9a829b17d0e24dbf380ffcbf1b35873ce.png) ![](https://docs-assets.sonoransoftware.com/sha256/76/76761dc55ca97b66baaa8868d474889f8795ef14dbaf4d7dc5790e5e489d61cf.png) ## Add a New Gang You can create a new gang type by selecting `New Gang` at the end of the gang list. Expand it to edit the gang information and add grades. ![](https://docs-assets.sonoransoftware.com/sha256/13/132e4379bf446ea12381d4972f6f325ec8b6d4ab070f187190d251e1f45e4e75.png) # Items Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/items Easily manage in-game items with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/14/142e0825c52cd3db38bd6cdc346484b40543eca1f3ca5343c8c71ff0c82abbd3.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Managing Items Click any item row to initiate editing. You can adjust the item label, weight, description, image, and various other options ## Add a New Item You can create a new item by selecting `New Item` above the item table ![](https://i.imgur.com/ledRRX9.png) # Job Sync Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/job-sync Grant CMS ranks based on your current in-game job! ![](https://docs-assets.sonoransoftware.com/sha256/64/64417e231ad31ca43a93c055c02cef3b55f4fbec0fee7d866291ca13e2eaee5e.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Managing Job Sync Select the rank(s) which you would like to associate with a given job in-game on the left box, then select the job in the right box. When a player has the job in-game, they will be granted the associated CMS ranks. This allows you to restrict permissions for Sonoran CAD, Radio, etc. to specific character jobs only. ![](https://docs-assets.sonoransoftware.com/sha256/8d/8d139d5a9ffec2770f0b182c5b4a610b8e3545ef79df57199ebe99a633156147.png) *Sonoran CMS - QBCore Game Panel - Job Sync - Select Rank* Click `ADD` to add that mapping to the Job Sync list. Repeat for however many jobs you need to sync. If needed, you can delete a mapping with the red trash button on the right. ![](https://docs-assets.sonoransoftware.com/sha256/aa/aa0094cea5a9cf74828e96e210e999c4eea93ddd1c7003320c7fff9de8238cee.png) *Sonoran CMS - QBCore Game Panel - Job Sync - Add Mapping* # Jobs Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/jobs Easily manage in-game jobs with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/7a/7a79d9e89fbc86759844ef3f57bdd1773d0c839668b2c8f734982078e48e5823.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Managing Jobs Click any job to expand the contained grades/ranks. Select the `+` symbol to add a new grade and the pencil icon to edit a job type. You can adjust the grade name, pay, toggle it as boss, and reorder via drag-and-drop. ![](https://docs-assets.sonoransoftware.com/sha256/8f/8f607f47e98d59b49e1a0a4ddb5f1b30e2e89c31937ecede9ab4503764145bab.png) ![](https://docs-assets.sonoransoftware.com/sha256/16/16fdfd170b10e3f2eac8b0663ee44cc04769f0d83d7039e09a6f0dac88bfd500.png) ## Add a New Job You can create a new job type by selecting `New Job` at the end of the job list. Expand it to edit the job information and add grades. ![](https://docs-assets.sonoransoftware.com/sha256/da/daaa9141315767c709ea00c9fe9d3f3d1029655b41b8cdc3636e2312f5076a2a.png) # Logs Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/logs Easily view server logs with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/65/65367d6a4f8055b6b18e29f0f599dd20b836c3c9d23304ca2c4ea6146d1201e3.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Viewing Server Logs The last 1,000 server logs will be populated into the logging panel. Click to copy any log row. Type to filter and find logs more easily at the top left. # Players Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/players Easily manage in-game players with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/41/41c35cc7e8ddc0990e2819c3c22a953ec1788800147f42913ec360aa62f15b77.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Select and Manage a Player Click on any online player to interact. * Copy unique identifiers * Warn the player in-game * Kick the player from the server * View their [characters](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/characters) ![](https://docs-assets.sonoransoftware.com/sha256/68/687638587e51703308868073a650a6161a6836bc641254f4d68fda7c0eaa53b5.png) ## Warn a Player ![](https://docs-assets.sonoransoftware.com/sha256/3a/3a30a0eae386cb85d62e290c5aa1b6a4d2e24333290f70f69ba2ad52730d596f.png) Selecting `Warn` on a player will prompt you to add a reason message. The player will then receive a warning notice in-game, requiring them to hold down `SPACE` for ten seconds to dismiss. # Resources Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/resources Easily start, stop, and ensure in-game resources with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/b7/b785697ede02b13ffa482908671ef5e11038a6c9b85587c8f10aadac47843878.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Managing Resources All in-game resources will appear on the panel with three options: ### Start a Resource Select the `Start` button to start an in-game resource. ### Stop a Resource Select the `Stop` button to start an in-game resource. ### Ensure a Resource Select the `Ensure` button to start an in-game resource. # Vehicles Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/vehicles Easily manage in-game vehicles with the CMS QB Core management panel! ![](https://docs-assets.sonoransoftware.com/sha256/90/9052159bd3cdb70fa788ce12ea8eed1f3d7dbda410256f716195939a5fcf7521.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Switch Between Live and DB Vehicles You can switch to view only live vehicles active in the server, or all vehicles in the database at the top right. ![](https://docs-assets.sonoransoftware.com/sha256/a2/a2b7f2156b2c4f3c9f91809519e8639823e752537712d69128b5557969e846bb.png) ## Add a Vehicle Selecting `Add Vehicle` at the top right allows you to create a new vehicle and assign it's ownership to a player. ![](https://docs-assets.sonoransoftware.com/sha256/d6/d60611b00aec1a43decfa3b879c2b7c62ce07fde4778d76c2fb855f855653ffb.png) ## Manage a Vehicle Select any vehicle to modify it's information, transfer ownership, repair it, or delete it from the server. ![](https://docs-assets.sonoransoftware.com/sha256/d8/d8d9298daa669b8a9b46ddd417ed1b9e0ae71dd3cd134d199c770b38bd166096.png) ## Supported Garage Scripts Currently, Sonoran CMS supports the following QB Core garage scripts: * QB (Base) Garages * Codesign Garage * Quasar Advanced Garages * JG Advanced Garages * AK47 QG Garage You can suggest more integrations on our [support portal](https://support.sonoransoftware.com) or if you would like to add the support yourself, simply paste this code snippet in any **SERVER-sided** file in your garage resource. ```lua theme={null} local function getAllGarages() local garages = {} for k, v in pairs(Config.Garages) do garages[#garages+1] = { name = k, label = v.label, type = v.type, takeVehicle = v.takeVehicle, putVehicle = v.putVehicle, spawnPoint = v.spawnPoint, showBlip = v.showBlip, blipName = v.blipName, blipNumber = v.blipNumber, blipColor = v.blipColor, vehicle = v.vehicle } end return garages end exports('getAllGarages', getAllGarages) ``` # Whitelist Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/whitelist Easily whitelist or deny users from accessing your server based on their CMS ranks! ![](https://docs-assets.sonoransoftware.com/sha256/d5/d58d1abdf15a5c882b9bac92d88cff25dcf9536c4a167834762d564b08aa0f85.png) *Sonoran CMS - QBCore Game Panel Promotional Image* ## Whitelisting Users Here you can select ranks to either allow or deny them on the whitelist for the server you've selected. ![](https://docs-assets.sonoransoftware.com/sha256/89/89b4b504839ad32b813434ac9e795041ce3f1c8ced7eae56d0e21250fe33555f.png) *Sonoran CMS - QBCore Game Panel - Whitelist* Within either list, each department shows as a sub-menu allowing you to toggle the ranks you wish to be added to this list. ![](https://docs-assets.sonoransoftware.com/sha256/73/736bb5931a0043daa9d78fd3dd629fae9928763540294d687afd2a29727a1b3e.png) *Sonoran CMS - QBCore Game Panel - Whitelist Allow* # Troubleshooting Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/troubleshooting # Error Codes Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/troubleshooting/error-codes ## Error and Warning Codes SonoranCMS FiveM uses structured `ERR-XX-###` and `WRN-XX-###` codes that point back to this document. You can link directly to any code by appending it to the support URL. Example: `sonorancms.com/error/WRN-CORE-101` Warnings use a `WRN-*` prefix. Errors use an `ERR-*` prefix. ### Core Errors #### ERR-CORE-101 **Key:** `API_ERROR` **What it means:** SonoranCMS could not retrieve the CMS API version during startup. **How to fix it:** Verify the API URL, community ID, API key, and outbound connectivity, then restart the resource. #### ERR-CORE-102 **Key:** `CONFIG_NEW_FOUND` **What it means:** `config.NEW.lua` was found, which indicates the live config is outdated and needs manual review. **How to fix it:** Merge the new config values into `config.lua`, then remove `config.NEW.lua`. #### ERR-CORE-103 **Key:** `API_ENDPOINT_INVALID` **What it means:** The configured CMS API endpoint resolved to an invalid backend path. **How to fix it:** Check `Config.apiUrl`, registered endpoint mappings, and any custom API override values. #### ERR-CORE-104 **Key:** `API_DISABLED_FATAL` **What it means:** SonoranCMS disabled outbound API usage after a fatal configuration or authentication response. **How to fix it:** Fix the reported invalid API key, community ID, or entitlement issue, then restart the resource. #### ERR-CORE-105 **Key:** `API_SERVER_ERROR` **What it means:** The CMS API returned a server-side error. **How to fix it:** Check `status.sonoransoftware.com` and retry once the backend is healthy. #### ERR-CORE-106 **Key:** `API_REQUEST_UNEXPECTED` **What it means:** The CMS API returned an unexpected status or response body. **How to fix it:** Enable debug logging, inspect the related request and response pair, and verify the endpoint and payload are valid. #### ERR-CORE-107 **Key:** `API_REQUEST_BLOCKED` **What it means:** SonoranCMS refused to send an API request because the resource is already in a critical error state. **How to fix it:** Resolve the earlier fatal startup error first, then restart the resource. #### ERR-CORE-108 **Key:** `PLAYER_IDENTIFIER_MISSING` **What it means:** A helper attempted to read a player identifier that was not present on the player. **How to fix it:** Confirm the configured identifier type exists for the player and that the framework or resource is passing the correct identifier type. ### Security Center Errors #### ERR-SEC-101 **Key:** `SECURITY_CENTER_POST_FAILED` **What it means:** Posting a Security Center event to SonoranCMS failed. **How to fix it:** Verify the outbound API connection and inspect the backend response message included in the log. ### Activity Tracker Errors #### ERR-AT-101 **Key:** `ACTIVITY_TRACKER_START_FAILED` **What it means:** SonoranCMS could not create an activity tracker entry for a player join or start event. **How to fix it:** Verify the outgoing payload and the API response for the affected player identifier. #### ERR-AT-102 **Key:** `ACTIVITY_TRACKER_STOP_FAILED` **What it means:** SonoranCMS could not stop an activity tracker entry for a player disconnect or stop event. **How to fix it:** Check the API response payload and make sure the player identifier being sent is valid. #### ERR-AT-103 **Key:** `ACTIVITY_TRACKER_RESET_FAILED` **What it means:** SonoranCMS could not clear active activity tracker entries during startup recovery. **How to fix it:** Check the API response details and verify the activity tracker endpoint is available. ### ACE Permission Errors #### ERR-ACE-102 **Key:** `ACE_PERMISSIONS_FETCH_FAILED` **What it means:** Fetching ACE permission data from SonoranCMS failed. **How to fix it:** Verify the API key, community ID, and connectivity to the CMS API. ### JobSync Errors #### ERR-JS-101 **Key:** `JOBSYNC_SET_RANKS_FAILED` **What it means:** JobSync could not update account ranks in SonoranCMS. **How to fix it:** Verify the player identifier, inspect the API response in the log, and confirm the configured rank mappings are valid. #### ERR-JS-102 **Key:** `JOBSYNC_CONFIG_MISSING` **What it means:** The JobSync configuration file could not be loaded. **How to fix it:** Ensure `server/modules/jobsync/jobsync_config.json` exists and contains valid JSON. ### ClockIn Errors #### ERR-CLK-101 **Key:** `CLOCKIN_PERMISSION_DENIED` **What it means:** A player attempted to use ClockIn without the required permissions. **How to fix it:** Verify the command permission model and the player's allowed access before retrying. #### ERR-CLK-102 **Key:** `CLOCKIN_REQUEST_FAILED` **What it means:** A ClockIn request failed while handling a player command. **How to fix it:** Check the backend response text included in the log and verify the account can clock in or out through SonoranCMS. #### ERR-CLK-103 **Key:** `CLOCKIN_EVENT_FAILED` **What it means:** A server-side ClockIn event failed while processing a player state change. **How to fix it:** Verify the player identifier and the current clock-in state being sent to the API. #### ERR-CLK-104 **Key:** `CLOCKIN_CAD_RESOURCE_BAD_STATE` **What it means:** ClockIn attempted to use SonoranCAD integration while the `sonorancad` resource was not started cleanly. **How to fix it:** Start or repair the `sonorancad` resource, or disable the CAD integration in the ClockIn config. #### ERR-CLK-105 **Key:** `CLOCKIN_CONFIG_MISSING` **What it means:** ClockIn could not load its configuration from file or convars. **How to fix it:** Ensure `server/modules/clockin/clockin_config.json` exists and that the expected convars are set. ### Whitelist Errors #### ERR-WL-101 **Key:** `WHITELIST_ACTIVE_PLAYER_CACHE_FAILED` **What it means:** Whitelist failed to cache an active player entry. **How to fix it:** Inspect the related account lookup call and verify the response returned a usable account ID. #### ERR-WL-102 **Key:** `WHITELIST_IDENTIFIER_MISSING` **What it means:** Whitelist could not find the configured API identifier type for a player. **How to fix it:** Confirm the configured identifier type matches the identifiers actually present on connecting players. ### Game Panel Errors #### ERR-GP-201 **Key:** `GAME_PANEL_GARAGE_EXPORT_MISSING` **What it means:** A supported garage integration resource is missing the export SonoranCMS expects. **How to fix it:** Update the affected garage resource to a compatible version or switch to a supported garage integration. ### Plugin and Legacy Addon Errors #### ERR-PLUG-101 **Key:** `LEGACY_RESOURCE_STOP_FAILED` **What it means:** SonoranCMS detected an old standalone addon resource and could not stop it automatically. **How to fix it:** Remove the old standalone resource from your startup config and filesystem so only the bundled module remains. ### Update Errors #### ERR-UPD-101 **Key:** `UPDATE_DOWNLOAD_FAILED` **What it means:** SonoranCMS downloaded an update flow result that failed during unzip or helper processing. **How to fix it:** Inspect the bundled error payload in the log, verify filesystem permissions, and retry the update. ### Core Warnings #### WRN-CORE-101 **Key:** `CMS_SERVERS_FETCH_FAILED` **What it means:** SonoranCMS could not fetch the existing CMS server list. **How to fix it:** Verify API connectivity and inspect the logged response for the failing request. #### WRN-CORE-102 **Key:** `CMS_SERVERS_PARSE_FAILED` **What it means:** The response to `GET_GAME_SERVERS` could not be parsed as expected. **How to fix it:** Enable debug logging and inspect the raw response body for malformed JSON or an upstream HTML or error payload. #### WRN-CORE-103 **Key:** `CMS_SERVERS_RESPONSE_INVALID` **What it means:** The `GET_GAME_SERVERS` response was valid JSON but did not contain the expected `servers` table. **How to fix it:** Verify the backend endpoint is the expected one and inspect the raw response payload. #### WRN-CORE-104 **Key:** `CMS_SERVER_PORT_DEFAULTED` **What it means:** SonoranCMS could not detect the server port and fell back to `30120` during registration. **How to fix it:** Set `endpoint_add_tcp`, `endpoint_add_udp`, `sv_port`, or `netPort` correctly so the real port can be detected. #### WRN-CORE-105 **Key:** `CMS_SERVER_REGISTER_FAILED` **What it means:** SonoranCMS could not create the configured CMS server entry. **How to fix it:** Verify `serverId`, server metadata, and the backend response for the failed add request. #### WRN-CORE-106 **Key:** `LEGACY_ADDONUPDATES_PERMISSION` **What it means:** The deprecated `addonupdates` folder may exist, but SonoranCMS could not verify it because of a permission error. **How to fix it:** Review the resource directory permissions and remove the legacy folder if it is no longer needed. #### WRN-CORE-107 **Key:** `CONFIG_NEW_PERMISSION` **What it means:** `config.NEW.lua` may exist, but a permission error prevented SonoranCMS from checking it. **How to fix it:** Verify resource filesystem permissions and then rerun startup checks. #### WRN-CORE-108 **Key:** `FXSERVER_OUTDATED` **What it means:** The running FXServer build is older than the version SonoranCMS was tested against. **How to fix it:** Update FXServer to at least the tested build shown in the log. #### WRN-CORE-109 **Key:** `API_ENDPOINT_UNREGISTERED` **What it means:** Code attempted to send an API request for an endpoint type that was never registered. **How to fix it:** Register the endpoint type before calling `performApiRequest`, or correct the endpoint name. #### WRN-CORE-110 **Key:** `API_BAD_REQUEST` **What it means:** The CMS API rejected a request as invalid or malformed. **How to fix it:** Enable debug logging and inspect the payload or body being sent to the API. #### WRN-CORE-111 **Key:** `API_RATELIMITED` **What it means:** The CMS API temporarily rate-limited one of the endpoints. **How to fix it:** Reduce request frequency for the affected endpoint and check for duplicate or looping requests. ### Game Panel Warnings #### WRN-GP-101 **Key:** `GAME_PANEL_INVENTORY_DEPENDENCY_MISSING` **What it means:** Game Panel inventory data cannot be sent because no supported inventory resource is running. **How to fix it:** Start a supported inventory resource or ignore this warning if the Game Panel feature is not used. #### WRN-GP-102 **Key:** `GAME_PANEL_GARAGE_DEPENDENCY_MISSING` **What it means:** Game Panel garage data will be empty because no supported garage resource is running. **How to fix it:** Start a supported garage resource or ignore this warning if garage sync is not needed. #### WRN-GP-103 **Key:** `GAME_PANEL_DATABASE_DEPENDENCY_MISSING` **What it means:** Game Panel payloads cannot be built because no supported database resource is running. **How to fix it:** Start `oxmysql`, `mysql-async`, or `ghmattimysql`, or ignore this warning if the Game Panel feature is not used. #### WRN-GP-104 **Key:** `GAME_PANEL_PAYLOAD_BLOCKED` **What it means:** Game Panel payload delivery was skipped because SonoranCMS is in a critical error state. **How to fix it:** Resolve the earlier blocking error first, then restart the resource. #### WRN-GP-105 **Key:** `GAME_PANEL_PAYLOAD_BLOCKED_DETAILS` **What it means:** Additional details were logged for a skipped Game Panel payload. **How to fix it:** Read the accompanying error list in the same log block and fix the first listed problem. #### WRN-GP-106 **Key:** `RESOURCE_NAME_INVALID` **What it means:** The resource is not named `sonorancms`, which breaks assumptions used by the integration. **How to fix it:** Rename the resource folder or startup entry to `sonorancms`. #### WRN-GP-107 **Key:** `LEGACY_RESOURCE_RUNNING` **What it means:** A legacy standalone SonoranCMS addon is still running even though that functionality is now bundled into core. **How to fix it:** Remove the old addon resource from startup and leave only the bundled SonoranCMS core resource enabled. ### ACE Permission Warnings #### WRN-ACE-101 **Key:** `ACE_IDENTIFIER_MISSING` **What it means:** A player was denied ACE-based sync because the configured identifier type was missing. **How to fix it:** Confirm players have the configured identifier type and that `Config.apiIdType` matches it. ### JobSync Warnings #### WRN-JS-101 **Key:** `JOBSYNC_IDENTIFIER_MISSING` **What it means:** JobSync could not update ranks because the player did not have the configured identifier. **How to fix it:** Confirm the identifier type configured for SonoranCMS is present on the affected players. ### Update Warnings #### WRN-UPD-101 **Key:** `UPDATE_AUTORESTARTING` **What it means:** An automatic update completed and SonoranCMS is about to restart helper resources. **How to fix it:** No immediate action is required unless the restart loop repeats unexpectedly. #### WRN-UPD-102 **Key:** `UPDATE_RELEASE_DOWNLOAD_FAILED` **What it means:** Downloading an update archive from GitHub failed. **How to fix it:** Check outbound network access to GitHub and verify the release URL or version exists. #### WRN-UPD-103 **Key:** `UPDATE_VERSION_RESPONSE_INVALID` **What it means:** The version metadata fetched for updates was not valid JSON or was otherwise unusable. **How to fix it:** Check the raw version file response and retry once GitHub raw content is reachable. #### WRN-UPD-104 **Key:** `UPDATE_NOT_CONFIGURED` **What it means:** Automatic updating is available but `allowAutoUpdate` has not been configured. **How to fix it:** Set `allowAutoUpdate` explicitly in `config.lua` to either enable or intentionally disable auto-updates. #### WRN-UPD-105 **Key:** `UPDATE_RESTART_DELAYED` **What it means:** An update was applied, but restart is delayed until the server is empty. **How to fix it:** Wait for the server to empty or restart manually during a maintenance window. ### ClockIn Warnings #### WRN-CLK-101 **Key:** `CLOCKIN_UNITLOGIN_MISSING_ACCID` **What it means:** A SonoranCAD `UnitLogin` event did not include an account ID for ClockIn. **How to fix it:** Verify the incoming push event payload contains `accId`. #### WRN-CLK-102 **Key:** `CLOCKIN_UNITLOGOUT_MISSING_ACCID` **What it means:** A SonoranCAD `UnitLogout` event did not include an account ID or unit reference for ClockIn. **How to fix it:** Verify the event payload being emitted by the CAD integration. #### WRN-CLK-103 **Key:** `CLOCKIN_UNITLOGOUT_UNIT_MISSING` **What it means:** ClockIn could not resolve the CAD unit record for a logout event. **How to fix it:** Check the SonoranCAD unit cache and make sure the unit ID is still valid when the event fires. #### WRN-CLK-104 **Key:** `CLOCKIN_CAD_CLOCK_FAILED` **What it means:** ClockIn could not complete a CAD-driven clock in or out request. **How to fix it:** Review the player or account state and the related API response for the failed request. #### WRN-CLK-105 **Key:** `CLOCKIN_RANK_LOGIN_ACCID_MISSING` **What it means:** ClockIn could not add CMS ranks on CAD login because the account ID was missing. **How to fix it:** Verify the incoming `UnitLogin` event payload includes `accId`. #### WRN-CLK-106 **Key:** `CLOCKIN_RANK_ADD_FAILED` **What it means:** ClockIn could not add the configured CMS ranks after a CAD login event. **How to fix it:** Verify the configured rank IDs and the account ID being sent to SonoranCMS. #### WRN-CLK-107 **Key:** `CLOCKIN_RANK_LOGOUT_ACCID_MISSING` **What it means:** ClockIn could not remove CMS ranks on CAD logout because the account ID was missing. **How to fix it:** Verify the logout event payload contains the expected unit or account reference. #### WRN-CLK-108 **Key:** `CLOCKIN_RANK_LOGOUT_UNIT_MISSING` **What it means:** ClockIn could not resolve the cached CAD unit while removing CMS ranks on logout. **How to fix it:** Inspect the SonoranCAD unit cache and confirm the unit still exists when logout fires. #### WRN-CLK-109 **Key:** `CLOCKIN_RANK_REMOVE_FAILED` **What it means:** ClockIn could not remove the configured CMS ranks after a CAD logout event. **How to fix it:** Verify the configured rank IDs and the account ID being sent to SonoranCMS. ## Support Diagnostic Uploads When staff select **Request CMS Debug** on your ticket, run `sonorancms support ` in the **server console** using the supplied ticket number. This requires a resource version that includes the support command (CMS 1.6.34 or newer). The ticket must have debug uploads enabled by staff. The diagnostic attachment includes the effective core configuration, separately stored configuration files with credential fields redacted, dependency states and versions, resource uptime, player count, retained error/warning counts, and recent console/debug output. The ticket also displays a compact runtime snapshot before the deduplicated error/warning summary. Files are labeled as loaded, default-only, missing, invalid JSON, unreadable, or omitted because of size. Disk snapshots may differ from settings already loaded into memory; diagnostics do not execute or rewrite any configuration. Large logs keep the newest console output and explicitly report omitted bytes, entries, or files so the upload can stay below 1 MB. Counts cover the retained buffer rather than all events since startup. Debug mode is left unchanged. CMS 1.6.35 adds the expanded snapshot, including ClockIn, whitelist, JobSync, and ACE permissions module configuration files, plus API version/error and debug state. Console logs can contain third-party output; only upload to your own support ticket. #### ERR-SUP-101 **Internal Key:** `SUPPORT_INVALID_ID` **Meaning:** The support ticket ID is invalid. **First Troubleshooting Step:** Run the support command with the positive ticket number provided by staff. #### ERR-SUP-102 **Internal Key:** `SUPPORT_COLLECT_FAILED` **Meaning:** Support diagnostics could not be collected. **First Troubleshooting Step:** Check the resource configuration and restart it, then retry the command. #### ERR-SUP-103 **Internal Key:** `SUPPORT_TOO_LARGE` **Meaning:** Support diagnostics still exceed the 1 MB upload limit after automatic size handling. Large console logs are normally clipped automatically. **First Troubleshooting Step:** Ask support for another way to send the log. #### ERR-SUP-104 **Internal Key:** `SUPPORT_UPLOAD_FAILED` **Meaning:** Support diagnostics could not be uploaded. **First Troubleshooting Step:** Verify the ticket ID, ask staff to enable debug uploads, and check outbound HTTPS connectivity to api.sonoransoftware.com. A timeout or non-success response does not confirm delivery. # vMenu Panel Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel Once configured, you can easily manage your entire VMenu server! ## Written Guides Click the cards below to learn more about each feature: > [card] [Dashboard](https://docs-assets.sonoransoftware.com/sha256/ed/eddab3d94412ddf6b88ad624d7e60311fe062733e0a1125f53ce338c98308981.png) > > View your server statistics right from the CMS VMenu game panel! > [card] [Players](https://docs-assets.sonoransoftware.com/sha256/14/140dbe35df660a4cb8518113790982a47cebaf533044456c169003087c38431a.png) > > Easily manage in-game players with the CMS VMenu management panel! > [card] [Vehicles](https://docs-assets.sonoransoftware.com/sha256/8b/8b5f1b932efe683d8860354d6d4f035810540aae8c9122ee93a0a6d1f5456c15.png) > > Easily manage in-game vehicles with the CMS VMenu management panel! > [card] [Environment](https://docs-assets.sonoransoftware.com/sha256/22/22d77dc4619d95ff464ce889ff64f88c7ced2d14d403d554918f1a9391fdcc66.png) > > Easily set the weather and time in your server, directly from CMS! > [card] [Whitelist](https://docs-assets.sonoransoftware.com/sha256/31/31e388dda61d6f800cea8c6ee67434ce43480ee045353ec3780aafc03f283f54.png) > > Easily whitelist or deny users from accessing your server based on their CMS ranks! > [card] [Logs](https://docs-assets.sonoransoftware.com/sha256/b5/b517266f08b7d871eaa930516cec71f77adbab5052769aff61f085eee0e198f9.png) > > Easily view server logs with the CMS VMenu management panel! > [card] [Resources](https://docs-assets.sonoransoftware.com/sha256/87/87a647324ca153df8aeacfe3fd7b846515b2e72fd167a2257d2afedcb2a3cc54.png) > > Easily start, stop, and ensure in-game resources with the CMS VMenu management panel! > [card] [Aces & Principals](https://docs-assets.sonoransoftware.com/sha256/70/7000d2a6dead6821523350bd65f47467c01141f07f767e7ad677113e00ffda11.png) > > Easily grant ACE Permissions to users directly from CMS. # Aces & Principals Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/aces-and-principals Easily grant ACE Permissions to users directly from CMS. ![](https://docs-assets.sonoransoftware.com/sha256/70/7000d2a6dead6821523350bd65f47467c01141f07f767e7ad677113e00ffda11.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Setup Ensure you have the following in your `server.cfg` (if you don't permissions won't be able to be granted) ``` add_ace resource.sonorancms command allow ``` ## Mapping Ranks to ACE Principal Identifiers You can select the ranks you would like and input the principal identifier you would like to grant them. This makes it easy to grant users in-game permissions en masse. ![](https://i.imgur.com/j5XTpYT.png) *Sonoran CMS -VMenu Game Panel - Aces & Principals* You can further customize the permissions each Principal group receives in your `server.cfg`, make sure to follow the conventions outlined in [this guide](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917). Additionally, ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS. For more details, read our documentation on the "Ace Permission Sync" module for CMS Core [here](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/ace-permission-sync). # Dashboard Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/dashboard View your server statistics right from the CMS VMenu game panel! ![](https://docs-assets.sonoransoftware.com/sha256/77/77dbc7b24f5cc62899a2a70b7e324b33e9957fdf36e504c596d763bc113c520f.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Viewing the Dashboard The dashboard offers a brief overview of your server statistics, including: * Players Online * Server Uptime * CPU Usage * Memory Usage # Environment Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/environment Easily set the weather and time in your server, directly from CMS! ![](https://docs-assets.sonoransoftware.com/sha256/22/22d77dc4619d95ff464ce889ff64f88c7ced2d14d403d554918f1a9391fdcc66.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Manage Weather Here you can set the current weather on your server. Open the dropdown menu and choose from 15 different weather options! You can also toggle `Freeze` and `Blackout` on the side. `Freeze` forces the weather to stay as what you set it to, if toggled, it will not change on its own. `Blackout` simulates a power outage, and all buildings will show as if they don't have electricity. ![](https://docs-assets.sonoransoftware.com/sha256/3a/3a2fd37449cc5cae33671b6d13ed06c32cbe88afd5550cda1f518d4279bdd07a.png) *Sonoran CMS - VMenu Game Panel - Weather* ![](https://docs-assets.sonoransoftware.com/sha256/8c/8c4f68f1d5adf30a2f2106b904143a111e05e7ac0365f4d32b4f556b5af2d660.png) *Sonoran CMS - VMenu Game Panel - Weather Options* ## Manage Time You can also set the time to any time of day using the time selector. You can also toggle `Freeze` which locks the time to whatever you've set it to. ![](https://docs-assets.sonoransoftware.com/sha256/8b/8bc747235b98bd2923dc30fc3d3ba39a6f82802c4f1ebb3963616b5ead0dc46c.png) *Sonoran CMS - VMenu Game Panel - Time* ## Weather Flickering Issue Sometimes, having CMS installed can cause an issue where the weather and time in the server seem to rapidly "flicker". This occurs when another resource is also trying to manage weather. If you are encountering this issue and would like to disable CMS's weather management, then please set `Config.EnableWeatherSync` to `false` in the resource's `config.lua`. # Logs Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/logs Easily view server logs with the CMS VMenu management panel! ![](https://docs-assets.sonoransoftware.com/sha256/b5/b517266f08b7d871eaa930516cec71f77adbab5052769aff61f085eee0e198f9.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Viewing Server Logs The last 1,000 server logs will be populated into the logging panel. Click to copy any log row. Type to filter and find logs more easily at the top left. # Players Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/players Easily manage in-game players with the CMS VMenu management panel! ![](https://docs-assets.sonoransoftware.com/sha256/14/140dbe35df660a4cb8518113790982a47cebaf533044456c169003087c38431a.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Select and Manage a Player Click on any online player to interact. * Copy unique identifiers * Warn the player in-game * Kick the player from the server ## Warn a Player Selecting `Warn` on a player will prompt you to add a reason message. The player will then receive a warning notice in-game, requiring them to hold down `SPACE` for ten seconds to dismiss. # Resources Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/resources Easily start, stop, and ensure in-game resources with the CMS VMenu management panel! ![](https://docs-assets.sonoransoftware.com/sha256/87/87a647324ca153df8aeacfe3fd7b846515b2e72fd167a2257d2afedcb2a3cc54.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Managing Resources All in-game resources will appear on the panel with three options: ### Start a Resource Select the `Start` button to start an in-game resource. ### Stop a Resource Select the `Stop` button to start an in-game resource. ### Ensure a Resource Select the `Ensure` button to start an in-game resource. # Vehicles Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/vehicles Easily manage in-game vehicles with the CMS VMenu management panel! ![](https://docs-assets.sonoransoftware.com/sha256/8b/8b5f1b932efe683d8860354d6d4f035810540aae8c9122ee93a0a6d1f5456c15.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## View and Manage Vehicles You can view information associated with all vehicles registered in your server. Additionally, if you have the corresponding perms, you can click on any entry to bring up a panel allowing you to Repair or Despawn said vehicle. ![](https://docs-assets.sonoransoftware.com/sha256/f9/f994e07bd60dc1ae6c4de7ab4239d32fa2a2036c5192edb56864ecf46e3f6b9b.png) *Sonoran CMS - VMenu Game Panel - Vehicles* ![](https://docs-assets.sonoransoftware.com/sha256/08/08cac5d902b0590a6313a42a2c1d921b96a040112d003337cda6e6ade7779e62.png) *Sonoran CMS - VMenu Game Panel - Vehicle Options* # Whitelist Source: https://docs.sonoransoftware.com/cms/integration-capabilities/fivem-game-panel/vmenu-panel/whitelist Easily whitelist or deny users from accessing your server based on their CMS ranks! ![](https://docs-assets.sonoransoftware.com/sha256/31/31e388dda61d6f800cea8c6ee67434ce43480ee045353ec3780aafc03f283f54.png) *Sonoran CMS - VMenu Game Panel Promotional Image* ## Whitelisting Users Here you can select ranks to either allow or deny them on the whitelist for the server you've selected. ![](https://docs-assets.sonoransoftware.com/sha256/89/89b4b504839ad32b813434ac9e795041ce3f1c8ced7eae56d0e21250fe33555f.png) *Sonoran CMS - VMenu Game Panel - Whitelist* Within either list, each department shows as a sub-menu allowing you to toggle the ranks you wish to be added to this list. ![](https://docs-assets.sonoransoftware.com/sha256/73/736bb5931a0043daa9d78fd3dd629fae9928763540294d687afd2a29727a1b3e.png) *Sonoran CMS - VMenu Game Panel - Whitelist Allow* # In-Game Integration Resources Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources Sonoran CMS's robust API system comes complete with several already developed integration resources. Learn more about our already developer integration resources! # FiveM Installation Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core The CMS Core maintains common utility functions and push event handling. ## A. One-Click Installation (RocketNode) We've partnered with Rocket Node to bring you one-click Sonoran CMS installation for FiveM — making it easier than ever to host your community and connect with Sonoran CMS. * [Purchase your FiveM Game Server!](https://sonoran.link/FA2ZbwUb) * Use code `SONORAN` to save big! [Video tutorial](https://www.youtube-nocookie.com/embed/L_7V3yOIRaQ) After installation, learn about configuring the submodule features. > [card] [FiveM Installation - Next Steps](/cms/integration-capabilities/in-game-integration-resources/core/free-plugin-installation-next-steps) *** ## B. Pre-Configured Resource Installation ### Download the Resource Click [here](https://github.com/Sonoran-Software/sonorancms_core/releases) to download the core resource. ### Install the Resource Extract the \[sonorancms] folder into your server's resources folder. ![Sonoran CMS - Resource Installation Folder](https://docs-assets.sonoransoftware.com/sha256/be/be0b0e965833e5e4bfd92cc19e7878aff2c680bc45d3fd11e6dde403d49e02c5.png) ### Configure and Rename Open `sonorancms\config.CHANGEME.lua`, update the values, then save it as `config.lua`. Default configuration is below: #### Configuration Details > [accordion] Configuration Options > > | Config Option | Description | > | - | - | > | APIKey | API Key found in the API Integration section of the Administrative Panel | > | CommID | Community ID found in the API Integration section of the Administrative Panel | > | allowAutoUpdate | When enabled, the resource will update itself. When disabled, it will simply show an update notification every 2 hours. | > | debug\_mode | When set to `true`, useful debugging information it outputted to the console. Keep disabled in production due to console spam. | > | apiUrl | Default: `https://api.sonorancms.com/` | > | apiIdType | Type of api ID the core script should be searching for: `discord`, `steam`, `license`, etc. | > | serverId | Default: `1` - ID of the Sonoran CMS server that this core resource should be tied to. | > | framework | `none`, `qb-core`, or `esx` | > | MaxInventorySlots | If using framework: `qb-core` you can specify the max inventory slots your inventory resource supports, this is for inventory management via the Game Panel's within Sonoran CMS. | > | restartWithPlayers | When set to `true`, it will auto-update the resource and restart it even if players are present on the server. | ### Server Config Add the following to your `server.cfg` > [!WARNING] > > It is very important that the sonorancms\_updatehelper resource is **not** started manually. Doing so may cause a server crash if updates are available due to a race condition. > > **DO NOT** start the whole \[sonorancms] folder as that will also start the sonorancms\_updatehelper which might cause crashing if it is started manually. > > Example of what **not** to do: `ensure [sonorancms]` ```javascript theme={null} exec @sonorancms/sonorancms.cfg ``` ### Configure Submodule Features The CMS Core resource comes with a variety of submodules included by default. These handle a variety of features such as whitelisting, permission synchronization, and more. > [card] [FiveM Installation - Next Steps](/cms/integration-capabilities/in-game-integration-resources/core/free-plugin-installation-next-steps) *** ## Updates Sonoran CMS's core will automatically update with the latest features, fixes, and changes! ## Troubleshooting ### Server Crashes Check to make sure `sonorancms_updatehelper` is not being started in your server.cfg. > [!WARNING] > > It is very important that the `sonorancms_updatehelper` resource is not started manually. Doing so may cause a server crash if updates are available due to a race condition. ### Ensure your resource is up-to-date and download the latest release. CMS updates are released often. Make sure your server is running on the latest release. ### Ensure your API ID is set correctly. If your community is using recommended Discord integration, ensure your [Discord account](/bot/tutorials/sonoran-cms-integration/account-link) is linked. For other methods (Steam, FiveM License, etc.) ensure you have set your [API ID in the CMS](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) using the API ID that your community is looking for. ### Yarn Error Some users will see this in their server console: ``` [ script:yarn] Error: [yarn] error @discordjs/collection@1.5.3: The engine "node" is incompatible with this module. Expected version ">=16.11.0". Got "16.9.1" [ script:yarn] Error: [yarn] error Found incompatible module. [ script:yarn] [yarn] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. [ citizen-server-impl] Building resource sonorancms failed. [ citizen-server-impl] Error data: yarn failed! ``` In the case of this error, please locate the file named `.yarn.installed`, open it in any editor, then save it (without modifying anything). This updates the "date modified" value for that file, which should then allow it to build correctly. If you are having trouble with this, feel free to[ reach out to us](https://support.sonoransoftware.com), our support team will be happy to help you! ### "config.NEW\.lua was found!" This log message means there was an update to the `sonorancms` resource that contains a configuration update. All you have to do is copy the contents from the `config.NEW.lua` file into your current configuration file then delete the `config.NEW.lua` file and restart `sonorancms` to resolve this message. If you are having trouble with this, feel free to[ reach out to us](https://support.sonoransoftware.com), our support team will be happy to help you! # FiveM Submodules Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core/core-submodules The CMS Core comes with default submodules that handle a variety of features! These submodules are included when you download and install the regular [Core](/cms/integration-capabilities/in-game-integration-resources/core) resource. They can be found in the `server/modules` folder. > [card] [Clock In](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/clock-in) > > An in-game way to utilize Sonoran CMS's clock in/out system. > [card] [Ace Permission Sync](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/ace-permission-sync) > > Manage in-game player permissions right from the CMS! > [card] [Whitelist](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/whitelist) > > A whitelist system that utilizes Sonoran CMS's game whitelist system. > [card] [Job Sync](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/job-sync) > > A in-game way to utilize Sonoran CMS's roster & rank system to sync your in-game jobs and ranks. # Ace Permission Sync Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/ace-permission-sync Manage in-game player permissions right from the CMS! This module manages player's in-game permissions right from the CMS! ![Sonoran CMS - ACE Permission Sync](https://docs-assets.sonoransoftware.com/sha256/37/378c6119b3e3113061b179f0acf9f29133f752507f32ff558a1b3fcb95bf7ce0.png) [Video tutorial](https://www.youtube-nocookie.com/embed/4PAtKYQokXE) ### Installation / Configuration > [!NOTE] > > With core version `v1.4.0` the Ace Permission Sync resource was converted to a core module and no longer requires manual installation just configuration. ### Ensure Resource Has Permissions Ensure you have the following in your `server.cfg` (if you don't permissions won't be able to be granted) ``` add_ace resource.sonorancms command allow ``` ### Configure Rank Mappings via UI Navigate to either game panel's within your Sonoran CMS community and open up the *Aces & Principals* tab. This is where you can configure ranks to principal groups, simply select the ranks you want to map to individual groups. ![](https://i.imgur.com/j5XTpYT.png) ### Configure Aces & Principals via Server.CFG Locate and open up your `server.cfg` Configure your aces and principals to how you desire while following the syntax for [proper ace & principal commands](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917) ### Add your API ID Ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS! ## Functionality ### Permissions On Join When a player joins the server, the resource will ask the CMS for the players ranks. ACE permissions will be assigned based on the configuration. ### Permissions on Push Event > [!NOTE] > > Due to restrictions in the way that some resources like vMenu are programmed, you must relog for the CMS permissions to take effect if they are altered for a user while they are online. For communities on the **Plus** plan or higher, permissions can be synced instantly in-game when ranks are updated. Simply add your FiveM server's public IP address and at `Administrative Panel` > `Integrations` > `Sonoran CMS API` > `Servers`. ![Sonoran CMS - API Integration Servers Tab](https://docs-assets.sonoransoftware.com/sha256/d7/d77f94bb4c61168953e546c42e02c1170685a0ad9a1148309e9fce4654768f52.png) ### Manual Sync > [!NOTE] > > Due to restrictions in the way that some resources like vMenu are programmed, you must relog for the CMS permissions to take effect if they are altered for a user while they are online. Individual players can run the `/refreshpermissions` command in-game to force a permissions update. ## Example Configuration ### Game Panel -> Aces & Principals ![](https://i.imgur.com/D3T5ZYw.png) ### permissions.cfg/server.cfg > [!WARNING] > > This example is just an example of how you may setup ace permissions and it is unlikely to work just copy and pasted. ```markdown theme={null} ### Ace Permissions ## Inheritance add_principal group.admin group.mod add_principal group.policesup group.police ## Permissions add_ace group.admin command allow add_ace group.mod admin.kick allow add_ace group.policesup police.supcar allow add_ace group.police police.car allow ``` ## Reliability Notice In the event that the CMS API is temporarily unavailable, this resource utilizes a local backup cache. The resource will automatically fall back to the latest saved version of the permissions list, allowing members to access permissions as normal. # Clock In Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/clock-in An in-game way to utilize Sonoran CMS's clock in/out system. This module is a in-game way of automatically\* clocking in/out of Sonoran CMS's system. ## Installation / Configuration > [!NOTE] > > With core version `v1.4.0` the Clock In resource was converted to a core module and no longer requires manual installation just configuration. ### Configure Clock In Module Locate the clockin module within your `[sonorancms]/sonorancms/server/modules` and open the `clockin_config.json` file ```json theme={null} { "enableCommand": true, "command": "clockin", "useAcePermissions": false, "qbcore": { "use": true, "autoClockInJobs": [ "police", "ems", "fire" ] }, "esx": { "use": false, "autoClockInJobs": [ "police", "ambulance" ] }, "cad": { "use": false, "note": "This will automatically clock in users when they enter a Police/EMS/Fire CAD panel. This will not correlate to the users actual in-game status, but will allow them to use the CAD without having to manually clock in." }, "ranksWhileCadActive": [ "00000000-0000-0000-0000-000000000000" ] } ``` ## Configuration | Config Option | Description | | - | - | | enableCommand | Registers the specified `command` that allows you to toggle clock in/out. | | command | If `enableCommand` is `true`, this will be the registered command to toggle clock in/out. | | useAcePermissions | If `enableCommand` is `true`, this will enable ace permissions for the specific command, must give `command.whateverTheCommandIs` | | qbcore.use | Enables qbcore integration | | qbcore.autoClockInJobs | Will automatically clock in/out the player's Sonoran CMS account with they clock in/out of a job with the name in the array of `autoClockInJobs` | | esx.use | Enables ESX integration | | esx.autoClockInJobs | Will automatically clock in/out the player's Sonoran CMS account with they clock in/out of a job with the name in the array of `autoClockInJobs` | | cad | When enabled, it will automatically clock the user in and out when logging into and out of Sonoran CAD. | | ranksWhileCadActive | A list of [CMS rank IDs](/cms/tutorials/user-management/creating-departments#copy-rank-ids) that will be added when the user logs into Sonoran CAD and removes it when logging out of Sonoran CAD. This is used for restricting access to things like Sonoran Radio to only be available to users actively in the CAD. | ### Add your API ID Ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS! # Job Sync Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/job-sync A in-game way to utilize Sonoran CMS's roster & rank system to sync your in-game jobs and ranks. This resource is a in-game way of automatically syncing jobs and ranks to match roster information in the Sonoran CMS system/community. > [!WARNING] > > At this time, the Job Sync module only works with [QBCore and Qbox servers](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel). ## Installation / Configuration > [!NOTE] > > With core version `v1.4.2` the Job Sync resource was converted to a core module and no longer requires manual installation just configuration. ### Configure Job Sync Module Locate the whitelist module within your `[sonorancms]/sonorancms/server/modules` and open the `jobsync_config.json` file ![](https://docs-assets.sonoransoftware.com/sha256/36/365a7c1cc6825abd377ebac2e35e14fc9ca7119a76555ea3a078130d5e61f2b3.png) *Sonoran CMS - In-Game Integration - JobSync Config* ### Set Rank Mappings for Job Sync | Config Option | Description | | - | - | | rank\_mapping | \["9dd1fea1-2360-4be2-923b-71b0c87944d0"] = \{job = 'police', rank = 2} | Here you must follow the format shown above to specify rank mappings, the first value ("ranks") is the Rank UUID, followed by what job and rank you would like to set it to. To find the UUID for a given Rank, follow the instructions below. ## Getting Rank UUIDs ### Open Department Configuration Page ![Sonoran CMS - Departments & Ranks](https://docs-assets.sonoransoftware.com/sha256/5f/5fe58bf7c693369d7fefa11596b75052e34521b90b3d5f778708176b3776bfed.png) ### Open "Rank Settings" Menu ![Sonoran CMS - Open Rank Settings Menu](https://docs-assets.sonoransoftware.com/sha256/cb/cbeeaf8e04590b1d31b95c7b75c713d4b068dd1a369b0c6b25c9b225ed6d0ea8.png) ### Select "Copy Rank ID" ![Sonoran CMS - Copy Rank ID](https://docs-assets.sonoransoftware.com/sha256/a2/a201a6e35686eaf6aad0f3a8a88553a209c5f23124cd75a70d61100db4e03da6.png) # Whitelist Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/whitelist A whitelist system that utilizes Sonoran CMS's game whitelist system. This whitelist module utilizes Sonoran CMS's to enforce player connections. ![Sonoran CMS - Whitelist](https://docs-assets.sonoransoftware.com/sha256/1b/1ba9dcbc78133e27b9d7501e98f2b5239d20403a5c8ea302d1042920a584e096.png) [Video tutorial](https://www.youtube-nocookie.com/embed/4PAtKYQokXE) ## Whitelisting on QBCore / VMenu If using QBCore or VMenu on your server, it is recommended that you control whitelisting through their respective game panels, rather than through this plugin. For more information, see the links below:\ [QBCore Game Panel - Whitelisting](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/whitelist) [VMenu Game Panel - Whitelisting](/cms/integration-capabilities/fivem-game-panel/vmenu-panel/whitelist) ## Installation / Configuration > [!NOTE] > > With core version `v1.4.0` the Whitelist resource was converted to a core module and no longer requires manual installation just configuration. ### Configure Clock In Module Locate the `whitelist` module within your `[sonorancms]/sonorancms/server/modules` folder and rename `whitelist_config.dist.json` so that it is just `whitelist_config.json`. Next, open the `whitelist_config.json` file and set `enabled` to `true`. ## Configuration | Config Option | Description | | - | - | | enabled | If set to `true` it will enable a whitelist for your server and only individuals granted *Allow Whitelist* as shown below. | ### Setup Whitelist Permissions Navigate to the Rank Manager within the Administrative Panel. `Administrative Panel` > `Ranks` ![Sonoran CMS - Departments & Ranks](https://docs-assets.sonoransoftware.com/sha256/0d/0dc7a24c2e24e3154ff57889fae7c55922e626472987ccd313c56d0d5a4741d7.png) For users in your Sonoran CMS community to be accepted through the whitelist, they'll need to be granted permission for the whitelist through rank permissions. Granting each rank the permission of **Allow Whitelist** allows those members through the whitelist. Granting each rank with the permission of **Block Whitelist** blocks users from passing through the whitelist. > [!WARNING] > > **Block Whitelist** will ALWAYS overrule **Allow Whitelist**\ > \ > If a user is granted both **Block Whitelist** and **Allow Whitelist** through various ranks they will be blocked from the whitelist. Block will always overrule allow. ![Sonoran CMS - Rank Manger Server Permissions](https://docs-assets.sonoransoftware.com/sha256/4a/4aab4d0df741ea04efb3ee40793e4919d01fb2d72de00d21c0b1487e568f77dc.png) ### Add your API ID Ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS! ## Reliability Notice In the event that the CMS API is temporarily unavailable, this resource utilizes a local backup cache. The resource will automatically fall back to the latest saved version of the whitelist, allowing members to join as normal. # FiveM Installation - Next Steps Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/core/free-plugin-installation-next-steps This guide covers the next steps after receiving free Sonoran CMS resource installation with your Sonoran Servers Windows Server or Expert Installation. ## Locate your Submodules Every CMS addon resource installed will have a separate folder. These are located in the `\[sonorancms]\server\modules` directory. ![](https://docs-assets.sonoransoftware.com/sha256/f0/f03cc7e5926d9e34fa6848ee694031572c9b42474911d5d10b89762803ab733c.png) *Sonoran CMS - Submodule Folder* ## View and Change Configuration Files For every Sonoran CMS addon installed, there will be a `config.lua` or `config.json` file present. ![](https://docs-assets.sonoransoftware.com/sha256/47/470d49f4c1f49a7cff626309f7ebd53cf94a10ae17caa7d137dde2a1aebd76a3.png) *Sonoran CMS - Addon Config File* You can open these configuration files with a text editor and change values. For more information on a plugin's configuration options, you can view the individual plugin guides on the submodules page and scroll down to the configuration section. If you modify a configuration file, be sure to save it and restart the server. > [card] [core-submodules](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules) *** # IP Whitelisting Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/ip-whitelisting My community wants to whitelist **only** the Sonoran CMS IP address to send requests to my FiveM server. How can I do this? You may whitelist the following IPs: ``` 24.199.66.94 198.199.90.248 34.173.36.190 ``` Last Updated : 8/26/2025 # Minecraft Integrations Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/minecraft-integrations Sonoran CMS integrations for Microsoft/Mojang's Minecraft ### Resource Installation Guide All Sonoran CMS resources follow a standard installation process. Learn more about installing resources for your community below. # Available Resources Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/minecraft-integrations/available-resources View Sonoran CMS's library of integration resources for your community! # Whitelist Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/minecraft-integrations/available-resources/whitelist A whitelist system that utilizes Sonoran CMS's game whitelist system. > [!NOTE] > > All players of your server must have their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) setup and must be given a rank that has whitelist permissions for the specified server. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). This resource is a whitelist system that utilizes Sonoran CMS's game whitelist system by checking against that whitelist upon each player connection. [Video tutorial](https://www.youtube-nocookie.com/embed/4PAtKYQokXE) ## Installation ### Download the Resource > [tab] Forge > > You can download a copy [here](https://github.com/Sonoran-Software/Sonoran-CMS-Minecraft-Integration/releases/tag/1.0.0). > > Ensure that you download the one that has `forge` in the name. > [tab] Fabric > > You can download a copy [here](https://github.com/Sonoran-Software/Sonoran-CMS-Minecraft-Integration/releases/tag/1.0.0). > > Ensure that you download the one that has `fabric` in the name. > [tab] Bukkit/Spigot/Paper > > You can download a copy [here](https://github.com/Sonoran-Software/Sonoran-CMS-Minecraft-Integration/releases/tag/1.0.0). > > Ensure that you download the one that has `plugin` in the name. ### Install the Resource Follow the standard resource installation guide for the whitelist resource, available [here](/cms/integration-capabilities/in-game-integration-resources/minecraft-integrations/minecraft-resource-installation). ### Setup Whitelist Permissions Navigate to the Rank Manager within the Administrative Panel. `Administrative Panel` > `Ranks` ![Sonoran CMS Departments & Ranks](https://docs-assets.sonoransoftware.com/sha256/ba/ba7c6667a3f77bff78b947fb0cf9fe77ba1b84536806bea8d64746498b25d73d.png) For users in your Sonoran CMS community to be accepted through the whitelist, they'll need to be granted permission for the whitelist through rank permissions. You will need to grant each rank the permission of **Allow Whitelist** that you want to be allowed through the whitelist. You will want to grant each rank with the permission of **Block Whitelist** if you want them to be blocked from passing through the whitelist. > [!WARNING] > > **Block Whitelist** will ALWAYS overrule **Allow Whitelist**\ > \ > If a user is granted both **Block Whitelist** and **Allow Whitelist** through various ranks they will be blocked from the whitelist. Block will always overrule allow. ![Sonoran CMS - Rank Manager Server Permissions](https://docs-assets.sonoransoftware.com/sha256/59/599e753cefd9c1ece548062271895139bcc9ed485bccb1cb7078393804df6c58.png) ### Add your API ID Ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS! ## Configuration > [tab] Forge > > The config file is called `cmswhitelist-common.toml` in the config folder of your Minecraft server folder. > > ``` > [SonoranCMS] > #This is your SonoranCMS Community ID. > "Community ID" = "" > #This is your SonoranCMS API key. > "Community API Key" = "" > #Which identifier to use, either UUID or Username. UUID is preferred. > "Identifier Type" = "UUID" > #The server ID found in SonoranCMS that this whitelist should check against. > "Server ID" = 1 > ``` > > | Value Name | Description | Default | > | - | - | - | > | Server ID | This is the game server ID set in the CMS management panel. | `1` | > | Community ID | This is the community ID that is found in the API Integration section of the management panel. | `""` | > | Community API Key | This is the API key listed in the API Integration section of the management panel. | `""` | > | Identifier Type | This controls whether a player's UUID or username is used for identifying. | `"UUID"` (Recommended) | > [tab] Fabric > > The config file is called `sonorancms.json` in the config folder of your Minecraft server folder. > > ``` > { > "CMS_Settings": { > "Community_ID": "", > "Community_API_Key": "", > "Identifier": "UUID", > "Server_ID": 1 > } > } > ``` > > | Value Name | Description | Default | > | - | - | - | > | Server\_ID | This is the game server ID set in the CMS management panel. | `1` | > | Community\_ID | This is the community ID that is found in the API Integration section of the management panel. | `""` | > | `Community_API_Key` | This is the API key listed in the API Integration section of the management panel. | `""` | > | Identifier | This controls whether a player's UUID or username is used for identifying. | `"UUID"` (Recommended) | > [tab] Bukkit/Spigot/Paper > > The config file is called `config.yml` in the `plugins/SonoranCMSWhitelist` folder of your Minecraft server folder. > > ``` > CommunityID: '' > CommunityAPIKey: '' > Identifier: UUID > ServerID: 1 > ``` > > | Value Name | Description | Default | > | - | - | - | > | ServerID | This is the game server ID set in the CMS management panel. | `1` | > | CommunityID | This is the community ID that is found in the API Integration section of the management panel. | `''` | > | CommunityAPIKey | This is the API key listed in the API Integration section of the management panel. | `''` | > | Identifier | This controls whether a player's UUID or username is used for identifying. | `UUID` (Recommended) | # Minecraft Resource Installation Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/minecraft-integrations/minecraft-resource-installation This guide covers the installation process for a general integration resource. ## Installing a Resource > [tab] Forge > > **1. Download the Mod** > > Download the mod from the link provided on the page for the mod you want. > > **2. Install the Mod** > > Place the mod inside the mods folder of your server. > > **3. Configure the Mod** > > Refer to the configuration section of the resource you are installing for assistance configuring your resource. > [tab] Fabric > > **1. Download the Mod** > > Download the mod from the link provided on the page for the mod you want. > > **2. Install the Mod** > > Place the mod inside the mods folder of your server. > > **3. Configure the Mod** > > Refer to the configuration section of the resource you are installing for assistance configuring your resource. > [tab] Bukkit/Spigot/Paper > > **1. Download the Plugin** > > Download the plugin from the link provided on the page for the plugin you want. > > **2. Install the Plugin** > > Place the plugin inside the plugins folder of your server. > > **3. Configure the Plugin** > > Refer to the configuration section of the resource you are installing for assistance configuring your resource. # Roblox Integrations Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/roblox-integrations Sonoran CMS integrations for Roblox ### Resource Installation Guide All Sonoran CMS resources follow a standard installation process. Learn more about installing resources for your community below. # Available Resources Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/roblox-integrations/available-resources View Sonoran CMS's library of integration resources for your community! # Whitelist Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/roblox-integrations/available-resources/whitelist A whitelist system that utilizes Sonoran CMS's game whitelist system. > [!NOTE] > > All players of your server must have their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) setup and must be given a rank that has whitelist permissions for the specified server. > [!TIP] > > Looking for FiveM hosting? View our [current hosting offer](/promotions/fivem-hosting). This resource is a whitelist system that utilizes Sonoran CMS's game whitelist system by checking against that whitelist upon each player connection. [Video tutorial](https://www.youtube-nocookie.com/embed/4PAtKYQokXE) ## Installation ### Download the Resource You can download/copy the script from [here](https://github.com/Sonoran-Software/Sonoran-CMS-Roblox-Integration/blob/release/script.lua). If you plan to copy and paste I recommend viewing the raw version. ### Install the Resource Follow the standard resource installation guide for the whitelist resource, available [here](/cms/integration-capabilities/in-game-integration-resources/roblox-integrations/roblox-resource-installation). ### Setup Whitelist Permissions Navigate to the Rank Manager within the Administrative Panel. `Administrative Panel` > `Ranks` ![Sonoran CMS - Departments & Ranks](https://docs-assets.sonoransoftware.com/sha256/ba/ba7c6667a3f77bff78b947fb0cf9fe77ba1b84536806bea8d64746498b25d73d.png) For users in your Sonoran CMS community to be accepted through the whitelist, they'll need to be granted permission for the whitelist through rank permissions. You will need to grant each rank the permission of **Allow Whitelist** that you want to be allowed through the whitelist. You will want to grant each rank with the permission of **Block Whitelist** if you want them to be blocked from passing through the whitelist. > [!WARNING] > > **Block Whitelist** will ALWAYS overrule **Allow Whitelist**\ > \ > If a user is granted both **Block Whitelist** and **Allow Whitelist** through various ranks they will be blocked from the whitelist. Block will always overrule allow. ![Sonoran CMS - Rank Manager Server Permissions](https://docs-assets.sonoransoftware.com/sha256/59/599e753cefd9c1ece548062271895139bcc9ed485bccb1cb7078393804df6c58.png) ### Add your API ID Ensure all players have added their [API ID](/cms/developer-api-documentation/api-integration/getting-started/api-id-system) to the CMS! ## Configuration The top section of the script has various configuration values to set, below is a table explaining those values. | Value Name | Description | Default | | - | - | - | | ServerID | This is the game server ID set in the CMS management panel. | `1` | | CommunityID | This is the community ID that is found in the API Integration section of the management panel. | `"REPLACE_THIS"` (This must be changed) | | APIKey | This is the API key listed in the API Integration section of the management panel. | `"REPLACE_THIS"` (This must be changed) | # Roblox Resource Installation Source: https://docs.sonoransoftware.com/cms/integration-capabilities/in-game-integration-resources/roblox-integrations/roblox-resource-installation This guide covers the installation process for a general integration resource. ## Installing a Resource ### Download the Script Download or copy the script from the link provided on the page for the script you want. ### Install the Script Create a new script within your Roblox world/space with the contents of the script which you downloaded/copied. ### Configure the Script Refer to the configuration section of the resource you are installing for assistance configuring your resource. # Sonoran CAD Sync Source: https://docs.sonoransoftware.com/cms/integration-capabilities/sonoran-cad-sync Easily manage Sonoran CAD permissions from Sonoran CMS ranks! Learn more below. [Video tutorial](https://www.youtube-nocookie.com/embed/_PsQkuum7AU) Remove all the hassle of managing your community's Sonoran CAD permissions. Sonoran CMS is now your single point of management! Sonoran CMS allows you to easily manage your community's Sonoran CAD permissions based on their Sonoran CMS rank automatically! ## Web Panel Sync ![Sonoran CMS x Sonoran CAD - Permission Sync](https://docs-assets.sonoransoftware.com/sha256/da/da9999032d7a1771ea8eebd4740e8e108b90c0bfed42857025aa64ca0c2847ea.png) > [!NOTE] > > Sonoran CAD Sync settings can only be seen and modified by the community owner. ### Add New CAD Integration Click the *Sonoran CAD* icon or click the plus button to sync another CAD to you community ![](https://docs-assets.sonoransoftware.com/sha256/4b/4b79f715fa3f2c8b5e53ae264efdcaa102931ed5bf2a6ceb51ce6cf9302a1d32.png) *Sonoran CMS - CAD Integration Setup List Area* ### Enter Credentials Click the *Enable Sync* check box and enter your Sonoran CAD community's ID & API Key. ![Sonoran CAD In-Game Integration Settings](https://docs-assets.sonoransoftware.com/sha256/ee/eee5bbe2f6004163b312c9feee85e15695ea21ae110a26e93b99a2a57a49de9c.png) Your Community ID and API Key are located in Sonoran CAD at `Admin Panel > Advanced > In-Game Integration > Web API`.\ Enter these into your Sonoran CMS as shown below. ![Sonoran CMS - Sonoran CAD Integration Credential Inputs](https://docs-assets.sonoransoftware.com/sha256/51/518e8cd26b06651a4f18014ec18f0e0eb432c70528baad2ea22f4530f590b269.png) ### Configure Sync Settings Check the sync options that best fit your community's needs, explanation of each sync feature can be found [below](/cms/integration-capabilities/sonoran-cad-sync#feature-overview). ![Sonoran CMS - Sonoran CAD Sync Options](https://docs-assets.sonoransoftware.com/sha256/77/77fb885c1fa17bbd5f78a76a62ea40f7efa44c5b576074cf4c02f59810556f64.png) ### Map CAD Permissions to Ranks To edit, click any rank on the left-hand side. This tree will contain all department and ranks that your community currently has. Enable all permissions you want to grant to the individual with this rank. When you're done setting up CAD Sync and configuring permission mappings, simply close out of the window by clicking the red X button and it will automatically save your credentials, settings, and trigger a mass sync of all permissions. > [!WARNING] > > Permission syncs from Sonoran CMS will set the user's permissions explicitly to what is mapped in the CMS and will wipe any non-enabled permissions. ![Sonoran CMS - Sonoran CAD Integration Permission Mapping](https://docs-assets.sonoransoftware.com/sha256/f5/f581d075ede352de53e9e6c7e8baaf58f595b9abd73eb138f5397381c966559b.png) ## Feature Overview ### Multi-Setup Sync Sync multiple Sonoran CAD communities with your single Sonoran CMS community. This will sync all of the below features with each community you have setup. ### Kick & Ban Sync This will trigger an action to kick the same user from your Sonoran CAD community if they're kicked from your Sonoran CMS community. This also applies to bans. ### API ID Sync This will sync all member's API IDs to the same user from your Sonoran CAD community, if they have a Discord account linked to their account it will sync that ID as well. > [!NOTE] > > API ID Sync to CAD will overwrite any API IDs that are set by the user in Sonoran CAD upon each sync. All API IDs that are sent to the CAD from CMS will replace what is currently there. ### Auto Join CAD This will have all new members that join your community automatically join your Sonoran CAD community under the same user ID. ## Manual Syncing ### Full Community Community Owner's can trigger a manual community sync of CAD permissions through the **Manual SYNC** button located in the CAD Sync Options. ![](https://docs-assets.sonoransoftware.com/sha256/09/09697c4c2196dfda790242836ef95b33176859775adb956d3dcf2fe1750091e2.png) *Sonoran CMS - CAD Permission Configuration Full Sync* ### Individual Account Individual members can re-sync their account with the community-linked CAD directly from the Community Settings menu. ![](https://docs-assets.sonoransoftware.com/sha256/0f/0f20f9708aa596a0ab25cd5da0a2b0c379bf0a21c2ffa229160f4ea9f1e94aa6.png) # Sonoran Radio Sync Source: https://docs.sonoransoftware.com/cms/integration-capabilities/sonoran-radio-sync Easily manage Sonoran Radio permissions from Sonoran CMS ranks! Learn more below. Sonoran CMS allows you to easily manage your community's Sonoran Radio permissions based on their Sonoran CMS rank automatically! > [!WARNING] > > This sync requires Sonoran Radio Standalone. > > If you are using the Sonoran Radio TeamSpeak, view our [TeamSpeak integration](/cms/integration-capabilities/teamspeak-3-role-sync). ### Add New Radio Integration Click the *Sonoran Radio* icon or click the plus button to sync another Radio to you community ![](https://docs-assets.sonoransoftware.com/sha256/0b/0b6df029372e62f4fc0f2113d3ee77743c83dfe67e081b0dd92c720adacee6cd.png) *Sonoran CMS - Radio Integration Setup List Area* ### Enter Credentials Enter your Sonoran Radio community's ID & API Key. Your Community ID and API Key are located in Sonoran Radio's `Administration` panel.\ Enter these into your Sonoran CMS as shown below. ![](https://docs-assets.sonoransoftware.com/sha256/e2/e2a5ec6dbc4ece1ec381660ec04c93cdde010be606d97a0818bb437595331b56.png) *Sonoran Radio - Administration Panel* ![](https://docs-assets.sonoransoftware.com/sha256/23/23acb536c23ede350f438305d1f5c54f7a1180271a7e42714931e56d9bd79394.png) *Sonoran CMS - Sonoran Radio Integration Credential Inputs* ### Configure Sync Settings Check the sync options that best fit your community's needs, explanation of each sync feature can be found [below](/cms/integration-capabilities/sonoran-cad-sync#feature-overview). ![](https://docs-assets.sonoransoftware.com/sha256/2d/2d22645da4a550b264ede16915d87ac7aee5669ec2052ee7ab441a0186dcf095.png) ### Map CAD Permissions to Ranks Select a CMS rank and toggle the desired Radio permissions below. When you're done setting up Radio sync and configuring permission mappings, simply close out of the window by clicking the red X button and it will automatically save your credentials, settings, and trigger a mass sync of all permissions. > [!WARNING] > > Permission syncs from Sonoran CMS will set the user's permissions explicitly to what is mapped in the CMS and will wipe any non-enabled permissions. ![](https://docs-assets.sonoransoftware.com/sha256/e9/e92bbf304ca89bddc4130b644be0e04c9f284cf43c20b9116f51f834a7034e21.png) *Sonoran CMS - Sonoran CAD Integration Permission Mapping* ## Feature Overview ### Multi-Setup Sync Sync multiple Sonoran Radio communities with your single Sonoran CMS community. This will sync all of the below features with each community you have setup. ### Kick Sync This will trigger an action to kick the same user from your Sonoran Radio community if they're kicked from your Sonoran CMS community. ### Ranks that Auto Join Radio This allows specific ranked members who join your community to be automatically added to your Sonoran Radio community under the same account. ### Name Sync This will automatically set a user's radio display name to match their CMS display name. This is updated on: * CMS community name change * User account update/save * Radio integration configuration change # Sonoran Shield Source: https://docs.sonoransoftware.com/cms/integration-capabilities/sonoran-shield Manage your Sonoran Server's network protection, right from the CMS! ![](https://docs-assets.sonoransoftware.com/sha256/f4/f4fb234fc577206990b1b0df42c5f7a096d7d7be193d524001b70e91732158fe.png) *Sonoran CMS x Sonoran Servers - Shield* ## Linking your Sonoran Server Once you have purchased a [VPS or Dedicated server from Sonoran Servers](https://sonoranservers.com/): In the `Admin` panel, navigate to `Integrations` > `Sonoran Shield` > `Link Your Server` Enter in your Sonoran Servers login credentials. ## Configuring your Shield It is **recommended** to do the following in order to stop network attacks with Sonoran Shield: 1. Block all unused ports using a "block-all" rule 2. Allow traffic to used ports, allowing all traffic to ports used by your users and whitelisting specific IPs for management ports (such as Remote Desktop or SSH ports) 3. Apply Application Filtering rules to all ports that are open based on their specific application The following linked guides walk you through how to complete each of the above steps: * [Block unused ports and open required ones](https://info.sonoranservers.com/tutorials/sonoran-shield/firewall-rules) * [Apply application-specific filters](https://info.sonoranservers.com/tutorials/sonoran-shield/application-filters) * [View your attack history](https://info.sonoranservers.com/tutorials/sonoran-shield/attack-history) ## Sonoran Shield Permissions CMS allows you to grant shield access to other administrators. In the [rank manager](/cms/tutorials/user-management/creating-departments), their role will need the `Modify Sonoran Shield` permission under the `System` tab. ![](https://docs-assets.sonoransoftware.com/sha256/35/35e6f40c528c5d016da6b608bb2e57c9c9a12d05bfac81fec16f75cbccc54e74.png) # TeamSpeak 3 Role Sync Source: https://docs.sonoransoftware.com/cms/integration-capabilities/teamspeak-3-role-sync Automatically sync your CMS Ranks to TeamSpeak Groups ![](https://docs-assets.sonoransoftware.com/sha256/22/2298eaf0c5381c082208695f2abc4edee017b9195b4f2149118f6be7ffb8e6e7.png) *Sonoran CMS - TeamSpeak Management* ## What Does Role Sync Do? With TeamSpeak role sync enabled, all changes to a user's ranks in CMS will automatically update their groups on your TeamSpeak server. You're able to fully customize which groups correspond to which ranks! ## Get Started Today! > [card] [Getting Started](/cms/integration-capabilities/teamspeak-3-role-sync/getting-started) # Adding Ranks Source: https://docs.sonoransoftware.com/cms/integration-capabilities/teamspeak-3-role-sync/adding-ranks [Video tutorial](https://www.youtube-nocookie.com/embed/eoI5ah6amf4) You can enable role syncing with TeamSpeak after setting up the connection by navigating to the `Role Sync` tab and checking the `Enable Role Sync` button. ![](https://docs-assets.sonoransoftware.com/sha256/cf/cff2b3c99546eeb85b0e2f6c5113694757ece5b7f6bea29888704e3604c3d874.png) *Sonoran CMS- TS Role Sync Enabled* ## Adding a Rank Steps for adding a rank that is associated with a group on your TeamSpeak server: 1. Click the **Add Mapping** button on the CMS admin panel ![](https://docs-assets.sonoransoftware.com/sha256/c1/c1d74d5536e2b4e124b8dca7536641d1fea5cf7bda527564bc383916731e6b3c.png) *Sonoran CMS - Add Mapping* 2. Select the CMS department and rank you'd like to use in the dropdown that just appeared ![](https://docs-assets.sonoransoftware.com/sha256/6e/6e2c4ed2eba025d5d179fd26f0f429849e68d6a59b8086935bb33cf2c8c8371c.png) *Sonoran CMS - Rank Selection* 3. Input the TeamSpeak group permanent ID into the **TeamSpeak Group ID** input ![](https://docs-assets.sonoransoftware.com/sha256/f4/f4a6fa86b9aa9d18fa7a2c192661e513acaeaf0f30dc6cb4002525cb053241d5.png) *Sonoran CMS - Input Group ID* * A TeamSpeak's group ID can be found by hovering over it in the permission editor ![](https://i.imgur.com/H608nba.png) *TeamSpeak - Group IDs* Repeat this for all ranks you'd like to map to a TeamSpeak Group. This method will soon be deprecated and be replaced by the following: 3. (Coming soon) Select a TeamSpeak group from the dropdown to the right. ![](https://docs-assets.sonoransoftware.com/sha256/37/378d8c75ab0a6692cde5d4ed1825ce716593a0fd6a556ec5e718e18baf6b8dca.png) *Sonoran CMS - Group Selection* ## Setting up Your Users For users in your community to benefit from this feature, they must setup their TeamSpeak UID after you've setup your connection. Check out this guide for adding your UID to CMS: > [card] [Adding your TeamSpeak UID](/cms/integration-capabilities/teamspeak-3-role-sync/adding-your-teamspeak-uid) # Adding your TeamSpeak UID Source: https://docs.sonoransoftware.com/cms/integration-capabilities/teamspeak-3-role-sync/adding-your-teamspeak-uid [Video tutorial](https://www.youtube-nocookie.com/embed/eoI5ah6amf4) ## Finding your TeamSpeak UID 1. Press `CTRL+I` or `CMD+I` while in TeamSpeak to open the Identities popup ![](https://i.imgur.com/OzNxOrx.png) *TeamSpeak - Identities Popup* 2. Copy the Unique ID of the identity that you use to connect to your server (almost certainly the first one) * If your Unique ID isn't shown, click **Show Advanced** on the bottom of the identities popup ## Adding your UID to CMS 1. Open your Community Settings by using your profile dropdown on the top-right of your screen ![](https://docs-assets.sonoransoftware.com/sha256/54/54fe85325ea176fdc57411789550092859b832fa0e4bbaf31eccc435ade8d5db.png) *Sonoran CMS - Community Settings* 2. Paste your UID into the TeamSpeak UID input in the popup 1. If the TeamSpeak section isn't shown, then that means your community hasn't setup TeamSpeak integration correctly ![](https://docs-assets.sonoransoftware.com/sha256/4f/4fcf62bc555ef8c0482574d155a329fb34446dba8f9efdb595a02540099dae47.png) *Sonoran CMS - TeamSpeak UID Input* 3. Make sure you are connected to your server's TeamSpeak, then click **Save TeamSpeak UID** 4. You should receive a message in TeamSpeak containing a code, paste the code into the new popup on CMS and click **OK** to verify that the TeamSpeak UID belongs to you ![](https://i.imgur.com/AuQt0bF.png) ![](https://i.imgur.com/bAKPzjy.png) *Sonoran CMS - TeamSpeak Verification* ![](https://i.imgur.com/hYVD8VM.png) # Getting Started Source: https://docs.sonoransoftware.com/cms/integration-capabilities/teamspeak-3-role-sync/getting-started [Video tutorial](https://www.youtube-nocookie.com/embed/eoI5ah6amf4) ## Setting up the Connection To begin, head to `Administrative Panel` > `Integrations` > `TeamSpeak` Once in that section, enter the information corresponding to your TeamSpeak server: * **IP/Hostname**: The IP (like 1.2.3.4) or the hostname (like google.com) that you use to connect to your TeamSpeak server * **Query Port**: By default 10011 for most TeamSpeak servers (especially self-hosted ones). Check with your host provider to be sure * **Server Port**: The port you use to connect to your TeamSpeak, which is by default 9987. (This will always be different from the Query Port) * **ServerQuery Username/Password:** Check the section below for creating a server query login ![](https://docs-assets.sonoransoftware.com/sha256/6f/6fad09683fd5fe5b3d89a2eef07a27a75765e87c3e924fb57648250904467561.png) *Sonoran CMS - TeamSpeak Integration Settings* Once you put all the TeamSpeak information into the inputs, click the **Save Integration Settings** button to save. If something is wrong, it'll display an error at the top of your screen that identifies the issue. If all correct, you should see: ![](https://i.imgur.com/UOSLFV1.png) *Sonoran CMS - Configuration Successful* ## Creating a Server Query Login ### The User Method This method is the easiest for creating a server query login, but the permissions of the login are tied to the user creating it. In the event that the person who created the login loses their permissions, role syncing will not be possible 1. While connected to your TeamSpeak server, go to the **Top Toolbar -> Tools -> ServerQuery Login** ![](https://i.imgur.com/1lZcMiC.png) *TeamSpeak - ServerQuery Login* 2. Enter any preferred username into the "Name" field of the popup and click **OK** ![](https://i.imgur.com/QbX35nM.png) *TeamSpeak - ServerQuery Name* 3. In the new popup, the "Name" field is your username is the "Password" is your server query password. Note that you will lose the password if you close the popup without saving it. ![](https://i.imgur.com/BbcDNFl.png) *TeamSpeak - ServerQuery Password* ### The serveradmin Method (Self-Hosted Only) This method only works if you self-host the TeamSpeak server, but it doesn't have the permission issues like the user method. The `serveradmin` password is found: 1. In the original popup when you create your TeamSpeak, the same dialog that had your Server Admin permission key 2. Or by changing the serveradmin password manually ([use this guide](https://support.teamspeak.com/hc/en-us/articles/360002712878-How-do-I-change-my-ServerQuery-Admin-password-)) Now that you have the password, you can put that into CMS along with the username `serveradmin` ## Setting up Role Sync Now that you've got the connection, it's time to setup which CMS Ranks correspond to which TeamSpeak Groups! > [card] [Adding Ranks](/cms/integration-capabilities/teamspeak-3-role-sync/adding-ranks) # Pricing FAQ Source: https://docs.sonoransoftware.com/cms/pricing/pricing-faq See below for commonly asked questions and answers: ## Accessing the Payment Center > [card] [Accessing the Payment Center](/cms/pricing/pricing-faq/accessing-the-payment-center) ## Create and Manage a Subscription > [card] [Create and Manage a Subscription](/cms/pricing/pricing-faq/create-and-manage-a-subscription) ## Request Discord Role > [card] [Request Discord Role](/cms/pricing/pricing-faq/request-discord-role) # Accessing the Payment Center Source: https://docs.sonoransoftware.com/cms/pricing/pricing-faq/accessing-the-payment-center Learn more about accessing Sonoran CMS's payment center. > [!WARNING] > > The payment center is only accessible from the **web or desktop version of Sonoran CMS**. The payment center **will not be visible using our iOS or Android** application. ### Access the Payment Center 1. Sign into [sonorancms.com](https://sonorancms.com/)​ 2. In the account dropdown navigation in the top right, select "Billing" ![Sonoran CMS - Access Billing Panel](https://docs-assets.sonoransoftware.com/sha256/07/07eb5f85fcf24da8072c78fffc267837ea40ffbfa06d7f6b8909c00719fee2aa.png) # Branding Removal Source: https://docs.sonoransoftware.com/cms/pricing/pricing-faq/branding-removal Make your Sonoran CMS website fully branded to your community! Learn more about branding removal. ## What is Branding Removal? Branding removal is included with the CMS **Standard** plan (\$9.99/mo). This helps make your community website look professional, without the branding included on the free plan. ## In-App Branding ### Footer Branding Branding removal hides the "Powered by Sonoran CMS" in your website's bottom footer. ![](https://docs-assets.sonoransoftware.com/sha256/f3/f37c81d3ad64766ad37272034d0067ac680ffec60e2ee7717cb2cd127ed9671d.png) *Sonoran CMS - Footer Branding* ### Browser Tab Favicon Branding removal customizes your browser tab favicon to your community logo set in your customization settings. ![](https://docs-assets.sonoransoftware.com/sha256/08/08741449d1fcb654eb251aa6178cc3a5d77b5725c56b547e2fe0cb1a7b128adc.png) *Sonoran CMS - Custom Favicon* ### Browser Tab Title Website page names are formatted as `Title | Sonoran CMS`\ Branding removal takes away the `| Sonoran CMS` at the end of it. ![](https://docs-assets.sonoransoftware.com/sha256/a8/a875155e3423a728b1dee8c5332e8f323b5f77487363678f531b1d6ff6f2f10d.png) *Sonoran CMS - Page Title Branding* ### Vanity URL or Custom Domain [Customize your community ID](/cms/tutorials/customization/community-branding-and-settings#community-id) for a nicer vanity URL `ID.sonorancms.com` Or, use [your own fully-custom domain](/cms/tutorials/customization/custom-domain#custom-domain) with the **Pro** plan! ![](https://docs-assets.sonoransoftware.com/sha256/d7/d716bb1679ad1afb075e112ddb7ac28a1ef8ec7b9e6c208c608745310106c326.png) *CMS: Vanity URL* ![](https://docs-assets.sonoransoftware.com/sha256/45/45c0627e2c3c527a05887375220e846459d6378394691dd10cef956433a1a700.png) *CMS: Custom Domain* ### Forms Auto-Reply Avatar When using a [forms stage automation to auto-reply](/cms/tutorials/forms/creating-custom-forms#form-stage-actions) to a submission, the auto-reply avatar will use your custom community logo. ![](https://docs-assets.sonoransoftware.com/sha256/05/0585192c56828a71e8bf479403398ae6ed6968d4e25aecadde4a54c28566161c.png) *Sonoran CMS - Automated Form Replies* ## Push Notifications Mobile and desktop push notifications alert users when community events begin, form stages change, and more! Branding removal changes the Sonoran CMS icon to your community's custom logo! ![](https://docs-assets.sonoransoftware.com/sha256/20/2094d28bf852a6f24786e31622c16483fa51d32548feb440f76dffa3c443b56c.png) *CMS: Push Notifications* ## Social Page Embeds Anyone can [customize their website embeds](/cms/tutorials/community-website/website-builder#page-seo) for social platforms like Discord. Branding removal removes the `| Sonoran CMS` from the embed title. ![](https://docs-assets.sonoransoftware.com/sha256/d7/d700fff38a562dad5ae1afac19792027f922dbc67293a2d47b1dd17cab7d2562.png) ## Discord Bot The Sonoran Discord Bot can have a [custom avatar, nickname, banner image, and bio](/bot/tutorials/usage/settings#branding-removal)! These can be customized in the CMS Discord Integration's Settings panel. Note: Due to Discord rate limits, changes can take up to five minutes to become visible. ![](https://docs-assets.sonoransoftware.com/sha256/2b/2b3e64512461da8458f54d962a97f5cdb96b5ae4acc91ea7002d350e5e457c52.png) ![](https://docs-assets.sonoransoftware.com/sha256/1e/1e11e5683e977cff070388a650ff256d49c4aeaea2dc543d497f474715d93014.png) ## Emails ### Custom Form Stage Emails [Custom forms](/cms/tutorials/forms/creating-custom-forms) allow communities to send personalized email notifications to their members when stages are changed. Ex: Moving a Membership Application from `Pending` to `Accepted` The email subject follows a `Sonoran CMS | Community Name | Form Updated` format.\ Branding removal takes the `Sonoran CMS |` out of the subject line. ![](https://docs-assets.sonoransoftware.com/sha256/a3/a37795518d9b5d693880ab02e89f2be879bca1a6759a8762d69203fd00b78b2b.png) *Sonoran CMS - Custom Form Emails* # Create and Manage a Subscription Source: https://docs.sonoransoftware.com/cms/pricing/pricing-faq/create-and-manage-a-subscription Learn more about managing a new or existing Sonoran CMS subscription. ## Create a New Subscription ### Access the Payment Center Access the payment center on the Web or Desktop version of Sonoran CMS by going to [sonorancms.com/#/billing](https://sonorancms.com/#/billing), or by viewing the guide below. > [card] [Accessing the Payment Center](/cms/pricing/pricing-faq/accessing-the-payment-center) ### Select the Desired Subscription In the payment center, select "New Subscription"\ From there, select the monthly subscription you would like to start. If you would like to pay **quarterly** instead, you can select that option at checkout and receive **25% off**. ![Sonoran CMS - Subscription Selection](https://docs-assets.sonoransoftware.com/sha256/30/3089a1616020649d2abe5d5d4b507311f4f910d02d292898b8e016941f3c358c.png) ### Select the Desired Community After selecting the desired subscription plan, you'll be prompted with a community selection modal.\ From there, select the community you would like to assign the subscription to. ![Sonoran CMS - Community Selection](https://docs-assets.sonoransoftware.com/sha256/19/19e97a59598e63696d352390ae2c42a1731aa7f9c27672230106be886848b91f.png) ### Complete the Purchase After selecting the desired subscription plan and community, you will be redirected to a Stripe checkout page. Here, you can enter your billing information and start the subscription. As previously stated, you will be given the option to pay quarterly instead of monthly. By paying **quarterly**, you are granted a **25% discount**. ![Sonoran CMS - Stripe Checkout](https://docs-assets.sonoransoftware.com/sha256/a9/a99270e82432dc002e4727cb2c14b82c8bb978d449a673344315ed37bbd5d9a9.png) ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d0bcfb7b89617860b7f18911b2ab5343c0e955eec652df0ff5641e4e508f9c9.png) *Sonoran Software - Quarterly Discount* ### Celebrate Once you've completed your purchase, you can celebrate that you've successfully upgraded your community's plan. ## Manage an Existing Subscription You can easily update the payment information, upgrade, downgrade, or cancel your Sonoran CMS subscription at anytime. ### Access the Payment Center Access the payment center on the Web or Desktop version of Sonoran CMS by going to [sonorancms.com/#/billing](https://sonorancms.com/#/billing), or by viewing the guide below. > [card] [Accessing the Payment Center](/cms/pricing/pricing-faq/accessing-the-payment-center) ### Open the Stripe Customer Portal On any active subscription, select "Modify Subscription" to open the Stripe customer portal. ![Sonoran CMS Payment Center - Modify Subscription](https://docs-assets.sonoransoftware.com/sha256/d6/d6272e8e937ef8f86cc0ffd949a55170f768d91a505b0d27852231c0ca1f3c04.png) ### Utilize the Stripe Customer Portal Once opened, you can easily update your payment information, upgrade, downgrade, or cancel an existing subscription. ![Sonoran CMS - Stripe Customer Portal](https://docs-assets.sonoransoftware.com/sha256/3f/3f24835d34df0fc2731aabcfd99ffcde7d73d0380e067bd6517641e449559a3a.png) ## Migrate a Subscription to Another Community Sonoran CMS subscriptions can be easily transferred from one community to another. ### Access the Payment Center Access the payment center on the Web or Desktop version of Sonoran CMS by going to [sonorancms.com/#/billing](https://sonorancms.com/#/billing), or by viewing the guide below. > [card] [Accessing the Payment Center](/cms/pricing/pricing-faq/accessing-the-payment-center) ### Update the Subscription's Community Select "Set Community"/"Change Community" on the subscription in your billing center. ![Sonoran CMS Payment Center - Set Community](https://docs-assets.sonoransoftware.com/sha256/2b/2bc1a659c121876a0ac1fbdb36ce004aaa04114b38fc1553e7b1753df5aae24b.png) ### Select the Desired Community Select the community you would like to set the subscription to. ![Sonoran CMS Payment Center - Set Community Modal](https://docs-assets.sonoransoftware.com/sha256/3f/3fb07d0bb0b3f884577c72a219303df17c205737282e648cd556e7bd37a56210.png) # Request Discord Role Source: https://docs.sonoransoftware.com/cms/pricing/pricing-faq/request-discord-role Learn how to request the customer role in the Sonoran Software Discord server. See the guide below for claiming the `Customer`role in our Discord. #### Customer Lobby The `Customer` role grants users access to the #customer-lobby channel. #### Retrieve your Subscription ID In the Sonoran CMS billing center, copy the subscription ID from the subscriptions table: ![Sonoran CMS's Billing Center](https://docs-assets.sonoransoftware.com/sha256/a3/a334456e38eea01f8a3e636aabb68c0f05c8b1f76a5db6bb172e5561be05b3f7.png) #### Retrieve your Discord Tag In Discord, click your username to copy your Discord tag. ![Copy Discord Tag](https://docs-assets.sonoransoftware.com/sha256/ce/ce70fdf5565356b74db4cc3c99ac1fa2eaf14eae7289f31fac6c15edae5839a4.png) #### Enter your Information On our [support website](https://support.sonoransoftware.com/), select the "Discord Role" button, select CMS Customer and paste in your information. ![Sonoran Support - Request Discord Role](https://docs-assets.sonoransoftware.com/sha256/62/6239853c659638785eda49550e823f62ff939e00dee4d32c4c46ba747b34b56a.png) # Roadmap & Changelog Source: https://docs.sonoransoftware.com/cms/roadmap/roadmap-and-changelog View our development team's upcoming roadmap and historical changelog. # Changelog Source: https://docs.sonoransoftware.com/cms/roadmap/roadmap-and-changelog/changelog View the latest changes to Sonoran CMS! ## Roadmap [View our upcoming roadmap!](https://roadmap.sonorancms.com/) ## Changelog ### 1.5.25 11/05/2026 > [tab] New > > Billing and Community Gifts > > * Added a compact billing page with account credit and community assignment, plus a configurable gift link in the community toolbar. ### 1.5.23 10/14/2026 > [tab] New > > Multi-Discord Sync > > * Sync Discord roles from one guild to another based on CMS rank updates and role changes > * Configurable through Discord bot and CMS UI > > ERLC Webhooks > > * Receive webhooks for New Records, Commands & Configuration Changes > [tab] Changed > > Improved Radio Integration UI > > * Cleaner UI matching CAD Integration ### 1.5.22 10/08/2026 > [tab] New > > Discovery Vote Header Icon > > * Added (by default) Discovery Vote Header Icon that will show next to the clock in icon to prompt users to actively vote for their community to show higher in Community Discovery > [tab] Changed > > Discovery Game Selection > > * Expanded the other option with a type in field, this will go into consideration for adding it to the Game Category Selection pool. Community page SEO will now display the game appropriately > > Site AI > > * Improved overall knowledge of pages and forms > * Ability to generate images for components and background > * Improved follow-up questions ### 1.5.21 09/17/2026 > [tab] New > > Website Fonts > > * Added Google fonts + ability to upload custom fronts in the file drive > > Form Revision History > > * Added revision history to forms to view updates. ### 1.5.20 09/16/2026 > [tab] New > > Sonoran CAD Granular Permissions > > * Updated the CAD permission sync for the new v2 permissions. ### 1.5.19 09/14/2026 > [tab] New > > ER:LC Commands > > * Added new commands for layouts, shutdown, and kill along with minor UI improvements. > [tab] Fixed > > Desktop Downloads: Latest Releases > > * Updated desktop download links to the latest available Windows, macOS, and Linux releases. ### 1.5.18 09/10/2026 > [tab] Fixed > > Mobile Builds: Store Publishing > > * Updated Android compatibility for Google Play and enabled replacement of pending TestFlight reviews for production iOS builds. ### 1.5.16 09/08/2026 > [tab] New > > Form Search > > * Added a search box in the form submissions panel. ### 1.5.14 09/01/2026 > [tab] New > > AI Website Builder > > * Added an AI assistant for the website builder. > > Custom User ID Start > > * Added customization for the starting point of automatic user IDs. ### 1.5.13 08/18/2026 > [tab] New > > FiveM Panel UI > > * UI refresh and improvements for the FiveM management panel ### 1.5.12 08/16/2026 > [tab] Fixed > > Login: Mobile Redirects and Header Layout > > * Fixed mobile sign-in callbacks and kept the header login icon and label aligned inline. ### 1.5.11 08/14/2026 > [tab] New > > Discovery UI > > * Initial UI revamp of discovery, including voting, Discord invites, and more. > > New Community Walkthrough > > * Added a walkthrough tutorial for new community registrations. > > Admin Dashboard > > * Added a new landing page for the administration panel. > [tab] Changed > > Rosters: Optional Timeclock Forms > > * Roster timeclock fields no longer have to be linked to a CMS form. > > Loading Animation > > * Added a new, custom loading animation for pages. > > Roster Tyles > > * Simplified roster creation to two types: Rank based and manual > > Roster Column Editor UI > > * UI improvements to the roster column editor ### 1.5.10 07/29/2026 > [tab] New > > ERLC Custom Layout > > * Added dashboard panel layout customization for the ER:LC management panel > > Roster Conditions > > * Added advanced flow charts for roster conditions. Allowing communities to set a column value based on multiple other if/then conditions. > [tab] Changed > > Accounts Mobile Pagination > > * Improved loading of user accounts on mobile view by keeping action buttons fixed at the top > > Mobile Notification Width > > * Fixed an issue with the notification center cards allowing some extra side scrolling on mobile. > > Billing Portal Overhaul > > * General UI overhauls to the billing portal > [tab] Fixed > > Rank Permission Toggle All > > * Fixed an issue with the toggle all permissions grant/deny button from being cut off in certain browsers. ### 1.5.9 07/18/2026 > [tab] New > > ER:LC Panel UI Refresh > > * Additional UI improvements and color changes to the ER:LC management panel > > Mobile Growth Widget > > * Added mobile widgets for community stats > [tab] Changed > > Account Scroll Zone > > * Improve the account scroll to load to be contained inside a container > > Stage Change Font Color > > * Improved the form submission stage change log color to have better contrast > > Mobile App Reconnection > > * Improved mobile app reconnection logic ### 1.5.7 07/10/2026 > [tab] New > > Discord Forms > > * Added the ability to enable CMS forms to be completed via Discord command. > [tab] Changed > > Stage Name Sizing > > * Improved the label area on stage names in the submission board to show more characters. > > Permission UI Refresh > > * Improved the UI for the rank permissions modal > [tab] Fixed > > Roster Play Time Sort > > * Fixed issues with roster columns not properly sorting activity time up/down. ### 1.5.6 06/26/2026 > [tab] Changed > > Account Scroll to Load > > * Updated the account page to load on scroll instead of paging through the table manually. > > Account Editor - Mobile > > * Improved the save button layout when editing an account on mobile. ### 1.5.4 06/23/2026 > [tab] Changed > > ER:LC Join URL > > * Updated the ER:LC panel's game join button URL > > Drive Import Improvements > > * Improved Oauth scopes for Google Drive import > [tab] Fixed > > Document Watermarks > > * Fixed an issue with document protection not showing watermarks ### 1.5.2 06/15/2026 > [tab] New > > Radio Sync Call Permission > > * Added radio permission sync support for the new emergency call permission. > > Roster Live Edit > > * Viewing a roster and clicking a row now allows you to open and edit the user account directly > > Account List View > > * Added a compact list view for user accounts in the admin panel > > Drive Document History > > * Added a revision history tab to the Drive document editor to view historical document edits > [tab] Changed > > Websocket and Authentication Refactor > > * Refactored authentication and gateway logic to be heavily optimized > > Profile and Account Editor Overhaul > > * Overhauled the account editor and combined it with the user profile for a single component > > Drive Improvements > > * Added an import via Google Drive system, favorites, trash, and several other general improvements. > [tab] Fixed > > Profile Field Display > > * Fixed an issue causing some user profiles to not display all custom fields ### 1.5.1 06/02/2026 > [tab] New > > Calendar UI Revamp > > * UI revamp of the community calendar page > [tab] Changed > > Roster View from Admin > > * Added the ability to view rosters directly from the admin editor panel. ### 1.5.0 05/26/2026 > [tab] New > > Website Builder v3 > > * A major overhaul of the website builder with custom CSS handling, containers, and more. > > Document Editor UI Refresh > > * Major UI refresh of the Drive document editor for a more simplistic layout. > > Navigation Bar Customization > > * Added new customization options to the community navigation bar including CSS, sticky behavior, and more. > [tab] Changed > > Rank Manager UI Improvements > > * Updated the rank manager UI to a more simplistic click to edit rank system. > > Discord Advertise Format > > * Fixed issues with the advertise-here Discord channel formatting on discovery bump > > User Account Avatar Update > > * Admins can now update their avatar directly from the user account menu instead of only their profile page. Resolved additional issues with cache updates. > > User Account Permission > > * Improved permission explaination tooltips when viewing a user account. ### 1.4.1 05/12/2026 > [tab] New > > Forms: Duplicate Section > > * Added the ability to add sections that can be duplicated for more entries by the user > > Drive Document Protected Permissions > > * Added a separated permission for users to mark drive documents as private, locking down copy functionality and adding watermarks > > Form Promotions > > * Added a custom form stage action to run a promotional flow on a specific user > > AI Search Help > > * Added a help modal for AI documentation search and feedback > > API Trace Logging > > * Added internal logging for API trace IDs allowing for better debugging for third-party developers > [tab] Changed > > Radio Sync v2 API > > * Updated the CMS x Radio permission sync to use the new v2 API > > CAD Sync v2 > > * Updated the CMS x CAD permission sync to use the new v2 API ### 1.4.0 05/01/2026 > [tab] New > > Required From Field Tooltip > > * When the next/submit button is disabled due to an empty required field in the form submission, a tooltip will now mention the specific field required. > > ER:LC Action Command > > * Actions on the actions panel can now have customizable ER:LC commands in-game > > Form Templates DB Storage > > * Moved community form templates to a dedicated table, optimizing database performance. > > Community Backups > > * Added community backups, allowing restoration of data in the event of a rogue staff member. > > Admin Profile Editor Refresh > > * Refreshed UI of the admin profile editor panel > > Admin Discovery Config Refresh > > * Refreshed UI for the admin discovery configuration panel > [tab] Changed > > Notification SFX > > * Updated the notification SFX because Brian's dog didn't like it. Also, fixed issues with no live SFX as notifications came in. > > Discord Role Search Improvements > > * Improved UI for Discord role search drop-downs ### 1.3.10 04/16/2026 > [tab] New > > Rank Permission Filter > > * Improved the permission search filtering in the rank editor, disabling and highlighting matches accordingly > > Notification Center UI Refresh > > * Initial UI refresh of the notification center menu > > Purge Inactive Members > > * Added a system to purge inactive user accounts from the community > > Create Community UI Refresh > > * Initial UI refresh of the create community modal > [tab] Changed > > Community Delete, ID, and Transfer Location > > * Moved the community options to customize the ID, delete, and transfer to the customization menu > > Admin Form Tab > > * Added a new selector in the admin forms menu to change between the editor and submission board > > Mobile Zoom > > * Removed the ability to zoom in and out of panels when using the mobile app > [tab] Fixed > > CAD Sync Translations > > * Fixed missing CAD sync translation keys > > Database Audit > > * Pruned and optimized the database to remove old and unused data ### 1.3.9 03/27/2026 > [tab] New > > Rank Drag to Different Group > > * Ranks can now be dragged-and-dropped into different rank groups in the editor > > Rank Change ID Undo > > * All rank changes are now logged with an ID (webhooks, logs, etc.) and can be reversed via a Discord undo command > > Roster Roblox Username Column > > * Added a new roster column for Roblox usernames > > Radio Permission Stun Sync > > * Added the ability to grant the new radio stun feature permissions via CMS > > Form Lock on Date > > * Added the ability to set a specific date and time to lock a form from new submissions > > Form Submission Count > > * The number of forms in a stage is now shown on the submission board > [tab] Changed > > Rank Audit > > * Improved internal systems for removing old ranks ### 1.3.8 03/20/2026 > [tab] New > > **Discord Role Import Auto Map** > > * Automatically adds one-to-one mapping when importing Discord roles as CMS ranks > > **Form Social Link** > > * New form element to ensure a user’s Discord or Roblox account is linked > > **Account Merge** > > * Ability to merge duplicate user accounts (combine ranks, content, etc.) > > **Promotion Flows: Lock Direction** > > * Lock a promotional flow to one direction only (e.g., prevent mass-demote being run as mass-promote) > > **User Accounts Mobile Revamp** > > * Revamped mobile user accounts menu > * Added missing user search input > > **Forms: Roblox Username** > > * New form element to automatically insert a user’s Roblox username > > **Discord Webhooks: Change Stage Embed** > > * Option to include an embed dropdown in form stage actions to change the form stage > [tab] Changed > > **ER:LC Missing Whitelist Vehicles** > > * Added multiple missing vehicle types to the whitelist panel selector > [tab] Fixed > > **Calendar Date Checks** > > * Ensures event start dates are always before end dates > > **New Form Submission Window** > > * Fixed issue where question scroll area could be invisible > > **QBCore: Vehicle Garage** > > * Fixed issue where changes to a vehicle’s garage were not saving ### 1.3.7 03/16/2026 > [tab] New > > ER:LC Action Delays > > * Added new "delayed" action to ER:LC whitelist automations. > * Ex: ER:LC AOP - Send in-game warning when outside of AOP, if still outside 60 seconds later kick the user > > Admin Panel Banner > > * Added a dismissible banner on the community website to help access the admin panel for new users > > ER:LC Hub > > * Migrated to a new, shared ER:LC API hub for all Sonoran applications (CAD, CMS, Radio) > [tab] Changed > > Limits UI > > * Updated UI elements in the community limits panel > > Account Dropdown UI > > * Improved UI in the user account drop-down menu in the top right > [tab] Fixed > > Bot Stage > > * Fixed an issue causing some users to be unable to change a CMS form stage via Discord embed > > Roster Text Update > > * Fixed an issue causing some roster text columns to not accept manual changes > > Pormotion Flow Discord Roles > > * Fixed an issue causing promotional flows ran via CMS to not auto-sync Discord roles for the new CMS ranks ### 1.3.6 03/04/2026 > [tab] New > > Form Submission Reply Actions > > * Added a new action system that triggers when a reply comment is made on a form submission > > FiveM Automatic Server Generation > > * The FiveM resource now automatically adds a server in the CMS with the game server's IP and port, removing the manual need to enter > > Roster Rank Edit > > * Added the ability to edit ranks directly from a roster column > > ER:LC AOP > > * Added customizable AOP zones with automatic actions when outside of the zone > > ER:LC Dummy Data > > * Added toggleable dummy data to the ER:LC panel for development images and promotional content > [tab] Changed > > Vanity URL Handling > > * Added proper redirect handling for invalid vanity URLs > > FiveM Installation Steps > > * Simplified FiveM installation instructions now that the resource automatically adds a server and sets the framework type > [tab] Fixed > > Mobile Push Notification Routes > > * Fixed an issue where opening a mobile push notification would open your last used community instead of the notification specific community > > Name Sync Variables > > * Fixed an issue where updating a user's identifier in the custom name format wouldn't trigger a Discord name sync > > Discord Mapping Booster > > * Fixed an issue causing the Discord mapping panel to not show the Discord generated Nitro booster role ### 1.3.5 02/23/2026 > [tab] New > > ER:LC Vision > > * Added an all-new in-game hotkey system to detect players and open a moderation overlay ### 1.3.4 02/18/2026 > [tab] New > > Drive Overhaul > > * Dozens of UI and functionality improvements to the CMS Drive. > [tab] Changed > > Admin Panel UI Alignments > > * Updated several admin panels to a more consistent theme and alignment > [tab] Fixed > > Discord Category Mapping > > * Added a safety to prevent adding the same Discord role to multiple different category mappings. > > Website Background Image > > * Fixed an issue where adding a website background image wouldn't take the entire space. > > Roster Select Column > > * Fixed an issue in the roster editor that could cause the roster to clear when adding a specific column type. ### 1.3.3 02/13/2026 > [tab] New > > Form Embed Field > > * Added the ability to embed a youtube video or file attachment in a form field to provide information to the submitter. > > Custom Domain Remove > > * Updated custom domain logic to ensure Cloudflare records are removed when a community no longer has a custom domain. > > Form Stage Roster Actions > > * Form stage changes can now update community rosters via action. > [tab] Changed > > Account Search Types > > * Updated the account searches in forms, security center, and the disciplinary panel to include the options to search via other identifiers. > > Promotional Flow Permissions > > * Separated permissions for promotional flows so users can't run promotion flows that contain higher level ranks than they have, unless they have explicit permissions to modify ranks with a higher power. > > Default Form Icon > > * Updated new forms to use a default icon instead of the CMS logo when created. > > Discord Webhook Filter > > * Added a search filter box in the Discord integration's webhook panel, making it easier to sort through pages of webhook options. ### 1.3.2 02/03/2026 > [tab] New > > ER:LC Offline Player Records > > * Added offline player search in the ER:LC create record panel > > Clock Shift Permissions > > * Added new rank permissions to restrict which shift types users can clock in with. > > Stage Change Reason > > * Added a new reason popup when changing a form's stage. The reason text is also available as a variable. > > Discord CMS ID > > * Added a new /cmsid Discord command to get a user's CMS UID. > > ER:LC Requests > > * Added a system for custom form requests in the ER:LC panel, complete with in-game commands. > > ER:LC Stage Actions > > * Added support for custom ER:LC server commands on form stage actions. ### 1.3.1 01/23/2026 > [tab] New > > Actions: Timeclock > > * Actions to update user ranks can now be triggered based on clock in/out events. > > Promotion User Search > > * User searches in the rank promotion tab can now be ran via Discord/Roblox/other IDs instead of only usernames. ### 1.3.0 01/21/2026 > [tab] New > > ER:LC Panel - Public Beta Release > > * ER:LC management panel is now available in beta to the public. > > ER:LC - Custom Record Types > > * Added customizable record types for ER:LC player records, along with Discord command support. > > ER:LC - Lock Team > > * Added custom team player count locks along with Discord command support. > > Actions: Discord Lock > > * Automated actions can now lock/unlock and hide/unhide Discord channels for specific roles. > > Melonly Import > > * Added functionality to import Melonly logs to CMS player records ### 1.2.6 01/13/2026 > [tab] New > > ER:LC Team Lock > > * Added the ability to lock ERLC teams to a specific user account, with automatic actions any bypass ranks. > > Form Submission History > > * Added a form history button on forms to view prior submissions with status information and clickable items to swap between. ### 1.2.5 01/07/2026 > [tab] New > > Toolbar Update Logging > > * Added a community log whenever the toolbar is updated. > > Sessions API > > * Added API support to start and stop sessions. > [tab] Changed > > Roster Audit Timezone > > * The 12-hour roster audits to update hours is now based on the community timezone to properly update at the start of a new month. > [tab] Fixed > > Navigation Bar Alignment > > * Fixed an issue causing the navigation bar alignment settings to not save. > > Image Carousel Add > > * Fixed an issue where adding images to the carousel element required extra scrolling > > Document Previews > > * Fixed an issue with drive document previews not generating properly > > Form Attachment Webhook > > * Fixed an issue with form attachments in Discord webhooks having a broken URL ### 1.2.4 12/19/2025 > [tab] New > > ER:LC Queue Info > > * Added a menu in the player queue count to see the users in the queue. > > Actions Calendar Event Trigger > > * Added action trigger support on event creation, start, and end. > > Calendar Event Discord Sync Toggle > > * Added a per-event toggle to sync calendar events to Discord. > > ER:LC Shift Reports > > * Added custom shift reports for ER:LC sent via Discord DM. > > ER:LC Session Action Triggers > > * Added triggers to fire, start, or stop actions based on starting and stopping an ER:LC session > > Discord Notifications > > * Added a configurable Discord DM notification setting > > Roster Editor Preview > > * Added real data to the roster editor, allowing for a better preview of the roster before saving. > > Form Lock API > > * Added a new API endpoint to lock and unlock a CMS form. > > Calendar Event Expanded Permissions > > * Separated edit and delete permissions into edit/delete own events vs others events. ### 1.2.3 12/04/2025 > [tab] New > > Timeclock Shift Types > > * Added customizable shift types for the timeclock, allowing for better separation > > ER:LC Game Log Commands > > * Added the ability to add records and manage timeclock shifts via :log command > > ER:LC Discord Commands > > * Added the ability to run ERLC commands from Discord > [tab] Changed > > ER:LC New Record Search Player > > * Modified the ER:LC new record user drop-down to allow for searching and selecting of offline players > > Discord Change Stage Log > > * Improved logging when a form stage is changed via Discord embed, reflecting the user that changed it via Discord > [tab] Fixed > > ERLC Command Logs > > * Fixed an issue where running some ERLC commands wouldn't create an activity log with the user that executed it ### 1.2.2 11/21/2025 > [tab] New > > Timezone Customization > > * Timezone customization determines the timezone for add/remove rank on date actions, roster activity columns, and more! > > Promotional Flow Multi-Action > > * Added automated actions than run when the multi-flow promotional UI is used. ### 1.2.1 11/20/2025 > [tab] Changed > > Rank Reordering > > * Added a grab icon for rank reordering via drag-and-drop. Making it easier particularly on mobile. > > Promotion Flow Improvements > > * Improved the mobile UI for promotional runs and added a confirmation on deletion of flows. > > ER:LC Search > > * Automatically re-focused the search box after an automatic search is ran. > > Form URL Share Tree Select > > * Automatically selected and expanded the proper folders when viewing a shared form submission. > [tab] Fixed > > CAD Sync Translations > > * Fixed an issue where CAD sync integration labels were missing from translations. > > Roster Filtering > > * Fixed an issue where filtering a roster column would break pagination from being able to load other pages. Also resolved an issue with Roblox usernames being cut off. ### 1.2.0 11/18/2025 > [tab] New > > Roster Trigger and Loading > > * Added roster based triggers in the action panel to send an event when user roster values change. Also overhauled the roster system for persistent compute, making it load instantly for all viewing and filters. > [tab] Changed > > Notifications and Preferences > > * Updated the UI styling and toggle buttons for the notification center and preferences modal. ### 1.1.74 11/10/2025 > [tab] New > > ER:LC Search > > * Added a search user button to quickly find and view player records > > Promotion Flow Actions > > * Added customizable actions to run on each promotional flow. > > Promotion Flow Edit Logs > > * Added logging for user accounts adding, editing, or removing promotional flows. > [tab] Changed > > Roster Styling Computation > > * Migrated the computation for roster cell styling to the backend, allowing for proper sorting via dynamic values like status columns. > [tab] Fixed > > Hidden Stage Notifications > > * Fixed an issue where hidden stage names would still be shown to users in the notifications. ### 1.1.73 11/05/2025 > [tab] New > > Discord Promotion Command > > * Run promotional flows right from a Discord /promote or /demote command! > > Drive Diagrams > > * Added diagram building to the Drive. ### 1.1.72 11/01/2025 > [tab] New > > Rank Promotions > > * Added a new promotion flow panel in the rank manager > [tab] Changed > > Mobile Reload > > * Improvements for reloading the community page when exiting and re-opening the app. ### 1.1.71 10/30/2025 > [tab] Fixed > > Roster Sort > > * Improved roster sorting for connection times and usernames ### 1.1.70 10/28/2025 > [tab] Fixed > > Limits Expiration > > * Fixed an issue on the limits panel where the subscription expiration wouldn't properly show. > > Event Embed Logo > > * Fixed an issue on the calendar event share page social embeds where the community logo wouldn't show if no event image was added. > > Calendar Push Notifications > > * Fixed an issue where push notifications for calendar events wouldn't open the event directly when opened. ### 1.1.69 10/27/2025 > [tab] New > > Discord Bot Custom Branding > > * Added the ability to customize the Discord bot nickname, avatar, banner image, and bio as a part of branding removal. > > Form Stage Changer Variable > > * Added a new form stage variable to state the username of the stage changer. > [tab] Fix > > ER:LC Panel View Permissions > > * Fixed an issue causing the view ER:LC panel permissions to not allow viewing from other users. ### 1.1.67 10/24/2025 > [tab] New > > ER:LC Record Edit Improvements > > * Added the ability to clear the record editor > * Added the ability to change a record type > * Added the ability to click on a user in the edit history > > Form Stage Activity Comments > > * Added form submissions comments stating what user changed the form stage > > Cloudflare Custom Domains > > * Updated the custom domain system to the newer Cloudflare for SaaS > > Mobile Reload Persist > > * Added automatic re-loading of the last community viewed when exiting and re-opening the mobile app > [tab] Changed > > Discord Mapping Resync > > * Updated the trigger for a community re-sync after Discord mapping changes are made, reducing the amount of stacked community re-syncs in the queue ### 1.1.66 10/23/2025 > [tab] New > > Event Share Embeds > > * Added custom social embeds for public event URLs > > User Account Modal > > * Initial UI refresh of the user account popup modal in the admin menu. > [tab] Changed > > URL Shortener Mobile > > * Small tweaks for a better mobile experience in the URL shortener. > [tab] Fixed > > Event WYS Formatting > > * Fixed an issue causing the WYS text editor's formatting for events to be cleared when viewing the event. > > Discord CMS Mapping Icon > > * Fixed an issue causing the CMS icon in the Discord mapping panel to be stretched on mobile devices ### 1.1.65 10/22/2025 > [tab] New > > Discord UI Revamp > > * Initial UI color revamp for the Discord integration panel > > Website Pages UI Revamp > > * Initial UI revamp of the admin website pages panel > [tab] Changed > > Admin Sidebar Expansion > > * Improve the mobile admin navigation bar expander, saving it's position and making it scroll with the page > [tab] Fixed > > ER:LC Whitelist > > * Fixed an issue where toggling a rank on the ER:LC allow or deny list would add or remove it on the opposing list > > ER:LC User Activity > > * Fixed an issue causing the player info's recent activity to load indefinity ### 1.1.64 10/18/2025 > [tab] New > > ER:LC Action Player Badges > > * ER:LC Players that recently had a command ran on them will be pushed to the top of the player list showing a badge > > ER:LC Record Search Filters > > * Added new record search filters for types, staff member, user, and date range > [tab] Fixed > > Roster Last Connected > > * Fixed an issue causing the "last connected" roster column type to show as blank on CSV exports > > Security Flag Notes > > * Fixed an issue with security center flag notes causing notes to not load or be unable to add ### 1.1.63 10/16/2025 > [tab] New > > ER:LC Command Queue > > * Added all ER:LC manual commands to a shared queue, ensuring rate limits are respected > > Rank Change Webhooks > > * Added a new Discord webhook option whenever someone's ranks are changed > [tab] Changed > > Name Customization > > * Improved the customzation panel's UI for name customizations with clickable variables > [tab] Fixed > > Metrics Panel Mobile > > * Multiple UI improvements for the metrics panel on mobile devices ### 1.1.62 10/13/2025 > [tab] New > > Security Center UI Revamp > > * Initial UI revamp for the security center > > ER:LC Edit Record > > * Initial options to edit existing ER:LC player records and view the history of changes > > ER:LC Disciplinary Point Actions > > * Added new disciplinary point actions to kick and ban from ER:LC > > Disciplinary Points: UI Refresh > > * Initial UI color revamp for the disciplinary points panel > > Limits: UI Color Refresh > > * Initial color refresh in the community limits panel > > Custom Domain: UI Color Refresh > > * Initial color refresh in the custom domain panel > > Actions: UI Color Refresh > > * Initial color refresh in the community actions panel > > Integrations: UI Color Refresh > > * Initial color refresh in the community integrations panel > [tab] Changed > > Game Panel: Delete Server > > * Added a button to delete a game server from the server selection menu > > Form Stage Change Log > > * Improved security center logging descriptions for API based form stage changes > [tab] Fixed > > Join Actions Discord > > * Fixed an issue causing the on-join actions Discord webhook to not expand in the UI ### 1.1.61 10/08/2025 > [tab] New > > ER:LC Social Whitelist > > * Added automated whitelist actions for ER:LC users if they don't have a Discord or Roblox account linked when joining > > ER:LC Commands > > * Added missing commands for helper, unhelper, and unjail > > ER:LC Kick & Ban > > * When kicking or banning a user via command or record, both will be automatically generated > [tab] Changed > > Roster Mobile View > > * Hid the CSV download and centered the search bar when viewing a roster on mobile > [tab] Fixed > > Form Conditionals > > * Fixed an issue causing the conditionals for ranks and questions on form actions to not appear ### 1.1.60 10/06/2025 > [tab] New > > Login Restrictions > > * Added the ability to restrict which login methods are available to community members. > > Growth Metrics Revamp > > * Initial UI revamp of the growth panel's metrics. > [tab] Changed > > Actions UI > > * Small UI tweaks and improvments inside the automated actions configurators. > > Disciplinary Points > > * Set the minimum number of disciplinary points to add to zero instead of one, allow for true "warning" type records in the ER:LC panel. ### 1.1.59 10/03/2025 > [tab] New > > Private Form Stages > > * Hidden form stages with permission controls – for when you don’t want users to see the current stage. > [tab] Fixed > > Push Notification Branding > > * Fixed an issue where mobile push notifications wouldn't include the branded community logo ### 1.1.57 10/03/2025 > [tab] New > > Forms Editor: Scroll Buttons > > * Add section and question buttons now scroll with the page on the side > [tab] Fixed > > On Join Actions Save > > * Fixed an issue causing infinite loading after login until a refresh was made > > Fix App Loading > > * Fixed an issue causing some new on-join actions to not properly save ### 1.1.56 10/01/2025 > [tab] New > > Webpage: Video Background > > * Added the ability to set the background of a webpage to an uploaded video. > [tab] Changed > > ER:LC Record Player Search > > * Added type-to-filter on the new record player input > [tab] Fixed > > Roster Generation > > * Tweaked backend roster generation for further debug on potential crashes. ### 1.1.55 09/30/2025 > [tab] New > > Domain Caching > > * Improved loading speeds and caching for communities using custom domains. > [tab] Fixed > > ER:LC Record Player Select > > * Fixed an issue with selecting the online players in the ER:LC panel > > New Roster Columns > > * Fixed an issue preventing the ability to add new roster columns in the roster editor. ### 1.1.54 09/29/2025 > [tab] New > > New Form Logged Out - Optimize Speed > > * Optimized speed to detect user not logged in when hitting an application button. Added additional handling to redirect the user back to the page/panel that requires login after logging in. > > Cloudflare Custom Domains Swap > > * Updated the custom domain system for all new, custom domains to run on the upcoming Cloudflare for SaaS system over the existing, legacy handling. > > i18n Translation Script Optimizations > > * Greatly improved the speed of AI i18n translations for faster release deployments. > [tab] Fixed > > HF: Game panels no server > > * Fixed an issue where new communities with no servers would not load the step-by-step install modal for in-game integrations. > > HF: Legacy Actions > > * Fixed an issue with form stage actions setup long ago that would no longer properly open in the editor. > > Stage Change Duplicate Webhook > > * Fixed an issue where new form submission webhooks would not include a proper form ID in the footer, resulting in a duplicate form stage change webhook for the next change. ### 1.1.51 09/23/2025 > [tab] New > > Forms AI: Public Release > > * Form stage AI processing is now available to all pro communities > > Roster View UI Revamp > > * Initial UI overhaul for community rosters > > Roster Editor: Preview Revamp > > * Initial UI overhaul for parts of the roster editor > > Form Webhooks: Toggle Stage Change Dropdown > > * Added a toggle on the Discord integrations form stage action to disable the Discord stage change dropdown > > ER:LC: Records > > * Added a new player records system for the ER:LC panel > > ER:LC Hide Loading Bar > > * ER:LC panel no longer shows a visual refresh when updating > > ER:LC Run Command Live Log > > * ER:LC commands ran now show instantly in the recent activity logs > > ER:LC Moderation UI Revamp > > * Initial UI revamp for the ER:LC moderation panel > > ER:LC User Modal - Discord Information > > * Added a new Discord information modal to the ER:LC player popup allowing you to view the Discord avatar, username, and ID with click-to-copy > [tab] Fixed > > Stage Change Webhook: Not Updating > > * Fixed an issue where updating a form stage via AI wouldn't trigger the stage actions > > ER:LC Logs User "ERR" > > * Fixed an issue causing some external commands to show as coming from "ERR" > > Fix: Disciplinary Variables > > * Fixed an issue causing some action variable popups in the disciplinary panel to be blank > > HF: Short URL Path Taken > > * Fixed an issue causing some custom URL shortener paths to incorrectly error as an already existing path ### 1.1.50 09/15/2025 > [tab] New > > Forms AI Processing > > * Added a new AI agent to automatically score and process forms by moving them to the next stage, available to partnered communities with early access. > > Desktop: Toolbar Improvements > > * Improved the header spacing and styling on the desktop applications. > > Forums: Expand Ranks > > * Forums now only display the user's top rank on the sidebar, with an expansion item to view the rest. > > Permission Debug: Tooltips > > * When viewing the "Debug Permissions" modal in the user account, tooltips now highlight what specific department(s) or rank(s) are giving the grant or deny. > > ER:LC Clickable Player Command Logs > > * Added clickable player mentions for ER:LC logs when a command is ran on a player. > > ER:LC Player Cards - Activity Time > > * Online user cards now show an icon with a tooltip to reflect how long the user has been in-game for. > > ER:LC Order specific CMS ranked players first > > * Added an option to configure specific CMS ranks (Ex: Staff Ranks) that will show up first on the online players list along with their rank icon. > > ER:LC/Disciplinary Points Modal: Multi-Select > > * Added the ability to select multiple users at once when adding disciplinary points. > > Discord Mapping: Role/Rank Text Color > > * Added a feature to dynamically detect if the Discord mapping role or rank is on a light colored background. If so, the text will be black instead of white for proper visibility. > [tab] Fixed > > OSX Crash on Startup > > * Fixed an issue causing the OSX application to crash on startup. ### 1.1.48 09/08/2025 > [tab] New > > Forms: Auto Roblox ID Field > > * Added a new form option to automatically enter the user's Roblox ID. > > Accounts: Copy Roblox ID > > * Added the option to copy a user's Roblox ID from the account card. > > Rosters: Roblox ID > > * Added a column type to display a user's Roblox ID. > > User Search Bar: Via Roblox ID > > * Added the ability to search for a user based on a Roblox ID. > > Accounts: Debug Permissions > > * Added a new "Debug Permissions" modal available on any user account card to show the finalized permissions for all of the user's combined ranks. > > Permission Expansions: Allow/Deny Preview Chips > > * Added new green and red chips on permission expansion items (ex: rank permission expansions for every single form, roster, page, etc.) to quickly reflect the number of allow or deny permissions set. > [tab] Fixed > > Webpage Permissions > > * Fixed an issue causing some webpage permissions to fail due to an incompatibility between the old system and the newer triple-status permissions. > > Mobile Community Bar Loading > > * Fixed an issue causing the community navigation bar on mobile to sometimes not load all available buttons for custom webpages. > > WYS Label Forms: Un-Bold > > * Fixed an issue preventing the removal of text styling (bold, italic, underline, or strikethrough) on the forms editor label question. > > \#31091 - Card Element Color > > * Fixed an issue preventing the ability to update the website card element's color. > > Form Stage Change - Notification Emails > > * Fixed an issue where adding a push notification action on form stages would also send the user an email. > > \#31172 - Roster Download Timeout > > * Fixed an issue causing CSV download requests for large rosters to fail due to a timeout. ### 1.1.47 09/03/2025 > [tab] New > > AI Log Search > > * Added an AI powered log search in the security center's logging panel. > > User Available Forms: UI Revamp > > * UI revamp for the user-sided available forms UI. > > Admin Available Forms: UI Revamp > > * UI revamp for viewing forms and folders in the admin panel. > > Discord Webhook UI Revamp > > * UI revamp for configuring Discord webhooks. > > ER:LC Command UI Revamp > > * UI revamp for the ER:LC command modal. > > ER:LC Mobile Improvements > > * Multiple mobile improvements for the ER:LC panel. > > Integrations Panel: Disable Card w/o Permissions > > * Disabled integration cards in the integrations panel for a better experience than a page kickback with an error popup. > > Form Submissions: Default to Last Viewed > > * Viewing the form submission board will restore your last viewed form tab. > > Actions: Component Consolidation > > * Combined automated action UIs (forms, actions, ER:LC) into a common component with a small UI update, making the way for easier UI revamps. > > ER:LC i18n > > * Added translation support to the ER:LC panel. > > Community Table Index Improvements > > * Improved community table database indices for improved speed and performance. > [tab] Fixed > > Default Forms: Stage Icons > > * Added missing stage icons to two default forms on new communities > > Forms: Dependency Issues > > * Fixed an issue with adding new select items in the form editor, also causing issues with dependencies based on the broken select options. ### 1.1.42 08/25/2025 > [tab] New > > ER:LC Whitelist Players > > * Added the ability to whitelist server access based on CMS ranks. > > ER:LC Activity Hours - Per-Team > > * Roster columns for ERLC activity time can be separated to specific teams. > > Webhook Logging: CMS Kick/Ban > > * Added new webhook logging options for kick and ban. > > Form Submissions: UI Revamp > > * Initial UI revamp for the submitted forms board. > > UI Revamp: Forms Editor > > * Initial UI revamp for the forms editor. > > User Accounts: UI Revamp > > * Initial UI revamp for the admin accounts panel on desktop. > > Rank Manager: UI Revamp > > * Initial UI revamp for the rank manager. > > Admin Side Bar: UI Tweaks > > * Additional color and sizing changes to the admin navigation sidebar. > > Desktop: Download the App Banner > > * Added a banner on desktop browsers to better promote the OSX and Windows apps. > > Form Change Log > > * Added a new log in the security center when a user changes a submitted form's status. > > Rank Change Log > > * Added a new log in the security center when a user adds or removes ranks on an account. > [tab] Fixed > > WS Optimization: Get Community > > * Fixed an issue causing certain pages to make duplicate get community requests. ### 1.1.41 08/20/2025 > [tab] New > > User Accounts: UI Revamp > > * Added an initial UI revamp to the user accounts section of the admin panel. > > Forms: Modify Ranks on Date Question Selection > > * Added the ability to add/remove ranks based on a selected date question in the form submission. Ex: LOA forms have a start and end date, the actions will automatically add and remove a LOA rank on those dates. > > Roster Styles: If Has Ranks > > * Added the ability to set a roster cell's value and styling based on them having, or not having, specific rank(s). Ex: Set "Status" column to "LOA" if the user has the LOA rank. > > Default LOA Form > > * Added a new, default LOA form for new communities. > > ER:LC Whitelist Improvements > > * Added type-to-filter on vehicle selection > * Added action to add disciplinary points > * Added action to kick user from their team > * Added action to send a CMS and push notification to specific ranks > * Small UI improvements > [tab] Fixed > > Growth: Vertical Gaps > > * Fixed an issue where some graphs in the growth center were missing a gap at the top between other graphs. > > User Account Load Optimizations > > * Initial optimizations for loading user accounts, data, etc. > > FiveM Panel: No Load w/o Servers > > * Fixed an issue where the FiveM management panel would endlessly load instead of showing the setup modal for new communities with no configured servers. ### 1.1.40 08/11/2025 > [tab] New > > Actions/Reminders > > * Added a new actions tab to configure routine actions and schedule them for repeated use. > > ER:LC Team Whitelist > > * Added functionality to whitelist ER:LC teams to specific ranks and actions to take when a violation is found. > > ER:LC Vehicle Whitelist > > * Added functionality to whitelist ER:LC vehicles to specific ranks and actions to take when a violation is found. > > ER:LC Livery Whitelist > > * Added functionality to whitelist ER:LC vehicle liveries to specific ranks and actions to take when a violation is found. > > ER:LC Activity Hours > > * Added a new roster column that automatically tracks in-game time for ER:LC players. > > ER:LC Moderation > > * Added a moderation tab for username profanity. > > Event Webhook Links & Image > > * Added image and link support to callendar event webhooks. > [tab] Fixed > > Suggest Integration Link > > * Updated the "Suggest and Integration" link to our Discord, as suggestions are no longer taken on the support portal. ### 1.1.39 08/05/2025 > [tab] New > > Rosters: Disciplinary Points > > * Added a new roster column to display a user's disciplinary points. > > Form Stages - Response Variables > > * Added form question response variables to insert submission info into custom stage actions. > > ER:LC Weather & Time Sync > > * Added an option to select a real-world location to sync in-game time and weather with. > > ER:LC User Activity Loading Animation > > * Added a loading animation to the user modal activity section. > > ER:LC Side Bar Improvements > > * Moved the command button to the sidebar and removed placeholder items. > > ER:LC Whitelist (Team & Vehicle Restrictions) - UI ONLY > > * Added a placeholder UI for the upcoming team and vehicle restrictions configurator. ### 1.1.38 07/29/2025 > [tab] New > > Form Webhooks - Hide Blank Fields/Sections > > * Added the option to hide all blank field responses from Discord form webhooks. > > Form Conditionals - Rank Based > > * Added the ability to make a form section only show for certain CMS ranks. > > Roster Columns - Filtering > > * Added the ability to filter a roster dropdown column by value. > > Form Header Expansion - Move to Single Button > > * Improved the form editor by moving the expand/collapse section to a dedicated button. > > ER:LC Disciplinary Delete > > * Added the option to delete a disciplinary log directly from the ER:LC panel. > > ER:LC Loading Improvements > > * Improved the initial ER:LC panel loading to not show the setup panel at first. > > ER:LC Players in Queue > > * Added a display to show the number of players in the connecting queue. > > ER:LC Permission Expansion > > * Expanded permissions for the ER:LC management panel. > > ER:LC Navigation > > * Added the ability to select the ER:LC panel as a navigation bar item. > [tab] Fixed > > \#30059 - Member Selectors > > * Fixed an issue with form member selector items not working. ### 1.1.37 07/22/2025 > [tab] New > > Websocket Call Optimizations > > * Reduced the number of duplicate websocket calls for a more optimized experience. > > Kick Log Improvements > > * Added a new, improved kick log in the security center to make it more clear what user made the kick action. > > ERLC - No Servers - New Server Modal > > * Improved the setup page for new ER:LC servers when no servers are configured at all. > [tab] Fixed > > Whitelist Failover - Hard Timeout > > * Fixed an issue where the in-game whitelist would not fail over to the local copy in the event of a partial CMS outage (not a full one). > > \#29547 - Conditional Progress > > * Fixed an issue with form saved progress causing conditional sections to not display. > > \#29650 - Calendar Event View > > * Fixed an issue causing calendar events to not be viewable. > > \#29713 - OSX Download > > * Fixed a crashing issue with the OSX app. > > \#29956 - Roster Pagination > > * Fixed an issue with roster pagination failing. > > ERLC Panel: Player Loading Fix > > * Fixed an issue with players loading in the ERLC panel. ### 1.1.36 07/14/2025 > [tab] New > > ERLC: Disciplinary Integration > > * Added the ability to add/remove disciplinary points to a player directly through the ER:LC panel. > > ERLC: Roblox Link > > * Added a banner to help users link their Roblox account to Sonoran for CMS ERLC integrations. > > ERLC Live Logs > > * Firing an ERLC action (command, etc.) will result in a log showing up on the panel instantly, not delayed by ERLC's rate limits and periodic refreshing. > > API: Form Submissions > > * Added a new API endpoint to paginate through submitted forms. > > Inherited Rank Tooltip > > * Improved the inherited rank badge in the rank manager along with a descriptive tooltip. > > Form Permission Editing 3-Step > > * Improved the form permission modal, now using the three step permission toggle for granted vs denied permissions. > [tab] Fixed > > SEO Embed - Sanitize HTML > > * Added HTML sanitization to remove tags showing up in social embeds when linking a CMS page. > > FiveM: OX Inventory Support > > * Fixed an issue with QB Core mode relying only on QB inventory, allowing the configuration of OX inventory. ### 1.1.35 06/30/2025 > [tab] New > > ERLC: Log Improvements > > * Clicking on the user avatar and name on a log now opens their profile > * Added pagination/lazy loading to logs when scrolling > > ERLC: Command Improvements > > * Added type-to-filter for user dropdowns > * Selected users in dropdowns now show the avatar > * Commands that take a second input box have a shortcut to execute by pressing enter > > ERLC: User Profile Improvements > > * Added open Roblox player profile button > * Added user activity (recent logs) expansion item > * Added current vehicle expansion item > > ERLC: Player Item Avatar > > * Updated the online players dashboard UI to use the player avatar item > [tab] Fixed > > HF: CAD/Radio Sync Perms > > * Fixed an issue causing CAD and Radio sync configs to fail > > HF: QB Panel Perms > > * Fixed an issue causing the QB game panel permissions to fail > > HF: Display Name Perms > > * Fixed an issue causing display name permissions to fail ### 1.1.34 06/24/2025 > [tab] New > > Permissions 3x Stage > > * Added a three-stage toggle to all permissions, allowing for the creation and use of blacklisted ranks. > > Form Stages - Multiple of Each > > * Added the ability to create multiple form stage actions of the same kind, expanding options for conditional fields. > [tab] Fixed > > \#28823 Roster Pagination > > * Fixed an issue causing the bottom table pagination to dissappear after navigating to the last roster page. > > HF: Roster Sort Column > > * Fixed an issue throwing an error when trying to sort certain roster column types. ### 1.1.33 06/12/2025 > [tab] New > > Image Hyperlinks > > * Added the ability to hyperlink a website image to an internal page, form, website link, and more > > Website Card Improvements > > * Added new styling options and improvements to the website card element buttons > > ER:LC Run Command > > * Added a run command panel to the ER:LC management panel under private testing > > Rank Selection Indicators > > * Added indicators in the rank selection for rosters to more easily customize the selections > [tab] Fixed > > \#29124 - Delete Private Comment > > * Fixed an issue where red private comments hid the red delete button ### 1.1.32 06/05/2025 > [tab] New > > Roster: Sort Order and CSV Export > > * Added the ability to click on a roster column to sort the order, and the ability to export a roster to CSV. > > Community Profile Element - Filter > > * Added a type-to-filter to find the account on the community profile website element. > > Animations - Play > > * When setting an animation on a website element, you can now visualize and replay the animation without needing to publish the page. > > Footer Branding - Margin > > * Added the Powered/Partnered by Sonoran CMS footer to the website page editor to better reflect the published result for free and partnered communities. > [tab] Fixed > > Transparent Text Highlight > > * Fixed an issue where no transparent highlight option was available in the text editor to reset the highlight after setting one. > > Google Drive Typo > > * Fixed a typo in the Google Drive migration wizard. ### 1.1.31 05/29/2025 > [tab] New > > \#28817 - Comment Delete > > * Added additional permission and the ability to delete other user's comments on form submissions. > > Game Panel: Add New Server via Drop-Down > > * Added the ability to add a new game server directly from the game server panel dropdown. > > ERLC Panel: Setup Stepper > > * Added a new setup guide to the ER:LC panel, separating that out from the FiveM panel. > > ERLC Panel: Logging > > * Added the initial base of ER:LC logging for in-game and external actions. > [tab] Fixed > > Roster Former User > > * Fixed an issue causing pending or former users to appear on rosters. > > Forms Submit Clear Save > > * Fixed an issue causing saved progress on form submissions to not reset after submitting. > > Icon Previews > > * Fixed an issue causing some icons in the icon picker to not show. > > Nav Bar Icon vs Image Size > > * Fixed an issue with custom navigation bar items to display different sizes if the user added an icon vs a custom image. ### 1.1.30 05/19/2025 > [tab] New > > ER:LC Game Panel > > * Early access release of the ER:LC game panel with bare functionality to see online players, kick, and ban. ### 1.1.29 05/15/2025 > [tab] New > > \#28444: Roster Slugs > > * Added customizable roster slugs for better URLs > > Security Center Flags Live Update > > * Dismissing or re-activating security center flags now live-updates on the admin navigation bar > [tab] Fixed > > Drive Icons > > * Minor padding fixes in drive files and folder icons > > Community Discovery Minor Improvements > > * Multiple small improvements and fixes in the community discovery panel > > TS Copy ID Disable > > * Fixed an issue causing the TS3 ID copy button in the user accounts panel to not be disabled when the user does not have a TS3 ID linked > > Server UI Modal Button Tweaks > > * Minor UI improvements in the server API configuration panel > > Pricing Page - Hidden Image > > * Fixed a hidden image resulting in large padding on the pricing page > > Global API IDs > > * Fixed issues with adding API IDs not showing properly until after a refresh > > HF: #28710 Bot Rank Expiration > > * Fixed an issue causing CMS rank expirations to not have Discord roles removed > > i18n Missing > > * Fixed a missing i18n key in the permissions tab > > Navigation Perms > > * Fixed an issue causing dropdown navigation items to not show for some public pages ### 1.1.28 05/06/2025 > [tab] Fixed > > \#28514 - Pending Forms > > * Fixed an issue causing "Anyone Can Submit" forms showing twice for pending users. > > Mobile: Rosters Search Overlap > > * Fixed an issue causing the roster search box to overlap the roster title on mobile. > > Mobile: Profile Page Improvements > > * General improvements to the community profile page on mobile. > > Mobile: Tab Permission Updates > > * Improve reconnection handling to ensure community navigation tab permissions load. > > i18n: Edit Account > > * Fixed a missing i18n label in the general account profile tab. > > Notification Center: Centering > > * Improvements to icon centering and padding in the notification center. > > Integrations: Icon Spacing > > * Improvements to icon spacing in the integrations portal. > > Discovery Text Overflow > > * Fixed a text overflow issue in the community discovery spotlight section. > > Form Selection Redirect > > * Fixed an issue causing form editor selections to navigate back without showing a permissions error. > > Disciplinary Point Duplicate Actions > > * Fixed an issue causing multiple disciplinary actions to fire at once, instead of only the threshold meeting action. ### 1.1.27 05/01/2025 > [tab] New > > Forms: Local Save Progress > > * Filling out a form saves locally to resume progress if the page is exited, reloaded, or navigated away from. > > Security Center: Mass-Dismiss > > * Added the ability to mass-select security center flags to dismiss or reactivate. > [tab] Fixed > > HF: Page Editor SQL > > * Fixed an issue causing the wrong page to load in the website page editor in rare cases. > > Form Selection Cards: Gear Menu Improvements > > * Fixed an issue with the form selection gear menu sometimes disappearing when clicking. > > \#28318 - Website Card URLs > > * Fixed an issue causing website card URLs to not properly navigate. > > Fix: Private Webpages > > * Fixed an issue causing webpages to all show as private. ### 1.1.26 04/23/2025 > [tab] New > > Disciplinary API > > * Added API endpoints to get records, get points, add records, and modify records. > > Drive: Admin Nav Bar > > * When navigating to the Drive via Admin panel, the nav bar on the left will persist. > [tab] Fixed > > JS Cache Busting > > * Improved JS file cache busting to resolve issues when updates are pushed. ### 1.1.25 04/15/2025 > [tab] New > > Webpage animations > > * Added webpage animations for page elements. > > Private Comments - UI Improvements > > * Improved the UI for private form submission comments by moving the toggle directly in the input and highlighting the background as red when in private mode. > > WYS Editor - Placeholder Text > > * Added small placeholder text in the upgraded text editor for the form submission comments. > [tab] Fixed > > \#28030 - Form Folders & Templates > > * Fixed an issue causing new form folders and templates to not appear. > > Toolbar Editor - Giant Security Flag Badge > > * Fixed an issue in the toolbar editor showing the user flag chip as giant. ### 1.1.24 04/07/2025 > [tab] New > > Form Comments - Private Messages > > * Added new per-form permissions to send private comments on submissions. > > IFrame Viewer > > * Added a new iframe website viewer component. > > Website Cards - Preview Image > > * Added preview images to the website cards after saving the page. > > Video Element - Additional Support > > * Added the ability to link TikTok videos or upload your own file to the video viewer website element. > > Form Unit Number Field Label Change > > * Updated the form "Unit Number" field label to "Primary Identifier". > [tab] Fixed > > \#27889 Roster Search > > * Fixed an issue causing the roster to refresh and show all default results when first changing the search type. > > Name Format Customization > > * Fixed missing i18n labels in the name format customization area. > > Form Submit Permissions > > * Forms set to "anyone can submit" now work for non-pending users with ranks instead of only pending users. > > Growth Description Auto-Save > > * Fixed an issue where updating the community description in the growth panel would not trigger an auto-save. > > Member Select Drop-Downs > > * Fixed an issue causing form member selector dropdowns to be empty. ### 1.1.23 03/24/2025 > [tab] New > > WYSIWYG (Quill) Editor for Form Comments + Auto-Reply > > * Added a full WYS editor to form comments and the auto-reply action > > Form Editor: Type Selection > > * Improved the form type selection settings in the editor to be more clear > > \#27655 - Get Clock Status API > > * Added an API endpoint to get a user's current clock-in status > [tab] Fixed > > \#27568 - Calendar Perms > > * Fixed an issue causing calendar permissions to not display in the rank manager > > CMS Resource Linux Detection > > * Fixed an issue causing the CMS resource to detect the platform as Linux on some versions of Windows > > Time Log Popup > > * Fixed an issue causing the time log modal to not properly display in rosters ### 1.1.22 03/18/2025 > [tab] New > > Qbox Panel > > * Added a Qbox management panel for FiveM management > > Per-Form Edit Permission > > * Added per-form edit permissions in the event that a community does not want to grant the system permission to edit all forms > > Discord Mapping Terms > > * Updated terminology in the Discord mapping configurator, along with popup help images > [tab] Fixed > > Job Sync: Framework Safety Disable > > * Added a safety to the job sync to automatically disable if framework is set to none > > \#27462 Electron Window Maximize > > * Fixed an issue causing an error popup when maximizing the CMS desktop application > > Disciplinary Point Action Labels > > * Fixed an issue causing disciplinary actions to have missing labels ### 1.1.21 03/11/2025 > [tab] New > > Form Stages - Conditional Firing > > * Added conditional options to only trigger form stage actions in certain cases > [tab] Fixed > > HF: ACE Perm API Failure > > * Fixed an issue causing the ACE perm configuration to be temporarily wiped on resource stop until the game panel was loaded > > HF: CAD Sync > > * Fixed an issue causing CAD sync to fail in certain edge cases > > Garage Script Spam > > * Reduced error spam when a server does not have a compatible garage script installed for the game panel > > HF: Section Checkbox Conditionals > > * Added a safety to ignore label fields that were marked as a required question before being changed to a label field > > Form Question Variable Select > > * Fixed an issue on form question variable select (for custom submission labels) where question options in the drop-down wouldn't update if changed > > \#27463 Dropdown Target Select > > * Fixed an issue causing the inability to select which specific form or roster a dropdown button item navigated to > > Discord Mapping: Missing CMS Logo > > * Fixed an issue causing the CMS logo to be missing in the Discord mapping configuration ### 1.1.20 02/18/2025 > [tab] New > > Nav Bar Dropdown Items: Drag-and-Drop Reorder > > * Added the ability to drag-and-drop dropdown items in the navigation bar editor to reorder them. > > Form Stage Editor Variables: Dropdown > > * Improved the variables modal for form stages to include a dropdown to select the form field (instead of manually clicking and copying a field ID). > > Form Board: Tree Width Expansion > > * Improved the width rendering in the form submission board's tree expansion. > > Backend Outage Endpoint > > * Improved internal monitoring to more quickly detect unhealthy nodes in the event of a service outage. > [tab] Fixed > > \#27249 Profile Image > > * Fixed an issue causing the root /account page to not display the proper account avatar. > > \#27277 Discord ID Profile Field > > * Fixed an issue causing the Discord ID profile field to not properly load. > > Verify Token Reauth 2x WSS > > * Improved reauthentication checks to help prevent an endless load on refreshes. > > HF: Mobile Discord Login > > * Fixed an issue causing the mobile app login with Discord to not process correctly. > > Form Submit: Prior Required Field > > * Fixed an issue preventing submisssions if a required field was changed to a label, thus no longer displaying the option to no longer be required. ### 1.1.18 02/11/2025 > [tab] New > > Form Viewer: Mobile Improvements > > * Improved form submission board UI layout for better density with the stage add and reorder buttons. > > Clockin: Live Reactivity > > * Clocking in externally via API (in-game) now live updates on your CMS screen if open. > > Available Forms: Live Permission Update > > * Adding or removing a rank from a user will now live update/reload their available forms page if viewing it. > [tab] Fixed > > Dev Mode Banner Race Condition > > * Fixed an internal display issue with the banner on the development version site > > \#27105 Delete Community > > * Fixed an issue causing the redirect after deleting a CMS community to cause an endless loading screen on the main menu. > > i18n Fix > > * Fixed a missing "Kicked Members" label in the account menu. > > Mobile App Login Redirect > > * Fixed an issue with the mobile app causing the SSO login screen to keep the app in-browser instead of reopening the CMS app. ### 1.1.17 02/05/2025 > [tab] New > > Form Submission Board: Tree View > > * Form submission board now has expandable tree nodes for form selection, allowing for better organization with folders. > > Actions: Variable Modal Component > > * Form stage and disciplinary actions now use the new variable component for easier copy/paste of dynamic variables instead of visual typing in the descriptions. > > Form SEO Metadata > > * Improved social embeds for new forms and form submission links. > > Forms: Dependency Select > > * Improved the dependency selection in the form editor to have a drop-down select for applicable form types instead of always requiring a comma separated string. > [tab] Fixed > > \#26930 Roster Rank Display Order > > * Fixed an issue causing rosters with specificly ordered ranks to load the ranks in reverse order. > > \#26903 Share Submission Link > > * Fixed an issue causing admin form submission share URLs to not automatically open the form submission. ### 1.1.16 01/29/2025 > [tab] New > > Website Element: Account Card > > * Added a new website element to display a selected user with their name, avatar, highest rank, and more. > > Form Submission: Title Customization > > * Added new submission title customizations, complete with variables, to customize how submissions show in the submitted form board. > > Form Submission Limits: Blacklisted Ranks > > * Added a new blacklisted permission that can restrict a user's ability to submit specific forms regardless of other ranks. > > Push Notification: Community Icon > > * Added custom community icon/logo support to push notifications for desktop and mobile apps. > [tab] Fixed > > \#26780 Form Editor Element Delete > > * Fixed an issue breaking the form editor when deleting the last question in a section. > > Mobile & Desktop - Freeze > > * Fixed an issue causing the mobile and desktop apps to freeze on new logins. ### 1.1.15 01/21/2025 > [tab] New > > URL Shortener Search Expansion > > * Updated the URL shortener search bar to include words/phrases from the URLs themselves and not just the description > > Disciplinary Actions: Auto-Save > > * Disciplinary panel actions now auto-save > > Account Filter: Fixes and Improvements > > * Improved labels and refresh handling in the account search filter > [tab] Fixed > > CAD Sync Change: Mass Resync > > * Fixed an issue causing the CAD permission mapping to not properly mass-resync after updating the configuration > > \#26629 Discord Roster Load > > * Fixed an issue causing Discord username fields in rosters to not properly load/display > > \#25800 - Page Load Redirect > > * Fixed an issue causing a slow loading page to redirect back if navigating to a second page while waiting for the load to finish > > HF: API Get FiveM Download > > * Added a new API endpoint to get the pre-configured FiveM download ### 1.1.14 01/14/2025 > [tab] New > > Drive Audio File Player > > * Added an in-Drive audio file player > > ACE Perm Config - CMS Backup > > * The QBCore/vMenu panel now stores the ACE permission config on the CMS side, rather than the community's server. This ensures communities deploying via GIT do not have their configuration files wiped out > > URL Shortener Metrics Small Fixes/Improvements > > * Added automatic loading when scrolling to the bottom of the URL shortener metrics tabs > * Fixed an issue causing URL shortener metrics to not update after changing the date selection > > API Critical UI Notices > > * Added new critical notice banners to display at the top of a community page for critical errors (such as a Discord bot configuration) > > Short URL Root Subdomain Load Optimization > > * Optimized the URL shortener configuration to load the short URL table faster > > goodToProcess Handling Overhaul > > * Overhauled logic for how pages reload and sign the user back in for a smoother experience > [tab] Fixed > > Available Forms Icon Fixes > > * Fixed small issues with form icons being aligned > * Added small horizontal padding to available form titles and descriptions > > Image Component - Bad Source Handling > > * Fixed an issue where uploading a corrupt image would fail to display the image and fail to allow the user to hover over, click, and update the image > > HF: Form Webhooks > > * Resolved minor issues causing some form submission webhooks to fail > > HF: Form View > > * Resolved minor issues causing some communities to see a form submission from another community > > Calendar Event Notification > > * Resolved an issue causing some communities to get a calendar event notification from another community > > FiveM Download: Remove "Dist" > > * Fixed an issue with the FiveM download where "dist" was not automatically removed from the whitelist configuration file name > > Drive Unzip Folder Handling > > * Fixed an issue causing Google Drive ZIP file extractions (when migrating) to place files in the wrong directory > > Webpage Navigation Display Issues > > * Resolved an issue causing toolbar menu options to sometimes display incorrectly on mobile vs desktop > > Form Clone Element ID > > * Fixed an issue where cloning a form element would not generate a different unique field ID, causing dependency selections to conflict ### 1.1.13 01/07/2025 > [tab] New > > Short URL: subpaths > > * Short URLs now support subpaths (ex: url.com/one/two/three) > > Form Elements: Discord ID > > * Added a new automatic Discord ID field to forms > > Logging Center Usability Improvements > > * Hid spammed internal logs used for syncs > * Added additional logs for form status changes > * Added additional logs for short URL changes > * Updated date ranges to reflect local timezone > > CAD & Radio Integration: Auto-Save only if needed > > * Improved the CAD and radio integrations to only auto-save when needed > > On-Join Actions: Auto-Save > > * On-join actions now auto-save instead of requiring a manual save button > > Roster Member Add Filter > > * On manual rosters, added a type-to-filter option to the member selection drop-down > [tab] Fixed > > Security Center: Flag Pagination > > * Fixed an issue causing only 20 security center flags to load at once > > Roster Search Overflows Title > > * Fixed an issue on mobile where the roster search bar would fall behind the roster name > > Integration Panel Hyperlinks > > * Fixed an issue with integration panel hyperlinks being hard to click > > Form Icon Duplicate Tooltip > > * Removed a duplicate tooltip on the admin form editor viewer > > HF: Form Webhooks: Checkbox Emoji > > * Updated the checkbox status emojis in Discord webhook to be more clear on the checked vs unchecked state > > HF: Form Webhooks: Number Field > > * Fixed an issue where number fields in discord webhooks for forms would display as empty > > HF: Discord Stage Change User > > * Fixed an issue causing the "stage changed by" user to be incorrect when a form stage was changed via Discord embed ### 1.1.12 12/23/2024 > [tab] New > > URL Shortener: Perm Breakout > > * Expanded URL shortener permissions to separate view, add, edit, remove, and manage domains > > URL Shortener Subdomain Root Path > > * Added support for short URLs to the root subdomain (ex: subdomain.example.com -> some url) > > URL Shortener Metrics > > * Added URL shortener metrics in the community growth panel > > Drive: Upload Images > > * Added image upload support in the Drive complete with thumbnails and a previewer > > CAD Login Add/Remove Ranks > > * Added a new `ranksWhileCadActive` config option to automatically add and remove ranks (for things like radio access) based on being in the CAD or not > [tab] Fixed > > Drive: Only Show Assets Folder in Root > > * Fixed an issue causing the community assets folder to sometimes also appear in sub-folders > > Form Icon/Image Fixes > > * Fixed an issue causing form icons to display tiny in the available forms section > * Added icon support inside of the form editor instead of only image uploads > > HF: Ranks Add Auto-Active Status > > * Fixed an issue causing automated rank changes to not update a user's account status from pending to active > > Form Name Confirmation > > * Fixed an issue causing the form name to display incorrectly in the delete confirmation popup > > Discord Webhook: Length Failure > > * Fixed an issue with general discord webhooks (not from custom actions) where fields were not being trimmed to size resulting in a failed embed > > HF: Short URL Path Conflicts > > * Fixed an issue causing short URL paths on a subdomain to conflict with the main domain > > External Nav Links Duplicate Tabs > > * Fixed an issue where external navigation links would open in two new tabs instead of one if popups were enabled > > Roster Discord Guild Selector > > * Fixed an issue in the roster editor causing the Discord guild selector to not display ### 1.1.11 12/11/2024 > [tab] New > > Rosters - Username Search > > * Added a new search bar in rosters to find a specific user by username, UID, Discord, or TS3 ID. > > Status Action: Remove Pending and Active > > * Updated the community status action item to only contain kick, ban, and archive as pending and active are automated based on whether the user has one or more ranks. > > URL Shortener: Path Subtext > > * Added full path subtext while creating a new short URL for better context. > > CAD Integration: UI Improvements > > * Improved horizontal scrolling in the CAD permission mapping integration window. > [tab] Fixed > > HF: Guild Selection > > * Fixed an issue causing the form stage execute webhook to not display all linked Discord Guilds > > HF: CAD Sync > > * Fixed an issue causing new Sonoran CAD permission sync mappings to fail > > Nav Bar > > * Fixed an issue causing new drop-down items to not appear until after a refresh > > Page Editor > > * Fixed an issue with the settings cog where the page options hint would not hide, partially covering the homepage button > * Fixed an issue with an error improperly displaying after setting a new homepage > * Fixed an issue with new sections containing a blank element that couldn't be edited > > Drive: List Images > > * Fixed an issue causing drive images to not display when in list mode > > HF: #25966 - Archived Users > > * Fixed an issue causing archived users to not show up > > HF: URL Shortener Redirect > > * Fixed an issue where adding a subdomain based URL on a protected path - would cause the protected path to also go to the shortened URL > > \#25944 - Form Limits > > * Fixed an issue with new form submissions being blocked when the limits were set to ignore > > \#25799 - Discovery Save > > * Fixed issues with the Growth tab's Discovery settings not properly auto-saving > > Footer Version > > * Fixed an issue with the footer version displaying as undefined > > Missing i18n Key > > * Fixed an issue with a missing i18n key on the user accounts unban button ### 1.1.9 11/27/2024 > [tab] New > > URL Shortener: UI and Functionality Improvements > > * Greatly improved the URL Shortener UI for more simplicity > * Updated functionality so that all Short URLs are unque to the specific subdomain > > CAD Integration: UI Update > > * Updated the CAD integration UI to match the newer style that the Radio integration has > [tab] Fixed > > \#25553 - Roster Rank Alignment > > * Fixed an issue causing cell alignment to not apply to roster rank columns > > \#25837: Short URL Save > > * Fixed an issue causing new short URLs to sometimes not generate/save > > Calendar Notification > > * Added additional logging in the event of a calendar event notification from a different community getting fired > > HF: Stage Webhook > > * Fixed an issue causing some Discord stage webhooks to not be sent if certain properties were null. > > HF: #25753 - Push Notifications > > * Fixed an issue with template strings not properly being formatted in mobile push notifications ### 1.1.8 11/18/2024 > [tab] New > > QB Job Sync - CMS Permissions > > * Overhauled the QB job sync functionality to automatically add or remove CMS ranks based on their in-game job. Ex: Only allow CAD/Radio access while in-game in an LEO job > > Auto Clock-in/out Via CAD > > * Added an auto clockin/out feature based on Sonoran CAD, for non QB/ESX severs > > Kicked/Banned UID Changes > > * Added the ability to customize a user's UID even if they're kicked or banned > > Website Element Copy/Paste > > * Added the ability to right-click and copy/paste website elements > > Profile Activity Time - Add/Edit/Remove > > * Added the ability to open a user's profile activity time block to view, add, edit, and remove time logs > > API - Roster Endpoint > > * Added an API endpoint to get roster data > [tab] Fixed > > \#25397 - Custom Domain Login Join Community > > * Fixed an issue causing custom domain logins to display the join community banner, even though the user was auto-joined > > Custom Domain Join - Link Discord Banner > > * Fixed an issue causing users newly joining a community via custom domain login to not have the Discord link banner displayed until after a refresh > > \#256623 - QB Nav Item > > * Fixed a permissions issue causing a custom toolbar link to the QB game panel to not display > > Core Download - Hash Check > > * Added additional checks to the FiveM core download to ensure all files are present > > Stage Actions - Status Breaks Rank Add > > * Fixed an issue where setting a user's status in a custom form stage action while also setting ranks would cause the ranks to be wiped > > i18n Update - Kick Sync > > * Updated the Discord kick sync description in the settings panel to better reflect the functionality ### 1.1.7 10/31/2024 > [tab] New > > Short URLs - Subdomain > > * Initial overhaul of the short URL system with the additional support of custom subdomain redirects. Ex: forms.community.com -> community.com/forms/new/123 > > Profile Field - Activity Time > > * Added a new profile field type to show server activity time > > Homepage - Radio Promo > > * Added a new homepage promo to highlight the CMS x Radio permissions management > [tab] Fixed > > \#25234 - TeamSpeak Resync > > * Adjusted TS3 sync handling in the event that a community changes their TS3 server IP address. > * Added additional handling to re-sync TS3 permissions in the user's manual re-sync tab in their community settings. > > Roster N/A Rows > > * Fixed an issue causing roster name and community ID rows to display as N/A when editing ### 1.1.6 10/16/2024 > [tab] New > > On-Join Actions > > * Added customizable on-join actions to modify a user's ranks, send an email, send a Discord DM/webhook, and more > > Live Reactivity > > * Added live updates for user permissions, toolbar items, webpage content, and account status > > Website Section Copy > > * Added the ability to copy and paste a website page section via right-click > [tab] Fixed > > \#25011 - Integration Images > > * Fixed an issue causing the desktop application's integration card images to not display > > \#24884 - Radio Integration UI > > * Fixed an issue causing the Sonoran Radio integration permission modal to display off screen in certain screen sizes > > \#25010 - CAD Integration Keys > > * Fixed an issue causing the Sonoran CAD integration community ID/key boxes to clear when initially setting values > > \#24980 - Form Limits > > * Fixed an issue causing form limits to apply incorrectly in some cases > > Backend Log Cleanup > > * Improved and cleaned up general backend logging process ### 1.1.5 10/09/2024 > [tab] New > > Discord -> CMS Name Sync > > * Added the ability to sync names from Discord to the CMS, instead of only CMS to Discord. These name syncs also apply to the Sonoran Radio integration. > > Roster - Activity Time Options > > * Added the option for roster activity time columns to be set to the current week, month, quarter, and year > > Roster Webpage Embed > > * Added the ability to embed a roster inside of a custom webpage > > Community Settings - Improvements > > * Small UI improvements to the user's community settings modal, along with a change to a "global" or system-wide re-sync instead of only Sonoran CAD > > Mobile App - Prompt to Review > > * Mobile app now prompts the user if they would like to leave a review on the app store > [tab] Fixed > > QB Inventory Bug > > * Fixed an issue where adding an item to a player's inventory wouldn't save > > Bot - Strip Unmapped > > * Removed the depreciated and no-longer needed role strip unmapped feature > > \#24954 - Webpage Font > > * Fixed an issue causing webpage font selection to not save or display > > Forms not showing on Profile View > > * Fixed an issue causing some forms to not display on the profile view that were submitted by the profile's user > > Pagination on Short URLs > > * Fixed an issue causing the URL shortnener to not paginate more than 10 items at a time. > > Notification Cleanup > > * General fixes, improvements, and cleanup for mobile push notifications > > Discord Ban - Rank Clear > > * Fixed an issue where banning a user via Discord would not clear their CMS ranks on unban. > > Roster - Discord Nickname Fetch Timeout > > * Fixed an issue with Discord nickname fetching on rosters causing timeouts and failures ### 1.1.4 10/01/2024 > [tab] New > > Temporary Bans > > * Added temporary bans to the user accounts portal > > Form Stages - Temporary Bans > > * Added temporary bans to form stage actions > > Disciplinary Points - Temporary Bans > > * Added temporary bans to disciplinary point thresholds > > Sonoran Radio Private Channel Sync > > * Added private channel permission sync to the Sonoran Radio Integration > > Sonoran Radio Name Sync > > * Added display name sync to the Sonoran Radio integration > > Sonoran Radio Talkover Override > > * Added an option to enable the talkover override permission in Sonoran Radio (not yet released) > > User Account Search Filters > > * Added search filters username, Discord, TeamSpeak, and UID in the admin accounts panel > > Name Customization Permission > > * Removed the toggle for the community-wide ability for users to update their display name and made it a separate per-user permission > > Growth Metrics Mobile Improvements > > * Added small mobile UI improvements to the metrics panel graphs > [tab] Fixed > > \#24841 - Radio Sync Toggles > > * Fixed an issue with radio sync toggles in the radio integration panel ### 1.1.2 09/06/2024 > [tab] New > > Disciplinary Action Variables > > * Added new point\_reason and discord\_ping variables for automated actions in the disciplinary panel > > Radio Integration Perm Breakout > > * Added a separate Sonoran Radio panel access permission instead of relying on the Sonoran CAD panel permission > > Radio Integration UI Improvements > > * Large improvements to the Radio integration panel's rank mapping UI > [tab] Fixed > > \#24250 Form Clone + Stage Internal Fix > > * Fixed an issue causing cloned forms to break after cloning and directly navigating to the available forms section without a refresh > * Overhauled internal logic for form stages from a previous migration > > \#24371 Form Attachments > > * Fixed an issue causing form images to not be saved in the form editor > > Fix CMS icon in Discord mapping > > * Fixed an issue causing the CMS logo to not display in the mobile and desktop applications in the Discord mapping panel ### 1.1.1 08/23/2024 > [tab] New > > Growth Panel - Custom Dashboard > > * Added a new favorites tab to the growth metrics panel, allow you to toggle, drag-and-drop, and see your favorite metrics at a glance > > Form Perm Separation > > * Separated the permissions needed to change a form stage and the ability to edit form stage actions > > Grant Ranks w/Higher Power > > * Separated the permissions needed to grant ranks on a user and grant ranks to a user that have a higher rank power than yours > > Avatar - Flag and Point Consolidation > > * For user avatars displayed in small areas, the badge for security center flags and disciplinary points has been consolidated to not cover the avatar as much > [tab] Fixed > > \#24134 - Security Flag Nav Badge > > * Fixed an issue causing the admin security center navigation button to display the full number of community flags regardless of the new preference settings > > Discord Guild Error > > * Fixed an issue causing the Discord integration panel to give an un-needed warning in the event that the bot was kicked from a linked guild > > \#24263 - Change Name Wrong Endpoint > > * Fixed an issue preventing some users from being unable to change their own community name > > \#24347 - Stage Actions - Fix Rank Modify > > * Fixed an issue causing the rank modifier action on form stage changes to not save ### 1.1.0 08/15/2024 > [tab] New > > Disciplinary Panel > > * An all new panel allowing communities to configure disciplinary points, their expiration time, and point thresholds at which automated actions will occur. > > Forms Disciplinary Point Action > > * Added a new form stage action to add or remove disciplinary points from a user. > > Forms Number Element > > * Added a new number form element which can be optionally selected on the forms disciplinary stage action to specify the number of points. > > Sonoran Radio Standalone Integration > > * Added the ability to configure a Sonoran Radio standalone community for auto-join, kick, and permission sync (requires Radio Standalone Beta v2.5.0) > > Webpage Clone > > * Added the ability to clone an existing webpage. > > Notify Swap to Progress > > * Updated several notification popups for basic actions like save confirmations to instead show the orange loading/progress bar at the top for a less-invasive experience. > > Discovery Spotlight Description > > * Updated the discovery spotlight to display the community's discovery description instead of the tagline. > [tab] Fixed > > \#23965 - Roster Date Range > > * Fixed an issue causing the roster date range selector on specific fields to not properly set. > > Drive Removal Paths > > * Finalized a perminant fix for a previous issue causing Drive files with unusual names to not be removable. ### 1.0.2 08/06/2024 > [tab] New > > Security Center - Preferences > > * Added two new customizable security center preferences (enabled by default) to hide VPN flags on non-pending users and hide alt account flags on accounts not yet in the community > > Form Folders - Icon/Image > > * Added the ability to customize an icon or image on form folders > > Form Types - Consolidation > > * Consolidated all existing form types to the new member application (allows pending users to submit) and general form types > > Manual Roster - New Row Modal UI Improvements > > * Improved the popup modal to configure a new row on a manual roster > > Forms Auto-Reply Avatar > > * When a form stage adds an automatic reply, the avatar will be the CMS logo or the community logo with [branding removal](/cms/pricing/pricing-faq/branding-removal) > > Forms Editor - Improvements > > * Toggling the dependency on a section in the form editor will no longer cause it to also collapse/expand > * Removed the dependency toggle if the section is the highest in order > > Drive UI Improvements > > * Added icons on the triple dot menu for existing items > * Moved and adjusted the import from Google Drive button > > User Permissions - Translations > > * Added missing translation keys for user permission title and descriptions > [tab] Fixed > > New Webpage Name > > * Fixed an issue where setting the webpage name on a brand new webpage would result in both duplication and an error > > Account UID - Cutoff > > * Improved UID cutoff handling in the user accounts panel for users with a long UID value > > \#23889 - Drive Issues > > * Fixed an issue causing file uploads to not appear until after a refresh ### 1.0.1 07/26/2024 > [tab] New > > Discovery - AI Approval > > * Added a new AI based approval system to approve communities for the discovery page > > Drive - Increase Storage Purchase > > * Added a new subscription option/addon to purchase additional Drive storage space > > Join Community - UI Refresh > > * Updated and improved the UI on the community selection screen when searching for a community to join > [tab] Fixed > > \#23476 - Allow Replies > > * Fixed an issue allowing submitters to still comment on form submissions after replies were locked > > Growth - Mobile Tab Improvements > > * Improved the growth panel metric tabs on mobile to have consistent margins and prevent scrolling from changing tabs > > \#23824 - Forum Post Overflow > > * Fixed an issue causing long forum posts to overflow the page > > \#23834 - Delete Assets > > * Fixed an issue causing the inability to delete drive files with unconventional names ### 1.0.0 (Full Release) 07/17/2024 > [tab] New > > Translation Overhaul > > * The completion of the full translation overhaul, allowing communities to fully translate the CMS into any language > > Forms - Apply Action to Selected User > > * Form stage actions can now be applied to user(s) on a member-select field instead of only the form submitter > > Form Submission Limits - UI Improvements > > * Overhauled the form submissions limits UI > > Rosters - Primary vs Secondary > > * Removed all references of the old primary and secondary roster rows > > Community Discovery > > * Improved loading with "skeleton" animation placeholders for a less jarring experience > [tab] Fixed > > Logged Out - Forums Loading > > * Fixed an issue preventing forums from fully loading while the user is logged out > > Logged Out - Profile Loading > > * Fixed an issue preventing user profile pages from fully loading while the user is logged out > > Roster Editor > > * Fixed a small UI issue displaying an unused grey bar at the bottom of certain column type editors > > Spotlight - Fastest Growing > > * Fixed an issue causing some communities outside of the 50-250 member range to still be eligible for the fastest growing spotlight category ### 0.6.4 (Beta) 07/03/2024 > [tab] New > > UID Data Type Restriction > > * Increased the numerical size of member UIDs to allow for Roblox identifiers > > Discord Mapping - Updates > > * Added the ability to update existing Discord mappings of any type > > Roster Permissions - Consolidate > > * Removed the separate roster add/edit/remove permissions for primary and secondary, and merged into a single permission each > > URL Shortner IPs and Ports > > * Added the ability to redirect a short URL to an IP address and the ability to add a port number > > Webhook Attachment URLs > > * Added a hyperlinked content section to all webhooks for any attachment fields in a form > > Forms - Section Drag-and-Drop > > * Improved the forms editor UI to collapse sections when clicking on the header, and drag-and-drop capability to each header > [tab] Fixed > > Notification Cross-Community > > * Improved handling to resolve edge cases causing notifications to go to additional users outside of the intended community > > Roster Loading > > * Improved handling to resolve edge cases causing roster pagination (changing pages) to load a different community's roster > > \#23175 - Forum Bullet Sanitization > > * Improved sanitization and UI rendering to ensure forum posts and replies are the same as the post and reply editor ### 0.6.3 (Beta) 06/26/2024 > [tab] New > > Vanity & Custom Domain - Auto Join on Login > > * Users now automatically join your CMS when they login on your custom domain or vanity URL > > Discovery Panel - UI Updates > > * Updated the UI for community discovery configuration in the admin growth panel > > Discord Mapping - UI Improvements > > * Overhauled this discord mapping UI to reflect more of an if/then style for more clarity > [tab] Fixed > > \#23042 - Delete Manual Roster Rows > > * Re-added the ability to delete rows in custom rosters via right-click > > Webhooks - Character Limits > > * Added handling to ensure webhooks don't fail due to going over the text length limit > > \#22911 - Typo > > * Fixed small typos > > Mobile - View Submissions > > * Fixed an issue on mobile causing the submission type tabs to be oversized ### 0.6.2 (Beta) 06/20/2024 > [tab] New > > Navbar - Dropdown Icons > > * Added customizable dropdown item icons/images > > Custom Domain - Login Preservation > > * Added new handling to redirect and preserve a community's custom domain when a user logs in via Discord or Apple > > Main Menu - Spotlight > > * Added spotlight communities to the main community selection menu > > Main Menu - UI Refresh > > * Refreshed and improved the community selection menu > > Homepage - URL Shortener Promo > > * Added a promotional slide for the URL shortener to the homepage > > Discovery Page - Metrics Tracking > > * Added new metrics to see community views and clicks from the discovery page > > Improved Spotlight Selection > > * Limited the fastest growing communities spotlight category (by percentage) to communities between 50 and 250 members > > Form Submission Viewer - Search and Scroll > > * Added a search bar to filer form names in the submission viewer > * Added vertical scroll support for desktop in the submission viewer for communities with large amount of forms > [tab] Changed > > Discovery Settings > > * Community discovery settings have been migrated to the growth panel's discovery section > [tab] Fixed > > Website Cards - Image Tweaks > > * Fixed an issue where setting an image instead of an icon on a website card element would stretch the entire image across the card > > Available Page Cards - Add Button Mobile > > * Fixed a mobile sizing issue with the website overview new page button > > Form Submission Loading > > * Fixed a bug causing submissions to not load in rare cases > > Roster Loading > > * Fixed a big causing rosters to not load in rare cases ### 0.6.1 (Beta) 06/12/2024 > [tab] New > > Discovery Panel > > * Added the start of the redesigned community discovery panel, complete with spotlight and featured communities. Spotlight communities will soon be featured in the main menu of the CAD, CMS, and radio portals. > > Enable/Disable Submissions > > * Individual forms can now be locked or unlocked to easily open and close applications > > Limits Panel > > * Revamped the UI on the limits panel, fixed multiple issues, and added the new feature promos for the URL shortener and metrics panel > > Metrics - Tooltips > > * Added tooltips to every metric in the growth panel better explaining what is being visualized > > Discord Integration - Optimization > > * Internal UI component optimization with the Discord webhook config panel > [tab] Fixed > > Security Flags - Mobile > > * Fixed an issue causing the flag number to not show on the admin navigation bar in mobile > > Metrics - Negative > > * Changed the lost members stat to red if an increase in value and green if a decrease in value > > \#22815 - Roster Editor > > * Fixed an issue in live-editing rosters where using the date picker on the date column would fail to auto-save > > \#22815 - Form Duplication > > * Fixed an issue causing form submissions to appear duplicated on the user profile > > \#22927 - Metric Graphs > > * Fixed an issue causing metric graphs in the growth panel to only visualize up to the number one each day > > Forms > > * Fixed a logic issue causing per-section submissions to be disabled if the conditional values were greater than one > * Disabled the required toggle for label type questions ### 0.6.0 (Beta) 06/05/2024 > [tab] New > > Growth Panel - Additional Metrics > > * Added additional community metrics for every custom form and webpage. > > URL Shortener > > * Added an all-new URL shortener, allowing communities to create URL redirects with their custom domain or vanity URL. > > \#22435 - Image Aspect Ratio > > * Added a way to unlock the aspect ratio on website images, allowing the user to stretch images. > > Discord Mapping - Dependency > > * Added a new Discord mapping type "dependency" to grant a more "global" Discord role if the user has one of the listed CMS ranks.\ > Ex: The Discord "Staff" role is dependent on the CMS `Moderator`, `Admin`, or `Owner` ranks. If the user has any of those, the Discord `Staff` role will be applied. Granting the `Staff` Discord role will not grant any other CMS ranks or have any further impact. > > Homepage - Security Center Promo > > * Updated the CMS homepage with additional feature promos. > [tab] Fixed > > Account Username Ellipsis > > * Improved account username overflow handling in the user accounts panel. ### 0.5.93 (Beta) 05/30/2024 > [tab] New > > Growth Panel > > * Added the initial start to the admin growth panel, offering community metrics and performance graphs. > > CAD Integration - Permission > > * Added a separate permission to access the CAD integration panel. > > Rosters - Manual Override > > * Added a way to manually set roster cell values on items that rely on conditional formatting. Ex: Setting a staff member's status column to Active manually, even if conditional formatting sets it based on an activity hours column. > > Security Center - Log Type Filter > > * Added a type to filter system to the security center log types search. > > User Profile - Third Party Icon > > * Added a third party icon to user profiles in their "submission" columns to show what forms they have submitted but on someone else. > > User Profile - Submission Status > > * Updated the submission status column on the user profile to show the custom stage/status color and icon. > > User Profile - Account Buttons > > * Updated the user profile page to use three new improved, icon-based buttons for their Sonoran Account, Community Settings, and account deletion. > > Forms - UI Improvements > > * Updated the forms editor UI to allow section up/down reordering. > * Updated the new form submission UI to navigate the user through each section individually. > > Security Center - Flag Notes > > * Added a notes system in the security center for account flags, allowing historic informational/context messages to be saved. > > User Profile - URL Improvements > > * User profiles are now formatted as community.com/u/id with the ID being the user's numerical unique ID. > [tab] Fixed > > Bot - Form Status Change > > * Removed an error message when updating a CMS form stage via Discord embed. > > Desktop Apps > > * Fixed an issue with local storage and security center device IDs preventing the desktop apps from properly launching. > > Mobile Apps > > * Fixed an issue with security center device IDs preventing the mobile apps from properly launching. ### 0.5.92 (Beta) 05/21/2024 > [tab] New > > Security Center - Reactivate Flag > > * Added a flag reactivation event if a (alt) user that was not in your community had their flag dismissed, it will re-activate when they later join the community. > > Security Center - In-Game Identifiers > > * Added new alt account detection methods for in-game identifiers like CFX license, Xbox live, Steam, hardware identifiers, etc. > > Security Center - VPN Detection Flag > > * Added a new flag type to detect users logging in with a VPN running, potentially trying to evade an IP ban. > [tab] Fixed > > Backend - Startup Without Logging DB > > * Fixed an issue preventing the CMS backend from starting if there was a logging database outage. > > \#22436 - Drive Permissions > > * Fixed an issue with users getting an error when trying to access authorized documents but without the modify all documents permission. > * Fixed an issue with users who do not have the modify all documents permission being unable to edit documents on a rank-specific file. > > HF: Logging DB History Clear > > * Fixed an issue with system logs being stored longer than 30 days. > > \#22434 - Image Popup Size Constraints > > * Fixed an issue where the image displays in the website gallery and image editor popups were too large. > > Forms Panel - CSS Tweaks > > * Fixed minor style inconsistencies on the admin forms panel. > > \#22453 - Roster Editor Widths > > * Added handling to set a roster column's minimum width when editing it. > > \#22450 - Discord Webhook Action > > * Fixed an issue where Discord webhooks with an invalid author URL would cause a failure. > > \#22452 - Calendar Flag Redirect > > * Fixed an issue where clicking on a user's avatar in the calendar event menu wouldn't navigate to their community profile. ### 0.5.91 (Beta) 05/15/2024 > [tab] New > > Forms - Third Party Sub. Permission > > * Added a new permission to restrict which users can submit specific forms as a third party > > Forms - Audio Upload > > * Added a new form element allowing users to record and upload audio submissions > > Forms - Checkbox Section Dependency > > * Form sections can now have a dependency based on checkbox select values > > Account Avatar - View Profile > > * Clicking on a user's account avatar will now automatically redirect to their community profile > > Discord Role Import - Filter > > * Added a filter search box in the rank manager when importing existing Discord roles > > Photo Gallery - Image Uploader > > * Updated the image upload component in the website builder's photo gallery element > [tab] Fixed > > \#22313 - Discord Roster Bug > > * Fixed an issue causing rosters to not load if they contained a single Discord username column, and no other Discord type columns > > \#22312 - Roster Row Editor > > * Fixed an issue where Discord and TeamSpeak type roster columns would appear to be editable when selecting the row in the roster viewer > > \#22203 - Calendar Event Image > > * Fixed an issue causing the calendar event images to not be properly set or edited > > (HF) Roster Formatting - Hours over 23 > > * Fixed an issue causing conditional formatting to break on a roster when relying on a time log or activity hours column that had 24 or more total hours > > (HF) Kick and Ban - Remove TS Ranks > > * Fixed a vulnerability where kicking or banning a CMS user would not also remove their mapped TeamSpeak ranks. > > (HF) CMS Kick - Remove Discord Roles > > * Fixed a vulnerability where kicking a CMS user would not remove their mapped Discord roles. ### 0.5.90 (Beta) 05/08/2024 > [tab] New > > [Security Center - Account Flags](/cms/tutorials/administrative/security-center/account-flags) > > * Added the base release of the new account flags system for alt account detection. > > Rosters - Toolbox Consolidation > > * Migrated the side toolbox elements for the roster editor into groups to better consolidate and save space. > > Website Builder - Toolbox Consolidation > > * Migrated the side toolbox elements for the website builder into groups to better consolidate and save space. > > Website Pages - Cards > > * Updated the available website pages UI to reflect a similar "card" style like rosters and forms have. > > API - Teamspeak ID > > * Added `teamspeakId` property to both `get_com_account` and `get_account` endpoints > [tab] Fixed > > \#22294 - Drive Duplication > > * Fixed an issue causing Drive documents to show as duplicated. > > TS Link/Unlink - Wipe Other Existing Maps > > * Patched a vulnerability and added handling to remove all existing/mapped TeamSpeak roles from a user when they unlink their TeamSpeak account, or when a second account links the same TeamSpeak account (resulting in the link being removed from the first account). > > Discord Link/Unlink - Wipe Other Existing Maps > > * Patched a vulnerability and added handling to remove all existing/mapped Discord roles from a user when they unlink their Discord account, or when a second account links the same Discord account (resulting in the link being removed from the first account). ### 0.5.89 (Beta) 04/30/2024 > [tab] New > > Rosters - Edit Row UI > > * Removed the popup cell/row editor in the roster view and added in-line auto-save editing. > > Image Uploads - Drive Storage > > * Removed image and file uploading limits throughout the CMS and added this storage to the community Drive. The free plan has been increased from 10MB to 100MB. > > Security Center > > * Added the start of new internal logging and tracking for the security center, with visible functionalities coming soon... > > Logging Center > > * Automatically removed logs older than 30 days. > [tab] Fixed > > TeamSpeak Sync > > * Fixed issue causing the TeamSpeak sync to not fully remove server groups in some cases. > > Nav Bar Dropdown Display > > * Fixed a permissions issue causing some dropdown items to not properly display, or display when the user didn't have navigation permissions. > > \#21526 - Photo Gallery Fixes > > * Resolved multiple bugs with the website builder's photo gallery element > > \#21942 - New Form Stages > > * Fixed an issue causing new forms to not automatically come with the three default stage options. > > \#22005 - Dropdown Item Delete > > * Fixed an issue with the nav bar editor's dropdown items not containing a delete button. > > \#21099 - Form Stage Actions > > * Fixed an issue with older form stage actions being unable to open/expand to configure. > > TS Bad Credential Cooldown > > * Added a cooldown for bad TeamSpeak credentials to prevent requests from being blocked. > > Missing Page Loading > > * Fixed an issue where pages that no longer existed in the CMS would cause a long load an an error. Now, it simply kicks the user back to the previous page. > > \#21502 - Forms Auto Reply > > * Fixed an issue where form stage auto replies would not show in the form submission viewer until a refresh after triggering a stage change. ### v0.5.88 (Beta) 04/17/2024 > [tab] New > > Activity Tracker > > * Easily track member activity in your game server with an automated stopwatch system starting on server join and stopping on server exit > > Activity Roster Column > > * View member activity time in the last X days with the activity roster column > > Last Active Roster Column > > * See when your members were last in-game with the last active roster column > > Discord Panel Settings > > * Adjust all of Sonoran Bot's settings via the CMS UI instead of Discord commands > > Website Builder - Forums Category UI > > * Overhauled the forums category UI dialog in the website editor > > User Profile - Form Submission UI > > * Overhauled the forms submission UI in the user profile page > > Website Builder - Favicon > > * Paid communities now include a custom favicon on CMS website tabs utilizing their community icon > [tab] Changed > > Roster Status Column > > * Removed the "status" type roster column and migrated all existing instances to a standard select/dropdown element. Conditional formatting has been automatically added to migrate the status colors. > > New Communities - Name Format > > * Adjusted the default name format for new communities from \{name} | \{identifier} to \{uniqueUd} | \{name} > [tab] Fixed > > \#20752 - TeamSpeak 3 Permissions > > * Fixed an issue causing TeamSpeak rank sync to override previously added roles when syncing > > \#21695 - Forum Webhooks > > * Fixed an issue causing forums webhooks from being configured and sent properly ### v0.5.87 (Beta) 04/09/2024 > [tab] New > > Security Center - Logging > > * Added a new logging section in the security center, allowing user actions to be searched > > Forms - Auto Member Unique ID > > * Added a new forms element type to automatically fill a user's unique ID > > Bot - Improved Permission Errors > > * Improved permission errors on Sonoran Bot to be more clear > > Bot - Name Sync on Join > > * Added handling to process a name sync when a new user joins a guild > [tab] Fixed > > \#21372 - Nav Bar Permissions > > * Fixed an issue causing navigation bar items to display even if the user had no page permissions for the item > > Community Discord Re-sync > > * Fixed an issue causing performance issues when larger communities did a full Discord resymc > > \#21351 - QB No Servers > > * Fixed an issue where a community having no servers setup in the API panel would cause the wrong error message to be displayed > > \#21392 - Forum Loading + Permissions > > * Fixed an issue with forum posts being visible when private and an issue with forums loading without permissions causing a black screen > > \#21536 - Roster Manual Row Fixes > > * Multiple fixes added for manually added roster rows > > \#21425 - Form Notifications > > * Fixed an issue where certain notification links wouldn't open the specific form if you were already on the forms page > > \#21537 - Rosters Date Field YY > > * Fixed an issue with date formatting in rosters > > \#21403 - Rank Manager Fixes > > * Fixed several minor issues in the rank manager > > \#21614 - Web Builder - Background Change > > * Fixed an issue with being unable to set the webpage background back to non once it was set to image or color > > \#21528 - Form Specific Webhooks > > * Fixed an issue with custom form webhooks not working > > \#21518 - Form Stage Change Webhook > > * Fixed an issue with the interactive form stage change embed not working > > \#21490 - Time Log Safety Check > > * Added a safety check to ensure users do not submit forms with negative timesheet values > > \#21390 - Remove "Custom Pages" option > > * Removed the un-used "Custom Pages" option for nav bar items > > 87 - Forums Sub-Category UI > > * Fixed issues with editing and creating forum sub-categories > > \#21768 - Page Backgrounds > > * Fixed an issue with uploading images in the website builder ### v0.5.86 (Beta) 03/26/2024 > [tab] New > > Forms - DM Stage Action > > * Added a new forms stage action to DM the submitter on Discord > > Discord Webhooks - Bot Handling > > * Overhauled how Discord webhooks are stored and processed, with all new webhook configurations being handled by bot posted embeds. > > Forms - Stage Discord Ping > > * Added the option in forms stages to ping the submitter in Discord. > > Forms - Stage Webhooks > > * Updated the webhook selector in the forms stages to be channel based instead of raw webhook URLs. > > \#21213 - Notification Text View > > * Added an icon to view the full notification text in the notification center if the text was cut off. > [tab] Fixed > > \#21103 Discord Mapping Mobile UI > > * Fixed an issue causing Discord mappings on the mobile UI to not properly display. > > \#21205 - Forms Auto Reply > > * Fixed an issue causing forms auto reply messages to not hold the same format that they have in the stage editor. > > \#21206 - Notification Events > > * Fixed an issue where notifications, specifically in form stage updates, wouldn't appear in the user's notification center until a refresh. > > \#21276 - Form Delete > > * Fixed an issue preventing a user with permissions to delete their form submission from the available applications panel. > > \#21275 - QB Character Link > > * Fixed an issue with QB character links. > > Sonoran Bot - Single Guild Removal > > * Fixed an issue with guild removal. ### v0.5.85 (Beta) 03/20/2024 > [tab] New > > Forums - UI Improvements > > * Improved UI design for creating topics and posts, private topic rank selection, and an all-new image uploader with drop support. > > Forums - Website Section Handling > > * Migrated new forums elements to a dedicated "section" in the website builder. This ensures forums elements can expand dynamically and push content down instead of overlapping or scrolling. > > Forms - File Against User > > * Forms can now be submitted on a user via third party for cases like ban requests or disciplinary action. These submissions then appear on the user's profile. > [tab] Fixed > > \#21106 - QB Panel Vehicles > > * Fixed an issue in the QB panel preventing the vehicle information dialog from showing. > > \#21165 - Desktop Close/Open Error > > * Fixed an issue with an error pop-up when opening the CMS desktop app. Additionally, fixed a performance issue spawning duplicate CMS processes in the background and added a new tray icon for Windows. > > \#20876 - Form Submission from Profile > > * Fixed an issue where submitting a form from a user's profile would cause the same form type to always display. > > \#21058 - Drive Sensitivity Save > > * Fixed an issue causing the drive sensitivity toggle to not save. > > \#20872 - QB Allow/Deny > > * Fixed an issue causing the QB Core whitelist allow/deny lists from mirroring the same selection. > > Discord Role Import > > * Fixed an issue causing Discord role imports on the rank manager to load in the order of selection instead of the order in the selection table. > > \#21195 - Deleted Ranks > > * Fixed an issue causing rank deletions to still show on user profiles as an "Unknown Rank" ### v0.5.84 (Beta) 03/12/2024 > [tab] New > > Forums - UI Improvements > > * Initial UI improvements for forums, including proper breadcrumb navigation back to the custom webpage, sub-category enforcement, and more. > > Rosters - New Column Types > > * Added Discord nickname, Discord ID, and TeamSpeak ID columns. > > Discord Integration - Loading Animations > > * Added new loading animations with live descriptions for the Discord panel. This improves user experience and understanding for larger Discord servers with multiple hundred channels and roles. > > Form Stage Variables > > * Added a `user_submission_link` (URL for the user that submitted the form to view) and `submission_link` variable (URL for an admin to view the submitted form) in replacement of the older `form_link` variable. > [tab] Changed > > Community Customization - On-Join Rank Selector > > * Updated the on-join rank selector component. > [tab] Fixed > > \#20951 - Community ID Change > > * Fixed an issue preventing community IDs from being changeable. > > \#20898 - Menu Panel Data Requests > > * Fixed an issue causing the vMenu panel from requesting QB specific data, resulting in console errors. > > Discord Guild Assignment > > * Fixed an issue with webhook configurations causing all roles and channels as belonging to the most recently linked guild. > > Limits - CSS Tweaks > > * Fixed minor placement issues with the community limits panel, and removed the upgrade button for communities already on pro. > > QB Character - Metadata > > * Fixed an issue causing character metadata in the QB core panel from displaying. > > \#21180 - Notification Typo > > * Corrected a small typo in the notifications center. ### v0.5.83 (Beta) 3/04/2024 > [tab] New > > Rosters - Conditional Formatting on Other Cells > > * Added the ability to conditionally format both styles and values on a roster cell/column based on the value of another column. > > Rank Manager - Search > > * Added the ability to search and filter permissions in the rank manager for an easier configuration experience. > > Auto Clock-In ESX > > * Added ESX job support to the in-game auto clock-in system. > > Forms - Submission Button > > * Added a "view submissions" button in the available forms section for users that have permissions. This negates the need for the user to have access to the admin forms editor panel just to see the navigation button. > > \#20905 - View Profile in Grid Mode > > * Added the ability to right-click on a user account card to access their profile, mimicking function of the user accounts panel in list mode. > [tab] Fixed > > \#20795 - Forms Reply Data > > * Fixed an issue causing forum threads to show some of the creator's info on replies. > > \#20791 - Multi-Account Change Webhook > > * Fixed an issue with webhooks not firing on multi/mass-account changes in the user panel. > > \#20798 - User Kick > > * Fixed an issue causing user kicks to seemingly do nothing > > \#20812 - API Unique ID > > * Fixed an issue causing the user account unique ID to not be returned in the GET\_COM\_ACCOUNT endpoint. > > *Additional bugs have been resolved via live hot-fix and are not listed with this module.* ### v0.5.82 (Beta) 2/27/2024 > [tab] New > > Community Account ID - Modify > > * Community administrators can now manually customize a member's UID in the user accounts tab. > > \#20479 - Clear All Notifications > > * Users can now clear all notifications on their CMS at once. > > Community Customization - UI Improvements > > * The community customization panel has been overhauled and simplified for a better user interface experience. > > Limits Panel - UI Improvements > > * The community limits panel has been updated for an improved user interface. > > \#20746 - Form Question Descriptions > > * Form questions can now have subtext added below the element type. > > \#20757 - Form Submission Removal > > * Added new delete buttons on the submission card and submission viewer to remove form submissions instead of having to right-click. > > \#20766 - Form Stage Email Branding > > * Updated the custom form stage emails to include custom community branding in the subject line and included email logo. > > \#20767 - Community Member UID Column > > * Added the community member UID column to the list view in the user accounts panel. > > \#20745 - Stage Customization in Submitter UI > > * Added proper stage customization display (icon and color) to the stage listed on the submitter UI section. > > \#20762 - Direct Link Stage Response > > * Added a new \{form\_link} variable in custom form stages to send a direct link to the submitted form. > > Custom Emails - Sanitization > > * Added additional HTML and script sanitization on custom stage action emails. > > \#20754 - Event Redesigned > > * Redesigned the UI on the community event viewer and migrated to a dialog popup instead of a full page. > > New Form Scroll Height > > * Improved the form height scroll calculation for new form submissions, maximizing the user's screen space. > > Forms Label - New WYS Editor > > * Label elements on the form editor now include the updated WYS editor for better control. > > Website Editor - Width Preview > > * Improved the width handling on the website editor to show the true width of the page breakpoint being edited. Also added new ctrl + scroll handling to quickly zoom in and out of the editor preview. > > API Endpoints - User Variables > > * Added the following consistent user variable options: > * `accId` > * `apiId` > * `uniqueId` > * `discord` > * `username` > * To the following endpoints: > * `GET_COM_ACCOUNT` > * `GET_ACCOUNT_RANKS` > * `SET_ACCOUNT_RANKS` > * `CLOCK_IN_OUT` > * `KICK_ACCOUNT` > * `BAN_ACCOUNT` > * `EDIT_ACC_PROFLIE_FIELDS` > * `VERIFY_WHITELIST` > * `RSVP` > [tab] Fixed > > \#20744 - External URLs > > * Fixed an issue causing external URLs in the navbar to not properly open. > > \#20749 - Roster Hours > > * Fixed an issue with roster time hours showing as invalid. > * Fixed an issue with manually added roster rows not displaying on initial save. > > \#20748 - Roster Ranks > > * Fixed an issue causing rosters with specific rank selections to load in reverse order. > > \#20742 - Clock-In Time > > * Fixed an issue causing the total time for click-in import not displaying the amount. > > \#20730 - Discord Webhook Selector > > * Fixed an issue causing the Discord webhook channel selector to display a webhook URL instead of the selected channel name. > > \#20692 - Advertise Encoding > > * Fixed an issue causing image URLs to not be fully encoded for special characters in the Sonoran Discord's #advertise-here channel > > \#20756 - Calendar Perm Checks > > * Fixed an issue allowing users without the create event permission to still create events. > > \#20761 - Form Action Template String > > * Fixed an issue causing \{form\_name} and \{stage\_name} variables from not properly displaying in custom stage action text. > > Department Name Ellipsis > > * Fixed an issue causing departments names in the rank manager from getting cut off instead of showing an ellipsis. > > Page Templates - Text Format Update > > * Updated the default community pages to have the newly formatted text markup for the improved WYS editor. > > \#20863 - Navbar Button Editor > > * Fixed multiple issues with the navbar button and dropdown editor, added additional style handling to prevent color clashes. > > \#20840 - Initial Discord Sync > > * Fixed an issue causing users already in a CMS community that newly linked their Discord account to not receive associated CMS ranks from their existing Discord roles. > > *More than several additional bugs have been resolved via live hot-fix and are not listed with this module.* ### v0.5.81 (Beta) 2/19/2024 > [tab] New > > **Rank Editor**\ > \&#xNAN;*Discord Role Import*\ > Creating departments and ranks within the editor is now much easier, you can now import any role from a linked guild directly into your community. It'll import name, color, and icon automatically, just select which roles you want imported and moments later they'll be created within your community. > > **API Endpoint**\ > \&#xNAN;*Get Accounts*\ > Fetch all accounts within your community, with filters and paginated. This will return all basic information for returned members. > > **WYSIWYG Text Editor**\ > The newly added WYSIWYG editor has been reworked to utilize a more feature rich editor, allowing for more control and customization. > [tab] Fixed > > **Accounts - Multi-Actions** > > * Changing or setting ranks via multi-actions will now properly process and apply > > **Community Profile** > > * Viewing your own profile and updating your community name will now update the UI upon successful change > > **Website Builder** > > * Buttons that target to fill out a form will now properly navigate > > **Form Management** > > * While viewing a form submission, you can now properly change stages via the dropdown button / options > > **Rosters** > > * Custom fonts and alignment will now properly display on the viewer side ### v0.5.80 (Beta) 2/14/2024 > [tab] New > > **Search Engine Optimization**\ > Custom pages now have customizable SEO information, you can now set the image and description for the page SEO. This type of information will show within the link embeds in applications such as Discord. Additionally, forms will now have SEO information regarding the form name, description and image. > > **Form Management** - **Stages**\ > Stages have been completely reworked to be per form rather than globally created individually, primarily for future easier development.\ > As well, drag and drop support was added for rearranging the order of stages. > > **New Common UI**\ > We've created a unified common WYSIWYG text editor to be used throughout the application, allowing the same control through. This is seen within the Website Builder, Forums, etc. > [tab] Fixed > > **Permissions** > > * Proper permission evaluation was corrected and validated for viewing any page within the Administrative Panel ### v0.5.79 (Beta) 2/6/2024 > [tab] New > > **Discord Integration** > > We've completely reworked how Discord guild data is fetched for a more efficient and effective method. Configuring your Discord Integration should be populating much faster as data is now concurrently fetched by key, reducing the overall data that is transferred. > > Additionally, we've made the following changes: > > * Remove Guilds\ > \&#xNAN;*Remove linked guilds directly within the Discord Integration panel, allowing you to unlink guilds you no longer wish to be included in sync events* > * Join Rank Check\ > \&#xNAN;*New members that join your CMS community when a guild is linked will check whether they have any roles in guild(s) for mapped ranks that they should have, automatically applying the ranks on join* > > **Website Builder - MAJOR OVERHAUL** > > The website builder has seen a massive overhaul, now with the ability for more customization and control over your page designs. Create stunning pages with our new placement system, easily drag and drop elements wherever you want on the page, no longer limited by just column sizing. > > As well, when creating new pages you're now able to create from templates or just a blank canvas. > > **Navigation Bar** > > Bar items now have the ability to have more styles & customization applied to the item. Choose from several different styling options to fit your design needs. As well, the individual item editor was reworked for much better UI/UX. > > **Community Settings** > > A new data template key was added to the Community Naming format, `{uniqueId}` will now provide their automatically generated unique integer ID. > > **Admin Panel** > > `Drive` access button was added to the Administrative Panel side navigation, no longer requiring a navigation item to navigate through > [tab] Fixed > > **Website Builder** > > * Page background image would not save, it would default back to the color option > * Image uploader options for page background would often display under the image > > **User Accounts** > > * Rank icon / name badge will now show properly instead of empty space > * Accounts should no longer have Unknown Rank in their rank list, audit functions were added > > **Discord Integration - Role Mapping** > > * Removing / adding a role directly within the role list wouldn't actually save on the backend > > **Rank Manager** > > * Roster & form ALL permission toggles will now properly add / remove all ### v0.5.77 (Beta) 1/31/2024 > [tab] New > > **Form Management** > > Managing forms will now properly paginate based on what's in your current view, the further you scroll down the more submitted forms will populate. > > **Game Panel** > > Game state fetching was optimized to be more efficient and only needed when requested. Game state data will now manually be fetched from CMS -> Game Server instead of a the Game Server sending a periodic (every 1 minute) update to the CMS to store even if not currently used.\ > Data will now be more up-to-date and fluid throughout, as well these optimizations *should* alleviate some of the *hitch* warnings seen. > [tab] Changed > > **Discord Integration** > > Mobile optimizations have been made to make it easier and more fluid while configuring Discord integration capabilities. > > **User Accounts** > > Multi-select and filtering have seen several improvements for a better UI/UX > [tab] Fixed > > **Rosters** > > * Column colors are now consistent > > **User Accounts** > > * Join date will now properly show instead of a *random* date/time > > **Forms** > > * Conditional sections will now properly be evaluated and populated > > **iOS** > > * An issue regarding a black/blank screen was addressed, the fix is not guaranteed ### v0.5.76 (Beta) 1/15/2024 > [tab] New > > **iOS Notch Support** > > The iOS finally now has support for the *notch* that was introduced with iPhone X+, there is now proper spacing for elements that would originally be within the notch area. > > **Rosters** > > *Discord Guild Nickname Column*\ > New column type was added allowing for Discord guild nicknames to be referenced within rosters, this will pull the nickname for the user if they're in the specified guild for the column. Each column can reference a different linked Discord guild to be the source of the nicknames. > > *Timeclock Column*\ > Several new improvements and additions were introduced. Now allowing for several different timeclock time parameters, allowing to fetch hours within the last amount of days, between two dates or simply from a specific date. These time parameters are set directly on the column within the Roster editor. > [tab] Changed > > **Rosters** > > *Timeclock Column*\ > While viewing a roster, that has a timeclock column, you can now specify the date range which you are referencing the hours from. Allowing for much easier viewing of hours without the need of modify the roster! Simply modify the date range while viewing the roster and you'll fetch the hours instantly! > > *Column Permissions*\ > To follow suit with several other aspects of the CMS we've removed the *Mod* and *Admin* specific permissions from roster restricting. Columns will now be able to simply specify which ranks have viewable access, no longer requiring to manually grant individual permission to view restricted columns.\ > If no ranks are specified the column will be viewable by all members that can view the roster. > > **Profile Fields** > > Drag and drop support, with the new system, has been introduced for profile fields within the editor. Now reorder profile fields with ease via drag and drop. > > **Website Builder** > > The *Card* and *Button* element editors have been reworked from the ground up, now allowing for much easier editing with instant visual changes. Editing these elements should feel more native and overall easier to use. > [tab] Fixed > > **Rosters** > > * Pagination would only allow for a maximum of 100 rows to be fetched, any additional rows would be unable to be accessed > > **Branding** > > * Branding footer would appear above the Forms Editor > > **Common** > > * Image preview component wouldn't allow removal of the current image ### v0.5.75 (Beta) 1/8/2024 > [tab] New > > **Rosters** > > *Member ID Column*\ > Rosters now have the ability to display member's unique ID as a column type now, this will grab the member's unique ID > > *Rank Based Rosters*\ > Rosters will now be able to be specified from specific ranks rather than whole department's or utilizing a custom roster. You can now specify what ranks and order that a member must have in-order to be displayed on the roster. > > *Cosmetic Styling*\ > All roster columns now have the ability to be styled to have more customization over your rosters. Additionally you can set conditions to when a column row cell is a specific styling, allowing greater control on how rosters are displayed.\ > \ > As well, Rosters can now have a header image displayed above the roster table. > [tab] Fixed > > **Forms** > > * Duplicating a form would not duplicate the form stages resulting in a shared stage group with the form you just duplicated from > > **Community Customization** > > * On Join Settings would not be accounted for when a new member joins, in certain circumstances > > **TeamSpeak Integration** > > * Several issues regarding timeouts, rate limits, and connection issues were addressed and improved ### v0.5.74 (Beta) 1/4/2024 > [tab] New > > **Discord Integration** > > *Role Mapping*\ > CMS bi-directional Discord role sync has been implemented natively within the Sonoran CMS UI. A more visual and easy to use UI in comparison to the existing bot embed setup. > > *Ban Sync*\ > Bans will now sync across all linked guilds ensuring proper handling of members upon exit. > > **Forms** > > *Form Editor*\ > Drag and drop supported added to form questions, you can now easily re-order questions within a form. > > *Submissions*\ > On larger screens the form replies will now be on the right side, allowing to view the form response and the replies at the same time. > [tab] Changed > > **Limits** > > Drive limits have been increased to the following:\ > \&#xNAN;*Standard:* 50MB -> 500MB\ > \&#xNAN;*Pro:* 100MB -> 1GB > > Uploader max file size has been increased to 200MB to allow for larger documents to be imported into the Drive system. > > **Forms** > > Stage actions have been updated to our standard components with rank selecting, as well as improvements to the Discord Webhook editor. > [tab] Fixed > > **Webhooks** > > Reply settings updates will now show properly for the newly changed reply settings structure. > > **Drive** > > Sizing with files was improved to no longer appear squeezed on certain resolutions. > > Viewing PDFs within the Drive will now properly show instead of kicking back to the main Drive UI. > > **TeamSpeak Integration** > > Backend functionality was reworked to avoid rate-limits associated with syncing full communities frequently, syncs are now queued and only processed once per minute. > > **Forms** > > Several issues regarding sizing of question elements was addressed, mostly pertaining to viewing a submission. ### v0.5.73 (Beta) 12/18/2023 > [tab] New > > **Forms Management** > > Form submissions can now be drag-and-dropped to change stages for much easier form submission management, this can be done within the Form Submissions viewer. > > **Permission Descriptions** > > Permission selectors now display individual descriptions for each permission type, explaining what the permission grants. > > **Form Editor** > > Permissions for individual form templates can now be modified directly through settings while editing a form > [tab] Changed > > **Custom Domains** > > Handling has been improved for failed domains and when communities becoming ineligible for using a set up domain > > **Available Forms** > > Viewing your own form submissions within your Available Forms page will now utilize the new UI shown within Form Management > > **Community Settings** > > The UI on smaller / mobile devices has been improved upon for ease-of-use ### v0.5.72 (Beta) 12/13/2023 > [tab] New > > **Form Builder** > > Our custom form builder has seen a complete user-interface rework, now allowing for easier and clearer form building. The new UI was focused on providing a more streamlined and efficient workflow for creating the custom forms needed for communities! > > **Discord Bot Integration** > > We've implemented Form stage changing directly from Discord form webhooks, form webhooks from CMS are now routed to the Sonoran Bot to provide additional features; form webhooks will now provide a drop-down menu allowing you to select what stage you want the form changed to. When updated the existing webhook embed will be updated for ease-of-use. > [tab] Changed > > **Rank Manager** > > We've updated the UI to allow for much better spacing on Desktop and re-introduced mass permission toggles, allowing you to toggle all of one permission section instead of each individual permission. > > **Community Settings** > > The mobile UI has been updated for much easier use while viewing on the smaller screen. > [tab] Fixed > > **Forms** > > * Creating a new form template within a folder will now create the form in the folder instead of the root > * Filter by form type within Available Forms will now properly filter > > **Community Profile** > > * While opening the Community Settings directly from your Community Profile would utilize the now deprecated settings UI > * While viewing a profile and navigating to your own profile or someone else's directly from that profile would not update the UI with the new profile > > **Custom Pages** > > * Buttons that linked to a custom form would not navigate to the form for submitting > * Image carousel would not properly display the images set for the carousel > > **Identifiers** > > * Identifiers were not able to be seen throughout the application, would show in some areas but majority wouldn't show > * Identifiers can now have a default set which will show as your identifier throughout unless otherwise specified in the rosters ### v0.5.71 (Beta) 12/5/2023 > [tab] New > > **Mobile - Push Notifications** > > Android and iOS apps for Sonoran CMS now offer push notifications for all previously supported notification events. Now receive notifications to your mobile device when events start, form status change, and much more! > > **Forms - Stage Editor** > > Stages editor has continued rework from last update now with more seamless editing and managing. > > New forms will now have three (3) default stages for quick form creation! > [tab] Changed > > **Community Menu** > > Mobile UI has been improved for a better user-experience. > > **Drive** > > Sizing of drive items was improved for better viewing of multiple items within the drive item viewer. > > **Rank Manager** > > Permission editing modal sizing was improved on mobile for easier management. > [tab] Fixed > > **Forms Builder** > > Mobile optimization and overall functionality improvements were made as it was difficult to create and edit forms > > **Forums** > > Usernames now ellipsis when too long, no longer expanding the UI ### v0.5.70 (Beta) *v0.5.69 Re-Release w/ Breaking Hotfix* ### v0.5.69 (Beta) 11/20/2023 > [tab] New > > **Form Management** > > Form submissions are now easier to manage with the reworked UI, now easily move forms through stages with ease with the all new stage tab UI. Forms will now be in a list beneath their respective stage, allowing for easier distinction and visualization of where your community's forms are! > > Form Submissions are now accessible via Administrative Panel > Forms > View Submissions button. > > Submissions viewed in the new tabbed UI will now show the new submission popup modal with a more informational and condensed view. > > **Drive** > > File viewer UI has been reworked for a more user-friendly and informative experience. Folders are now displayed separately from any files in the parent folder in the grid view, in the list view folders are sorted above any files in the parent folder. > > Additionally, the view and edit drive file UI was updated to be more consistent. > [tab] Changed > > **Default Community Data** > > * New community default data was updated with modified pages. > > **Rank Manager** > > * Several aspects of the rank manager were improved for mobile sizes. > * Primary & Secondary Only options are no longer used > > **Drive** > > * Ranks with Access Permissions now uses the newer rank selector component > > **Website Builder** > > * Mobile improvements were made to page, section, and element setting modals > * Border show/hide is now only one button > > **Consistency Changes** > > * Website Pages > * A standard/common card style was applied to select, delete and add more > > **Misc.** > > * All notify button icons were changed to a bell icon > * Add status button on mobile has better size handling within rosters > > **Branding** > > * Footer branding was condensed to just Sonoran CMS > * Free communities can now change the icon in the toolbar within the customization settings > [tab] Fixed > > **CMS API** > > * Add button is now the proper size while viewing on a larger screen > > **iOS Application** > > * Top community toolbar no longer is cut off by the notch > > **Community Profile** > > * Community name no longer overflows off the screen on mobile > > **Drive** > > * Drive UI no longer turns blank after closing share settings > * Changes to the general access settings will now consistently persist > * General access drop down should no longer display nothing or "Unknown" > * General access settings now show on PDFs > * Clicking the *Cancel* button on the Share Settings modal will now cancel any changes instead of auto-saving > * Auto-save notification is now grammatically correct > * Changes to ranks viewer/editor permission will now consistently persist > * Clicking and losing focus on the document name input will no longer error out ### v0.5.68 (Beta) 11/10/2023 > [tab] New > > **Website Builder** > > *Element Offsets* > > Element offsets now allow for further customization of spacing and position of elements throughout your custom pages built through the Website Builder. > > *Element Image Support* > > Elements can now have images set on them similar to setting a page background but solely on an element. > > **Discord Integration** > > Improvements to the mobile aspect of the UI have been added specifically to the setup process, making it easier to follow the instructions and get set up faster! > [tab] Changed > > **Help Modal** > > Several UI/UX improvements have been introduced. > > **Integrations - CMS API / Sonoran CAD / TS3** > > Mobile improvements have been made and other small UI tweaks to make the UX better. > > **Account Viewer** > > There's no longer a *Primary Identifier* column as that was deprecated for the new identifier system recently ### v0.5.67 (Beta) 11/8/2023 > [tab] New > > **Toolbar Editor** > > You can now drag and drop the order of toolbar items to easily create the toolbar you desire. > > **Profile Fields Editor** > > Drag and drop of profile fields will now display a red line to signify where the profile field will be dropped. > > **Discord Bot** > > Improved handling has been introduced into the bot to make the setup and manage process easier when configuring the Discord bot. > > **Page Meta** > > All informational and administrative pages now have unique meta associated with them, allowing for easier differentiating of pages. > [tab] Changed > > **Forms** > > * Multi-member & member selector inputs now allow for input to filter specific members without the need to scroll and manually find the member > * Patrol Log has been rebranded to Time Log > * Default icons have been introduced to default form types > * Submission Replies > * Submission replies have been completely reworked and simplified, reply settings are no longer locked to: "Basic", "Mod", and "Admin". > * Reply settings are now based on if the replies are locked, if the submitter can reply when locked and what ranks can reply > * Stage Action: Community Status > * UI has been improved for a more clear and concise UX > * Clock In/Out has been moved to the element list as opposed to being a section > * Though it is still a section, just more visible within the UI > * Auto Member Elements will now default to the Form Submitter as the reference ### v0.5.66 (Beta) 10/27/2023 > [tab] New > > **Desktop Notifications** > > We've now introduced Desktop notifications as our first step to push notifications everywhere! Now receive desktop notifications, where configured, when you receive new form submissions, new calendar event, and much more! Manage your notification preferences directly within your Community Settings similar to API ID. Receive Desktop notifications upon each trigger WHEN you have the Sonoran CMS Desktop application running on your device. > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > **Job Sync** has been reworked into the core resource and implemented natively within the QBCore Game Panel, easily manage your server's jobs with automatic job sync! > > **Rank Manager** > > Drag and drop line previews are now present when managing your ranks, easily see where your organizing your ranks in real-time. > > **Toolbar Editor** > > Toolbar editing is now supported through auto-save functions, never worry about losing work toolbar customization! > [tab] Changed > > **Template** > > Default community template has been updated for a more generic gaming community focus > > **User Accounts** > > * Mass Account Actions: Rank manipulation is now utilizing the standard component for selecting ranks > * Individual Account Actions: Rank manipulation is now utilizing the standard component for selecting ranks > * User Filter > * Rank selection is now utilizing the standard component > [tab] Fixed > > **Community Discovery** > > * Community banner image URLs that contained spaces would not be URL encoded to be properly loaded when sent through Discord > > **Form Management** > > * When viewing a submitted form you don't have access to it would provide a blank page instead of notifying user > > **Form Management** > > * Form Settings button would overlap Form Stage Settings dialog > * Drag and drop would not work in certain instances, overall improved functionality ### v0.5.65 (Beta) 10/24/2023 > [tab] New > > [**vMenu Game Panel**](/cms/integration-capabilities/fivem-game-panel/vmenu-panel) > > **Weather** and **Time Management** is now available within the vMenu Game Panel, easily change and manage vMenu Weather & Time directly from your Sonoran CMS! > > **Homepage** > > We've reworked out homepage to be more modern and information forward! > [tab] Changed > > **Website Builder** > > * Information block items can now be dragged and dropped to be reordered > * Gallery - Create Category & Forums - Create Category now uses the standardized component for managing permissions > [tab] Fixed > > **Forms Editor** > > * Unable to change the Form Type as the selector would provide blank labels > * Re-organizing forms/folder within the selector would overwrite some forms within folders > * Drag and dropping a new element into the blank area where no section is will now properly create a section for the new element instead of doing nothing > > **Website Builder** > > * Drag and dropping a new element into the blank area where no section is will now properly create a section for the new element instead of doing nothing ### v0.5.64 (Beta) 10/16/2023 > [tab] New > > **Mobile Improvements** > > * Color styling is now more consistent in the Forms Editor > * Form Settings are now a popup modal instead of a drop-down button > * New element selection has been reworked for an improved UI/UX > * Accounts Viewer has been improved for easier mobile UI/UX > * **Rosters** now mimic the Forms Editor styling and functionality with reworked UI/UX > * QBCore Game Panel navigation is now easier to use with more consistent styling > [tab] Changed > > **Website Builder** > > * Section and element backgrounds support transparency now > * Text elements support hyperlinks > > **Form Management** > > * Filtering is now persistent, once you change filtering it will be locally saved upon the next visit to the page. > [tab] Fixed > > **Website Builder** > > * Section backgrounds would only display on the editor and not on the viewable page > * Button styles wouldn't save on the editor and wouldn't display on the viewable page > * Text elements when created when have alignment issues with the builder vs the viewable page > > **Discord Integration** > > * Invite Sonoran Bot button will now properly let you invite the Discord bot > * Admin - General webhooks would unreliably trigger > > **Ranks Editor** > > * Editing a department would unreliably save ### v0.5.63 (Beta) 10/11/2023 > [tab] New > > [**Sonoran Bot Integration**](/cms/integration-capabilities/discord-bot-integration) > > Name Sync now takes in account the name format set within Community Customization! > > **vMenu** **Game Panel** > > Now introducing the *vMenu* Game Panel, similar to the QBCore Game Panel we've implemented a user-friendly way to manage your *vMenu* server(s). Manage whitelisting and ace permissions directly within your Sonoran CMS community without the need to mess with config files. > > * Whitelisting & Ace Permission Sync configuration now integrated within the UI > [tab] Changed > > **Rosters & Forms Editor** > > Several aspects of both UI's have been improved for a better UI/UX, specifically with varying sizes. > > **Website Builder** > > Several aspects of the website builder have been improved upon and corrected for any inconsistencies and irregularities with sizing. As well, improvements to newly created elements with default data. > [tab] Fixed > > **Website Builder** > > * Page permission selector would show blank/missing in some cases > > **Profile Fields** > > * Select type profile fields wouldn't be able to be selected > > **Community Events** > > * Public shared event links would unreliably load with varying conditions ### v0.5.62 (Beta) 10/2/2023 > [tab] New > > **Profile Fields** > > * Permission management is now reworked and easier with direct permission management within the Profile Fields editor > > **Website Builder** > > * Drag and drop previews for when creating unique and custom web pages > [tab] Changed > > **Mobile Improvements** > > * API Panel now allows scrolling instead of swapping tabs > * Community Settings tabs are now on top for easier recognition > * *Discord Webhooks* are now much easier to navigate and use from a smaller device > [tab] Fixed > > **Community Menu** > > * If a community didn't have a description it would show the card as blank when hovering over it > > **Rosters** > > * Patrol logs columns should now accurately show proper hours for Custom rosters > * Identifier columns are now able to be utilized with the new identifier system, now select an identifier to show for that row > * Switching between rosters from direct toolbar buttons is now possible without the need of refreshing > * Selecting a source form for patrol log hour columns will now properly display the label of the form > > **Form Management** > > * If you delete a form template you can now delete a submitted version of that form template > > **Website Builder** > > * Video elements are now able to be edited to show a different YouTube video ### v0.5.61 (Beta) 9/25/2023 > [tab] New > > **User Accounts** > > * *Discord* and *TeamSpeak* IDs are now on user accounts and can be easily copied in the Accounts viewer > * Unique IDs is now able to be copied on forum replies > > **Sonoran CMS API Panel** > > * Entire API panel has been reworked for a better UI/UX > > **Rank Selector** > > * UI improvements have been introduced for easier rank recognition > * Component has been standardized for use within the Account Viewer ### v0.5.60 (Beta) 9/16/2023 > [tab] New > > **Accounts - Unique ID** > > * You can now easily click to copy unique IDs that are displayed > > **Discord Bot** > > * CMS Name Sync have been added to the initial setup process > > **Website Builder** > > * Permissions for private pages are now directly within the Website Builder UI, allowing for easier page management without the need to modify ranks > > **Forums** > > * Forum Topics and Replies can now have text color & highlight > [tab] Changed > > **Community Menu** > > * Community creation UI has been improved for better sizing and readability between screen sizes > * Community cards are now larger and have better handling for content > > **Community Settings** > > * Several aspects have been improved upon for a better UI/UX > > **Website Builder** > > * Several aspects have been improved upon for a better UI/UX specifically for mobile > [tab] Fixed > > **Discord Webhooks** > > * Specific webhooks logs wouldn't send but general/all webhooks would send > * Account Updated webhook embed now properly shows ranks instead of `[object Object]` > > **Discord Integration** > > * Upon initial load of the panel you would be greeted with an error if you haven't set the bot up already > > **Accounts - Identifiers** > > * Some communities wouldn't be able to add idenfitiers to accounts > > **Custom Forms** > > * Editing the header of a section wouldn't be able to be focused to edit > > **TeamSpeak Integration** > > * TeamSpeak Server Groups select wouldn't filter dispite being able to type > > **Custom Pages** > > * Tutorial help icon would show when viewing a page with a gallery component ### v0.5.59 (Beta) 9/8/2023 > [tab] New > > **Account Viewer** > > *Multi-Account Actions* > > Now you can easily manage groups of accounts instead of individually updating them. You can now set ranks, kick or even ban a group of accounts all at once, allows for easier and a more streamlined user management. > > *Rank Filtering* > > Filtering and searching for the Accounts viewer has been improved, you can now filter by individual ranks and search for users by their *new* Unique ID. > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Job Management is now achievable within Sonoran CMS, you can now edit/change the job and grades for individual accounts. > * Search vehicle plates via the Vehicles table > > [**Discord Bot**](/cms/integration-capabilities/discord-bot-integration) > > * Sonoran CMS community names are now able to be synced to your Discord guild(s) > [tab] Changed > > **UI Consistency** > > Several aspects of the platform have been reworked for a better UI/UX while improving our overall styling consistency > > * Calendar UI > * Website Builder - Modals > * API Integrations ### v0.5.58 (Beta) 9/2/2023 > [tab] New > > **Rosters** > > Rosters no longer require a member to be assigned to a row for Custom Rosters, you can now create rosters more than for tracking members! > > * Several aspects of the Rosters Editor has been improved upon for a better UI/UX > > [**Discord Webhooks**](/cms/integration-capabilities/discord-webhooks) > > You can now select what roles you want to get mentioned with each Discord Webhook log, just select what ranks (supplied by Sonoran Bot) you want mentioned and they'll be sent along with each log! > > * Additionally, Minor UI/UX Improvements > > [**TeamSpeak Integration**](/cms/integration-capabilities/teamspeak-3-role-sync) > > You can now select TeamSpeak groups instead of having to manually input UIDs for each one during the role sync setup! > > **GTA Integration - Core** > > * Project Sloth Inventory Support Added > [tab] Changed > > **Forms Editor** > > * Several aspects have been improved upon for a better UI/UX > > **Calendar** > > * RSVP Limit is now straight forward by selecting unlimited or inputting a desired amount > * Several aspects have been improved upon for a better UI/UX > > **Toolbar Editor** > > * Drag-and-drop previews are now shown when moving items around your toolbar editor > > **User Accounts** > > Ranks are no longer separated by *Primary* and *Secondary*, all ranks are now seen as the same type but are evaluated by power. You no longer need to mark ranks as a specific type and you can now easily assign ranks to users without the confusion of what type each rank is. Additionally this will ease the process with Sonoran Bot setup! > > Additionally, account identifiers have been combined into one group instead of separating by Primary & Secondary. > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Several aspects have been improved upon for a better UI/UX, specifically with mobile handling ### v0.5.57 (Beta) Non-Web Version Release 8/29/2023 There was a hotfix version bump release that was sent to Web, MacOS, and Windows platforms to fix a new forms reordering issue. ### v0.5.56 (Beta) 8/29/2023 > [tab] New > > [**Discord Webhooks**](/cms/integration-capabilities/discord-webhooks) > > The input system for webhooks has been completely reworked and streamlined for a easier setup and management. Now you can select channels pulled from all Discord guilds the Sonoran Bot is setup for with your community. > > * Auto-save functionality is now smoother and more efficient > * Setup process is now outlined within the UI > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > Several aspects of the game panel have been improved upon for a better UI/UX. > > * More consistent styling throughout pages > * Viewing a character now shows owned vehicles > * Viewing characters on the Players page will now show basic information > * Cash & Bank Balances > * Jobs > * Resources page now supports folders > > **Community Account Unique IDs** > > All users within communities are now automatically assigned a unique numerical ID upon join, existing communities automatically assigned IDs. Easily track users within your community with a much easier identifier to track that NEVER changes. > > * Unique IDs are shown on the Community Profile, Forums, Account Viewer, Submitted Forms, etc. > [tab] Changed > > [**Sonoran CAD Integration**](/cms/integration-capabilities/sonoran-cad-sync) > > * Overall page has been reworked for a better UI/UX > * Setup process have been reworked to follow standardized stepper > > **Calendar - Categories** > > * Mobile UI functionality has been added > [tab] Fixed > > **Information Blocks** > > * Blocks linked for total members of a department would only count users that have the rank as a secondary, not counting primary users. ### v0.5.55 (Beta) 8/18/2023 > [tab] New > > [**Rosters Editor**](/cms/tutorials/rosters/creating-custom-rosters) > > * UI was completely reworked to be more interactive and user-friendly > * Community Statuses has been moved to the Roster Editor and rebranded to Roster Statuses > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Vehicle management dialogs with user/character information is now hyperlinked to manage the character that the vehicle belongs to > > **Toolbar** > > * You can now set a button destination to *QBCore Game Panel* > [tab] Changed > > **Footer** > > * Now forced to the bottom of the screen when there's not enough content on the page > > [**Forms**](/cms/tutorials/forms/creating-custom-forms) > > * You can now reorder forms in and out of folders by simply dragging and dropping to the desired position > > **Toolbar** > > * Drop downs on mobile will no longer show if there's no options in the dropdown > > [**Website Builder - Gallery**](/cms/tutorials/community-website/gallery-system) > > * New gallery categories will now automatically have one image created with it > [tab] Fixed > > [**Drive**](/cms/tutorials/your-drive-and-documents) > > * Preview images were not getting generated upon saves > * Manually saving (Ctrl + S) a document, slideshow, etc. would throw an error despite successfully saving > > [**Clock In/Out**](/cms/tutorials/forms/clock-in-out-system) > > * Adding a clock in/out note after clocking in would add the note to the clock in/out previously created > > [**Profile - Change Name**](/cms/tutorials/user-management/viewing-a-community-profile) > > * Despite having the *Allow Members to Customize Name* users wouldn't be able to change their name > > **Calendar** > > * RSVPing for an event wouldn't do anything when clicking the button > * *Irregular* - Calendar event times would be initially incorrect after creation ### v0.5.54 (Beta) 8/15/2023 > [tab] New > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Vehicle management inputs that require a Citizen ID will now provide users with a select input to select a character from rather than a raw Citizen ID > * Permissions > * QBCore Game Panel permissions have been moved from the Servers tab to their own category/section. > * *Existing permissions have been migrated to the new permission structure for Game Panel(s).* > > **Help/Tutorial Modals** > > * 25+ help and tutorial modal's have been implemented throughout the entire platform > * View documentation and tutorials associated with pages by clicking the red help button located on the bottom-right of pages > [tab] Changed > > **Profile Fields** > > * Verified profile fields will now visually show which are verified or not with the Sonoran CMS orange checkmark ### v0.5.53 (Beta) 8/3/2023 > [tab] New > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Initial Setup > * The setup process for the panel has been placed directly into the panel with direct and easy steps to get it running. > * Inventory > * Inventory items now are draggable, you can now drag and drop items within inventories with ease. > * Inter Panel Links > * Any dialog popup that lists data is now linkable, while having the dialog open the URL is modified to include the proper ID which can be directly opened to. > * Characters > * Metadata > * You can now view character metadata within the Character dialog > * Jobs > * You can now view character job data within the Character dialog > > [**Integrations**](/cms/integration-capabilities/in-game-integration-resources) > > * [GTA RP - CMS Core](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules) > * You can now download the GTA RP CMS Core directly from the Integrations Portal, it will be downloaded with your community credentials already inputted into your config. > [tab] Changed > > [**Custom Domain**](/cms/tutorials/customization/custom-domain) > > * Custom domains now go through a more thorough DNS record check to ensure domains are assigned to the proper communities. > > [**Drive**](/cms/tutorials/your-drive-and-documents) > > * Several aspects of the Drive UI have been improved for a better UI/UX. > * Several actions on the Drive UI have been reworked to handle auto-saving instead of manual saves. > > [**API Integration**](/cms/developer-api-documentation/api-integration) > > * Servers managing has been reworked to handle auto-saving instead of manual saving. > [tab] Fixed > > **Custom Forms** > > * An issue where conditional sections would cause problems when determining form completion ### v0.5.52 (Beta) 8/2/2023 > [tab] New > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Characters > * View and manage character inventories directly within the panel > * Mimicked UI from popular slot based inventory systems > * Items > * View and manage all in-game items directly within the panel > * Directly upload item images from Sonoran CMS to your game server > * Vehicles > * You can now select from all preconfigured garages to set a character's vehicle current garage at instead of having to provide the garage ID > [tab] Changed > > **Profile Fields Editor** > > Several aspects of the Profile Fields Editor have been reworked in favor for a better UI/UX > > **Drive** > > Several aspects of the Drive system have been reworked in favor for a better UI/UX, as well as some QOL changes for a smoother transition within pages and actions. > [tab] Fixed > > **Calendar** > > * Clicking the event removal button wouldn't actually do anything and would only fail no matter the conditions ### v0.5.51 (Beta) 7/21/2023 > [tab] New > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Gangs > * View and manage QBCore framework gangs > * Add and remove what grades each gang has > * Jobs > * View and manage QBCore framework jobs > * Add and remove what grades each job has > > **Sonoran Shield Integration** > > You can now link and manage your Sonoran Shield configurations directly within Sonoran CMS! You can also grant individuals permission to help manage your shield as well! > [tab] Changed > > **Custom Domain** > > The entire verification process as well as UI have been completely reworked to have a better UI/UX. > > **Community Selection** > > The community selection menu has been reworked for a better UI/UX. ### v0.5.50 (Beta) Non-Web Version Release 7/15/2023 There was a hotfix version bump release that was sent to all non-web version platforms to fix a new login issue. ### v0.5.49 (Beta) 7/14/2023 > [tab] New > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Characters > * View online & offline characters > * Edit online & offline characters > * Vehicles > * View online & offline vehicles > * Edit online & offline vehicles > * Permission Enforcement > * Pages within the game panel are now permission enforced therefore you must have permission to view pages. > [tab] Changed > > [**Discord Integration** - **Webhooks**](/cms/integration-capabilities/discord-webhooks) > > Discord Webhook Notification editor UI has been completely reworked for a better UI/UX, editing should now auto-save instead of requiring a manual save. > > [**API Integration**](/cms/developer-api-documentation/api-integration) > > Servers editor for API Integration has been completely reworked for a clearer and better UI/UX. > [tab] Fixed > > [**Rank Editor**](/cms/tutorials/user-management/creating-departments) > > * Auto-save has been optimized to not trigger when no changes have been made. > * Duplicating rank wouldn't trigger a auto-save. > * Delete a rank wouldn't give a clear indicator whether it's been processed or not. > > [**Website Builder**](/cms/tutorials/community-website/website-builder) > > * Changing a `image` component will not properly change the image instead of applying it as a background to the existing placeholder image. ### v0.5.48 (Beta) 7/6/2023 > [tab] New > > **Discord Integration** > > Form Stage changes will now trigger the Sonoran Bot to notify the submitter of the form that it's been updated! With Discord Sync enabled and form notifications properly configured you can now receive a Discord notification via DM, text channel or both. > > [**QBCore Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Server Logs > * View and search the last 1,000 logs generated by your server directly within your Sonoran CMS community! > * Resource Management > * Easily start/stop all your server's resources directly within your Sonoran CMS community! > [tab] Changed > > **Image Uploading** > > All applicable image uploaders have been replaced with our newly created component for ease of use! > > **Forms Editor** > > The same handling and editing from the Website Builder have been carried over to the Forms Editor, now you'll click an element field to edit. > > **Limits & Integrations** > > Several aspects of the UI have been improved upon for a clearer UI/UX. ### v0.5.47 (Beta) 6/30/2023 > [tab] New > > [**Calendar Consolidation**](/cms/tutorials/community-events) > > All aspects of the calendar system has been consolidated to the main calendar view, editing and adding event categories can now be edited and managed within there. You can now easily manage permissions specifically for the calendars you're editing. The event creation UI has also been improved for a better UI/UX. > > [**QB Core Game Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > * Warn Player > * Characters > * Display Character Info > * Adjust Money > [tab] Changed > > **Rank Manager** > > Rank Manager UI has been improved for a more seamless and interactive experience, rank data now auto-saves as you edit. > > **Community Member Name Change** > > Now enabled by default for new communities. > > **Website Builder** > > * Many aspects of the website builder has been improved. > * Pages within page overview are in alphabetical order. > * Mobile UI has been improved. > > **Toolbar Editor** > > General UI/UX improvements have been made. > > **Connection Interruption Banner** > > Connection banner will now take longer to appear to allow for reconnections and brief connection drops. > > **Admin Accounts** > > Rank labels no longer overflow the UI. > > **Forums** > > Category labels will no longer overflow the UI, they'll now ellipsis. > > Rank titles within forum posts will no longer overflow the UI, they now ellipsis. > [tab] Fixed > > **Available Forms** > > * Form titles with a very large amount of characters will no longer overflow UI and will now ellipsis. > > **Forms Editor** > > * Form titles with a very large amount of characters will no longer overflow UI and will now ellipsis. > > **Website Builder** > > * HTML & Image component editor will now have the proper inputs for editing. > > **Admin Panel Navigation** > > * Navigation button will now not show above popup/dialogs. > > **Toolbar Editor** > > * Adding a dropdown toolbar item will now properly add the item instead of removing all other items. ### v0.5.46 (Beta) 6/23/2023 > [tab] New > > [**QB Core Management Panel**](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel) > > The first update to our official QB Core management panel for GTARP! > > New functionality includes: > > * Permissions > * Ranks can now be granted permissions to access/use various features of the panel. > * Players > * Kick > * Vehicles > * Repair > * Despawn > * Money > * Edit Account Balances (Wallet, Bank, Crypto, etc) > [tab] Changed > > **Admin Panel** > > * Dragging the admin navigation show/hide button up and above the toolbar will no longer be possible, it will restrict just below the toolbar. > > **Toolbar** > > * Direct URL destination buttons will now open links in a new tab instead of taking over the current CMS tab. > > **Form Management** > > * The old route `forms/mgmt` is now deprecated and now transfers you to the main forms hub, button destinations for Form Management now have additional handling to direct to the manage tab. > > **Custom Pages / Website Builder** > > * Custom page slugs are no longer case sensitive. > * Buttons will now open links in a new tab instead of taking over the current CMS tab. > * Saving a custom page will no longer kick you back to the page selector. > * Improved border UI to differentiate the screen size. > * Many improvements to various components for the website builder. > [tab] Fixed > > **Drive** > > * Long document names would overflow the UI card, they should be truncated now. > > **Community Profile** > > * Attempting to *Sync CAD* through the Settings dialog within the community profile would error out and not complete. > > **Rosters** > > * Editing a roster row that contains a date field would not allow you to select dates via the date picker. > > **Admin Panel** > > * **Mobile:** Touching the admin navigation show/hide button would not always work due to conflicting events getting fired, it should be draggable without issue. > > **Toolbar** > > * Dragging/reordering handling for toolbar items has been improved/fixed. > * Previously unable to drag one to the very most right, it would only allow on very last item. ### v0.5.45 (Beta) 6/19/2023 > [tab] New > > **QB Core Management Panel** > > The initial release of our official QB Core management panel for GTARP is here! > > Initial functionality includes: > > * Players > * View and Kick > * Player Vehicles > * Repair, Delete and Despawn > * Player Bank Accounts > * View, Add Money, Remove Money > > More functionality is planned for weekly releases! The CMS QB Core management panel will soon be your single management point for your QB server! > > [**Community Creation**](/cms/tutorials/getting-started/registering-your-community) > > The Community Creation UI has been completely reworked, now walking new users through a guided process to upload and customize logos, descriptions, and more. > > **Form Manager Consolidation** > > The form manager and available forms sections have been combined into a single panel. This requires less overall navigation and also includes a tab for admins to quickly access the forms editor. > > **Admin Navigation Bar** > > The admin side navigation bar's toggle button is now condensed into a vertical button with dynamic opacity when collapsed to reduce screen footprint. Additionally, users can now click and drag the toggle button vertically up or down the screen. > > **Integrations** > > A new Integrations Portal has been introduced, this portal houses all integrations that Sonoran CMS offers. From official integrations to community driven integrations this is the one place to manage it all. With more comprehensive integrations planned in the very near future. > [tab] Changed > > **Default Template** > > The default website template for new communities has been reworked. This includes improved and condensed navigation, breaks feature elements into dedicated pages, and more. > > **Toolbar Spacing** > > Increased spacing between toolbar items for more clear separation. ### v0.5.44 (Beta) 6/8/2023 > [tab] New > > [**Community Customization**](/cms/tutorials/customization) > > The entire Community Customization UI has been completely reworked from the ground up, focused on an improved UI/UX. > > **Administrative Panel Navigation** > > Administrative panel navigation has been completely reworked from the ground up similar to Community Customization. This new navigation allows for more screen real estate, improved UX, and overall and easier navigation experience. > > **Limits** > > The limits page has been completely reworked to clearly layout what limits apply to your community and overall a refresh to the existing UI. > > **Integrations** > > A new Integrations Portal has been introduced, this portal houses all integrations that Sonoran CMS offers. From official integrations to community driven integrations this is the one place to manage it all. With more comprehensive integrations planned in the very near future. > [tab] Fixed > > **Community Profile** > > * Unable to view user profiles if you're not logged in or apart of the community > > **Website Pages** > > * Privatized pages would not actually handle like they're privatized, essentially would behave as a public page > > **Rosters** > > * Some communities may have seen JSON data within their roster rows ### v0.5.43 (Beta) 6/1/2023 > [tab] New > > [**Website Builder** - **New Elements**](/cms/tutorials/community-website/website-builder) > > *Static Image Carousel* > > Similar to the gallery element however members cannot upload or remove images through the UI, this element is set for the page. > > *Card* > > The card element can display various information and can be customized to your exact liking! > > *Circular Progress (Info Block Style)* > > Circular progress has been added as a style type for the **Info Block** element type, this provides a circular progress bar that can be customized to a specific value or based on total community or department members. > > *HTML Embed* > > HTML Embed allows more in-depth customization to your website pages, easily embed popular embeds from other sites such as TrackyServer! > > [**Rank Manager**](/cms/tutorials/user-management/creating-departments) > > The ability to copy and paste permissions between ranks/departments has been re-implemented from being removed in the last update. > > [**Toolbar**](/cms/tutorials/community-website/website-builder#toolbar) > > *Drive Document* > > A new destination type has been added to the toolbar item options, you can now select a specific file in your CMS Drive to directly link to without the need of grabbing the physical URL to the file! > [tab] Changed > > [**Website Builder**](/cms/tutorials/community-website/website-builder) > > * Editing an element's sizing will change the current preview size shown within the editor. > * Removed excess spacing on the sides while viewing on a mobile sized screen. > * Pop-up editing of elements have been reworked and improved for a better user experience. > > [**Forms Editor**](/cms/tutorials/forms/creating-custom-forms) > > * Utility Toolbar has been reworked and improved for a better user experience. > > **Footer** > > * Footer was updated to have more spacing and less cramming > > **Pricing** > > * The Sonoran CAD button now has the correct hyperlink destination > > [**Direct Form URLs**](/cms/tutorials/forms) > > When linking an individual a direct apply link to a form it would it just take them to the Available Forms and not display anything. Now it'll notify they must be signed in and will easily direct them to login and take them back to the same page once signed in. > > [**Forums**](/cms/tutorials/community-website/forum-system) > > Forums no longer require individuals to be signed in to just view a category and forums element. > [tab] Fixed > > **Gallery** > > * Gallery elements would not show/load properly if the individual is not signed in, the sign in requirement is now removed. ### v0.5.42 (Beta) 5/25/2023 > [tab] New > > **Community Template** > > The Community Template feature has been removed for the time being, we've reworked the default template to be fully customized to easily see the full capabilities of the system and an easier customization transition. Newly created communities will now come with departments, rosters, pages, etc. fully customized to be used out of the box or customized further to fit your needs. > > [**Forms Editor**](/cms/tutorials/forms/creating-custom-forms) > > The Forms Editor has been reworked to take after the ease of use and customization the Website Builder brings. The entire UI has been reworked and now includes the majority of customization capabilities of the Website Builder for forms. > > [**Department Manager -> Rank Manager**](/cms/tutorials/user-management/creating-departments) > > The Department Manager has been reworked and renamed to Rank Manager. This rework has provided an easier and smoother experience when editing and managing ranks. From creating a department to managing rank permissions, the whole experience has been simplified and improved. > [tab] Fixed > > **Community Discovery** > > * Fixed an issue where the images would appear very small compared to the actual size that should have been shown. > > **Custom Forms** > > * Member selectors would not have any options to select from despite having members that should be populated. > > **Ranks** > > * Inherited permissions from the parent department would not be accounted for. > > **Desktop Application** > > * Top toolbar would overlap with the top window bar. > > **Website Builder** > > * New page elements wouldn't be able to dragged and dropped into an empty area, they would only appear if dropped onto an existing section. ### v0.5.41 (Beta) 5/17/2023 > [tab] New > > [**Pricing & Subscriptions**](https://sonorancms.com/pricing) > > We're making Sonoran CMS more accessible than ever before, with all functionality for **FREE**! > > View our notice for more information. > > [**Website Builder**](/cms/tutorials/community-website/website-builder) > > Background images now have different handling to better allow more customization on how they view, you can now change how the image shows across the background. > [tab] Changed > > [**Website Builder**](/cms/tutorials/community-website/website-builder) > > Side toolbar is now scrollable > > Page slug input no longer shows the preview and is replaced with a copy button > > Grid lines in the previewer are no longer there > > **Account Management** > > When editing an individual account there will no longer be an option to change between active & pending, setting an individual to no ranks will place them in pending and setting them with any ranks will place them in active. ### v0.5.40 (Beta) 5/15/2023 > [tab] New > > [**Custom Forms**](/cms/tutorials/forms/creating-custom-forms) > > Custom Forms now have new element type, uploader. This accepts images and PDFs but is configurable per element. Easily have your users upload images or PDFs to be viewable directly within the submission. > > [**Profile Fields**](/cms/tutorials/customization/community-profile-fields) > > Two new profile field types have been added, Discord and TeamSpeak. These two types are apart of the new *verified* profile types. These will be automatically grabbed from the account without any user interaction or input. > > [**Toolbar Editing**](/cms/tutorials/community-website/website-builder#toolbar) > > The toolbar editor has been moved from Customization to the Website Builder. > > Additionally the toolbar now supports background color, individual font and text-color customization, and easy drag and drop support. You can now rearrange your toolbar including the community image easily to how you desire. > > [**TeamSpeak 3 Sync**](/cms/integration-capabilities/teamspeak-3-role-sync) > > You can now sync your Sonoran CMS ranks directly to your TeamSpeak 3 server's groups! This will automatically add/remove TS server groups from individuals that are configured to be set with their associated ranks. > [tab] Changed > > **Custom Page Backgrounds** > > Custom page backgrounds now extend to the entire body of the page instead of the custom page container. ### v0.5.39 (Beta) 5/4/2023 > [tab] New > > [**Website Builder**](/cms/tutorials/community-website/website-builder) > > The existing Custom Page Editor has been rebranded to the Website Builder. > > Background image and color is now able to be applied to the entire page as well as the existing section and element background options. > > Side left toolbox was added to larger screen sizes to easily drag and drop elements onto the page, as well modify page background options. > > Button elements have been expanded to include further customization such as text color, image icon, and several edge stylings. > > Content elements can now modify the color and font of the content in the WYSIWYG editor. > > **Discord Clock In/Out** > > You can now clock in/out directly through Discord with the addition of the following commands: > > * `/clockincms` > * `/clockoutcms` > [tab] Changed > > **Icon / Image Selector** > > All areas where an icon would be expected to be supplied it has been reworked to allow for icon & image with the icon selector allowing to be searched within the field. ### v0.5.38 (Beta) 4/28/2023 > [tab] New > > [**Custom Page Editor**](/cms/tutorials/community-website/website-builder) > > The Custom Page Editor has been thoroughly reworked to allow for more styling specifically to sections and elements within sections. With this rework we've revamped the structures of pages and all existing pages have been migrated over to the new page system. Pages are now constructed of individual sections which house elements. All existing pages were updated to move all pre-existing sections into one section and converted to elements. Now customize the padding, margin, alignment, etc. of sections, we've also included background color and images to sections and elements! > > [**Discovery Page UI**](/cms/tutorials/administrative/growth-and-discovery/discovery) > > The Community Discovery Page UI has been reworked to better advertise and showcase the communities that use Sonoran CMS! > [tab] Changed > > **Account Dropdown** > > Items within the Account dropdown have been reordered to categorize where needed. > > **Community Image (Top Left in Toolbar)** > > Clicking the top left community image will now redirect to the Dashboard instead of leaving the community and navigating to *My Communities*. > [tab] Fixed > > **Custom Forms** > > Forms could not be submitted from *Available Forms* or directly linked, this issue was resolved on web shortly after v0.5.37 release. ### v0.5.37 (Beta) 4/21/2023 > [tab] New > > [**Department Editor**](/cms/tutorials/user-management/creating-departments#4.-customize-rank-cosmetic-styling) > > The customization workflow for Department Rank's has been improved, you can now directly upload an image or choose from thousands of icons for your rank cosmetic icon. > > [**Community Transfers**](/cms/tutorials/administrative/delete-community#how-to-transferring-a-community) > > Community Owner's can now transfer their community to anyone that's currently active within the community, the owner must complete a confirmation before the transfer is complete. > > [**Custom Page Editor - UI**](/cms/tutorials/community-website/website-builder) > > The entire Custom Page Editor UI has been reworked to become more of a *website editor* than a custom form editor. This new UI allows for easy sorting of sections by dragging and dropping and an overall better user experience. This new UI is one of many improvements we plan on bringing to Custom Pages. > > [**Direct Form Submission Links**](/cms/tutorials/forms/form-submissions#sharing-a-form-submission) > > You can now share a direct link to a Custom Form to be submitted from, this should help with recruitment as it will take them straight to filling out the form. This URL can be found in the Custom Forms area prior to selecting a form to edit. > > [**Discord Sync**](/cms/integration-capabilities/discord-bot-integration) > > Discord Sync has now been made available to all Free communities using Sonoran CMS, regardless of Sonoran CMS community premium status. > [tab] Fixed > > **Form Management** > > The top header would be oddly positioned and would have text be misaligned. ### v0.5.36 (Beta) 4/17/2023 > [tab] New > > [**Toolbar**](/cms/tutorials/community-website/toolbar-customization)\ > The existing side-menu that was positioned to the left of the Community pages was removed and migrated to the top toolbar. Now all navigation goes through the top navigation bar, allowing full customization for how your navigation is designed and organized. > > * **Clock In/Out** is now located between the Admin cog (if enabled & viewable) and the Notification Center icon located on the right side of the toolbar. > * All existing communities have been migrated with side-menu options being recreated for each community to allow for an easier transition into the new navigation system. > * Drive, Available Forms, Form Management, etc. are now toolbar options for all existing communities from this update. Feel free to update your toolbar to remove these options if not desired. > * **Community Settings** to edit your API IDs, refresh CAD Sync, etc. has been moved to the top-right dropdown menu where you can navigate to Community Discovery, My Communities, etc. > > [**CAD Sync**](/cms/integration-capabilities/sonoran-cad-sync)\ > CAD Sync has now been made available to all Free communities using Sonoran CMS, regardless of Sonoran CAD community premium status. Use the full capabilities of CAD Sync without needing a premium subscription. > [tab] Changed > > **Accounts Viewer**\ > While viewing accounts through the Administrative Panel the accounts will now load more efficiently through the use of server-side pagination. > > **Accounts Editing**\ > The UI for editing accounts has been improved for a better UI/UX. > > **Community Side Menu**\ > Has been completely removed in favor for the toolbar navigation system. > [tab] Fixed > > **Discord Webhooks**\ > Forum Topic Creation - Not sending with properly formatted webhook embed description. > > **Managing Permissions**\ > Editing a user's secondary ranks, either to add, remove, or edit would cause errors to throw invalidating any request to save. > > **Gallery**\ > Gallery permissions were not evaluated for the gallery uploading capabilities. > > **Available Forms**\ > Forms with the type of New Member Application were not showing for new members of communities. > > **Form Management**\ > Specific Form's would not all show in the Form Management filtering selector. ### v0.5.35 (Beta) 4/7/2023 > [tab] New > > [**Calendar** RSVP Limits](/cms/tutorials/community-events#regarding-rsvp-limit) > > Calendar events can now be RSVP limited, you can now set how many members can RSVP to an individual event. > > **API Endpoints** > > [**Event RSVP**](/cms/developer-api-documentation/api-integration/api-endpoints-v2/events/rsvp) > > [**Drive** Downloads](/cms/tutorials/your-drive-and-documents#drive-downloads) > > Additional file types can now be uploaded and downloaded directly from the Sonoran CMS Drive. Any **.rpf**, **.wav**, **.mp3**, **.zip**, and **.pdf** are accepted. They aren't "viewable" but are able to be downloaded easily. Additionally there's now a download URL that can be copied for the *downloadable* file types as described above. > > [**Community Gallery**](/cms/tutorials/community-website/gallery-system) > > A new **Custom Page Element** has been added for additional customization and content. We've added the first of many elements apart of the new Gallery system. This system is designed heavily after the Forum system, as far as handling. Each element requires it to be associated to a *Gallery category*, with further customization and elements coming in later updates. This new element will show your images in a larger slide show with also listing all the gallery posts associated to the category. These gallery categories can be restricted as far as who can upload. > [tab] Changed > > **Member Join** > > All new users that joined communities would have their community name set to "NOT SET" upon initial join, this however has been changed to set their community name as their Sonoran account username. > > **Community Profile** > > The community profile now shows all ranks that the user has associated. > > **Several UI Improvements** > > Mobile UI/UX has been improved in several areas to better adapt to smaller screens. ### v0.5.34 (Beta) 3/24/2023 > [tab] New > > [**Archive Community Member**](/cms/tutorials/administrative/archive-community-member) > > Community member's can now be archived, this is *kick* from the community but sets the member in a archived state where their profile and information is still accessible. This should allow communities to better organize member's that have left and will allow you to easily see their information by viewing their profile even after they're gone. > > * When an account is archived it will display a banner on their profile showing they're archived. > * Additionally if they're banned it will also display a banner. > * When an account is archived it will display a small banner on their brief profile information when viewing a Forum Topic. > > **Custom Profile Fields** > > [*Text Array Profile Field Type*](/cms/tutorials/customization/community-profile-fields#text-array-profile-field-editing)\ > A new profile field type has been added; Text Array. This new field type allows you to store several entries of information on one specific field. > > **API Endpoints** > > [**Get Profile Fields Endpoint**](/cms/developer-api-documentation/api-integration/api-endpoints-v2/general/get-profile-fields) > > [**Edit Account Profile Fields Endpoint**](/cms/developer-api-documentation/api-integration/api-endpoints-v2/accounts/edit-profile-fields) > [tab] Changed > > **Roster** > > When viewing a roster and clicking on a row it will now not immediately edit the row, it will now give you the option to edit the row or to view their community profile. > > **Community Profile** > > Several UI elements of the Community Profile have been changed to improve the overall UI/UX. > [tab] Fixed > > **Community Profile** > > Clicking on a user profile's name text will warn about not being able to edit it. > > **Mobile UI** > > *Hamburger Menu* > > The hamburger menu would keep state from a previous community and not refresh upon loading a new community. > > **Custom Page Editor** > > The default page button would be clickable even if the page is already set to default. > > **Custom Form Editor** > > Adding new fields could randomly be placed in a different section than the intended one. ### v0.5.33 (Beta) 3/17/2023 > [tab] New > > **Mobile UI**\ > \&#xNAN;*Side Menu & Hamburger Menu while Signed into a Community*\ > The hamburger menu when shown on mobile has been reworked to introduce the existing menu that listed all community area such as Administrative Panel, Form Management, etc. The main side menu will now longer show on mobile view and will be included in the hamburger menu. > > *Forum Topic Page*\ > When viewing a forum topic on a smaller screen the replies and user information will no longer become disoriented and unviewable. > > **Forum Topics** > > Replies on forum topics now allow you to include attachments with the reply similar to creating a topic. > > **Form Stages** > > Form stages have now two labels. The *Stage Label* should be seen as a public name for the label, this will be shown in Available Forms, Form Management, and when referenced in stage actions (when they execute). The *Internal Label* should be seen as a *nickname* for the stage, this will be shown in any area it's referenced in the Administrative Panel area. > > **Community Profile** > > *Community Bio*\ > A community bio option has been added to the community profile page. Members can now set a customizable bio for themselves directly in their profile. > > *Name Changing* > > Individuals viewing another member's profile and having permission to edit them within the Account Viewer will be able to change the member's name directly in the profile. > > *Account Avatar* > > Individuals viewing their own community profile will be able to change their account avatar by simply clicking on their avatar in the profile page. > > *Global Account Actions*\ > Several account action buttons have been added to the community profile page, these will only show when viewing your own profile. This is in place due to the change with how the top-right dropdown menu is handled and the options that are now displayed there. > [tab] Changed > > **Account / Top Account Dropdown** > > The non-community account page is now no longer accessible by the top dropdown when viewing a community. This will now direct you to your Community Profile which also provides the same global account action buttons that are in the non-community account page. The dropdown item *Account* was renamed to *Profile* to adapt to this change. > [tab] Fixed > > **Department Editor** > > After adding a calendar category and going to the department editor it would not show up until a refresh or a relog into the community. > > **Account Viewer** > > When editing an account and removing the primary rank it would not remove the primary department shown in the account viewer table. > > **Stage Actions** > > After creating a stage with a *Change Submitter's Department/Rank* action, the action would not provide all department ranks after editing it upon creation. > > **Integration - Whitelist** > > Several bugs have been pushed to address issues related to the whitelist system. > > **Custom Form Editor** > > Premade form sections were removed during the rework of the Custom Forms & Stages. They've been reimplemented with no additional sections added, just the Patrol Start/End. ### v0.5.32 (Beta) 3/9/2023 > [tab] New > > **Expiring Ranks** > > Ranks can now be applied to [individuals manually](/cms/tutorials/user-management/modify-users-permissions-and-information#granting-expiring-ranks) or through [stage actions](/cms/tutorials/forms/creating-custom-forms#action-explanation-change-submitters-department-rank) to set a rank to expire, the rank will automatically be removed upon the next check (every fetch for the account) if found expired. Ranks can be set to expire after X amount of hours/days or by a exact time/day that you set. > > **Account Avatars** > > Customizable account avatars have now been implemented, all areas within the Sonoran CMS should now support the customizable avatar. You can now set your avatar [here](https://account.sonoransoftware.com/). > > [**Discord Webhooks**](/cms/integration-capabilities/discord-webhooks) > > A new webhook event has been added, **Member Join**. This webhook will fire when a member joins your Sonoran CMS community. > > **Forum Topic's** > > Forum topic attachments now support opening in a image viewer instead of downloading the image. Zoom, pan, etc. > > **Account Editing** > > Account editing UI has been slightly reworked to adapt to the new Expiring Ranks. Users will no longer need to select a department prior to assigning a rank. > [tab] Fixed > > **Available Forms** > > * Share link would appear on non-submitted forms > * Form ID "#" would appear on non-submitted forms > * Able to view all and any forms regardless of permission > * State would not update with newly edited/created forms > > **Rosters** > > * Automatic Department Rosters would unreliably get backend generated rows > * Rows be able to be initially edited without proper permission > * Request to edit the row would not process through without valid permissions > > **Discord Webhooks** > > * Forms submitted directly onto a profile would not send a logging webhook ### v0.5.31 (Beta) 3/2/2023 > [tab] New > > [**Custom Page Paths**](/cms/tutorials/community-website/website-builder#custom-page-paths) > > Custom pages can now have a custom path slug to further customize your pages. These path slugs will replace the number ID that is given by default for all custom pages. These paths support custom domains, example: `lspd/sop` would append to a custom domain such as `cms.sonoranrp.com/lspd/sop`. > > [**Custom Form Folders**](/cms/tutorials/forms/creating-custom-forms) > > Custom Forms can now be organized within folders, folders are simply for organizational purposes and serve no additional purposes. > > **Home Page** > > Our home page has been reworked to provide a more user-friendly and informational landing page. > > **API Endpoints** > > **Kick Endpoint** > > **Ban Endpoint** > > **API Integration** > > Copy buttons have been added to the `Community ID` and `API Key` fields. > > **Discord Webhooks** > > Custom Form webhooks have been updated to hyperlink the forms share link to the embed's URL. > [tab] Changed > > **Rosters** > > Automatic Department Roster's have been reworked to improve reliability and performance regarding row generation and response. ### v0.5.30 (Beta) 2/23/2023 > [tab] New > > [**Automatic Rosters**](/cms/tutorials/rosters/creating-custom-rosters#department-automatic) > > Rosters have been reworked to add additional functionality and purpose. All existing rosters have been moved to the type of "Custom", this type is considered for all rosters that will allow you to add and remove rows as you please. With this change the previous *Department* and *Sub-Department* type have been deprecated.\ > \ > A new roster type, Department, was added to replace the previous *Department* roster type. This new roster type is considered automatic meaning rows will be dynamically created based on all members that hold a rank within the specified department. Members will be sorted in the order which their rank within the department is shown, as well as alphabetically. > [tab] Fixed > > **Form Management** > > Filtering forms to show only **Deleted Forms** would show no forms despite fetching all deleted forms. > > [**Custom Forms**](/cms/tutorials/forms/creating-custom-forms) > > An internal ID was not setting correctly upon save which would make the form no longer editable or usable. > > **Menu Items** > > Menu items would not correctly evaluate permissions. ### v0.5.29 (Beta) 2/17/2023 > [tab] New > > [**Form Submission Limits**](/cms/tutorials/forms/creating-custom-forms#limiting-form-submissions) > > Custom Form Templates now have limit settings, these settings will allow you to customize how your forms are being submitted. This allows for submissions to be limited to a certain amount per user, within the last X days, and even with a cooldown between submissions. > > * Limit Total Submissions from each User > * Ignore submissions that are set to a stage with the type of "Archived" > * Submission Cooldown > * Limit Within Last X Days > > [**Department Rank Cosmetic Customization**](/cms/tutorials/user-management/creating-departments#4.-customize-rank-cosmetic-styling) > > Department ranks now have cosmetic styling, this cosmetic addition is only shown when viewing Forum Topic's but will be expanded upon as UI is needed. This customization allows you to change the background color and icon associated with it. > > **Custom Form & Stage Editors** > > Custom Form, Custom Stage and Custom Stage Group editor's have all been centralized into one page and one editor. Create stages directly within forms without the hassle of creating groups to then go back and fourth within editors. > > **Additional Form Management Filters** > > Several new form management filters have been added to better find submissions within your community. Now you're able to use the following filters when managing forms: > > * Community Member > * Form Type > * Was already implemented prior but was improved/fixed as well > * Custom Form > * Search for submissions that were all created from the same custom form template > * Additionally you can specify whether you want to filter the custom form submissions by their current stage as well > [tab] Fixed > > Custom Page Editor > > * When enabling sorting for page sections you'll only be displayed with a maximum of 5 sections even if you have more. > > Account Info > > * Saving an edited account would fail and not provide an error. ### v0.5.28 (Beta) 2/9/2023 > [tab] New > > [Forum System](/cms/tutorials/community-website/forum-system) > > The user interface for the Forum System has been completely revamped, improving the individual topic viewing and forum categories pages. > > * Quote Replying > * There's now an option under a topic or a topic reply will have an option to quote the content of that, this will add the content to your reply editor to allow you to easily quote an individual's post. > [tab] Fixed > > Community Discovery > > * "Load More" button located on the Community Discovery page would not load additional communities > > Community Profile > > * When viewing a profile that's now your own the name of the profile would display "ERROR" > > Rosters > > * Saving a roster row without changing the user's status would cause their status to remove and go back to unset/errored > * Websocket Disconnections > * Permissions checks when gathering all rows would cause a WS disconnection due to a failure in the check > > Account Viewer Table > > * Sorting accounts by the table column labels would not sort properly, they would be randomly sorted and not with the correct sort applied ### v0.5.27 (Beta) 2/2/2023 > [tab] New > > [Custom Login Page](/cms/tutorials/customization/custom-domain#custom-login-page) > > The custom login page has been completely revamped, the old login page has been deprecated and have been moved to the top toolbar & community dashboards. > > * When using a Custom Domain it'll automatically load the community's dashboard page. > * If you're not signed in or not apart of the community you'll be put in a "Preview" mode for the community while you view their dashboard and custom pages. > * Deprecated login page may still be seen as there's some actions that require a login page to direct to. > [tab] Fixed > > [Discord Webhooks](/cms/integration-capabilities/discord-webhooks) > > * Account Updated webhook would not show the correct ranks/departments the account is associated with. > * Event webhooks would include raw HTML within the event description. > * Tutorial button on Discord Webhook page now directs you to the guide. > * Event webhooks would not include any specified content and would always be content-less with the embed. ### v0.5.26 (Beta) 1/26/2023 > [tab] New > > [Dashboard](/cms/tutorials/community-website/website-builder#default-dashboard-page) > > The community Dashboard / Landing page has been completely reworked, this now allows for the full customization of the Custom Page Editor. Set any existing custom page as your community's dashboard page. > > [Custom Page Editor](/cms/tutorials/community-website/website-builder#page-editing) > > * New Page Section Type > * Information Block > * This allows for multiple blocks of information to be added to your page, each block allows for two customizable text options. This also allows you to dynamically populate the block with "Total Community Members" or "Total Department Members". > * UI Improvements > * Several aspects of the Custom Page Editor UI was reworked and improved. > * Page Reordering > * Page reordering is now handled through drag and drops actions instead of direction buttons. > * Page Section Reordering > * Page section reordering is now handled through drag and drops actions instead of direction buttons. > * Default / Landing Page Toggle > * Set a Custom Page as the community's Dashboard / Landing Page. > [tab] Fixed > > Network > > * Handling for WS communication was changed to fix edge-cases with random disconnects. > > Admin Routes > > * Accounts table within the Administrative Panel would populate despite having permission to view any admin pages. ### v0.5.25 (Beta) 1/24/2023 > [tab] New > > [Sonoran CAD Integration](/cms/integration-capabilities/sonoran-cad-sync#feature-overview) > > * **Multi-Setup Sync** > > Sync your single Sonoran CMS community to multiple Sonoran CAD communities! > > [Navigation Button Visibility](/cms/tutorials/community-website/toolbar-customization#toolbar-item-permissions) > > Navigation items on the sidebar can now be dynamically shown based upon permissions. Documentation explains how each navigation item is permission evaluated. > > [Privatized Pages](/cms/tutorials/community-website/website-builder#privatized-pages) > > Pages can now be privatized and require permissions to view, this view type can be changed in the page editor. > > [Available Forms UI](https://cdn.discordapp.com/attachments/859199158568615986/1065772905251737610/8tf7hUj.png) > > The *Available Forms* area is now in a grid UI. > [tab] Fixed > > [Whitelist API](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/verify-whitelist) > > Reponses have been fixed to be consistent and adjusted to provide reliablity to the in-game resource(s). > [tab] Changed > > [Sonoran CAD Integration](/cms/integration-capabilities/sonoran-cad-sync#feature-overview) > > * Individual Manual Sync > * CAD Sync button located in the Account Settings dialog > > Member's can now manually sync their Sonoran CMS account with the linked Sonoran CAD community, this will now sync all aspects of the account besides just permissions. ### v0.5.24 (Beta) 1/12/2023 > [tab] New > > [Sonoran CAD Integration](/cms/integration-capabilities/sonoran-cad-sync#feature-overview) > > * **API ID Sync** > > Sync member's API IDs to the same user from your Sonoran CAD community, if they have a Discord account linked to their account it will sync that ID as well. > > * **Auto Join CAD** > > All new members that join your community automatically join your Sonoran CAD community under the same user ID. > > [Member Join Customization](/cms/tutorials/customization/community-branding-and-settings#member-on-join-settings) > > Through the newly added "Member On Join Settings" you can customize whether members join with "ACTIVE" status, if "ACTIVE" is selected you can customize a rank which they'll be automatically granted. > [tab] Fixed > > [Custom Forms](/cms/tutorials/forms/creating-custom-forms) > > * Forms submitted would not be able to be replied to by the author of the form > * Forms would not be able to be submitted at all > > Department Permissions > > * Secondary rank permissions would not be evaluated correctly with roster related permission checks ### v0.5.23 (Beta) 1/9/2023 > [tab] New > > [Discord Webhooks](/cms/integration-capabilities/discord-webhooks) > > * A new webhook option was added for when submitted forms get their stage changed, a new webhook option is added solely for this event. > > [Page Re-ordering](/cms/tutorials/community-website/website-builder) > > * The ability to sort the position of the pages in which they appear in lists. > > [Form Re-ordering](/cms/tutorials/forms/creating-custom-forms) > > * The ability to sort the position of the forms in which they appear in Available Forms. > > [Conditional Custom Form Sections](/cms/tutorials/forms/creating-custom-forms#conditional-sections) > > * Dynamically show sections within your custom forms based upon conditions set that require to be met with the specified field. > > [Member Customization](/cms/tutorials/customization/community-branding-and-settings#community-name-customization) > > * Allow members to customize their community name's, this setting is community wide. > [tab] Fixed > > User Management > > * Users would not be able to unban any individual within their community's ban list. > > Rosters > > * Patrol log hours would miscalculate based on the forms that were submitted on-behalf of the account, on-behalf of another account, and regular submissions. ### v0.5.22 (Beta) 1/3/2023 > [tab] Fixed > > [Discord Webhooks](/cms/integration-capabilities/discord-webhooks) > > * Webhook preference would appear to not be "saved" when switching pages, data was not updated locally upon backend change. > > Rosters > > * When adding a roster row the previous chosen sort power would be brought to the next row you create. > * Unable to view rosters after attempting to navigate from side smaller UI. > > Forums > > * Creating a public forum topic would cause errors. > > Permission Evaluation > > * Permission evaluation would not be completely considered upon specific page loads (Admin, Form Management, etc.) > > Stage Actions > > * Email stage actions would show the button included in the email as "\{button}" > [tab] Changed > > Forms > > * When submitting a form under another individual's profile it will warn you regarding the form being submitted by the submitter and not the profile it's being submitted under. ### v0.5.21 (Beta) 12/21/2022 > [tab] New > > [Forum System](/cms/tutorials/community-website/forum-system) > > Several new changes have been added to the forum system; > > * [Sub-Categories](/cms/tutorials/community-website/forum-system#creating-forum-sub-categories) > * [Topic Attachments](/cms/tutorials/community-website/forum-system#topic-creation-forum-topic-attachments) > * [Private Topics](/cms/tutorials/community-website/forum-system#creating-private-topics) > * Discord Webhooks > * A new section has been added to the Discord Logging Webhook editor, Forums. This allows webhooks to be executed on Topic Creation & Reply Creation. > > Migration System > > A new database and system migration system has been implemented to ease any updates to the entire system or the database, this will allow usage of the platform when updates are in progress. If a community has not yet been migrated from an update the community will be unusable until the community has completed it's migration. > [tab] Fixed > > Community Creation > > * Creating a community would be unreliable and not create the community > > Discord Webhook Logging Editor > > * Fixed the reliability of Discord Webhook logging data to be consistent to what the data standard is > > Community Toolbar > > * Header links with the community toolbar would only show on the "Dashboard" page ### v0.5.20 (Beta) 12/12/2022 > [tab] New > > [Forum System](/cms/tutorials/community-website/forum-system) > > Several new changes have been added to the forum system; > > * [Dedicated Forum Category Page](/cms/tutorials/community-website/forum-system#dedicated-forum-category-page) > * [Topic Pinning & Locking](/cms/tutorials/community-website/forum-system#topic-actions-pin-and-lock) > * Improved UI > * Forum Category Topics Table > * Usernames within the Forum System will show with community name and identifier format as well as their primary rank if assigned > * Several other UI improvements > * Topic Reply Editing > * You can now edit your own topic replies > [tab] Fixed > > Discord Webhooks > > * Webhook settings would not save depending on various authentication variables > > Department Editor > > * Department Default Permissions would cause the editor to be unusable and causing data to not be saved if certain conditions were met > > Custom Forms > > * Saving a edited submitted form would not complete and would just cause the client to hang without any notification or error > [tab] Changed > > [Forum System](/cms/tutorials/community-website/forum-system) > > **Delete Topics** permission section for forum category's has been moved to **Manage Topics** allowing that same permission section to handle topic deletion, pinning and locking.\ > **Delete Topics -> Manage Topics** ### v0.5.19 (Beta) 12/6/2022 > [tab] New > > [Forum System](/cms/tutorials/community-website/forum-system) > > A new Forum System has been implemented; allows communities to create categories that can be used across multiple or individual custom pages in the form of a custom page section. Each category can have topics created within them, each topic can be removed and replied to. Permissions to create and manage topics/replies is handled by the forum category. > [tab] Fixed > > Form Stage Actions > > * Using both the "Modify Submitter's Community Status" and "Change Submitter's Department/Rank" stage actions on the same stage would cause data to be overwritten when each of them would execute. > > Drive > > * Permissions viewing drive files would cause the data returned to be inconsistent with the data that should be returned. > > Community Creation with Templates > > * Creating a community from a template that's data would cause the community to be over limits would cause none of the template to apply. > > Rosters > > * Viewing a roster would cause none of the roster data rows to populate. > > Accounts Viewer > > * When viewing all of the user accounts in the community and changing the status filter to **BANNED** would not populate the user accounts table with the correct users. ### v0.5.18 (Beta) 11/17/2022 > [tab] New > > [Community Customization](/cms/tutorials/customization/community-branding-and-settings) > > * Cosmetic > * You can now add a community "banner" image, currently this banner image only displays with the notification message sent with bumping your community for discovery. > > [Community Discovery](/cms/tutorials/administrative/growth-and-discovery/discovery) > > * Bumping > * Bumping your community will now include your community's banner image upon bump. If no banner image is set it won't include any image. > > [Custom Pages](/cms/tutorials/community-website/website-builder) > > * Page Elements > * Two new page elements have been added, `Button` and `Button Group`. Both these elements can be added to any custom page. Each button's functionality and style can be configured to fit your needs. Buttons can target to a external website, custom form and custom page. > [tab] Fixed > > [Community Discovery](/cms/tutorials/administrative/growth-and-discovery/discovery) > > * Clicking community cards to open up the community modal would not be possible unless you click the image or text on the card. The whole card should be clickable. > * Clicking a community card would display a modal with additional community information and options to join, this would not include the image. > [tab] Changed > > [Department Manager](/cms/tutorials/user-management/creating-departments) > > * Performance > * Several improvements have been implemented to decrease any issues with performance regarding permission management of departments. ### v0.5.17 (Beta) 11/14/2022 > [tab] Fixed > > [Community Drive](/cms/tutorials/your-drive-and-documents) > > * Editing Files > * An issue which would cause files to not be edited within the member editing page but would still allow edits through the public-sided edit file page. > > [Discord Webhook Logging](/cms/integration-capabilities/discord-webhooks) > > * Editor > * An issue which would cause the webhook input editor to not load fully or at all. > * Webhooks Executing > * An issue which would causing the Calendar Creation webhook to not execute at all. > > [Community Discovery](/cms/tutorials/administrative/growth-and-discovery/discovery) > > * Bump System > * An issue which would cause the Discord advertisement webhook message to include various programmatic types within the message such as '\[object Object]' & 'undefined'. > > [Community Member Profile](/cms/tutorials/customization/community-profile-fields) > > * Forms > * An issue which would cause individuals to be unable to submit forms directly onto another user's profile to attach it to their profile. > > [Rosters](/cms/tutorials/rosters/creating-custom-rosters) > > * Column Types > * Community Identifier row columns would not populate with a user's primary identifier properly unless the conditions which very specific. > > [Custom Stage Form Actions](/cms/tutorials/forms/creating-custom-forms#form-stages) > > * Status Modifier > * An issue which would cause the stage action to change community status to not execute properly unless the individual was active within the community from the start. > [tab] Changed > > [Community Discovery](/cms/tutorials/administrative/growth-and-discovery/discovery) > > * User Interface > * Equal sizing has been applied to all community discovery cards > * Each community has been moved to a dedicated modal upon click to provide additional information prior to the community > > Application User Interface > > * Various aspects of the Sonoran CMS has seen UI improvements ### v0.5.16 (Beta) 11/7/2022 > [tab] New > > [Community Discovery](/cms/tutorials/administrative/growth-and-discovery/discovery) > > * [Bump System](/cms/tutorials/administrative/growth-and-discovery/discovery#most-recently-bumped-community) > * Allows your community to be bumped to the top of the Community Discovery list. > * Every **20 hours**! > * Bumping will automatically advertise your community to the thousands of users in the Sonoran Software Systems LLC's Official Discord! > * Tags Categorization > * Categorization your community with up to **5** predefined tags! > * Select up to **3** tags with Sonoran CMS Free - Plus > * Select up to **5** tags with Sonoran CMS Pro / Sonoran One ### v0.5.15 (Beta) 11/3/2022 > [tab] New > > [Community Discovery](/cms/tutorials/administrative/growth-and-discovery/discovery) > > The Community Discovery Portal brings more members to communities by streamlining the joining process for your community. Joining a community through the discovery portal will automatically prompt them with the community's new member application. Advertise your community to the thousands of users using Sonoran CMS! > > [Default Department Permissions](/cms/tutorials/user-management/creating-departments#group-permissions) > > Default Department Permissions applies the same set of permissions to all ranks within the department to easily manage permissions. > > Admin Form Delete > > Easily remove form submissions from y our community with the newly added "Admin Form Delete". This will remove the form from any data selection, this will now be accounted for when calculating patrol log hours, submissions, etc. > [tab] Fixed > > Community Deletion > > * Communities were unable to be deleted, they will now process the deletion request properly. ### v0.5.14 (Beta) 10/26/2022 > [tab] New > > [Community Profile Fields](/cms/tutorials/customization/community-profile-fields) > > Profile Fields allow communities to put direct information onto member's profiles that can be restricted to certain viewers, editors, etc. with rank permissions. Profile Fields are dynamically on profiles depending on what ranks the profile you're viewing holds. > [tab] Fixed > > Department Editor > > * Duplicating departments would not regenerate the IDs associated with the ranks in the new department which would cause the same ID to be associated by more than one rank. > > Community Profile > > * Submitting forms directly onto a member's profile would cause nothing to happen, it now will process through and allow you to let the profile "owner" to be able to see the form on their profile. ### v0.5.13 (Beta) 10/17/2022 > [tab] New > > [Drive](/cms/tutorials/your-drive-and-documents#folders) > > * [Publicly Accessible Files](/cms/tutorials/your-drive-and-documents#publicly-accessible-files) > * Files can now be accessible by anyone on the internet by a share link. > * A new "General Access" option has been added, "Anyone with this link". > * This will allow anyone to view and/or edit the file through the link given from the "Copy Link" button on the Share Settings dialog. > > [Custom Form Stages](/cms/tutorials/forms/creating-custom-forms#form-stages) > > * Custom Action: Modify Submitter's Community Status > * This new action will do any of the following upon a form changing to a stage with this action: > * Set Submitter to Pending > * Set Submitter to Active > * Kick Submitter from Community > * Ban Submitter from Community > [tab] Fixed > > Billing > > * Fixed an issue that would cause subscriptions to not update on the backend. > > Rosters > > * Fixed an issue where editing a secondary row would cause ranks to not populate in the dropdowns properly. > > Toolbar > > * Fixed an issue where the toolbar would not show on custom domains. ### v0.5.12 (Beta) 9/29/2022 > [tab] New > > [Drive Enhancements](/cms/tutorials/your-drive-and-documents#folders) > > * [Share Settings Overhaul](/cms/tutorials/your-drive-and-documents#share-settings) > * The Share Settings for each drive item has been overhauled, this shows all ranks that have access and some general share types. > * There's now a "Ranks with Access Permissions", this will allow all listed ranks to have either edit or view access. This will grant them access regardless of what General Access is set to. This also has a "Inherit Parent Folder Access Permissions" option, this will only show for non-root items and this will inherit the parent folder's access permissions to determine with the drive items existing access permissions. > * There's now several General Access types: > * Restricted - Only utilizes "Ranks with All Drive Access" and "Ranks with Access Permissions" > * Active members with this link - Allows all users that are active within your community to access the drive item, you can also control if they see the drive item in their drive or if they can only access through the share link. > * Active & pending members with this link - Allows all users within your community to access the drive item, you can also control if they see the drive item in their drive or if they can only access through the share link. > * Inherit Parent Folder General Access - This will inherit one of the above options depending on what the parent folder is currently set to. > * The following are the now deprecated share types each drive item had and how they were migrated to the new settings: > * PRIVATE > * All drive items with this share type was migrated to **Restricted** General Access share type. > * UNLISTED > * All drive items with this share type was migrated to **Active members with this link** General Access share type with it hidden in the drive. > * PUBLIC > * All drive items with this share type was migrated to **Active & pending members with this link** General Access share type with it showing in the drive. > * INHERIT\_FOLDER > * All drive items with this share type was migrated to **Inherit Parent Folder General Access** General Access share type. > * Right Click Context Menu > * The right click context menu is now accessible by clicking the green hamburger button. > > Dashboard URL Handling > > * Individual Rosters & Individual sections of the Admin Panel are now direct linkable, you can now copy the link and go directly back to where you were with that link. > [tab] Fixed > > Drive Uploading > > * When uploading to a folder it will now upload directly into the folder instead of putting it directly into the root > > Form Management > > * WebSocket Error would cause the Form Management panel to be unusable > * Pagination restricted to only see the first initial 20 forms received from the request, it would not update the pagination settings to get more than what it already got > [tab] Changed > > Drive Uploading > > * ZIP Uploading will set General Access share type to **Inherit Parent Folder General AccessDa** ### v0.5.11 (Beta) 9/19/2022 > [tab] New > > [Drive Folder Permissions Expansion](/cms/tutorials/your-drive-and-documents#folders) > > * Folders can now have their own Share Type & Permissions associated with them. > * Right click a folder to manage. > * A new Share Type was added to Drive items, you can now set items to the Share Type of "Inherit Parent Folder" which will inherit Share Type & Permissions associated with the folder. > [tab] Fixed > > Available Forms > > * Forms available to submit based on associated permissions would not populate the table > * Submitting forms would cause infinite loading or appear to be frozen > > Form Management > > * Submitted forms based on associated permissions would not populate the table > > Custom Form > > * Auto member fields would not populate with the source data > > Rosters > > * Roster patrol log columns would not calculate hours and would only be "N/A" > > Profiles > > * Attempting to view a profile that's not yours would direct to your own profile > > Account Viewer > > * Filtering accounts by "BANNED" would result in an empty table instead of showing all banned users ### v0.5.10 (Beta) 9/8/2022 > [tab] New > > [Discord Role Sync](/cms/integration-capabilities/discord-bot-integration) > > * A system was introduced to handle Discord Role Sync upon the release of the Sonoran Bot's newest update > * This will allow bi-directional syncing > * CMS \<-> Discord > * Utilizes your Sonoran Account Discord Link > * Does not handle API ID's of Discord ID's, it will only search and grab the Discord account linked to your Sonoran Account > > [API Endpoints](/cms/developer-api-documentation/api-integration/api-endpoints-v2) > > * `GET_DEPARTMENTS` > * `SET_ACCOUNT_RANKS` > [tab] Fixed > > Department Editor > > * Department creation would remove the department label > > Rosters > > * Rows not populating due to how data was formatted > > Drive > > * Drive UI not populating with the correct folders > > Stage Editor > > * Stages & Stage Groups were not saving in the state causing confusion of what is saved > > Form Management > > * Filtering would break the page and would require a refresh, the search functionality was disabled at this time while we re-work the search function > > Toolbar > > * Toolbar should only be showing while viewing a community > > Notifications > > * Notifications should be getting received in real time instead of on each refresh > > Menu > > * Community cards will now show the title & subtitle instead of title & description > > WS Stability > > * Several WS event listeners on the client side have been corrected to be dispatched properly from the server side ### v0.5.9 (Beta) 9/1/2022 > [tab] New > > Drive > > * [File Uploading](/cms/tutorials/your-drive-and-documents#uploading-batch-files-zip) now supports **ZIP**s, this means you can bulk import files from popular file hosting services such as Google Drive. > * Easily migrate all your files and directories directly into Sonoran CMS Drive with one ZIP. > > Community Templates > > * Template Management > * This allows you to create templates from your community setup and share it with other communities to benefit from. > * All submitted templates will go through a review process with the Sonoran CMS Development Team. > [tab] Changed > > Community Customization > > * The way statuses were saved in the Community Customization was changed to improve the workflow of managing statuses. ### v0.5.8 (Beta) 8/29/2022 > [tab] New > > Community Templates > > * "Standard" Community Template was added, accessible through community creation & existing communities > [tab] Changed > > Backend > > * Several backend changes were added to assist support with debugging issues ### v0.5.7 (Beta) 8/22/2022 > [tab] New > > Dashboard URL Handling > > * All pages accessible through the left-side menu in the dashboard will now take you to a physical URL that can be copied and pasted to members to open to directly. > * Further handling will be developed in further updates. > [tab] Changed > > [FiveM Whitelist Resource](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/whitelist) > > * The cache backup handling was updated to follow standards with the rest of the resource, now fully using [Sonoran.js](https://www.npmjs.com/package/@sonoransoftware/sonoran.js). > [tab] Fixed > > Community Templates > > * Toolbar items set from a template on pre-existing communities will now properly set to imported pages, this was only for using a template on a existing community, not new communities. ### v0.5.6 (Beta) 8/17/2022 > [tab] New > > [Custom Domain](/cms/tutorials/customization/custom-domain) > > * Communities are auto-joined when visiting their custom domain (and successfully logging in) > > [Custom Pages](/cms/tutorials/community-website/website-builder) > > * Custom pages can now be setup as direct links from toolbar items > > Subscriptions > > * Pro subscriptions now come with a 14 day free trial! All other subscriptions currently do not have trials > * Only one trial per person, and one trial per community > > Community Templates > > * Community templates can now be applied to existing communities! If you wish to apply a template, look under Customization in the Administration Panel > [tab] Fixed > > Affiliates > > * Affiliate Links will now correctly display information about Sonoran CMS > > Menu > > * Automatic redirection to the menu from index page is now much faster ### v0.5.5 (Beta) 8/15/2022 > [tab] New > > [Sonoran CAD Sync](/cms/integration-capabilities/sonoran-cad-sync) > > * Map Sonoran CAD permissions to your department ranks to sync permissions directly with Sonoran CAD. > * Enable Kick and Ban sync to immediately kick and/or ban a user from your Sonoran CAD community when kicked or banned from your Sonoran CMS. > > Community Templates > > * Community Templates are now accessible through Community Customization, you can replace your community with an available template or add onto your existing community by adding bits and pieces from an available template. > [tab] Fixed > > Calendars > > * Fixed an issue regarding an error when attempting to delete a calendar category. > * Fixed an issue regarding calendar permissions not allowing certain actions despite what permissions that individual actually has. > > Rosters > > * Fixed an issue where roster rows wouldn't populate due to a row missing a rank/department. ### v0.5.3 (Beta) 8/10/2022 > [tab] New > > [Permissions Sync](/cms/integration-capabilities/in-game-integration-resources/core/core-submodules/ace-permission-sync) > > * A new integration resource was added to allow syncing of permissions between Sonoran CMS and your in-game server. > * Easily manage your in-game permissions by mapping them to specific Sonoran CMS ranks. ### v0.5.2 (Beta) 8/8/2022 > [tab] New > > [Drive & Documents](/cms/tutorials/your-drive-and-documents) > > * Creating folders and moving files into folders is now possible > * Permissions for folders coming soon > * Multiple file types now supported > * +Presentations > * +Excel Sheets > * Usage is now shown on the drive's toolbar > * Sensitive mode is now added for all file types > [tab] Fixed > > Communities > > * Issue with changing Community IDs is resolved ### v0.5.1 (Beta) 8/4/2022 > [tab] New > > [Drive & Documents](/cms/tutorials/your-drive-and-documents) > > * Permissions have been expanded for the Sonoran CMS Drive, you'll now be able to set VIEW and EDIT permissions to individual documents by editing the document. This requires the "Modify All Documents (Drive)" permission. > * You can now upload documents directly to the Sonoran CMS Drive. > > [Translations](https://github.com/Sonoran-Software/sonorancms_translations) > > * A German translation has been added, thank you to [Linztric801](https://github.com/Linztric801) for that. > > Community Templates > > * A new template was added for community creation. Applying templates to created community's will be re-implemented in a future update. > [tab] Fixed > > SSO & Account > > * Fixed an issue where your account username would not update on Sonoran CMS when changed on Sonoran Accounts. > > Discord Webhooks > > * Fixed an issue where form submission webhooks would not be sent out. > > Image Uploading > > * Fixed an issue that prevented image uploading to not be accessible at all, the button was fixed and will now appear. > > Joining & Leaving Communities > > * Fixed an issue which wouldn't allow you to join or leave a community. ### v0.5.0 (Beta) 7/27/2022 > [tab] New > > [Drive & Documents](/cms/tutorials/your-drive-and-documents) > > * Communities can now create and manage documents within their community directly in Sonoran CMS. > * Initial permissions have been introduced to manage and/or view all documents. > * Drive includes a complete document editor to create and edit documents. > * More document types will be supported in future updates. > [tab] Fixed > > Desktop & Mobile Apps > > * An issue causing the desktop and mobile apps to not load was fixed. ### v0.4.4 (Beta) 7/20/2022 > [tab] New > > [Community Pages](/cms/tutorials/community-website/website-builder) > > * Custom pages now have their own URLs > * Links to custom pages are public (anyone can access the URLs) > > Communities > > * Community dashboards now load a separate URL: `/com/{community_uuid}` > * The community selection menu can be accessed through a button in the account dropdown > > [Custom Domain](/cms/tutorials/customization/custom-domain) > > * Custom domains will now load the community dashboard at the index URL (i.e. `https://mycustomdomain.com/` > [tab] Fixed > > * Custom domains now properly redirect back with Sonoran Login > * Discord and Apple logins still redirect back to the main site, unfortunately > * Redirect to login from dashboard being slow is fixed > * Other small bug fixes ### v0.4.3 (Beta) 7/18/2022 > [tab] New > > [Community Pages](/cms/tutorials/community-website/website-builder) > > * Communities now have the ability to create multiple custom pages for their community > * Free: 2 > * Starter: 4 > * Standard: 6 > * Plus: 10 > * Pro: Unlimited > [tab] Fixed > > * Bug creating new stage groups > * Bug with manager departments and ranks > * Bug with editing permissions in the department editor ### v0.4.2 (Beta) 7/12/2022 > [tab] New > > [Community Pages](/cms/tutorials/community-website/website-builder) > > * Grants all communities a single page they can edit with content sections, videos, and images. This page can be accessed on the Dashboard of a community > * Much more is pending with community pages, stay tuned! > [tab] Fixed > > Login Issues > > * Intermittent issues with login and usage of communities is now fixed > > Migration Issues > > * Many issues relating to the recent migration from v0.4.0 have been fixed, with more on the way ### v0.4.1 (Beta) 7/11/2022 > [tab] New > > [Toolbar Customization](/cms/tutorials/community-website/toolbar-customization) > > * Allows you to customize the top toolbar with buttons and dropdowns options with whatever label and link that you desire. > > [Vanity URL](/cms/tutorials/customization/custom-domain#vanity-urls-not-implemented) > > * Allows all communities the option to use a **FREE** vanity URL with their community, this URL is based on your community ID and will provide you with a custom login page displaying your community's image. ### v0.4.0 (Beta) 7/7/2022 This update consisted of a complete rewrite of the backend and partially the frontend. This was to update and move over to more reliable and stable techniques required for future updates. This update didn't consist of any new features but rather **several** fixes throughout the application. ### v0.3.0 (Beta) 4/4/2022 > [tab] New > > [Public API](/cms/developer-api-documentation/api-integration)\ > \- Introducing another way for developer's and community's to interact with Sonoran CMS.\ > \- The first set of endpoints are only the start to a long list of endpoints we have planned to offer.\ > \ > Clock In/Out\ > \- Timestamped Notes were introduced in this update, allowing members to add a timestamped note to a current clock in.\ > \- Notes are accessible in the community profile view. Downloading/exporting of clock in data is restricted to Plus or higher.\ > \ > Whitelist System\ > \- Introduced hand-in-hand with the public API, paired with the Sonoran provided whitelist script allows multi-server whitelist provided through Sonoran CMS.\ > \ > Community Accounts\ > \- Last Login timestamp has been added and now tracked in the Administrative Panel Account area.\ > \ > Calendars\ > \- The UI for the calendar events have been reworked to favor a large design instead of being so "crammed" and busy. No longer will cause UI to bug out due to missing image.\ > \- Overall improvement of reliability of Discord webhooks sending for calendar related Discord webhooks.\ > \ > [API ID System](/cms/developer-api-documentation/api-integration/getting-started/api-id-system)\ > \- Allows a bridge between 3rd party resources and Sonoran CMS with utilizing a unique identifier to be used for API calls. > [tab] Fixed > > Billing Portal\ > \- Subscriptions infinitely loading or erroring out due to failed subscriptions GET. Will now process if legacy errors out which was the main cause for the issue listed.\ > \ > Form Management Performance\ > \- Large amount of forms would cause performance issues with the Form Management panel, this has been corrected and performance issues should be minimal to non-existent.\ > \ > Several other bugs were fixed but were very minor to be listed. ### v0.2.1 (Beta) 2/5/2022 > [tab] Fixed > > Form Permissions\ > \- Permission issues related to seeing, changing, and replying to forms were fixed.\ > \ > Calendar\ > \- Calendar times weren't always translated to local time and when sent through a Discord webhook it would provide the local server time, now it'll send the Discord timestamp format that'll automatically show in your local time.\ > \ > Desktop Version\ > \- The desktop version of Sonoran CMS was unusable as of v0.2.0 due to a package issue. ### v0.2.0 (Beta) 1/28/2022 > [tab] New > > [Custom Form Stages](/cms/tutorials/forms/creating-custom-forms#form-stages)\ > \- Custom Form Stages are stages at which a form can be on, each stage can have powerful actions executed once that form gets changed to that stage. Various actions such as executing a webhook, automatically replying, etc.\\ > > [Custom Form Stage Groups](/cms/tutorials/forms/creating-custom-forms#form-stages)\ > \- Custom Form Stage Groups are *rough* pre-determined routes you can assign to a form, groups allow you to choose what stage(s) are shown at each stage the form has the potential of being on. > > \ > Custom Form UI\ > \- With this update, we introduced some new UI techniques and practices that we hope to expand throughout the app with. This only affected the custom forms section of the entire application, the forms got a dedicated page UI, dashboard sidebar got visited, etc.\ > \ > Page Transitions\ > \- All pages now have transitions between them, this will make everything feel more smooth. It's nice. > [tab] Changed > > Backend\ > \- There were several changes to the backend for the efficiency and productivity of the application. We improved upon the permissions system to sync more efficiently and effectively, allowing for less room for error. > [tab] Fixed > > Default Community Toggle\ > \- When toggling default on a community, either off or on, it won't allow you to then select the community to enter it. > > \ > Rosters - Patrol Log Hour Calculations\ > \- Patrol log hour roster columns would only display hours 0-23 instead of all hours, this has been corrected to show all hours after the date specified.\ > \ > Custom Form Issues\ > \- Several issues related to custom forms have been fixed, form content not updating properly after saving, forms not updating at all, seeing forms not within permissions, not seeing forms within permissions, etc.\ > \ > Discord Webhooks\ > \- Saving webhooks returned an error. ### v0.1.6 (Beta) 8/4/2021 > [tab] Fixes > > Calendar Events - Missing Functionality\ > \- Fixed the missing functionality for editing calendar events, editing calendar events is now possible with this update.\ > \ > Account Creation\ > \- Fixed an issue that caused signing up for a new account to be impossible and not work. This was pushed to the web a few days prior to v0.1.6-beta being released.\ > \ > Custom Forms\ > \- Fixed an issue that would result in forms created on an individual to not be available in the available forms which wouldn't allow you to edit or archive the form after it being created. ### v0.1.5 (Beta) 8/1/2021 > [tab] Fixes > > Community Selection Menu\ > \- Fixed an issue on top of the last update's issue with being able to join or create multiple of the same community at the same time within a fraction of a second.\ > \- Fixed an issue that would cause nothing to happen or show if you leave a community and rejoin that community you just left. It'll display an error and explain the issue if you're banned or for other reasons. Should allow users to rejoin communities now if they leave.\ > \ > Rosters\ > \- Fixed an issue that would cause you to not see columns with the type of textarea when you create or edit a roster row.\ > \- Fixed an issue that wouldn't allow you to scroll textarea type inputs if the content text exceeds the viewable box due to the field being disabled when viewing the response. ### v0.1.4 (Beta) 7/31/2021 > [tab] Fixes > > Community Templates\ > \- Fixed an issue that allowed for community templates to show all available instead of available within your current limits and would let you use a template that's out of your limits.\ > \ > Rosters\ > \- Fixed an issue that would cause you to not see columns with the type of date or time when you create or edit a roster row.\ > \ > Community ID Query URL\ > \- Fixed an issue that wouldn't properly auto-join/invite you to the community if you signup from a query URL.\ > \ > Missing Permissions\ > \- Fixed an issue that caused the custom domain and discord integration tabs under advanced would not check if they had permissions. Discord Webhook Logging now has its own permission and the custom domain panel is now associated with the community customization permission.\ > \ > Community Selection Menu\ > \- Fixed an issue that would allow you to join or create multiple communities if you spammed the community card or create a community button before it disappeared. ### v0.1.3 (Beta) 7/29/2021 > [tab] New > > [Custom Domain System](/cms/tutorials/customization/custom-domain)\ > \- Communities that are on the Standard Plan+ can now set up their custom domain through a DNS record to be used as a custom login page for Sonoran CMS.\ > \ > [Discord RPC](/cms/integration-capabilities/discord-rich-presence)\ > \- The desktop application now adds rich presence info and buttons to your Discord profile. You can customize the invite link to your Sonoran CMS community, or your community's Sonoran CAD.\ > \ > [Discord Webhooks](/cms/integration-capabilities/discord-webhooks)\ > \- We've added Discord Webhooks for all your logging needs, you can now set up Discord webhooks to be sent when you get a new application, someone edits another account's information, etc.\ > \ > [Community Dashboard Buttons](/cms/tutorials/customization/community-branding-and-settings#community-information)\ > \- We've introduced functionality to the website and discord inputs that are in the Community Customization area of the Administrative Panel. Both of these inputs will now show buttons located in the initial Dashboard view.\ > \ > Community Login Query Strings\ > \- Sonoran CMS URLs now support the use of ?comid=[**communityID**](/cms/tutorials/customization/community-branding-and-settings#community-id) at the end of URLs. You can hand these out to automatically invite users to your community, this will automatically direct them to the community selection menu where they can accept an invite.\ > \ > [Android Application](/cms/download)\ > \- Sonoran CMS is now on the Google Play Store for [download](https://play.google.com/store/apps/details?id=com.sonorancms). > [tab] Fixed > > Form Management\ > \- Fixed an issue where permissions wouldn't be checked in the form management panel, this would allow anyone that has at least one permission to view that area (view pending, approve pending, deny pending, etc) can view all forms in that area even if they don't have the view pending for that specific form.\ > \ > Rosters\ > \- Fixed an issue that would cause corruption on rosters when you attempt to add or edit a row. If you add a row not all columns would show on the input and if you edit it wouldn't allow you to save.\ > \- Status selector column would corrupt and change the status to "Invalid Status" if when saving a row you didn't change the status at all.\ > \ > Empty Dropdowns for Member and Multi-Member Selector Fields\ > \- Fixed an issue where dropdowns would be empty due to communities setting their **name & identifier format** as empty which would result in an empty format. This is fixed and will show the username of the account by default.\ > \ > Available Forms\ > \- When editing a submitted form it wouldn't update locally unless you left the available forms area and then came back, it's been fixed from just saving to the backend. ### v0.1.2 (Beta) 7/19/2021 > [tab] New > > Delete Community\ > \- We've added in the feature to delete your community if you ever need to, this is located in the Administrative Panel > Advanced Limits. View the guide [here](/cms/tutorials/administrative/delete-community) for more information! > [tab] Fixed > > Rosters Populating\ > \- Fixed an issue that would cause rosters to fail to populate and would infinitely load data due to a character cap for row entries.\ > \ > Community Templates\ > \- Fixed an issue that would cause applying templates to not apply calendar permissions for imported ranks.\ > \ > Custom Forms - New Member Application\ > \- Fixed an issue that would result in users that are set to pending within communities not be able to see custom forms with the type of "New Member Application". ### v0.1.1 (Beta) 7/17/2021 > [tab] New > > Remove Branding - Premium Feature\ > \- A premium feature was added to Pro plan customers that will remove all Sonoran CMS branding and will replace it with community branding.\ > \ > Leave Community\ > \- Leave community feature was added to the community selection menu, the button will be disabled if you own a community. > [tab] Changed > > Electron - Desktop Application\ > \- Changed the desktop application frame to be frameless and styled the application bar to use Sonoran CMS branding and community branding if a community is on the Pro plan. > [tab] Fixed > > Default Community\ > \- Fixed an issue that would result in the default community button, not function and wouldn't set the community as default.\ > \ > Clock In/Out System\ > \- Fixed an issue that would cause a partial clock in (clocked in but not clocked out) to hang the browser if refreshed.\ > \ > Backend - Limits\ > \- Fixed an issue that would result in limits not getting checked on both the frontend and backend, only the frontend. ### v0.1.0 (Beta) 7/15/2021 > [tab] New > > Landing Page\ > \- A brand new landing page was created for [sonorancms.com](https://sonorancms.com/), a new layout was also introduced located in the footer of the page to direct you to other Sonoran Software Systems, LLC products.\ > \ > Billing Portal\ > \- A billing portal was introduced to Sonoran CMS to accommodate the update to Sonoran CMS Beta. From v0.1.0 forward Sonoran CMS will be subscription-based with a free tier available to all users of Sonoran CMS. ### v0.0.6 (Alpha) 7/7/2021 > [tab] New > > Pagination Sync\ > \- Row pagination will now save the rows per page setting locally for when you return to the page it will automatically sync from your local save.\ > \ > Administrative Panel - Accounts\ > \- When viewing the accounts panel in the administrative panel you'll be able to filter all accounts by their community status (Active, Pending, Banned).\ > \- Also when viewing the accounts panel in the administrative panel you'll be able to search for accounts, with this search it'll filter all accounts by their username and community name. > [tab] Fixed > > Administrative Panel - Accounts\ > \- Fixed an issue that would cause the "kick" and "ban" features to essentially not work at all.\ > \ > Dashboard\ > \- Fixed an issue that would cause the UI of the dashboard to not correctly update whenever the user's account would get updated. > > Dashboard - Community Profile View\ > \- Fixed an issue that would allow users to be able to view another account's profile and view all of their "Disciplinary Action" type forms without checking the community power of both accounts. ### v0.0.5 (Alpha) 7/6/2021 > [tab] New > > Community Templates System\ > \- The Community Templates System will allow users to create new communities from templates instead of a blank community, they will also have the option to create a blank community if they choose.\ > \- This system allows existing communities to import templates into their community as well, this is outlined in Community Template System.\ > \ > Custom Form Editor - Move Fields\ > \- Added a feature that allows users to move fields within a section in the Custom Form Editor.\ > \ > Department Manager - Duplicating Departments & Ranks\ > \- Added a feature that allows users to duplicate entire departments and ranks for easier department managing, this is outlined in [Managing Rank Permissions](/cms/tutorials/user-management/creating-departments#assigning-rank-permissions).\ > \ > Department Manager - Permission Copy & Paste\ > \- Added a feature that allows users to copy and paste permissions across different ranks, this is outlined in [Managing Rank Permissions](/cms/tutorials/user-management/creating-departments#assigning-rank-permissions). > [tab] Changed > > App Version UI\ > \- Modified the App Version located at the bottom of the version to a redirect to the changelog.\ > \ > Account Profile\ > \- Changed the "Edit Account" button in the account profile to redirect you to the Sonoran Accounts site to modify your username, email preferences, etc.\ > \ > Roster View\ > \- Changed the roster values to only show a tooltip if the total characters are over 25, before this it would have a tooltip for all values. > [tab] Fixed > > Dashboard - Permissions\ > \- Fixed an issue that would cause users to be missing permissions and be redirected to the community selection menu when they refresh anywhere on the dashboard. This introduces a more efficient and smoother transition from anywhere to the dashboard.\ > \ > Administrative Panel - Accounts\ > \- Fixed an issue that would allow users to be able to kick/ban themselves.\ > \ > Dashboard - Community Profile View\ > \- Fixed an issue that resulted in "member selector" and "multi-member selector" fields not populating their options correctly.\ > \ > Community Selection Menu\ > \- Fixed an issue that would allow users to select more than one default community.\ > \ > Dashboard - Community Calendar\ > \- Fixed an issue that wouldn't allow community owners to create events unless they had explicit permission.\ > \ > Custom Forms\ > \- There was an issue that was fixed that caused forms in the Form Management area with the "multi-member selector" field to show blank on that field area.\ > \- Fixed an issue that would show "for " on the form top bar when submitting a new form in the Available Forms area.\ > \- Fixed an issue that would cause an inconsistent input mask between the Clock In/Out form section for dates.\ > \ > Administrative Panel - Custom Roster Editor\ > \- Fixed an issue that would cause the wrong UI being shown with roster columns due to a character case.\ > \ > Administrative Panel - Department Manager\ > \- Fixed an issue that would cause the wrong department to get removed when using the remove department feature within the department manager. ### v0.0.4 (Alpha) 6/30/2021 > [tab] New > > Version Viewer\ > \- The version of CMS that you're using will be shown at the very bottom of the page.\ > \ > Calendar Events Deletion\ > \- Added a feature to allow users with permission to delete calendar events off of a calendar. > [tab] Fixed > > Login Password Validation\ > \- Fixes an issue where there would be strict input validation on login password input, this would cause users that created a password prior to the new password requirements to not be able to login.\ > \ > Signup Error\ > \- Fixes an issue where it would give you a non-descriptive error if your email was already in use when signing up.\ > \ > Profile Clock Data\ > \- Fixed an issue where it would show "Invalid Date" in the Clock In/Out table.\ > \ > New Calendar Event Dialog\ > \- Fixed an issue where there was no form validation on the new event dialog, this would allow for any user with permission to create an event with no information.\ > \ > Form Submissions on Profile View\ > \- Fixed an issue where nothing would happen once you submit a form on someone's profile, it will now display a top notification and input into the correct table.\ > \ > Disciplinary Action Forms\ > \- Fixed an issue where users that have a "Disciplinary Action" form type submitted on their profile to be able to see that submission and edit it. ### v0.0.3 (Alpha) 6/30/2021 > [tab] New > > Image Uploading\ > \- Image uploading is now supported for community information and custom forms.\ > \ > Custom Form Editor\ > \- Premade form sections will now have a required section toggle similar to the field require toggle.\ > \ > Custom Forms via Profile View\ > \- Custom forms can now be directly submitted to a user within the user's profile view. > [tab] Changed > > Community Customization\ > \- Moved "Custom Statuses" from being in the "Community Info" expansion to it's own expansion.\ > \ > Clock In/Out\ > \- Changed the way clock in/out times are parsed and saved. > [tab] Fixed > > Notifications\ > \- Fixed an issue where notifications would be sent out but wouldn't be saved in the backend.\ > \ > Backend\ > \- Fixed an issue with multiple DB calls not providing the proper date & time format when saving. > > Login, Signup & Top Toolbar\ > \- Fixed login, signup and top toolbar having issues with sizing and positioning on smaller screen sizes.\ > \ > Community Creation Validation\ > \- Fixed an issue where there were no validation checks for community creation inputs.\ > \ > Viewing Forms\ > \- Fixed an issue where form styling wouldn't be consistent between all areas that you can view a custom form, now spacing will be more consistent between all areas.\ > \ > Dashboard\ > \- Fixed an issue of getting kicked to the menu page if your system status is "Pending" within the community.\ > \ > Rosters\ > \- Fixed an issue where anyone with roster view permissions to edit any roster data. ### v0.0.2 (Alpha) 6/29/2021 > [tab] Changed > > Login\ > \- Moved "Forgot Password" to utilize an in-app procedure, no longer will redirect to Sonoran Accounts.\ > \- Changed login inputs to validate input once the user has lost focus of the input instead of as it's typed in. > > Signup\ > \- Changed signup inputs to validate input once the user has lost focus of the input instead of as it's typed in. > [tab] Fixed > > Account Registration\ > \- Fixed an issue where no email would be sent to the user to verify their account. > > Form Management - Form Dialog\ > \- Fixed an issue of the "Patrol Start/End" premade form section not showing up on submitted forms within the "Form Management" section of the Dashboard. > > Profile - Name Header\ > \- Fixed an issue of the name/identifier header to show name fine but with "null". > > Custom Rosters\ > \- Fixed an issue where you couldn't input select options when selecting the "select" column type.\ > \- Fixed an issue where the checkbox column type wouldn't work at all. ### v0.0.1 (Alpha) 6/28/2021 > [tab] New > > Initial Release\ > \- Initial release of Sonoran CMS (Alpha) # Administrative Source: https://docs.sonoransoftware.com/cms/tutorials/administrative Learn more about administrative actions in Sonoran CMS. # Actions Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/actions Configure routine actions to be performed in the CMS. ## Configuring Actions Actions are routine automations ran at specific intervals. Communities may wish to send an in-game reminder message every 10 minutes, or a Discord webhook once per hour. In the actions panel actions can be configured, enabled, and manually triggered. ![](https://docs-assets.sonoransoftware.com/sha256/36/36caa13a73ebb08fbd25341470a8ddfcf57f321407f3934e1f08c0ffbc2cdc50.png) *Sonoran CMS - Automated Actions* ## Action Triggers * **Interval**: Triggers the action every X minutes. * **Roster**: [Triggers the action when a roster cell is updated](/cms/tutorials/rosters/roster-automations#roster-trigger-actions). # Archive Community Member Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/archive-community-member Looking to archive a member of your community from your Sonoran CMS? [Video tutorial](https://www.youtube-nocookie.com/embed/3bwsRB1wAwo) > [!WARNING] > > You must have the **Archive User** permission or the Community Owner in order to archive another individual, the same checks are applied as kick and bans. ### What is Archiving a member? Archiving a community member keeps the member within the community in a "Archived" state. They're technically kicked from the community which won't allow them to log into the community till they've rejoined. While a user is "Archived" you're still able to view their Community Profile and edit information on that user. > [!NOTE] > > Archiving a member does not block them from rejoining, it's simply removing them from the community and still showing them as an accessible account. ### How to Archive a Member? To archive a member head over to the `Administrative Panel` > `User Accounts`. Once you've located the member you'd like to archive, click their row which will provide you with a editing dialog. Below their account name and to the right of the "Kick" and "Ban" options, there should be a grey **Archive** button, if you have permission. Click that button and it will ask you to confirm that you want to archive this user. Additionally you're given the option to choose whether their rank and identifiers get removed or if they stay on the account. If rank(s) are not removed from their account upon archiving it does not mean they still have permission or can do anything additional, it's simply for organization. ![](https://docs-assets.sonoransoftware.com/sha256/ff/ff2e8197ea2c399bf8adcaf7e82358c0ba40d113429ef542cbfb950ae1bcb538.png) *Sonoran CMS - Archive User Confirmation* ### How to Unarchive a Member? > [!NOTE] > > Unarchiving a member is **NOT** required for the member to rejoin the Sonoran CMS community but can help with organization. To unarchive a member head over to the `Administrative Panel` > `User Accounts` and click the drop down in the top left to filter user accounts. You'll want to change this to the "ARCHIVED" option. This will now display all *Archived* members. Once you've located the archived member, click their row which will provide you with a dialog. Choose whether or not if their rank(s) and identifier(s) should be removed and confirm the unarchiving. ![](https://docs-assets.sonoransoftware.com/sha256/b3/b3d1472889da35dc24efe587116694095a8fa5a1e3b16db93605855ca5226d3d.png) *Sonoran CMS - Unarchive Confirmation* # Backups Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/backups Restore daily backups of your community that are retained for 7 days! ![](https://docs-assets.sonoransoftware.com/sha256/2b/2b84e60e62ad23272633b469976f300f94fda3c6e3aa643feee866ecb16ed59c.png) > [!WARNING] > > **The Backup Restorations are only enabled with a Pro Subscription!** > > Learn more about our [paid plans](/cms/pricing/pricing-faq/create-and-manage-a-subscription). ## What are backups? They're full data snapshots of your community taken nightly allowing you to restore categorial data of your community in the event something is lost accidentally or maliciously. Snapshots are stored for 7 days before they're deleted from our backend. You may restore a snapshot as many times are you wish within the 7 day period of it originally being stored. > [!NOTE] > > Backup Snapshots can only be restored by the owner of the community for security reasons. ## What can I restore from a snapshot? ![](https://docs-assets.sonoransoftware.com/sha256/c8/c892e88b93e437550d0c4087e2c959f2f8b590510e4e8e032205e66570000b9a.png) ![](https://docs-assets.sonoransoftware.com/sha256/f7/f7305e21059bcda8277f251c04f5f28fae4cd64d8263c4d44a0e1c509c28174d.png) ![](https://docs-assets.sonoransoftware.com/sha256/83/836def101a393c1eded99a51b2fec9e81849ce568af17a0c3a7f1e1a9aa6cebe.png) ![](https://docs-assets.sonoransoftware.com/sha256/04/0470eea03c64425ea7adbd8d0f93190153ac3f54b497b896fded1dabd019a050.png) You can granually restore certain aspects of the snapshots through various categories; Customization, Structure, Integrations & Content. Each category has various options that you can select to restore from form templates to departments to account rows. These will fully restore the data from when the snapshot was taken. ## How to restore a snapshot? All restorations will require a request, once requested there will be an email sent to the owner of the community to verify the restoration is validated. The owner of the community may request a snapshot restoration through the Backups panel located within the Advanced area of the Admin Panel. From there the owner will select the "Request Restore" button for the snapshot they desire. They can select everything that will be restored from the snapshot. Once everything is confirmed of what is to be stored you can click "Send Restore Request". This will send an email to the owner for them to finish the final steps before the snapshot is applied. ![](https://docs-assets.sonoransoftware.com/sha256/94/9425141df3b77a37330276f8912cd42ede4d89b714bfc82a5f3fc10081c3c0b0.png) Once the owner receives the email they'll need to click the "Approve Restore" button from the email which will take them to the page to view the dialog above. Once they complete this step it'll start the snapshot restoration. During the snapshot restoration the community will be locked from usage till it completes which can take some time. # Delete & Transfer Community Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/delete-community Sonoran CMS offers you the ability to delete & transfer your current CMS community. [Video tutorial](https://www.youtube-nocookie.com/embed/1gEUsRqy5os) > [!WARNING] > > Only the community owner can delete or transfer the community. ## How-To: Deleting a Community ### Access the Administrative Panel Navigate to the `Administrative Panel` ![Sonoran CMS - Administrative Panel First View](https://docs-assets.sonoransoftware.com/sha256/98/980c75773ca3b487cea59bcf3cd47a59b3748583a85f318d16b7ad0d7e066ddc.png) ### Navigate to the Limits View Under the `Community` tab, select `Customization`. ![Sonoran CMS - Limits View](https://docs-assets.sonoransoftware.com/sha256/9e/9e4389825d0dd9a098d95ee3476a51fa49083465eeecebe2ca62e72852329944.png) Scroll to the bottom to the `Advanced` section. ![](https://docs-assets.sonoransoftware.com/sha256/39/39ef2ced8042d05164d847bab1cd68b94ba547c55ba796b178f232f4599f3c8c.png) ### Delete Community Select the **Delete Community** button located in the `Limits` tab and follow the steps it provides. ![Sonoran CMS - First Community Deletion Confirmation](https://docs-assets.sonoransoftware.com/sha256/3d/3df5ae16ecfb7bbb76b8f8dbfd569294016dc581e108162f71b006c830fece74.png) ## How-To: Transferring a Community ### Access the Administrative Panel ![](https://docs-assets.sonoransoftware.com/sha256/98/980c75773ca3b487cea59bcf3cd47a59b3748583a85f318d16b7ad0d7e066ddc.png) *Sonoran CMS - Administrative Panel* ### Navigate to the Customizations Panel ![](https://docs-assets.sonoransoftware.com/sha256/9e/9e4389825d0dd9a098d95ee3476a51fa49083465eeecebe2ca62e72852329944.png) *Sonoran CMS - Community Limits View* ### Transfer Community Select the "Transfer Community" button located in the `Advanced` section and follow the steps provided. ![](https://docs-assets.sonoransoftware.com/sha256/d3/d30f77bd7ef1af6a87786dc006c2a167e31af85a87c39ba358802b6e50800fec.png) *Sonoran CMS - Transfer Community Selection* ### Finalize Transfer Once you submit for the transfer in Sonoran CMS you'll receive an email regarding the transfer, this is to confirm and finalize it. Once you get the email click the button located on the bottom which will take you to Sonoran CMS to finalize it. You'll be notified upon full load if the transfer went through. The new owner will receive an email stating their new ownership. ![](https://i.imgur.com/WoAr6lW.png) *Sonoran CMS - Transfer Community Initiation Email* ![](https://i.imgur.com/yALB2Ru.png) *Sonoran CMS - Transfer Community Completion Email* > [!NOTE] > > You have **30** minutes from when you initiate the transfer to use the button in the transfer confirmation email. # Delete User Account Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/delete-user-account Looking to remove your Sonoran Software account? [Video tutorial](https://www.youtube-nocookie.com/embed/eck2vPJkr7s) ### Access your Sonoran Software Account You can access your Sonoran Software account by going to [account.sonoransoftware.com](https://account.sonoransoftware.com), or by selecting "Profile" in the side menu then "Edit Account" on the next page. ![Sonoran CMS - Modify Account](https://docs-assets.sonoransoftware.com/sha256/0d/0d34ebba3ee6e4bc947cf71cf729add9e287db02540cdf7f3eeaf05f2a0a9efb.png) ### Send an Account Removal Email On the Sonoran Account website, select `Account` > `Advanced` > `Delete Account` This will send an email confirmation to the address on file. ![Sonoran Account - Delete Account](https://docs-assets.sonoransoftware.com/sha256/3d/3d66eed3e6dc968868876a8ca2c44e8bd6a3c771c146ca900e95198feef15841.png) ### Verify your Email Check your email for an account removal request and click the "Remove Account" button.\ Having trouble seeing it? Be sure to check your spam/junk folder. ![Sonoran Account - Removal Email](https://docs-assets.sonoransoftware.com/sha256/bb/bb5da04f0e63f6ffe4b3deefc049d5e900f6c73bcc1a18395a07613f8b6c435e.png) # Disciplinary Panel Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/disciplinary-panel Configure automated actions when community members receive disciplinary points. ![](https://docs-assets.sonoransoftware.com/sha256/23/235a5a889017374d42156c47e783fe06bc96c68f7f382308a9efd8ad712719fc.png) ## What is the Disciplinary Panel? The Sonoran CMS disciplinary panel makes handling misbehaving members easy! This panel allows you manage disciplinary "points" to a user when they break the rules, misbehave, etc. Additionally, you can configure automated actions like sending the user an email, Discord message, modifying their ranks, banning them from the community, etc. ## Configuring the Disciplinary Points ### Configure Point Expiration Many communities may wish to have points expire after a certain length of time. In the configuration tab, you can enable or disable point expiration and set the length of time. ![](https://docs-assets.sonoransoftware.com/sha256/41/410809c09e36b0865d92887abdaba818716bb0db6e186a7da280af4698500101.png) *Sonoran CMS Disciplinary Point Expiration* ### Configure Automated Actions You can also configure automated actions that apply to users once they meet specific point levels. In this example, once a user receives 1 or more points they will receive a Discord DM message. ![](https://docs-assets.sonoransoftware.com/sha256/5a/5a46b4f4ae731271afda7a98b3e46243260aab3a287e4011878865c4394788fe.png) *Sonoran CMS Disciplinary Point Actions* ## Using the Disciplinary Panel ### View Active Points Disciplinary points will be displayed on a member's avatar for anyone that has access to the disciplinary panel. ![](https://docs-assets.sonoransoftware.com/sha256/f8/f8ae3e5093a302ec1acc79c7247bbfa6e7252dcee899d914659cecc0501c9692.png) *Sonoran CMS Avatar Disciplinary Points* Use the search bar to filter to a specific community member. Select the user to view all active points or remove them. ![](https://docs-assets.sonoransoftware.com/sha256/9a/9a2bb454b90f3b136c0bbaf2a8506594d71ba744358e2c1aadafda2e2ad317e7.png) *Sonoran CMS View/Remove Disciplinary Points* ### Manually Add Points To add points to a member press the green + icon. Use the popup dialog to select the account, amount of points, and a description. ![](https://docs-assets.sonoransoftware.com/sha256/2b/2bcb033e0a40515a172c260d32097108d92a680bbe5ad94876319af243853db3.png) *Sonoran CMS Add Disciplinary Points* ### Add Points via Form Stage Communities can also [create custom form stage actions](/cms/tutorials/forms/creating-custom-forms#form-stage-actions) that add disciplinary points. You can specify a `Member Selector` field on the form for someone to report a community member. Additionally, a `Number` field on the form can also be utilized to add a custom amount of points to a user. ![](https://docs-assets.sonoransoftware.com/sha256/2b/2b434e106d216eaedf120f0f2d3e522a290d92aeb1db2a65b21aaa88361a3793.png) *Sonoran CMS - Form Stage Action: Add Disciplinary Points* # Growth and Discovery Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/growth-and-discovery # Discovery Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/growth-and-discovery/discovery Grow your community with new traffic from Sonoran CMS! ## Community Spotlight The community discovery system highlights both active, growing small communities and large communities with many members. Communities in the spotlight are also advertised in the [CAD](/cad), CMS, and [radio ](/radio)main menus. All of these metrics are based off the last seven days. ### 📈Fastest Growing Community This category is based on user growth as a percentage and is limited to communities between `50` and `250` members. *Improve your ranking in this category by* [*signing up new members*](/cms/tutorials/getting-started/inviting-users-to-your-cms) *in your community.* ### 👀Highest Website Traffic This category is based off the number of unique user visits to the homepage per day. *You can improve your ranking in this category by using CMS as your* [*primary website*](/cms/tutorials/community-website/website-builder)*. Both visitors and members count towards traffic.* ### 👥Most Active Community This category is based off of the number of unique user logins in your community per day. *You can improve your ranking in this category by having your members utilize your CMS website more frequently. Using a* [*custom domain*](/cms/tutorials/customization/custom-domain#custom-domain)*, running all* [*applications/forms*](/cms/tutorials/forms) *via CMS, utilizing online CMS* [*forums*](/cms/tutorials/community-website/forum-system)*, etc.* ### ⬆️Most Recently Bumped Community This category randomly selects communities that have been bumped in the last hour. *You can improve your ranking in this category by bumping your community in the discovery panel.* *Bumped communities are also posted to the #advertise-here channel in our* [*Official Discord*](https://discord.sonoransoftware.com)*!* ## Discovery Metrics Every time your community is viewed or clicked on via the community discovery page, or CAD/CMS/radio menu those metrics are logged. You can view these in the growth panel to see how the community spotlight and discovery page are impacting your community. ![](https://docs-assets.sonoransoftware.com/sha256/25/252b4f44fac96818a90ca046964079b76605857e554ec096b8db392466f4cc2b.png) *Sonoran CMS: Community Discovery Metrics* ## Configuring Community Discovery ### Community Approval In order to be on the community discovery page, communities must meet specific criteria: 1. The community must be more than 72 hours old. 2. The homepage must be customized and cleared of any default/placeholder text. 3. The homepage must have a clear button or link for a new user to apply or join. Once these criteria have been met, select the Bump Discovery button in Discovery Settings. # Growth Panel Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/growth-and-discovery/growth-panel Track performance with in-depth community metrics. ![](https://docs-assets.sonoransoftware.com/sha256/cf/cf65e88a2f50e22d91d4e64cea1550133e0e3bbef72371b8d153bc2b0b225948.png) *Sonoran CMS - Growth Panel* > [!NOTE] > > Community metrics are limited to the last 24 hours on free and standard plans. > > Full metric history is available with the [pro version](https://sonorancms.com/pricing) of Sonoran CMS. ![](https://docs-assets.sonoransoftware.com/sha256/67/67a5528a3b4c5e14b06ca81de3ac51b73cdbe07ecc6ee8a3021b2b650e78e3b4.png) *Sonoran CMS - Growth Panel* ## Community Leaderboard The leaderboard at the top of the growth panel displays your global rankings compared to other CMS communities. These placements are used to [rank your community in the discovery page](/cms/tutorials/administrative/growth-and-discovery/discovery), helping to drive new users to your community! ## Community Metrics The metrics panel offers historical metrics and performance graphs for your community.\ This allows administrators to easily track their community's growth, decline, or stagnation. * New Members * Number of new members joining the community * Lost Members * Number of members that left the community * Active Members * Unique user visitors per day * Form Submissions * Number of new form submissions on each custom form * Website Views * Number of unique visitors per day on each custom webpage * Discovery * Number of unique views and clicks from the [community discovery system](/cms/tutorials/administrative/growth-and-discovery/discovery) * URL Shortener * Number of visits to each link from the[ URL shortener](/cms/tutorials/administrative/url-shortener) ![](https://docs-assets.sonoransoftware.com/sha256/0c/0ca1ab32c940c6b8591cf4ac2a4cc6bdd6a6fb2d2fc9df9fdc91e47e7ca7126e.png) *Sonoran CMS - Discovery Settings* # Security Center Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/security-center Sonoran CMS offers advanced tools to keep your community secure. ![](https://docs-assets.sonoransoftware.com/sha256/73/73d7657d3ab8ca3079f23d4f5c6847682a3a80ddb5b7de79f18150df8b2448e5.png) *Sonoran CMS - Security Center* ## Account Flags Advanced alternate account detection keeps your community safe from bad actors and previously banned users. > [card] [Account Flags](/cms/tutorials/administrative/security-center/account-flags) ## Logging Center In-depth logging of all user actions in your CMS help keep your community safe from bad actors! > [card] [Logging Center](/cms/tutorials/administrative/security-center/logging-center) # Account Flags Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/security-center/account-flags Advanced alternate account detection keeps your community safe from bad actors and previously banned users. ![](https://docs-assets.sonoransoftware.com/sha256/73/73d7657d3ab8ca3079f23d4f5c6847682a3a80ddb5b7de79f18150df8b2448e5.png) *Sonoran CMS - Alt Detection* > [!WARNING] > > **Alternate Account Detection & Account Flags are only enabled with a Pro Subscription!** > > Learn more about our [paid plans](/cms/pricing/pricing-faq/create-and-manage-a-subscription). ## What is Alternate Account Detection? When bad actors are banned from your community, it's important to ensure they don't come back under a different account name, alias, etc. Sonoran CMS offers advanced tools to detect ban evasion, easily detecting duplicate accounts on member applications, forums posts, user profiles, game session joins, etc. ## Account Flags ### What is an Account Flag? Account flags are raised when a user has a "clash" with another account in your CMS. Ex: "Bob123" logs in with the same IP address as "Alice456" -> this results in a `Duplicate IP` flag ### What Flag Types are there? * Duplicate IP Address * Duplicate Browser IDs * Duplicate PC Hardware IDs * Duplicate Mobile Device IDs * Duplicate Linked Discord IDs * Duplicate CFX License (in-game) * Duplicate Steam ID (in-game) * Duplicate Xbox Live ID (in-game) * VPN Usage Detection ## Flag Management ### How Do I View Flags? #### Via Security Center In the `Administrator Panel` the `Security Center` tab highlights all active flags that need to be reviewed. ![](https://docs-assets.sonoransoftware.com/sha256/ad/ad496358543d0a934c97abc03f0fc88525d3fd31c8942997058cee0dc10d4311.png) *Sonoran CMS - Security Center* #### Via Account Avatar Anywhere an account avatar is visible it will also show a user's account flags. * Forms and Applications * Forums Posts * User Accounts Panel * User Profile and Bio ![](https://docs-assets.sonoransoftware.com/sha256/fc/fc35620f938e0062c7076858781cedd5e5b29ba89f07adf6d547e2e25984b798.png) *Sonoran CMS - Account Avatar* Select the highlighted flag on a user's account avatar to automatically redirect to the security center with their specific flags raised. ### Viewing and Dismissing Flags Select a flag in the account flags center to view more details. This will show what type of flag it is and what accounts it has been raised on. #### Investigating a Flag Investigate the flag type and the users involved. If one of the users was a previously banned user, and the other is a new member - it's possible it's the same person trying to evade a community ban. This example shows user `8` (SonoranBrian) linked a Discord account that a banned user `14` (Bob123) previously used. ![](https://docs-assets.sonoransoftware.com/sha256/88/884b29ac5dcaa3ffb301aee1f5c38a299258448c49fd8099e6459b7756cb45bc.png) *Sonoran CMS - Security Center* #### Flag Icons When viewing a flag, the user accounts mentioned may also display one of the following icons: * 🚫 - This user is banned in your community * 🕒 - This user is pending in your community (no ranks yet, new applicant) * ❓ - This user has not yet joined your community but may be an alternate account of someone who is already in your community #### Dismissing a Flag Sometimes two different users may be harmlessly sharing the same physical device, IP address, etc. Ex: Two users sharing the same Wi-Fi network, but both are in your community. After investigating why these two users have a shared identifier, and that it's harmless, you can "dismiss" the flag. Once dismissed, the flag with the involved accounts will no longer appear unless an additional account matches up in the future. ## Flag Permissions In order to view and manage these account flags, users will need the `Security Center Manage Flags` permissions under the `System` tab in the [rank manager](/cms/tutorials/user-management/creating-departments). # Logging Center Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/security-center/logging-center In-depth logging of all user actions in your CMS help keep your community safe from bad actors! ![](https://docs-assets.sonoransoftware.com/sha256/0e/0e30fb0dcf48b79019e32344d0839b1015f41be470b52d3e966dccbd33e92571.png) ## What is the Logging Center? The logging center allows administrators to search and find historical user actions in their CMS community. If a user maliciously deleted a document or updated a webpage, it's easy to find out who and when! ## Accessing the Logging Center The logging center is located in the `Administration Panel` > `Security Center` ### User Permissions Users will need the `Security Center` permission under the `System` tab in the [rank manager](/cms/tutorials/user-management/creating-departments). ### Searching Logs Logs can be searched and filtered by the `type`, `user`, and `date` of occurrence. All logs are stored for 30 days, regardless of your subscription tier. Some logs (kicks, bans, permission changes) are stored indefinitely. ### AI Search > [!WARNING] > > **AI powered log searches are only enabled with a Pro Subscription!** > > Learn more about our [paid plans](/cms/pricing/pricing-faq/create-and-manage-a-subscription). With the large amount of logs to search through, our AI agent can help automatically find relevant logs and provide a summary of the actions. Simply type your question including any details about the username, unique ID, Discord ID, Roblox ID, TeamSpeak ID, or action types to get started. ![](https://docs-assets.sonoransoftware.com/sha256/5b/5b774a0500d31fcd847a05df1bdd08e3d4985fc51d5d7136aa3d3eb63083e6ea.png) # URL Shortener Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/url-shortener Generate custom short URLs with your CMS vanity or custom domain! ![](https://docs-assets.sonoransoftware.com/sha256/cd/cd5b9cdaad3b32e77b5fcd74c54d97cace78aa8b3bbea2367afce36bbd7b73e2.png) *Sonoran CMS - URL Shortener* > [!WARNING] > > **The URL Shortener is only enabled with a Pro Subscription!** > > Learn more about our [paid plans](/cms/pricing/pricing-faq/create-and-manage-a-subscription). ## What are Short URLs? Create friendly, short URLs for anything in your community! The URL shortener takes any link and converts it to a short and readable format!\ Ex: `https://discord.com/invite/123456` -> `mycommunity.com/discord` ## Creating a Short URL ### New Short URL To forward `https://discord.com/invite/123456` to our [custom domain](/cms/tutorials/customization/custom-domain#custom-domain)'s `mycommunity.com/discord` 1. Enter the existing URL `https://discord.com/invite/123456` 2. Enter the new short URL path `discord` 3. (Optional) add a description `Discord invite link` ![](https://docs-assets.sonoransoftware.com/sha256/15/1583d2e29cba286e29d7babf9b02c9d1f6e3bbc56907b8a69f8ce67a4fd81740.png) After adding the new short URL, it will be viewable, searchable, and copyable in the table below. ![](https://docs-assets.sonoransoftware.com/sha256/72/72b8da6d5a71f08961baa11be3e4056cde92403a0ee8bea9ef15bfdf2c437bc8.png) ### Domain Formats The CMS supports three types of short URL formats: * [Custom Domain](/cms/tutorials/customization/custom-domain#custom-domain): `customdomain.com/shorturl` * [Custom Subdomain](/cms/tutorials/administrative/url-shortener#custom-subdomains): `example.customdomain.com/shorturl` * [Vanity Domain](/cms/tutorials/customization/custom-domain#vanity-urls): `communityid.sonorancms.com/shorturl` * Long Domain: `sonorancms.com/com/communityuuid/shorturl` The custom path will work on all three of these options. The toggle simply allows you to select which format you are copying. ## Custom Subdomains Subdomains are extensions of your custom domain and are used to organize or separate different sections of a website (e.g., info.customdomain.com). ### Adding A Subdomain > [accordion] 1. Click to Add a New Subdomain > > Click the `+` icon next to the short URL type selector. > > ![URL Shortener: Add Subdomain](https://docs-assets.sonoransoftware.com/sha256/b1/b1899e75bae4acb04a26f4fa376a287f94c30c69a1200ae0627487ac1c93158b.png) > [accordion] 2. Enter the Desired Subdomain > > Enter your desired subdomain for your community's [configured custom domain](/cms/tutorials/customization/custom-domain#custom-domain). > > Here, the subdomain is `links` and the custom domain is `sonoranrp.com` > > ![URL Shortener: Subdomain Url](https://docs-assets.sonoransoftware.com/sha256/25/25c9454e083f93bb6b67e3fed5e1e1c75ed1dfc34d4bae8639b8148fabdf8c59.png) > [accordion] 3. Copy and Add DNS Records > > Copy the information from the panel to create a `CNAME` and `TXT` DNS record. > > ![](https://docs-assets.sonoransoftware.com/sha256/f4/f4f393f49e0530d0aa82169e081c15590945bdfb2ea1660c41351e5cd5dd4f21.png) > > The examples below show DNS management via Cloudflare.\ > If you are unsure how to add a DNS record, contact your domain provider. > > \ > If you are using Cloudflare, **DISABLE the proxy mode** and set it to `DNS Only` > > ![Cloudflare: Subdomain CNAME Record](https://docs-assets.sonoransoftware.com/sha256/f9/f9a13c0eb99beb5e6b9b78bbd67995465f15708abae34bac2975f3966651a2e5.png) ![Cloudflare: Subdomain TXT Record](https://docs-assets.sonoransoftware.com/sha256/fb/fb0c9abb671d194dded39ccddb7df851348f69e71beb8825ba101d58aa8f4681.png) > [accordion] 4. Save and Use Subdomain > > After saving your new `CNAME` and `TXT` record, click `Add Link Subdomain` to verify the DNS records. > > Note: *Depending on your DNS provider, there may be a cache delay before the DNS records are detected.* > > ![](https://docs-assets.sonoransoftware.com/sha256/a6/a62a22cf710eca8a9b68bf0b9ca5911485daeaf9d096060817341837785dca06.png) > > You can now select the custom domain in the `URL Type` drop-down to be used when creating a new short URL. ## Reserved Paths Sonoran CMS has several internal URL paths that can not be overridden by a custom short URL. Sonoran CMS will also not allow you to override an existing [website slug](/cms/tutorials/community-website/website-builder) with a custom short URL. ``` admin index login logout signup gallery menu event account oauth/discord oauth/sonoran oauth/apple drive/file game/menu game/qbcore profile roster forums forums/topics calendar forms ``` These paths are restricted only in their absolute form. Appending additional paths to these are allowed. For example: A short URL can **NOT** be: `example.com/forms` However, a short URL **CAN** be: `example.com/forms/civ` # View Your Limits Source: https://docs.sonoransoftware.com/cms/tutorials/administrative/view-your-limits In addition to our free version, Sonoran CMS offers optional paid subscriptions. Find out how to view your community's limits below! [Video tutorial](https://www.youtube-nocookie.com/embed/z1edj18uWyI) ### Administration Panel > Limits In the `Admin Panel`, under `Advanced`, click `Limits` to view your community limitations. ![Sonoran CMS - Limits View](https://docs-assets.sonoransoftware.com/sha256/93/93d0b9367ea6efdc0dfd74aa83c0f025cc1c6c7575e39d5e66aeb3a9ab50a9de.png) # Calendar Events Source: https://docs.sonoransoftware.com/cms/tutorials/community-events This guide covers managing Calendar Events in Sonoran CMS. ![](https://docs-assets.sonoransoftware.com/sha256/43/43f18c919875d09dcf8b6220f9fe15d3a08964f83f805d1fa28f22956ef241da.png) *Sonoran CMS - Community Events* [Video tutorial](https://www.youtube-nocookie.com/embed/4o19lVdsy7U) Community Events allow you to organize and plan events for your community to further engage with your members. Events allow you to plan the start & end time, title, description and an optional header image for each. Events also allow your members to RSVP to track who's attending your event. ![](https://docs-assets.sonoransoftware.com/sha256/c8/c89a37fa65a75ac00c24df214fd7585e7b716e4003a11c58df9147415400daa8.png) *Sonoran CMS - Community Calendar - Event View* ## Create an Event To access the Community Calendar navigate to the top toolbar and select "Calendar". To create an event click the "Create Event" button along the top of the month selection. This will open the Event Creation dialog, and from there select the Calendar Category that you're wanting to create an event for. ![](https://docs-assets.sonoransoftware.com/sha256/d7/d79e8b60c8d468ee6863b52c18ecccf77c0fb5caccfeced9fba807b3b7033701.jpg) *Sonoran CMS - Community Calendar - Create an Event Modal* Once you've got the create an event dialog you can now input all of the event information that you'd like to associate with this event, once the event is created it can be edited if any information is no longer correct. ![](https://docs-assets.sonoransoftware.com/sha256/49/49235be3be750266e38329fe58ccf3d06e2bd5f802b47ab179769385d194fa4c.png) *Sonoran CMS - Created Calendar Event* #### Regarding RSVP Limit Setting the RSVP Limit from anything but -1 will restrict the total RSVP spots available, setting it to -1 will allow for an unlimited spots for RSVP. Once you're satisfied with the information inputted for the event you can publish event, this will now add the event to the calendar to be accessed by your community. ### RSVPing for Events To RSVP for an event navigate to the Community Calendar, select the event you're wanting to RSVP to and click the "RSVP" green button on the bottom left of the event view. This will now mark yourself as attending the event, at any time you can remove yourself from the RSVP for the event by navigating to the event and clicking the same button. ### Sharing Events To share an event to your community members you can simply click the "Share Event" button located on the event, this will copy the share URL to your clipboard. You can now share this URL with members of your community to view. ![](https://docs-assets.sonoransoftware.com/sha256/c2/c25a2c94efd9a0741e6ee7d83074a7d06b1b78e778bc7dd0588ed30abb7d217f.png) *Sonoran CMS - Shared Community Event - Public View* ### Editing Events To edit an event simply navigate to the event and click the orange pencil paper button located on the bottom row. This will open up a dialog to edit details of the event. ![](https://docs-assets.sonoransoftware.com/sha256/89/891776981dbad66795381162bfcf9adee4a1a4a2630a6fe488b840c5979dedd3.png) *Sonoran CMS - Community Calendar - Edit Event Dialog* Once you're satisfied with all of the event details you can click the orange "Save" button and it will be saved. ## Removing Events To remove an event simply navigate to the event and click the red trash can button located on the bottom row. Once you click it, it will be removed from the community calendar. ## Discord Integration If you have linked you community to our [Discord Bot](/bot/tutorials/getting-started), creating an event in CMS will automatically create an event within your community's Discord channel making it easy to coordinate community events across multiple platforms! By clicking the `Interested` button, you will be automatically RSVP'd in CMS. ![](https://docs-assets.sonoransoftware.com/sha256/38/3876df9a6c13cbe52c67cefbd012760cae40458f509ac80eac8dedfddce6a75a.png) *Sonoran CMS - Calendar Events Discord Integration* # Community Website Source: https://docs.sonoransoftware.com/cms/tutorials/community-website Build your fully featured community website, for FREE! # Forums Source: https://docs.sonoransoftware.com/cms/tutorials/community-website/forum-system The Sonoran CMS Forum System completely replaces the need for any other forum application for your community! ![](https://docs-assets.sonoransoftware.com/sha256/90/90362386dd6c278cf68f9c29ea1be8883141956b3823d4e66d864f530f61182e.png) *CMS Fourms Preview* [Video tutorial](https://www.youtube-nocookie.com/embed/Mgf2TfLDmU8) The Sonoran CMS Forum System is a custom page element allowing you to create and organize your forum(s) to fit the needs of your community. Easily add Forum Categories to any custom page, create or use existing categories across multiple pages. Each category has the ability to manage permissions to **Create a Topic**, **Remove Topics**, and **Remove Topic Replies**. > [!NOTE] > > **Note:** Currently all members of your Sonoran CMS community will have access to view and reply to all topics in categories they can access through custom pages. Additional permissions are planned. ### Creating Forum Categories & Adding Forum Elements To create a Forum Category navigate to the website builder located at `Administrative Panel` > `Website Builder`. Once you've located the editor, add a **Forum Section** to your Custom Page. Now that you added a Forum Section you can select from existing Forum Categories or create a new one. If you're looking to create a category, simply click the forum category . This will display a popup with various inputs, click on editor then create and fill in the category label and select the permission preferences that apply. Once the category fits the needs that you like click outside the box and it will save automatically. ![](https://docs-assets.sonoransoftware.com/sha256/5d/5d913320ab55e06e726db5c57a9a5a6fd07531cbe185ab1eb0ebc64e750b3025.png) *Sonoran CMS - Forum Category Dialog Creation* Once you have saved the Custom Page you can now view the page with the Forum element added. ### Creating Forum Sub-Categories To create Forum Sub-Categories navigate to the Custom Page Editor located at `Administrative Panel` > `Website Builder`. Once you've located the editor, select a page that has a **Forum Section** already. Now that you're at an already set up Forum Category you can easily add sub-categories by clicking on `Add Sub-Category`, on the desired forum. Click this button and it will prompt you with the sub-category label. Input that sub-category label that you would like and click `SAVE`. This will add the sub-category to your forum category, sub-categories can be created on sub-categories to create a forum category depth of your choosing. > [!NOTE] > > Currently there's no additional permission settings for Forum Sub-Categories. Anyone that can see the root forum category will have the same permissions across all topics and sub-categories within it. ### Viewing & Creating Topics ![](https://docs-assets.sonoransoftware.com/sha256/c6/c65f1b5a389efd38c20e1a32eabb2bf337d69b634f3e504f4fe555b518921fa8.png) *Sonoran CMS - Forum System - Forum Category Topics Table* To view forum topics navigate to a Custom Page that has a Forum element added. Once you've located a page you will be shown a table with all of the topics in the forum category. Click the topic table row to open up the topic for viewing and replying. To create a forum topic simply click Post Topic button located on the Forum Topics table, this will display a topic creation dialog. Fill in the appropriate information for the topic you're wanting to create. Once the topic information suffices your needs simply click the green **CREATE TOPIC** button to create the topic. Once it's created it'll automatically navigate you to the topic. This will allow you to edit and reply to the topic. ![](https://docs-assets.sonoransoftware.com/sha256/bf/bf3fa456e8e007ecab1577f0495f14817ab88bdeded944a3312a47b8f5fafae7.png) *Sonoran CMS - Forum System - Viewing a Topic* #### Topic Creation - Forum Topic Attachments Forum topics can include image attachments during creation. To add them, go to any Forum Category and click the green **Create Topic** button. In the popup, use the uploader near the middle/bottom to select your images. After creating the topic, the attachments will appear below the topic content. > [!NOTE] > > Topic Attachments are currently only available on topic creation, they cannot be modified once they've been uploaded. Topic Attachment Management is planned in a future release. ### Creating Private Topics Private topics let users create forum posts visible only to the ranks they choose, allowing tighter control over sensitive discussions inside public categories. To create private topics in a category, a user must have permission on the root category. To allow a rank to create private topics, add that rank to **Can Create Private Topics** in the forum section’s permissions. ![](https://docs-assets.sonoransoftware.com/sha256/c6/c6ee63797a13e047152ab7721e252263c437b07f1b16ab1d8410af23d8f393fa.png) *Sonoran CMS - Forum System - Forum Category Dialog - Can Create Private Topics Highlight* To create a private topic you will need to locate a Forum Category and click the green button in the top right, this should provide you with a popup dialog to create a topic. On the bottom there should be settings for private topics as well as a switch to toggle this topic as private. Flip the switch to toggle the topic as private on and add the ranks that you would like to view and reply to the topic. ![](https://docs-assets.sonoransoftware.com/sha256/01/01284a1c8a407a1f2b73cb89e4c0d0a7d3dbf0cecbf2b7928975815f660afdd6.png) *Sonoran CMS - Create Topic - Private Topic Highlight* ### Topic Actions: Pin & Lock To improve the organization of your forum, you can pin and lock topics. Pinning a topic will move it to the top of the forum category, and locking a topic will prevent any new replies from being added. You can access these options by right-clicking on a topic from the list view, or by using the buttons next to the edit and remove options while viewing a specific topic. These features will help keep your forum organized and on-topic. ### Forum Sub-Categories Each Forum Category can have it's own sub-categories created for it, this allows for better organization and design of your forum categories. ![](https://i.imgur.com/4WXcoSb.png) *Sonoran CMS - Forum System Category Table - Sub-Categories* ### Dedicated Forum Category Page To get a complete view of all the topics in a specific forum category, you can navigate to its dedicated page. This page can be shared with other members through a link, so they can easily access it as well. You can access the dedicated page without having to use a custom page element, so it's quick and easy to view all the topics in a particular category. ![](https://i.imgur.com/KgziFTc.png) *Sonoran CMS - Dedicated Forum Category Page* To view the dedicated page for a particular forum category, first locate the custom page forum element that contains that category. Then, click on the category's name at the top-left corner of the topics table. This will take you to the dedicated page for that category, where you can see all of the topics it contains. ![](https://i.imgur.com/u4KrF6y.png) *Sonoran CMS - Custom Page Forum Element - Expanding Forum Category into Full Category Page View* # Image Gallery Source: https://docs.sonoransoftware.com/cms/tutorials/community-website/gallery-system The Sonoran CMS Gallery System completely replaces the need for any other gallery application for your community! [Video tutorial](https://www.youtube-nocookie.com/embed/i5B6mktn4wY) The Sonoran CMS Gallery System is a custom page element allowing you to create and organize your gallery(s) to fit the needs of your community. Easily add Gallery Categories to any custom page, create or use existing categories across multiple pages. Each category has the ability to manage permissions to **Upload**, with more coming soon. ### Creating Gallery Categories & Adding Gallery Elements To create a Gallery Category navigate to the Website Builder located at `Administrative Panel` > `Website Builder`. Once you've located the editor, add a **Gallery** section to your custom page. Now that you added a Gallery section you can select from existing Gallery Categories or create a new one. If you're looking to create a category, simply click the green **CREATE** button. This will display a popup with various inputs, fill in the category label and select the permission preferences that apply. Once the category fits the needs that you like click the orange outline **SAVE** button. ![](https://docs-assets.sonoransoftware.com/sha256/19/19daf0c27603913fd9b22662efd944f35f99c448d8a86dfcbc597f91edecd8e3.png) Once you have saved the Custom Page you can now view the page with the Gallery element added. ### Creating a Gallery Post To create a gallery post simply click "Upload New Photo" and this will display a gallery post creation dialog. Fill in the appropriate information for the post you're wanting to create. Once the post information suffices your needs simply click the green **SUBMIT** button to create the post. Once it's created it'll automatically add it to the gallery view. ![](https://docs-assets.sonoransoftware.com/sha256/1c/1c6141d64c986c8baee7e100190460661651b6f87afab7942675b1886736a2c4.png) # Site AI Source: https://docs.sonoransoftware.com/cms/tutorials/community-website/site-ai Create and refine community website pages with Site AI. Site AI is the assistant built into the [Website Builder](/cms/tutorials/community-website/website-builder). Describe a page or a change in plain language to generate editable layouts, text, styling, and images. You can also ask questions and refine a design through follow-up messages. ## Create your first page 1. Open **Administration Panel > Website Builder**. 2. Add a new page or open an existing page you have permission to edit. 3. Select **Site AI** in the right sidebar. 4. Describe the page you want, then select **Send**. You can also use **Ctrl + Enter** or **⌘ + Enter**. 5. Answer any clarification questions in the same conversation. 6. When a draft is ready, use **Full preview** to inspect it, or **Apply to preview** to put it into the editor. 7. Review the result on desktop, tablet, and mobile, then select **Save** in the page header. > [!WARNING] > > Generating a draft or applying it to the editor does **not** save the page. Select **Save** to make the changes available on the saved page. Review the page's public/private setting before saving. ## Writing a useful prompt Include your community name, game or purpose, preferred style, sections, and where buttons should go. Tell Site AI what to preserve when editing an existing page. > Create a modern, dark homepage for Arizona Roleplay, a serious FiveM roleplay community established in 2019. Include a hero, three community benefits, and a final call to action. Add Apply and Rules buttons. Link Apply to our Membership Application form and Rules to our existing Rules page. Use generous spacing and make the layout work on mobile. Generate a realistic roleplay-themed hero background. For a smaller edit: > Keep the existing text and images. Add more space around the hero content, make the application button narrower on desktop, and stack the benefit cards on mobile. Be specific about image requests. If you already like the artwork, ask Site AI to reuse it rather than generate replacements. ## Follow-up questions and changes Continue in the same conversation to ask questions or revise the page. Site AI may ask you to choose a destination when several forms or pages match your request. Reply with the exact option you want. For example: > Use Membership Application 2.0 for the Apply button. > Make the hero less tall, but keep its background and heading. > Change the accent color to blue without changing the layout. A question or explanation does not necessarily produce a new draft. When a change produces a draft, its preview controls appear with that completed draft in the conversation. Apply the draft you want to continue editing before requesting more changes. Review each new result and **Save** again when you are ready to keep it. ## Drafts and manual editing Drafts and conversation history are associated with the page. New pages can use Site AI before their first save; their conversation is linked to the saved page when it receives its page ID. You can mix AI changes with manual editing: * **Insert:** Add elements and ready-made Content Blocks. * **Selected element:** Edit text, images, button destinations, size, and styling. * **Design:** Adjust site fonts, manage custom fonts, and change the page background. Advanced options include Custom CSS Classes. After applying a draft, **Undo draft application** restores the editor state from before the latest application. It also discards manual changes made afterward. Undo affects the editor; save again if you want the restored version to replace the saved page. > [!NOTE] > > Site-wide font defaults have their own **Save site styles** action and apply across the community website. They are separate from saving an individual page. ## Images and button destinations Ask Site AI to generate images for backgrounds or image elements. Generated images are public website assets and count toward the community's Site AI usage. Do not include credentials, sensitive information, or private member data in image requests. Site AI can look up supported navigation destinations, including forms, internal pages, and Drive files. Give the exact form or page name where possible. For external links, provide the full HTTPS URL. Linking to a page, form, or file does not grant visitors permission to access it. Check destinations and permissions before sharing the page. ## Usage and availability Site AI usage is shared by the community, not allocated separately to each member. The Site AI panel and community Limits panel show the percentage of the monthly allowance used. Your subscription tier determines the allowance. * Usage depends on the work performed, including conversation context, generated text, and images. It is not a fixed number of pages. * Only one Site AI generation can run at a time within a community. Wait for it to finish before another member starts a request. * The allowance resets at the start of each calendar month in UTC. * A request admitted while usage is below the allowance may finish even if it takes usage over the limit. Further requests are blocked until usage is available again. * A failed request can still consume usage if AI processing or image generation already occurred. For efficient revisions, request a focused change and reuse existing images when possible. ## Troubleshooting ### The assistant asks a question instead of creating a page Reply in the same conversation. It may need to distinguish between forms or pages, or obtain an external URL before building the links. ### Generation is reconnecting or status is temporarily unavailable Allow the existing request to reconnect rather than repeatedly sending the same prompt. If the problem persists, reopen the page and check the conversation for the result. Contact support with the community ID, approximate time, prompt, and exact error message if no result appears. ### A draft failed validation or could not finish The generated result could not be completed or accepted as a valid draft. Check the conversation's error message and try a smaller, more specific change. Usage may already have been recorded. For repeated failures, send support the prompt and exact error. ### The draft looks correct, but visitors do not see it Confirm that you selected **Apply to preview**, then **Save**. Check that you are opening the correct page URL and that its visibility and permissions are appropriate. Creating a page does not automatically make it the community homepage; see [Default / Home Landing Page](/cms/tutorials/community-website/website-builder#default--home-landing-page). ### Saving the page fails Keep the editor open so you do not lose unsaved changes. Check the displayed error and whether the URL slug conflicts with another page. If it continues, contact support with the community ID, page URL, approximate time, and error text. A ready draft is not confirmation that the page was saved. # Toolbar Customization Source: https://docs.sonoransoftware.com/cms/tutorials/community-website/toolbar-customization Customize your community's navigation toolbar within the Sonoran CMS website builder! ![](https://docs-assets.sonoransoftware.com/sha256/ce/ce1c7fd4f929686c5c452135715e433d2d47854926cb34ec07737b229e9b2490.png) Customize your community's navigation bar with links to custom webpages, rosters, Drive files, and more! Open the editor under **Administration Panel** > **Website Builder** > **Navigation Bar** ## Styling & Customization Select the **Paint Palette** icon to open the navigation bar settings. Here, you can customize the color, custom CSS classes/styles, and the scroll behavior. ![](https://docs-assets.sonoransoftware.com/sha256/98/98d9949c5f91df2c923092a8f38a90e566570083b63c9b8835122790701e8fc6.png) ![](https://docs-assets.sonoransoftware.com/sha256/e6/e6943ef8892ec40e8b7b5d2fc18782bdc6e4a5bd4fba9e1bf9fd654e251d6398.png) ![](https://docs-assets.sonoransoftware.com/sha256/63/632b1d2b1c2a6bca34186bf2644633e57d7276719daf58f584e1d00976e34746.png) ## Button Customization Select the green **Plus** button to add a new button or dropdown button to the toolbar. Buttons can be reordered via drag-and-drop. ### Button Styling > [accordion] Button Styling > > You can also customize the title, font, color and specific links for any button or dropdown menu. To open the design panel, simply click on any button or dropdown in the Toolbar Customization editor. > > ![](https://docs-assets.sonoransoftware.com/sha256/56/569dd9a727746c2e4a813ce13d7d46523c95edb8ee93a693e6146c03eeedc3a2.png) > > *Sonoran CMS - Toolbar Customization - Styles Tab* > > ![](https://docs-assets.sonoransoftware.com/sha256/c8/c879b24453290b08c520167a40b65b36bb0f5f89f3f2094db804e82558a5193b.png) > > *Sonoran CMS - Toolbar Customization - Styles Selection* ### Dropdown Styling > [accordion] Dropdown Styling > > With dropdowns, you can also customize not only the styling of the dropdown button itself, but of every option within the dropdown. This is also where you go to add any destination links within the dropdown. > > ![](https://docs-assets.sonoransoftware.com/sha256/7d/7da42d8510ae31da4f2d40aeb4a35d2cf62bcdc5a804e00542ad6862eb8dd80a.png) > > *Sonoran CMS - Toolbar Customization - Dropdown Options* > > ![](https://docs-assets.sonoransoftware.com/sha256/e7/e730a590880652f2dcec180dd40b2b8701370f79625e09ad9ae355c0eaed46c3.png) > > *Sonoran CMS - Toolbar - Customized Dropdown* ### Destination Options > [accordion] Button Destination Options > > Within any button or dropdown you are give the option to link a variety of different things, from another page in the community, to external pages, to documents in your community's drive to management panels and more! > > In the design panel of any button, you can customize where said button links to by clicking on the `Target` tab in the design panel > > ![](https://docs-assets.sonoransoftware.com/sha256/2c/2cee66d5802b78946101c06b015915b4f43940b1b066a892bece2427d767f34e.png) > > *Sonoran CMS - Toolbar Customization - Button Destination Settings* > > To add options to a dropdown menu, simply click the green plus button in the `Options` tab of the design panel. > > ![](https://docs-assets.sonoransoftware.com/sha256/aa/aa7fee0dfbff5fe21cc9488fff56a99cebc6b81f3f3a283722960ddaebcd366a.png) > > *Sonoran CMS - Toolbar Customization - Destination Options* > > From here, you can select the destination of the link using the chain icon: > > ![](https://docs-assets.sonoransoftware.com/sha256/ad/ad20bb12c317aa2e77effddd4d9abfaa0564f7122af780e270dad0f670cda78d.png) > > *Sonoran CMS - Toolbar Customization - Link Button* ## Toolbar Item Permissions Toolbar items that lead to permission-restricted areas (such as [private pages](/cms/tutorials/community-website/website-builder#privatized-pages) or admin panels) automatically show or hide based on whether the user has access to the destination. Access to specific toolbar link destinations can be configured in the [rank manager](/cms/tutorials/user-management/creating-departments). ### Clock In/Out This button/icon of the navigation toolbar is based upon the **CMS Permissions** > **Clock In & Out** permission. ### Community Pages This navigation item is based upon the **Page Permissions** > **View Page** permissions. ### Drive This navigation item is based upon the **CMS Permissions** > **Modify All Documents (Drive)** permission or the **Navigation Pages** > **View Drive Navigation Button** permission. ### Available Forms This navigation item is always present for all members of your community if within your toolbar. ### Community Calendar This navigation item is based upon the **Navigation Permissions** > **View Calendar Navigation Button** permission. ### Rosters Tree This navigation item is based upon the **Navigation Permissions** > **View Rosters Navigation Buttons** permission. ### Form Management This navigation item is based upon the **Form Permissions** > **View Submitted** permissions, if at least one **View Submitted** permissions is granted the item will show. ### Administrative Panel This navigation item is based upon several permissions within the **CMS Permissions** section. # Website Builder Source: https://docs.sonoransoftware.com/cms/tutorials/community-website/website-builder Create your own community website entirely within Sonoran CMS! ![](https://docs-assets.sonoransoftware.com/sha256/61/616cb9cc7ff1b209656b1c6a1e8c91a0cdacda644bebd5d8588996abdc92cb2e.png) ## Page Editing To access the website builder, navigate to **Administration Panel** > **Website Builder** Select an existing or **Add New Page** to open the website editor. Use **Site AI** in the right sidebar to create a page from a description, generate images, or refine an existing design through conversation. Review the draft, select **Apply to preview**, then **Save** to keep the changes. > [card] [Site AI](/cms/tutorials/community-website/site-ai) ![](https://docs-assets.sonoransoftware.com/sha256/33/33971de10cb55672e408b49afffb451054ebaefed589c85a019478be895380eb.png) ### Sections and Containers > [accordion] Website Sections and Containers > > Custom webpages are made up of two main structural elements, sections and containers. > > Sections are blocks inside the webpage. These contain multiple other containers and elements like text or images. > > Containers are used to group multiple elements together, align elements horizontally or vertically, and handle spacing between elements. Containers can be nested > > ![](https://docs-assets.sonoransoftware.com/sha256/24/2480c94a1bd6a80f603207fb5871a040cfe7530a71b6185efa2c5c34ddb17c97.png) > > **Section Styling** > > Select the gear icon on a section to open the editor. Sections can have customized backgrounds, colors, sizing, margin, and more. > > ![](https://docs-assets.sonoransoftware.com/sha256/f2/f2ce13640dac254d3eaf2e41e56a3ecd285c961f1705a62c8f2d6093d6cdf8fd.png) > > **Container Styling** > > Similarly, select the gear icon on a container to open the editor. Here, you can customize the ordering, alignment, and spacing for the elements inside the container. Or, customize background colors, padding, etc. > > ![](https://docs-assets.sonoransoftware.com/sha256/b7/b734227dc4176c82cd7a1c146899b7814fc6f298e8be29dc28550b66a8309f1c.png) ### Elements > [accordion] Webpage Elements > > Elements are items like text blocks, images, buttons, etc. Elements can be dragged-and-dropped inside of a container or section from the toolbox on the right. > > Once on the page, click an element to open up the editor. Or, use the resize buttons on the edges to customize the size and positioning. > > ![](https://docs-assets.sonoransoftware.com/sha256/3a/3a7fd33aacc66133c9f76b7bd18e90ff9f0adfd3e418ca73c9c91bcf3f492892.png) > [accordion] Button Elements > > If you wish to add buttons to your page, you can add a button or button group section to your page. Each button has several settings that define how the button looks like and acts. Each button can be direct users to external websites, custom forms and custom pages. > > Button elements can have individual styles and button group elements can have all group styles. > > You can customize by clicking on it. The styling of a button is set in the `Styles` tab, the target link a button leads to is set in the `Target` tab. > > ![](https://docs-assets.sonoransoftware.com/sha256/53/53537997eb2b13b457ed527e4dd81c37767477d3fcdd320414aafb8c1ad0dfc3.png) > > *Sonoran CMS - Website Builder - Button Editor* > > For Button Group elements, you can add as many target links as you need, and re-order or delete them using the controls on the top right of each entry. > > ![](https://docs-assets.sonoransoftware.com/sha256/8a/8a5bfc18bb816adcaef9d5b72d86595d8384d947c48c7d34e8b69a564f587a07.png) > > *Sonoran CMS - Website Builder - Button Group Targets* ### Screen Size Preview > [accordion] Screen Size Page Preview > > The top right of the page allows you to quickly view your webpage on a desktop, tablet, or mobile size. You can also zoom in and out to ensure your pages look great on all devices. > > ![](https://docs-assets.sonoransoftware.com/sha256/cd/cd1448ba86817c0bf75a6429f23f518d7e08341c60286ad8f1d937f3f1df4d13.png) ### Title and URL Slug > [accordion] Page Title and URL Slug > > At the top of the editor you can name your custom page and enter an optional custom slug. The slug (ex: `home`) defines the custom URL path to view this page. > > Select the copy button in the URL slug box for the public page link. > > ![](https://docs-assets.sonoransoftware.com/sha256/aa/aa647d59076822fc2e9ac7081b701eca39e934a654a6a54b3c1abe2f2fbcf86c.png) ## Page Permissions, SEO, and Other Options ### Privatized Pages > [accordion] Private Website Pages (Rank Restricted) > > > [!NOTE] > > > > Only Private Pages will have customizable permissions in the [**Rank Editor**](/cms/tutorials/user-management/creating-departments) > > Pages can now be privatized and require permissions to view. When editing a page, you can select whether the page is public (and can thus be viewed by anyone in the community) or private. > > ![](https://docs-assets.sonoransoftware.com/sha256/c6/c6bf3d6ed77dc410463055898540b0365d5e3ab51a7efaa1bda56f50cde7db8e.png) > > *Sonoran CMS - Visibility Button* > > If it's set to Private, you can use the dropdown to the right to select what ranks are allowed to view this page. > > ![](https://docs-assets.sonoransoftware.com/sha256/f8/f8a42d6179f2de58eca624695a11fd609c0893dd49c517583326468398b52c08.png) > > *Sonoran CMS - Open Rank Selector* > > ![](https://docs-assets.sonoransoftware.com/sha256/56/5631903c9bc30c60d5af499032bba8b6776da8bd09336b4d7c555685136afd7c.png) > > *Sonoran CMS - Select Rank to View Page* ## Default / Home Landing Page > [accordion] Setting the CMS Homepage > > Sonoran CMS allows you to easily customize the landing page/dashboard for your community, this page is the first page your members will see from signing into your community. This allows the full customization of a custom page for your landing page. > > ![](https://docs-assets.sonoransoftware.com/sha256/89/897a50e721f67daff1cefc20cbac5b1dcac81016e8414825a88af54d74e205d8.png) > > *Sonoran CMS Custom Page as Dashboard Page* > > To set a Custom Page as your homepage, navigate to the main page for the Website Builder and look under the section titled `Website Pages`. Locate the page you wish to use as your homepage and press the grey gear icon then the grey home icon, this will turn it orange and set it as the landing page. > > ![](https://docs-assets.sonoransoftware.com/sha256/3f/3f6681e06752acb545fe0cbec9999b315a84b6543f9a1b3528adfb2da884bc16.png) > > *Sonoran CMS - Set Homepage* ## Page SEO > [accordion] Page SEO (Embed Content) > > Clicking on the cog on the right side of the `Page Title` box will open the SEO panel. Here you can set a custom image and description for the website's page. These will show in embeds, such as when you paste the link in Discord. > > ![](https://docs-assets.sonoransoftware.com/sha256/84/844582516e00655d44ea1e5d99ec67e3a98e5b3139263b3d7e87466f23f7baad.png) > > *Sonoran CMS - SEO Panel* > > If you have a **Standard** subscription or higher, the "Sonoran CMS" branding in the title will be removed. > > Please be aware that Discord will locally cache the embed info - so updates may not show right away. > > ![](https://docs-assets.sonoransoftware.com/sha256/95/95ef7cd1ab2321f049bf181485981e98c3d4465c882484640bdac544deeef822.png) > > *Sonoran CMS - SEO Discord Embed* > > Additionally, there are third party sites such as [HEY META](https://www.heymeta.com/) that can be used to check your page's "meta" tags and show it, without caching like Discord would. After you've saved the page, you can use this to verify that the image and description display how you want. ## Custom Domain Sonoran CMS allows you to display your community website [on your own domain](/cms/tutorials/customization/custom-domain)! > [card] [Custom Domain / Vanity URL](/cms/tutorials/customization/custom-domain) ## Toolbar Sonoran CMS allows you to [customize the top toolbar](/cms/tutorials/community-website/toolbar-customization) with buttons to link your users to whatever your community needs. > [card] [Toolbar Customization](/cms/tutorials/community-website/toolbar-customization) ## HTML Elements Limits > [accordion] HTML Elements Limits (Sanitization) > > HTML elements get sanitized before they're saved, displayed or manipulated. > > * **Allowed Tags**: A wide range of HTML tags for different purposes including: > * Structural elements like `header`, `footer`, `main`, `nav`, `section`. > * Text formatting tags such as `h1` through `h6`, `strong`, `em`, `b`, `i`. > * List elements like `ul`, `ol`, `li`. > * Table components including `table`, `th`, `td`, `thead`, `tbody`, `tfoot`. > * Media embedding tags `img` and `iframe`. > * Inline elements like `span`, `br`, `mark`, `small`. > * Text semantic tags such as `time`, `code`, `var`, `samp`. > * **Attributes**: > * Allows `style` universally. > * For `a`: `href`, `name`, `target`. > * For `img`: `src`, `srcset`, `alt`, `title`, `width`, `height`, `loading`. > * For `iframe`: `src`, `height`, `width`, `name`. > * **Styles**: > * Basic layout and visual styling such as `width`, `height`, `border`, `padding`, `margin`, `background`, `display`, `opacity`, `overflow` and `visibility`. > * Specific regex patterns are set for `color`, `text-align`, and `font-size` to control text styling and coloring with precise formats. # Customization Source: https://docs.sonoransoftware.com/cms/tutorials/customization Sonoran CMS offers dozens of customization options for your community. Check out the configuration options below! ## Fonts Choose included system and Google fonts, or upload your own through CMS Drive. See [Fonts & Custom Uploads](/cms/tutorials/customization/fonts) for supported formats and setup instructions. # Community Branding and Settings Source: https://docs.sonoransoftware.com/cms/tutorials/customization/community-branding-and-settings Customize your community's settings, branding, information, and more! [Video tutorial](https://www.youtube-nocookie.com/embed/Un9AIFXzZqQ) ## Branding Removal Looking to remove Sonoran CMS branding on your website? > [card] [Branding Removal](/cms/pricing/pricing-faq/branding-removal) ## Community Information The admin customization info section allows you to customize your community's image, name, and more! These settings can be found by navigating to `Administrative Panel` > `Customization` ![Sonoran CMS - Community Customization](https://docs-assets.sonoransoftware.com/sha256/32/32757126c9d5377b948ca229410dccd712864aba6e8c31da981791a626875c61.png) | Community Logo | A link to your community's logo.This will be displayed on your community card, community dashboard, and more! | | - | - | | Community Name | This is your community's name.This will be displayed on your community card and community dashboard. | | Community Subtitle | This is the text displayed below your community name on your community card. | | Name Customizations | This allows customization of how community names are formatted. Many RP communities use a specific naming style. Example: **Format:** `{uniqueId}` | | Allowed Login Methods | This controls which login methods are available for signing into the CMS community. For example, if you only want users to log in with Discord, you can disable all other options. | | On Join Actions | This configures automatic actions that occur when new members join your community. | > [!NOTE] > > **Admin Icon** will display a cog icon next to a user's Notification Center icon in the top right of the toolbar. ## Community ID and Vanity URL > [!WARNING] > > Custom community IDs require the **Standard** version of Sonoran CMS or higher.\ > For more information, see our [pricing](https://sonorancms.com/#/pricing) or view how to check your community [limits](/cms/tutorials/administrative/view-your-limits). ### **Looking to change your community ID?** Navigate to **Administrative Panel** > **Limits**\ Click the **Change Community ID** button and enter your new community ID. Community IDs also customize your [vanity URL](/cms/tutorials/customization/custom-domain#vanity-urls).\ `ID.sonorancms.com` ![Sonoran CMS Community Limits - Changing Community ID](https://docs-assets.sonoransoftware.com/sha256/c9/c93a1394c846e5017acd8487a23ecaca160f6e9d669720bd23dcf12ee6dadb89.png) ## Allowed Login Methods Some communities may only want specific login methods to be available to their users. Each method can be enabled or disabled in the customization menu. ![](https://docs-assets.sonoransoftware.com/sha256/89/891faafac736af7e136c4cde553614c3ef747d2c77704ef358572062c2a30ac5.png) ## Naming Format In the `Name Customizations` area, you can also set the automatic naming format for your community. The naming format determines how a user's name is displayed in the community (e.g. on their profile, form submissions, etc.). ![](https://docs-assets.sonoransoftware.com/sha256/dd/ddf8de4627aa7bbd723eb838373c7032fa9a5e82fcaaf5b1dc708e4c4dcfc7ae.png) *Sonoran CMS - Naming Format Example* In the above image, you can see that the name is displayed on the profile as `John Doe | 1A`. In this case, the user's Community Name is set as `John Doe`, and this user has an Identifier of `1A`. To display those together like this, you would set the naming format to `{comName} | {identifier}`. ![](https://docs-assets.sonoransoftware.com/sha256/4a/4a1d2d2edf66d9f876a72b761973a293e83dd24324984b3d607cf98c676b4db5.png) *Sonoran CMS - Naming Format* | User Information | Naming Format Variable | | | | - | - | - | - | | Community Name | \{comName} | | | | Identifier | \{identifier} | | | | Unique ID | \{uniqueId} | | | ### Discord Name Sync With the Sonoran Bot integration, you can enforce your CMS name format in your Discord Guild(s)! > [card] [Open guide](/bot/tutorials/usage/settings#namesync-settings) ## Timeclock Shift Types ![](https://docs-assets.sonoransoftware.com/sha256/6d/6dc7331e3595c7830213803d7a9c232472678ef8852cdafbaa725e26f9f48ffd.png) ![](https://docs-assets.sonoransoftware.com/sha256/b3/b33b9449ad5a07af72d5e43b07304de8f28b5d60046ff8f2e663f4a6c4a14254.png) Looking to separate shift types for players with multiple community positions? Add custom shift types in the customization menu. Players can select an optional shift type in the CMS timeclock menu, via the [Discord bot](/cms/integration-capabilities/discord-bot-integration)'s `/clockin` command, or from an [in-game ER:LC command](/cms/integration-capabilities/er-lc-game-panel/usage/player-records#via-in-game-command). When configuring rosters, you can select a specific shift type to be displayed in the timeclock hours column. ## Member On Join Actions Sonoran CMS lets you define what happens when users join your community — from assigning specific ranks automatically to sending a welcome message via Discord DM. You have complete control over the actions that occur when new members join. ![](https://docs-assets.sonoransoftware.com/sha256/11/11b623e4b15a3fa19091a3b9ef478f085bbd4868fd0dc9306e046e36eefaa248.png) *Sonoran CMS - Member On Join Settings - Button Location* ![](https://docs-assets.sonoransoftware.com/sha256/03/036832a9251a1c408671388f1d326804e65b59ea7fa0aa92d95f3aa54bf3cd6b.png) *Sonoran CMS - Member On Join Settings* # Customizing Profile Fields Source: https://docs.sonoransoftware.com/cms/tutorials/customization/community-profile-fields Allow further customization on your community member's profiles. Easily add and edit date directly on a profile with view & edit permissions. [Video tutorial](https://www.youtube-nocookie.com/embed/f7kPZXi1Fdc) ![](https://docs-assets.sonoransoftware.com/sha256/31/318311813da4eae32b2976252d1428fc09c4124d137cdfa71bc884275bf385fb.png) *Sonoran CMS - Profile View - Profile Information / Profile Fields* Profile Fields allow communities to put direct information onto member's profiles that can be restricted to certain viewers, editors, etc. with rank permissions. Profile Fields are dynamically displayed on profiles depending on what ranks the profile you're viewing holds. ![](https://docs-assets.sonoransoftware.com/sha256/29/29abdba7641cda65bfe7b93919334b9360455626d21bccebb4fc0b2086340f03.png) *Sonoran CMS - Profile Fields Editor* Easily create and edit profile fields to your liking to fit your community's needs. Each field can be customized to have a different type and label with more to come in the future. Additionally, you can drag and drop profile field blocks to change the order in which they display on user's profiles. ### Creating Profile Fields To start creating profile fields go to the `Administrative Panel` > `Profile Fields`. Once you've located the editor you can start by clicking the green Plus button, this will enable the creation process. From here you'll customize the label, type, and options (if you have chosen the field type of **select**). If you choose the field type of **select** you'll be required to enter at least one option, once you type in an option press **Enter** on your keyboard and a new option will be added. Once you're satisfied with the customizations you made to the field you can click the orange **Save** button. Now that you've created a field you'll want to move onto the next section detailing the permissions associated with fields. ![](https://docs-assets.sonoransoftware.com/sha256/71/71860ee1a3029bf1af74f19910566526bab3446f08d28a963a27a55bf98ac034.png) > [!NOTE] > > All existing profile fields will display on the preview profile, this is how they'll appear in the member profile view. ### Managing Profile Field Permissions Profile Field Permissions are essential to managing your fields for your members, permissions create "settings" for each field that accounts abide by when viewing profiles. Understanding these permissions will allow you to better leverage the use of Profile Fields. Below we've outlined each permission and how they work with fields: | Permission | Explanation | | - | - | | Restrict Visibility | Only users with specified ranks are allowed to view this field. | | Allow Editing | Users are allowed to edit this field on their profile. | | Allow Others to Edit | Users with specified ranks are allowed to modify this field on another's profile. | In the Profile Fields editor, you can select the specific ranks that you want to apply this permission to. Click on the profile field you would like to edit, then click on `Edit Permissions` at the bottom of the box. This will open a box where you can select which permission you would like to modify, and within it you can select which ranks you would like to grant this permission to. In the following example, the ranks "Manager", "Super Admin", and "Admin" are given permission to edit this field on their profiles. ![](https://docs-assets.sonoransoftware.com/sha256/eb/ebfe71324cb9ef213b544d968bfff0589decf6dddcc54e2b8f925478a6af47cf.png) *Sonoran CMS - Profile Fields - Edit Permissions* You can also control these permissions from the Rank editor. To do this, navigate to `Administrative Panel` > `Ranks`. Select the rank that you'd like to edit and review the permissions below while selecting which permissions you'd like to grant to the rank. ![](https://docs-assets.sonoransoftware.com/sha256/50/5037f1f7a78865f1bcfcc735877a6f80b3ca16ab7edcd769b3d8466c89edd6e4.png) *Sonoran CMS - Department Editor - Profile Fields Permissions* These permissions integrate with the permission settings in the Profile Fields editor, toggling a permission in the rank editor will automatically check the rank's box inside the Profile Fields permission editor. ### Editing Profile Fields ![](https://docs-assets.sonoransoftware.com/sha256/eb/ebc7354cee770fca1cbdfa4c610a84e478ba221004aabde9933f5b786d0b2c1a.png) *Sonoran CMS - Member Profile - Hover on Profile Field* While viewing a profile you can hover over them to determine if you have edit permissions or not. Hovering over a field that you can edit will display the tooltip as shown above. ![](https://docs-assets.sonoransoftware.com/sha256/bd/bdee00ce79dde069a8fbbd320692b67bb477fd82b80ecc2c5d52aafe61d8fcb5.png) *Sonoran CMS - Member Profile - Editing Profile Field* Once you've clicked a field it will give you a pop-up to begin editing the field's value. Depending on what field type it is it will display the relevant field input type. Once you're satisfied with the fields new value you can press the `Enter` button to save it on the profile. #### Text Array Profile Field Editing The `text array` profile field allows for multiple strings of text to be added to an individual profile field, this is useful to store notes, Steam IDs, IPs, etc. To edit, click the "Expand" expansion located under the Profile Field Label. This will display all entries of the array. Click in the middle of the entries or if you have none, you can press the "Click Me" button. Once you're satisfied with the field's new value(s) you can press the `Enter` button to save it on the profile. > [!NOTE] > > **TIP:** You can organize the order in which the entries are sorted by dragging and dropping them in the order of your preference. ![](https://docs-assets.sonoransoftware.com/sha256/77/77bae6f5b017c9b6398b29f402c41736ff34a06a6b5d35a2f2abdbd5c980fc8a.png) *Editing a Text Array Profile Field within Profile* # Custom Domain / Vanity URL Source: https://docs.sonoransoftware.com/cms/tutorials/customization/custom-domain Looking to use your own domain name with Sonoran CMS? We've made it easy for you! [Video tutorial](https://www.youtube-nocookie.com/embed/JwgKe_CHwp4) > [!WARNING] > > Only the **Community Owner** will have access to change and view Custom Domain settings. > [!WARNING] > > Custom domains require the **pro** version.\ > For more information, see our [pricing](/cms/pricing/pricing-faq) or view how to check your community [limits](/cms/tutorials/administrative/view-your-limits). > [!TIP] > > Looking for VPS, web, or dedicated hosting? Check out our official [server hosting](/promotions/fivem-hosting)! ## Vanity URL's Each community gets a **FREE** vanity URL, vanity URLs allow all communities to get access to the community homepage without a login. You can also [customize your Community ID](/cms/tutorials/customization/community-branding-and-settings#community-id-and-vanity-url). Your community's vanity URL can be found in your `Administrative Panel > Custom Domain`. ![](https://docs-assets.sonoransoftware.com/sha256/70/7018ee9b2de1528c4c6086091abb789bc5a29b8676e67e4971bf982cb1012e5b.png) The vanity URL will take users to the home page created in the website builder. ## Custom Domain > [!WARNING] > > Custom Domain requires a **Pro** subscription. ### Enter your Domain Name This can be a root domain `example.com` or a subdomain `cms.example.com` ![](https://docs-assets.sonoransoftware.com/sha256/c0/c0e0b7ae30231de7a2c0696d22c45be1975bfe1638bf57a0d7d12f150a4c0373.png) ### Configure DNS Records for your Domain > [!WARNING] > > **If you are unsure how to add a DNS record, you will need to contact your domain registrar.** Copy and paste the values to add three DNS records (two `CNAME` records and one `TXT` record). This verifies your domain ownership, community ownership, and redirects traffic on your domain to the CMS. ![](https://docs-assets.sonoransoftware.com/sha256/b7/b7753a1b659f11b309e267575078436f9e09e1a59118f57cf07d067702a4ca9e.png) > [!NOTE] > > **Some DNS providers are different!**\ > \ > Check with your DNS provider if using a "root domain" (i.e. `example.com` instead of `cms.example.com`) to see what to add as the `name`.\ > \ > Typically it is `@` or left blank. The example record below sets `cms.example.com` as the custom login page URL. ![](https://docs-assets.sonoransoftware.com/sha256/9d/9d10fca9a45a2b92ec33cb70916a9f61e3f98b4cd77a08b9163f4202f6759aa6.png) *Cloudflare - DNS Record* > [!NOTE] > > **Cloudflare Users:** Be sure to have the **DNS record proxy DISABLED** - and set to `DNS Only`. ### Save the Custom Domain > [!WARNING] > > When updating or changing an existing DNS record, it may take some time for the change to propagate (based on your TTL).\ > \ > You can try running `ipconfig /flushdns` in a Windows CMD window and restart your browser. Otherwise, you can test with other browsers/devices/users while you wait. Press **Set Custom Domain** in the CMS to save. Your new custom domain name will be shown below your vanity URL. ![](https://docs-assets.sonoransoftware.com/sha256/01/017adb9fd9658a6aebd423d5fb5ea136304fc1a9f129eddba902e27b95c24116.png) ![](https://docs-assets.sonoransoftware.com/sha256/bd/bd822ea16b43366b1474d2c9632b98517f04b686517eb59796742202d04c0495.png) ## Troubleshooting ### I can't see other communities when using a custom domain Custom domains prevent other Sonoran CMS communities from being visible. You will need to use the root `sonorancms.com` domain to view multiple communities at once. # Fonts & Custom Uploads Source: https://docs.sonoransoftware.com/cms/tutorials/customization/fonts Choose built-in and Google fonts, or upload your own custom fonts through CMS Drive. Use the font selector wherever a CMS editor offers font customization, including website text, navigation bars, and roster text. Choose from the included system and Google fonts, or add your community's own fonts through CMS Drive. ## Using Included Fonts Open the editor for the text or component you want to customize, then choose a font from its font selector. In a rich-text editor, select existing text before choosing a font to change that selection. Save your changes when finished. The included Google fonts load automatically when selected. No upload or Google account is required. System fonts depend on which fonts are available on the viewer's device. ## Uploading Your Own Fonts ### Prepare Your Font File CMS accepts these formats: | File format | Extension | | - | - | | TrueType | `.ttf` | | OpenType | `.otf` | | Web Open Font Format | `.woff` | | Web Open Font Format 2 | `.woff2` | Each font file must be **5 MB or smaller**. Upload individual font files using **Upload File**; fonts inside a ZIP are not imported. If your download is a ZIP, extract it on your computer first. CMS automatically converts TTF, OTF, and WOFF uploads to WOFF2 for storage and web delivery. You do not need to convert them yourself. The stored file counts toward your community's Drive storage allowance. Upload fonts you have permission to use on a website. ### Upload to CMS Drive 1. Open **Drive** in your community's admin panel. 2. Open the folder where you want to store the font, or stay in the Drive root. 3. Select **New** > **Upload File**, or right-click in Drive and select **Upload File**. 4. Select your font file and complete the upload. Your rank needs **Modify Documents (Drive)** permission, and you must be able to edit the destination folder. Your community also needs enough available Drive storage. New font uploads start private. Uploading the file alone does not make it appear in the font menus. ### Make the Font Available 1. Right-click the uploaded font in Drive and open **Share Settings**. 2. Turn off **Inherit Parent Folder Access Permissions**, if enabled. 3. Set **General Access** to **Anyone with this link**. Select this on the font itself, even if its parent folder is already public. 4. Save the sharing settings. The font must not be marked sensitive or be in the trash. Its parent folders must also remain out of the trash. > [!NOTE] > > Making a font available lets visitors download its font data so their browsers can display it. Only publish font files that you are allowed to share for web use. ### Apply Your Custom Font Return to the editor and open its font selector. Your font appears under its Drive filename with **(custom)** added to the label. Select it and save the page, roster, or component you are editing. If an already-open editor does not show the new font, close and reopen it or refresh the page after saving the font's sharing settings. ## Managing Uploaded Fonts Rename the font in Drive to change its name in the font menus. Renaming keeps existing font references intact. To stop making a font available, change its General Access to **Restricted** or move it to the trash. Content that used it may display a fallback font once the custom font can no longer load. This cannot remove copies visitors have already downloaded. Uploading a replacement creates a separate font. Select the replacement in the content that should use it before removing the old font. Downloads from Drive use the stored WOFF2 format, including fonts originally uploaded as TTF, OTF, or WOFF. ## Troubleshooting | Problem | What to check | | - | - | | The upload is rejected | Use a valid individual TTF, OTF, WOFF, or WOFF2 file up to 5 MB. Check your Modify Documents permission, destination folder access, and available Drive storage. Renaming a file's extension does not convert it. | | The font is missing from the selector | Set General Access on the font itself to Anyone with this link and disable inherited access permissions. Check that the font is not sensitive and neither it nor its parent folders are in the trash. Save, then reopen the editor or refresh. | | Existing text still uses its old font | Select the text in the rich-text editor before applying the font, then save your changes. | | The font stopped displaying | Check whether its sharing settings changed or the font or a parent folder was moved to the trash. Restore access or select another available font. | | Conversion is busy or times out | Retry the upload shortly. If the same file repeatedly fails, try another valid export of the font. | For more on file permissions and storage, see [Drive & Documents](/cms/tutorials/your-drive-and-documents). # Forms and Applications Source: https://docs.sonoransoftware.com/cms/tutorials/forms Create and manage custom forms for your community! # AI Form Processing Source: https://docs.sonoransoftware.com/cms/tutorials/forms/ai-form-processing Stop wasting time manually reviewing applications. With Sonoran CMS, your community can set custom rules to automatically score forms and seamlessly move them through the right workflow stage. ![](https://docs-assets.sonoransoftware.com/sha256/82/82837d2fd7e4aa88683228985a8ccdb8f9fe6916e105d952381f45d3870ebc31.png) ## AI Forms Processing > [!WARNING] > > **AI form processing is only enabled with a Pro Subscription!** > > Learn more about our [paid plans](/cms/pricing/pricing-faq/create-and-manage-a-subscription). > > To prevent abuse, communities are limited to **100 AI form processes per day**. If your community is actively (or realistically intends to) surpass this limit with legitimate traffic, [contact our support team](https://support.sonoransoftware.com/)! Stop wasting time manually reviewing applications. With Sonoran CMS, your community can set custom rules to automatically score forms and seamlessly move them through the right workflow stage. ### Understanding AI Processing Stages When a form enters a specific stage (e.g., *Awaiting Review*), you can define how the AI should evaluate the submission’s responses. Based on the scoring criteria you set, the AI will automatically advance the form to the next stage—such as *Accepted* or *Denied*. ### Setting Section Criteria For each section of your form, you can define criteria for the AI to score responses. Criteria can be marked as **required** or **preferred**, and each section can be assigned a **scoring weight** to determine its importance. Every section visible to the user (see: [form dependencies](/cms/tutorials/forms/creating-custom-forms#conditional-sections)) will be scored. To set this up: 1. Select **Add Section**. 2. Choose the section from the drop-down. 3. Assign a weight (how much this section should influence the overall score). 4. Add your custom criteria. Some criteria can act as **deal-breakers**. For example, if applicants must be 18+ regardless of other answers, mark that criterion as **required**. ![](https://docs-assets.sonoransoftware.com/sha256/09/0920c617c1404423da01a9bf8666b3bf7e4926bc6b3918583a6f31a4b9f8e16d.png) ### Setting Scoring Rules In the **Scoring** section, the dropdown lets you specify a stage if any **required criteria** are missed. For example, if your application requires applicants to be 18+ but the user is underage, the form can automatically be moved to the **Denied** stage regardless of other responses. Rules are applied according to their hierarchy and can be reordered using drag-and-drop. Next, define the **scoring rules** that determine how forms progress: 1. Select **Add Rule**. 2. Enter the **minimum score**. 3. Enter the **maximum score**. 4. Choose the **form stage** to move to. ![](https://docs-assets.sonoransoftware.com/sha256/44/444e7ed59094deddbd0bce5b145cfe461c6cdb39695612c247d63ef34ee6e209.png) #### **Disciplinary Points & Account Flags** Rules can also include limits on disciplinary points and account flags: * [**Account Flags**](/cms/tutorials/administrative/security-center#account-flags) are added when alternate accounts are detected. * [**Disciplinary Points**](/cms/tutorials/administrative/disciplinary-panel) are assigned by staff when users have prior infractions. For example, you may want to prevent a form from being automatically accepted if the applicant has a flagged account or too many disciplinary points. ![](https://docs-assets.sonoransoftware.com/sha256/0d/0d7fa6a2d7e668228ed657876c4988dfb07348d243e0383479ed0193ceebdae1.png) ### AI Processing Reason When the AI updates a form’s stage, it will leave a private comment on the submission explaining its scoring rationale. These private comments are visible to anyone with the `Access Private Comments` [permission](/cms/tutorials/user-management/creating-departments) on that form. Additionally, the AI’s reasoning and score % can be included in any stage action—such as a Discord webhook—to provide context on why the form was advanced to a new stage. ![](https://docs-assets.sonoransoftware.com/sha256/82/82f1d8ea44bf63ba288cf1f2e319a88da418949f0f18863d963ecd5e9ea2bd60.png) ![](https://docs-assets.sonoransoftware.com/sha256/07/073b37aa37bfed075d43491511ed1cdd7ffc3d4596dbc55dfdab0cddcf515a5f.png) ![](https://docs-assets.sonoransoftware.com/sha256/33/33484a5cf1f443ce1388e13e7b54d5061b1480d3d2bda04b45512f5f985edcb9.png) ## Limits To prevent abuse, all Pro communities are limited to **100 AI form submissions per 24-hour period**. Current usage can be tracked in the [**Community Limits panel**](/cms/tutorials/administrative/view-your-limits). If your community requires more than 100 submissions within 24 hours for legitimate purposes, please [contact our support team](https://support.sonoransoftware.com/) to request an increased limit. ## Tips and Tricks ### Using "Likely" Accepted/Denied Stages **AI form processing** is a powerful way to handle the majority of submissions. It can quickly filter out low-quality responses and highlight the best applications. For critical applications—especially those that automatically add or remove ranks—it’s recommended to route them to **“Likely Accepted”** or **“Likely Denied”** stages. This ensures the AI speeds up the process while still allowing a **final human review** before a decision is made. ### Account Flags [**Account Flags**](/cms/tutorials/administrative/security-center/account-flags) help protect your community against alternate accounts and ban evasion. If an applicant has active flags on their account, it’s recommended to route their submission to a **Manual Review** stage for further investigation before approval. ### Form Submission Limits Because AI-powered forms can be processed in seconds, it’s important to guard against abuse. To prevent users from “brute forcing” submissions, communities can set limits on how often a form type can be re-submitted. The form editor provides two control options: * [**Submission limits**](/cms/tutorials/forms/creating-custom-forms#limits) – Set a maximum number of submissions allowed within a defined timeframe. * [**Cooldown period**](/cms/tutorials/forms/creating-custom-forms#limits) – Require a minimum waiting time between individual submissions. ## Troubleshooting > [accordion] \{formairesponse} variable is 'N/A' > > Whenever a form is moved to a stage—whether manually or by the AI—**the stage’s actions fire immediately**. > > The `{form_ai_response}` variable is automatically populated with the **latest AI reasoning reply**. > > This variable is only available when the **AI itself** has moved the form from one stage to another. > > ![](https://docs-assets.sonoransoftware.com/sha256/38/388970795c4cfe922a7c9aea477a56a8b2415a6fcd881f779d623fc95735322a.png) > [accordion] AI is Not Moving the Stage > > AI form processing applies **only** to the specific form stage where it is configured.\ > To trigger AI processing, the form must be in that configured stage. Once active, the AI will: > > 1. Evaluate the form submission. > 2. Post a response in the submission comments. > 3. Move the form to the next stage (if applicable). > > ✅ **Valid flow:**\ > `[Stage with AI Rules] → [New Stage]` > > ❌ **Invalid flow:**\ > `[Stage without AI] → [Stage with AI]` > > **Loop Prevention** > > If the AI moves a form from **Stage A** to **Stage B**, the AI processing rules configured on **Stage B** will **not** run automatically. > > This safeguard prevents recursive AI loops that could continuously move the form back and forth between stages. # Clock In/Out System Source: https://docs.sonoransoftware.com/cms/tutorials/forms/clock-in-out-system This guide covers the Clock In/Out System in Sonoran CMS. [Video tutorial](https://www.youtube-nocookie.com/embed/D52DeI0qKOg) ### What is the Timeclock? Sonoran CMS offers a Clock In/Out system available for all users of Sonoran CMS. The goal of this system is to assist with time-clocking with the "Patrol Log" type[ custom forms](/cms/tutorials/forms/creating-custom-forms). > [!WARNING] > > Straight out of the box there's no way to utilize the clock in/out times that you've completed and are simply for reference unless a [custom form](/cms/tutorials/forms/creating-custom-forms) specifically with the "Patrol Log" type is created. While having a [custom form](/cms/tutorials/forms/creating-custom-forms) with the form type of "Patrol Log" you can utilize the "Patrol Start/End" column type which will allow you to import clock in/out times straight into the form. ![Sonoran CMS - Clock In/Out Component](https://docs-assets.sonoransoftware.com/sha256/64/645ec1a4838cb556c55163eb009dd57018894d2de9b548ef5d9e601aa3d0c9a0.png) ### Using the Clock In/Out Feature > [!NOTE] > > The CMS Permission **Clock In & Out** must be granted in order for this to be used. The UI will not show if the permissions is not granted. Using the Clock In/Out feature is easy as clicking the "Clock In" button, doing this will clock you in, giving you the option to clock out after the 60s or cancel the clock in entirely. ![Sonoran CMS - Clocked In View](https://docs-assets.sonoransoftware.com/sha256/12/12714efe1167aef8cc9ff6118897a487c8d0dc07ea55cdc3e0dc714b7d8bbba8.png) Once the "Clock Out" button is available to be used and when you're ready to clock out all you need to do is click the "Clock Out" button. ![Sonoran CMS - Clocked Out View](https://docs-assets.sonoransoftware.com/sha256/63/6370c0fd2dd50d937928d09d55cac219963a479cd5dafc033bd56a4640d1d79b.png) ### Clock In Notes You can also add timestamped notes while clocked in to briefly describe what you were doing. To view or create Clock In Notes, open the Clock In/Out Component and click the "Clocked in Notes" button to open it. Here you can type in a new note you would like to add regarding your current shift. ![](https://docs-assets.sonoransoftware.com/sha256/6b/6b33338f1918ed3b7d47bce877b08eb62f86cc5c115704b747192c132e2f3764.png) *Sonoran CMS - Add Clock In Note* When you're satisfied with your note, press enter to add it to your shift. ![](https://docs-assets.sonoransoftware.com/sha256/50/5072dd576971bfe6766751d9f1c84f31e815475d3e84a42b271f556fb74ec9f9.png) *Sonoran CMS - Clock In Note* ### Viewing Clock In/Out History You can view your entire Clock In/Out history through your community profile located on the left side menu. You can also download any shift's data as a `.txt` file or view Clock In Notes by clicking the buttons on the right. ![Sonoran CMS - Community Profile](https://docs-assets.sonoransoftware.com/sha256/82/8222d7298fa4e911e0655596d80942b8843450fbd2bae43795b6fba756ce15b2.png) # Creating Forms Source: https://docs.sonoransoftware.com/cms/tutorials/forms/creating-custom-forms Is it time for you to start creating custom forms for your community? Follow this page for more information! [Video tutorial](https://www.youtube-nocookie.com/embed/7CMHrEIEuS4) ## Create a New Form In the `Forms` panel, select the green `+` button to create a new form. ![](https://docs-assets.sonoransoftware.com/sha256/11/1145619992301d076a74eee36883d3a25a052ca1c53b78df1a8e41af3568579e.png) *Create New Form* ## Form Customization ![](https://docs-assets.sonoransoftware.com/sha256/fc/fcd5fa3adfe3417f31dc08879113a41cdac972adb7a623b68c6e1c69fa5332d4.png) > [accordion] Form Editor Explained > > (1) Form Title > > (2) Form Submissions > > * Anyone Can Submit > * Rank Restricted > > [(3) Form Settings](/cms/tutorials/forms/creating-custom-forms#form-settings) > > (4) Save > > (5) Section Header > > (6) Delete Section > > [(7) Section Conditional](/cms/tutorials/forms/creating-custom-forms#conditional-sections) > > [(8) Section Duplicate](/cms/tutorials/forms/creating-custom-forms#duplicatable-sections) > > (9) Question Title > > (10) Question Type (Text, select, etc.) > > (11) Add Section > > (12) Add Question > > (13) Question Subtext > > [(14) Text Mask](/cms/tutorials/forms/creating-custom-forms#text-mask) > > (15) Clone Field > > (16) Remove Field > > (17) Required Field ### Form Settings > [accordion] Form Settings > > Form settings allows you to lock and unlock submissions, set submission limits, restrict submission permissions, customize the submission board title format, and add a description. > > ![](https://docs-assets.sonoransoftware.com/sha256/07/07cb5cc4f38e6d71d6da76c5a92c91bbf2f57deb4c9b7e127677d529e1bd8411.png) > [accordion] Locking a Form > > You can lock and unlock form submissions in the form settings, or from the main form editor panel. This prevents users from submitting new forms of this type. > > ![](https://docs-assets.sonoransoftware.com/sha256/ff/ffa61f03645facc435b8a161e53c6a7ac9c7541f3095401f545aab085e1acd73.png) > > *Editor: Lock* > > ![](https://docs-assets.sonoransoftware.com/sha256/69/69ba4c9e64b955dcc70fdd857874b9a701740738ab284038ab0b93ef2b9cf14c.png) > > *Forms: Lock* > > ![](https://docs-assets.sonoransoftware.com/sha256/5e/5e467260c5f5715a202371a31aa3c2908ca790e0905d6930550e02df908e5f99.png) > > *Available Forms: Locked Form Example* > [accordion] Icon or Image > > The form icon/image is displayed in the available forms page and on [social embeds](/cms/pricing/pricing-faq/branding-removal#social-page-embeds). > [accordion] Limits > > Total: Restrict the maximum number of submissions per-user in the specified time window. > > Cooldown: Specify the wait time between submissions within the specified time window. > > ![](https://docs-assets.sonoransoftware.com/sha256/fb/fb8a915e3de2a64bc925470fb0ecd337b59c50d8fa21b5079b0dc69382ecce6e.png) > > *Limits: Total* > > ![](https://docs-assets.sonoransoftware.com/sha256/08/08522d2834445f96c6626017be0ae4a29fbd45535e61ae02a8793ffee53d22f3.png) > > *Limits: Cooldown* > [accordion] Permissions > > Easily customize what user ranks have access to submit applications, view submissions, change the form stage, and more. > > ![](https://docs-assets.sonoransoftware.com/sha256/33/338a0624289d016d6795c8e14d910368fbb49639aced5334d56e2d95e0b2acbc.png) > > *Form Permissions* > [accordion] Submission Title > > Customize submission titles on the form submission board with variables. > > Click the `` icon to view available variables. Additionally, copy any form question ID (blue copy button on the question) and use that as a `{variable}` . > > ![](https://docs-assets.sonoransoftware.com/sha256/4e/4e80a475cdf813153dcaf2cd916a424ce424146ff8ab5098bea11c854376bb04.png) > > *Title Format* > > ![](https://docs-assets.sonoransoftware.com/sha256/e2/e2e54c99191b7f5a89a1a8fad0ddbc286626b8e1181c482c7496b1838b38f5eb.png) > > *Title Variables* > > ![](https://docs-assets.sonoransoftware.com/sha256/ee/eef13ed6ea8f6a5d124d58926a91f8963d576c84ef0362294b6612ae3d9d1628.png) > > *Submission Board* > [accordion] Description > > The form description is displayed at the top of the form when submitting. Additionally, the description will be displayed in [social embeds](/cms/pricing/pricing-faq/branding-removal#social-page-embeds) when sharing a link. ### Text Mask > [accordion] Text Mask > > Text masks allow you to force a specific format on form questions. > > Ex: Mask `(###) ### - ####` forces the input to be all numbers, formatted as `(123) 456 - 7890` > > | Token | Description | > | - | - | > | `#` | Numeric | > | `S` | Letter, a to z, case insensitive | > | `N` | Alphanumeric, case insensitive for letters | > | `A` | Letter, transformed to uppercase | > | `a` | Letter, transformed to lowercase | > | `X` | Alphanumeric, transformed to uppercase for letters | > | `x` | Alphanumeric, transformed to lowercase for letters | ### Conditional Sections > [accordion] Conditional Sections > > Sections can be displayed conditionally, based on the answer or selection of a previous section's question. > > Toggle the conditional section on, select the question it will be conditional on, and enter or select the values that must be met. > > ![](https://docs-assets.sonoransoftware.com/sha256/3f/3f1c6ce423f883bbf15ee6920f7cac55dcae52861c23e08792218514f653878a.png) ### Duplicatable Sections > [accordion] Duplicatable Sections > > Sections can be marked as duplicatable, allowing the user to add multiple copies of a section to their submission. > > Toggle the section duplication at the top inside the form editor. > > When the user is submitting the form, they can select the duplicate button at the top of the section to make multiple copies. > > ![](https://docs-assets.sonoransoftware.com/sha256/0d/0ddcdbd7677b1751199d78d2e6996cb557f03ff1d0c5af07e799fc7faa84cd20.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/c3/c3f84dbf713602e92489ec3d63f934f873ff891223e0b71ce474662f386ad569.png) ## Form Stages Form stages allow for automated actions when the form status/stage is changed. Ex: When changing a user's membership application from **Pending** to **Accepted** you can send them an automated message, apply ranks, and more. ### Customizing Stages > [accordion] Customizing Stages > > Stages can be customized in the submission board. > > ![](https://docs-assets.sonoransoftware.com/sha256/6f/6ff95448770191bba9539231e07687fcc73a6fd4549986d0a2d04de9be173709.png) > > *Form Editor: Go To Submissions* > > Select the desired form to view the available stages. > > Stages can be reordered via drag-and-drop. > > A new stage can be added by pressing the green `+` button at the end of the row. > > An existing stage can be customized by hitting the gear icon. > > ![](https://docs-assets.sonoransoftware.com/sha256/7e/7ec68ebf5403e638e9fddbb56f29d57e22fd2a775536e7b93133993baef855b2.png) > > *Submission Board: Add and Edit Stages* > > ![](https://docs-assets.sonoransoftware.com/sha256/f0/f075230a8d03c7f2ef50154a870430ea8214200a8dd1a37ae4bd48abc940075c.png) > > *Stage Editor: Style* > > The `Actions` tab allows you to customize automated actions that will occur when a submission is set to this stage. > > ![](https://docs-assets.sonoransoftware.com/sha256/b1/b1ed36e3b473b0dad2648f52baec8315e15862a81bdc21de67013b024a75a8af.png) > > *Stage Editor: Actions* ### Conditional Stages > [accordion] Conditional Stages > > Form stage actions can be conditional, meaning they will only trigger if a certain question response was selected. > > The example action below shows that the email will only be sent if the form submitter selects `Yes` to the question `Would you like us to email you more information?` > > ![](https://docs-assets.sonoransoftware.com/sha256/b0/b0d2ca5eeb0d6bce8a5a8fe38bd8b251276a88d2525fc31bcc8d9693fd882062.png) > > *Stage Action: Conditional Question* > > ![](https://docs-assets.sonoransoftware.com/sha256/99/99a445460cf9c3b88fa8a831e950994d55422bdfa4b3ccf3131ec678b932468c.png) > > *Form Submission: Conditional Question* ### Form Submissions: Submit, View, and Change Stages > [card] [Form Submissions](/cms/tutorials/forms/form-submissions) # Form Submissions Source: https://docs.sonoransoftware.com/cms/tutorials/forms/form-submissions Learn how to send and view form submissions. ## Submitting a Form ### Via Discord Users can submit forms directly through Discord with the `/form` command. Communities can enable Discord based form submissions in the [form editor's settings menu](/cms/tutorials/forms/creating-custom-forms#form-settings). When a user submits a form the CMS will: * Ensure the user is linked to a Sonoran Account * If not, it will give them a link to login with Discord or link their existing Sonoran Account with Discord ![](https://docs-assets.sonoransoftware.com/sha256/ce/ceacf13522063da57011c659d39153929302337b4f649f680049797e080f2618.png) * Ensure the user has joined yout CMS community * If not, it will automatically join their Sonoran account to your CMS community After running `/form` members can select the form they wish to complete, enter the values, and submit the form. Fields that would be automatically filled in the CMS will also be automatically completed for them. ![](https://docs-assets.sonoransoftware.com/sha256/89/89c40831ee868e4484297f24c2dbf75c4c4d2b38d43165f406f69bcd2e260007.png) ![](https://docs-assets.sonoransoftware.com/sha256/9c/9cd33570fee1b7a178510b7ffd26882c1ef56fd34092f162c80059120a54be91.png) ![](https://docs-assets.sonoransoftware.com/sha256/9f/9f61acbc2a1ba674d4d73e5ce3d7bab61a555b7181a8709bdfbacbcb3c0cf8ab.png) ### Via CMS The available applications page lists all forms that the user has permissions to submit. Select `Submit Form` to create a new form submission. ![](https://docs-assets.sonoransoftware.com/sha256/ca/ca4fb601b7e1202001f75ba0a8667f5dea6d9f800fa01ad27f9130e5c18cbc42.png) *Available Forms: Submit* ### Third-Party Form Submissions You can also submit forms in reference to or on the behalf of other users with the `Submit 3rd Party Application/Form` permission. To do this in the form submission, simply select their user in the dropdown menu labeled `You are submitting this form under`. Toggling the bell icon will notify this user that a form has been submitted under them. ![](https://docs-assets.sonoransoftware.com/sha256/c6/c6c11c72b8cb510b421f69eec012318e01c649478d9d8b48c377a27c2b6837d1.png) *Form Submission: Third-Party* ## Viewing Your Submissions (User) As a user, your submissions can be viewed below the Available Forms section, or on your profile. ![](https://docs-assets.sonoransoftware.com/sha256/ef/efad7f73e827ad07aa68cc9294aa2aa341757fe7c1ebbe5d731e8993af0abebf.png) *Available Forms: Submissions* ![](https://docs-assets.sonoransoftware.com/sha256/ce/ceb46b1b34b75e5dc552687149c694484df9222c9e21475aeb115d49e73893ef.png) *Profile: Submissions* ## Viewing Form Submissions (Admin) Submissions can be viewed on the **Available Forms** menu > **Go To Submissions**. Or, admins can view form submissions under **Forms** > **Submissions** `Available Forms` > `Go To Submissions` or in the admin panel under `Forms` > `Go To Submissions` ![](https://docs-assets.sonoransoftware.com/sha256/bd/bde6663a1e04ba5a6d9fb8dc55131e41c19d1a56afc7da0b1209ae978d3c5cb6.png) *Available Forms: Submissions* ![](https://docs-assets.sonoransoftware.com/sha256/6f/6ff95448770191bba9539231e07687fcc73a6fd4549986d0a2d04de9be173709.png) ### Revision History Open a submission and select **View history** to compare saved versions, see who edited the form, and review previous answers. See [Revision History](/cms/tutorials/forms/revision-history) for details. ### Change Form Stage In the form submission board, drag-and-drop to change a form stage. Or, click to open the submission and change it from the drop-down. ![](https://docs-assets.sonoransoftware.com/sha256/6f/6fafa9715dafcacc9be4d9ed89dd8e4aec9720c4eb58d822c923ed108cd99700.png) *Submission Board* ![](https://docs-assets.sonoransoftware.com/sha256/e0/e05197343b528fb32830a00e9b66ce7891d8eb9ec5ff80bcab360510af24d608.png) *Submission View* ### Sharing a Form Submission Click the share icon to copy a direct URL to the submission viewer. ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d0d98bba818558dee6d6ab23e7d4f4a77a5adc725a67dde64a0c89fd016419a.png) *Submission Viewer: Share URL* # Revision History Source: https://docs.sonoransoftware.com/cms/tutorials/forms/revision-history View saved form versions and compare changes to submitted answers. Submitted forms keep a history of saved versions. When a submission is edited, the previous version stays available. Saved revisions cannot be edited or deleted through CMS. ## Open Revision History 1. Open a [form submission](/cms/tutorials/forms/form-submissions). 2. Select **View history** in the **Submission history** panel. 3. Select a version from the list on the left. On mobile, use the **Saved version** dropdown. ![Submission history panel with two saved versions and a View history button](https://docs-assets.sonoransoftware.com/sha256/3e/3e797cb8763c785ea7a49a89fb6f42684b9a77c01c58d5e9f9df4ee3285b67da.png) *Open history from a submitted form.* The latest version opens first. Each version lists its date and editor, when available. ## Compare Changes Selecting an edited version compares it with the previous saved version. For example, **Version 1 → 2** shows what changed when version 2 was saved. **Only show changes** is enabled by default. Turn it off to include unchanged questions and view the full form. ![Version 2 selected, with Only show changes enabled and an edited answer displayed beside its previous value](https://docs-assets.sonoransoftware.com/sha256/77/7793ba1a7cbfcf3f6150062565adcb803362f0b22d37a1af5d1863e76316fff9.png) *The previous answer appears under Before; the selected version's answer appears under Saved.* | Label | Meaning | | - | - | | **Changed** — amber | The answer, question, or question settings changed. | | **Added question** — green | The question was added to this submission. | | **Removed question** — red | The question was removed. Its previous answer remains visible. | | **Unchanged** — gray | The question is unchanged. Shown when Only show changes is off. | ![An added Preferred department question highlighted in green and a removed Previous experience question highlighted in red](https://docs-assets.sonoransoftware.com/sha256/b7/b73568bd8e4982fd85d90fb113adf690789ab84461b8d7a62a3052e0305a6533.png) *Added and removed questions remain in their form section for comparison.* Select **Original submission** to view the answers as they were first submitted. Viewing a version does not restore it or change the current submission. ## What Is Included? Revision history tracks the submitted form's questions and answers. Comments, stage changes, and notification settings are separate from this history. Forms that existed before revision history was enabled start with a **First available version**. Edits made before that point are unavailable. History uses the submission's existing viewing permissions. It does not grant permission to edit the form. *Screenshots use fictional names and sample answers.* # Getting Started Source: https://docs.sonoransoftware.com/cms/tutorials/getting-started Managing your community with Sonoran CMS is easy! Let's help you get started... # Inviting Users Source: https://docs.sonoransoftware.com/cms/tutorials/getting-started/inviting-users-to-your-cms Invite your community members to join your community, and grant them access. [Interactive tutorial](https://embed.app.guidde.com/playbooks/9cFxjht6JjCRnDrBKpSeHN?autoplay=false) ## Manually Join with a Community ID Users can [create an account](/cms/tutorials/getting-started/registering-your-account), and click the blue arrow **Join** button on the main page. * Enter the [Community ID](/cms/tutorials/customization/community-branding-and-settings#community-id-and-vanity-url) * Press **Enter** to search * Select the community to join From there, users can select your community card in the **My Communities** section to log into your CMS. ![](https://docs-assets.sonoransoftware.com/sha256/0f/0fd6186b057b6763b5fe25fc1d957080e378c6a02e9920376cc7df291eaa539b.png) *The join community model allows users to search for a community ID.* ## Join Community with a URL ### Vanity URL All communities are given a free [vanity URL](/cms/tutorials/customization/community-branding-and-settings#community-id-and-vanity-url) formatted as `.sonorancms.com`. This URL will directly load your community homepage, allowing users to login and join. ### Custom Domain Communities with a **Pro** subscription can [link a custom domain](/cms/tutorials/customization/custom-domain#custom-domain). This custom domain name will load the community homepage, allowing users to login and join. ![](https://docs-assets.sonoransoftware.com/sha256/c7/c73ab2eb04617cce7ec552d3bbfcd6fca744a23e21e5b711f05e9c607be278d0.png) *CMS Vanity URL and Custom Domains* # Account Registration Source: https://docs.sonoransoftware.com/cms/tutorials/getting-started/registering-your-account Register your account with Sonoran CMS to easily create a new community, or join an existing one. [Interactive tutorial](https://embed.app.guidde.com/playbooks/cKaxjBfjELSb29e43BA4Yd?autoplay=false) > [!NOTE] > > If you already have an account on [sonorancad.com](https://sonorancad.com/) and/or [account.sonoransoftware.com](https://account.sonoransoftware.com) you can simply [login](https://sonorancms.com/#/login) instead of creating an account. ### Navigate to the Login Page On the website or app, select your Login method. When viewing a specific community, they may have [restricted login options](/cms/tutorials/customization/community-branding-and-settings#allowed-login-methods). ![The account registration panel allows users to input their information.](https://docs-assets.sonoransoftware.com/sha256/21/2111d2b3d81876f0ba5378767e381faa74f0931fc98b350aefef0e02ae6f1e6d.png) ### Enter Your Account Information Enter in your email, username, and password. Then, select the **Register** button. ![Verification emails are sent for user registration.](https://docs-assets.sonoransoftware.com/sha256/af/afd2b8ad619c2026e3030ab50888d71665f534a2d3908427d2b1854ea07f25d3.png) ### Verify Your Email Address > [!WARNING] > > Account verification emails may not be shown in your primary inbox. > > If you're having trouble finding the email, check your spam, junk, promotions, or all mail folder. Check your inbox for an email from Sonoran CMS.\ \ Select the **Verify Email** button, and your account will be automatically verified. ![Account verification emails are sent as shown above.](https://docs-assets.sonoransoftware.com/sha256/ee/eed52c213d5390050c85986640a7ccf7557b23219d536d2e4e02fdbebe91fc92.png) # Community Registration Source: https://docs.sonoransoftware.com/cms/tutorials/getting-started/registering-your-community Registering your community and creating a CMS is fast, easy, and free! [Interactive tutorial](https://embed.app.guidde.com/playbooks/6kTLSFXwofS2QDNHnuMcjQ?autoplay=false) > [!NOTE] > > NOTE: If you have not already, you will need to [create a user account](/cms/tutorials/getting-started/registering-your-account) with Sonoran CMS. ### Enter In Your Community Information Once logged in, press the "Plus Icon" on the community selection menu.\ You will be prompted for five information fields: 1. Community Name 2. Community Tagline 3. Community Logo 4. Community Banner 5. Community Description ![The community CMS registration model is shown as above.](https://docs-assets.sonoransoftware.com/sha256/07/078f7ce381b5c8f81da1a9798223302bb1835e4cd633f2edf382bd96bfc227db.png) ### Register Your Community Once you've filled out the information, press **Create** to create your CMS Community.\ \ Your community icon will now be displayed under the **My Communities** section. You can click on this to log into your new CMS Community. # Troubleshooting Source: https://docs.sonoransoftware.com/cms/tutorials/getting-started/troubleshooting ### CMS Not Loading (ESET Antivirus) In certain cases, antivirus programs such as ESET are known to block connections to the CMS. To add CMS to ESET's allow list, please follow the following instructions: 1. Open ESET program on your computer 2. Press the `F5` key to open Advanced setup. 3. Click `Web access protection`. Expand `URL list management` and click `Edit` next to `Address list` 4. Select `List of allowed addresses` and click `Edit` 5. Click `Add` in the `Edit list` window. Paste `*sonorancms.com*` in the respective field, click `OK` → `OK` to save your changes, and exit the Advanced setup window. * If using CAD, also add `*.sonorancad.com*` For more information, see [here](https://support.eset.com/en/kb2960-exclude-a-safe-website-from-being-blocked-by-web-access-protection). # Rosters Source: https://docs.sonoransoftware.com/cms/tutorials/rosters Track member statuses, connection time, ranks, identifiers, and more with custom community rosters! # Creating Rosters Source: https://docs.sonoransoftware.com/cms/tutorials/rosters/creating-custom-rosters Track community members, in-game activity time, and more all in one place with custom columns and automations. ## Accessing the Roster Editor Rosters can be configured in the **Admin** panel > **Rosters** ![](https://docs-assets.sonoransoftware.com/sha256/94/94c31cc8bbd5b5403408a3b37ac9a61848a9182df9f474cd5eb7ee33563103c4.png) Hover over a roster to **View** or **Edit**, or use the **Add Roster** button to create a new one. ## Creating Rosters ### Roster Types There are three types of rosters to choose from: * **Selected Ranks**: This allows you to select specific CMS ranks. Anyone with these ranks will automatically appear on the roster. * **Manual**: This allows you to manually add each member and row to the roster. ### Roster Columns Drag-and-drop columns to add them to your custom roster. > [accordion] General Columns > > The **General** columns include text, textarea, select, checkbox, date, and time. > [accordion] Member Columns > > The **Member Data** columns include automatic fields for the user like their ID, name, rank, primary identifier, and current disciplinary points. > [accordion] Time Columns > > The **Time** columns include automatic fields like time log hours, activity tracker hours, and last active date. > > **Activity Tracker Hours** > > * This column shows the current amount of in-game time for the selected date range. These hours are automatically calculated whenever a user joins and leaves your game server. > * For [ER:LC](/cms/integration-capabilities/er-lc-game-panel) communities, you can also select the specific team(s) to show. > * [FiveM](/cms/integration-capabilities/fivem-game-panel) communities are also automated. > * Our [API](/cms/developer-api-documentation/api-integration/api-endpoints-v2/servers/activity-tracker-server-start) can be used for custom games that don't currently have a management panel. > > **Time Log Hours** > > * This column shows the current amount of player time from the clock in/out system. It must be pointed to a form type with the time clock section added. > [accordion] Social Columns > > The **Social** columns include automatic fields for Discord ID/username/nickname, TeamSpeak ID, and Roblox ID/Username. ## Roster Customization > [accordion] Column Styles > > Select a column to open the editor. Here, you can customize the alignment, text color, cell color, and more. > [accordion] Actions > > Roster columns can have additional conditional options to set the values and styles. Select a column to open the editor and select the **Actions** tab. The flowchart can be expanded to add IF/THEN conditions to set the value(s) and style(s). > > Ex: This flowchart sets the **Status** column to **Active** if their in-game hours (via activity tracker column) is greater than 1.5 hours. If not, it will set the status column to **In-Active** or **Exempt** based on them having a specific rank or not. > > ![](https://docs-assets.sonoransoftware.com/sha256/e6/e6e0a920168d6fd41f727326da71facc89ceed55f1f0f0bc06b8078b81c322a9.png) ## Roster Permissions > [accordion] Column Permissions > > Columns can also be set to only be visible based on a user's ranks. Select a column to open the editor and use the **Permissions** tab. On the **Allowed Ranks to View** button, select the custom CMS ranks that are allowed to view the column. > [accordion] Roster Permissions > > The [rank manager](/cms/tutorials/user-management/creating-departments) allows communities to configure who can view, edit, download, and other roster options. > > ![](https://docs-assets.sonoransoftware.com/sha256/80/80939ee40dc292f3aed95576524cc793bae5757ccb8dfe2b718b2b2efe37cd53.png) > > *Sonoran CMS - Rank Editor - Roster Permissions* # Roster Automations Source: https://docs.sonoransoftware.com/cms/tutorials/rosters/roster-automations Create powerful automations with your custom community rosters! ## Roster Trigger Actions Communities can use the [**Actions**](/cms/tutorials/administrative/actions) panel to send webhooks, in-game messages, and other automated tasks. These actions can run on a schedule or be triggered when roster cells change. **Example:**\ A community roster includes a **Status** column that automatically switches members between **Active** and **Inactive** based on their recent in-game activity. When a member’s playtime drops below the required threshold and their status updates to *Inactive*, a Discord webhook should be sent automatically. ***Note:** Activity time columns update automatically when new logs (join/leave game) are created. If a member hasn’t logged in recently, no logs exist to trigger a recalculation, so a 12-hour scheduled task re-processes them.* ![](https://docs-assets.sonoransoftware.com/sha256/a6/a64b0f869328b27a17236040b33e4c72a437758414048add0626f74952dc5e15.png) ## Edit Roster on Form Stage [Custom form stages](/cms/tutorials/forms/creating-custom-forms#form-stages) can also update rosters. For example, when a leave-of-absence (LOA) submission moves to the **Accepted** stage, the submitter’s **Status** field can automatically be set to **LOA**. ![](https://docs-assets.sonoransoftware.com/sha256/1f/1ffd76c3b36c2fe31c0135998e034693d9af7884cd9048e5b7858fa2eea6f567.png) # Viewing Rosters Source: https://docs.sonoransoftware.com/cms/tutorials/rosters/viewing-rosters View rosters and sort columns, filter values, search for users, export to CSV, and more! ## Roster Viewing Locations > [accordion] Via Roster Editor > > Under **Admin** > **Rosters** > hover over a roster and select **View** to view the roster directly in the admin panel. > [accordion] Via Slug > > Under **Admin** > **Rosters** > hover over a roster and select **Edit** to open the roster editor. Select the **Copy** in the **Roster Slug URL** header box to copy a sharable link. > [accordion] Via Navigation Bar > > Under **Admin** > **Website Builder** > [**Navigation Bar**](/cms/tutorials/community-website/toolbar-customization) > Communities can add a new button or dropdown that links to a specific roster. If the roster is restricted to only specific ranks, the navigation button will only be visible to users with one of those ranks. ## Roster Viewing > [accordion] Sorting > > When viewing a roster you can click on a column's header to sort in ascending or descending order. Or, select the filter icon on applicable columns to only view specific values. > > ![](https://docs-assets.sonoransoftware.com/sha256/20/20858bd5aebb6fbfad4357915474459ae0ea75623b0c002a2a253a25468d0909.png) > [accordion] Searching Users > > The user search input allows you to search by username, ID, Discord/Roblox identifiers, and more. Select the orange icon to change the search type. > > ![](https://docs-assets.sonoransoftware.com/sha256/0c/0c7e7dbef190aea5d0daa605f9ea6bd054389c2d95f3ec84ea88f8e68e9e77b2.png) > [accordion] Export to CSV > > Users with permissions to export the roster to CSV can also click the CSV icon to download the full sheet. # User Management Source: https://docs.sonoransoftware.com/cms/tutorials/user-management Learn more about creating and assigning ranks, community profiles, and member rosters. # Configuring User Permissions Source: https://docs.sonoransoftware.com/cms/tutorials/user-management/configuring-user-permissions Easily view user permissions and determine what ranks are granting or denying permissions. [Interactive tutorial](https://embed.app.guidde.com/playbooks/tZ6JoJVGXMWeJZejtoNmci?autoplay=false) ## Rank Permissions When configuring a rank, each permission can be set to **Grant**, **Unset**, or **Deny**: * **Grant** — Explicitly gives the permission to anyone with that rank. * **Unset** — Neither grants nor denies the permission; it simply leaves it unchanged. * **Deny** — Blocks the permission, even if another rank would otherwise grant it. A denied permission always overrides a grant. Use **Deny** sparingly. It’s best suited for special ranks that must override other granted permissions, such as a temporary ban rank. In most cases, leaving a permission **Unset** is sufficient, as it will not grant the permission on its own. ![](https://docs-assets.sonoransoftware.com/sha256/5e/5ed275e65ad2346c88f3a0e06cd6f7e6afdd689afc0752264e39d2a4f5797220.png) ## Viewing User Permissions You can view a user’s computed permissions directly in the account portal. Click the **(i)** icon above their ranks to see every permission that’s granted, unset, or denied. Hover over any permission to see a tooltip listing the groups and ranks responsible for granting or denying it. ![](https://docs-assets.sonoransoftware.com/sha256/ed/eddab3d94412ddf6b88ad624d7e60311fe062733e0a1125f53ce338c98308981.png) ![](https://docs-assets.sonoransoftware.com/sha256/73/738079ff20c95d0b1281a9270eb2489452ee6c48d2c0e39d8df37aacebd62c85.png) # Creating Ranks Source: https://docs.sonoransoftware.com/cms/tutorials/user-management/creating-departments Now that you've created your community and started to invite users you'll want to start creating groups. Learn more below [Interactive tutorial](https://embed.app.guidde.com/playbooks/a7SxReQKBLpNWVAx1G9LZv?autoplay=false) ## Accessing the Rank Manager To access the "Rank Manager", head to `Administrative Panel` > `Ranks` Within the Rank panel you'll be able to create groups and ranks for your members, this will be the central panel for deciding permissions based on "ranks", when new, removed, or modified Custom Forms, Calendar Categories, and Rosters will be reflected with available permissions under each rank. ![Sonoran CMS Group Manager Panel - Add/Remove/Edit Groups & Ranks](https://docs-assets.sonoransoftware.com/sha256/5e/5ea990943e7244960e0622204d56f650fb7f31be8058af6ddc367881dbdce603.png) ## Creating a Group Click the "Add a New Group" button, which can be found at the end of your existing groups (or the beginning if you're on mobile). Once clicked, a dialog popup should appear The dialog contains one crucial field for your group: 1. Group Name (Example: Police Department) ![](https://docs-assets.sonoransoftware.com/sha256/01/016b3662194b9bfc34ebc0f3d3a7697edcf1573764aa16a0f8e9b1cfdab98215.png) *Sonoran CMS - Group Editor - Creating a Group* You do not need to customize anything to create your group, so saving now is fine. When you're ready to save, click anywhere outside the group box. Or, you can set permissions associated with the group. ### Group Permissions ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d9f07466f53e3fc7cdf7f3f95f9f263c518f09aeb1e1c6bb510bb6e9da0ca45.png) *Sonoran CMS - Group Editor - Setting Group Permissions* This is where you'll need to assign permissions that you want all ranks within the group to inherit. These are the same set of permissions that ranks are able to get assigned but will be applied to all ranks upon permission evaluation. You can toggle all permissions in a category with the Toggle button above the permissions. ## Creating a Rank In the group header, click the green plus button to begin creating a new rank This will bring up a new dialog where you'll need to input a name and setup permissions for your new rank. Permissions on a rank dictate what a person with that rank can do. There are many different types of permission scopes: ### Assigning Rank Permissions Rank permissions can be assigned using the same method as group permissions. There are many different categories of permissions you can assign, for example: * **"System"** permissions are for general administration (e.g. kick, ban, clock in & out). * **"Navigation"** permissions are for viewing navigation buttons. * **"Forms"** permissions are for the custom forms. * **"Rosters"** permissions are based on the custom records made in `Administrative Panel` > `Rosters`. * **"Calendars"** permissions are based on the calendar categories. * **"Profile Fields"** permissions are based on the Profile Fields created in the `Administrative Panel` > `Profile Fields`. * **"Servers"** permissions are based on the API Integration servers made in `Administrative Panel` > `Integrations`. ![](https://docs-assets.sonoransoftware.com/sha256/fa/fa26bacc07e2cdea2216de51b057199cadc33be360c6ed030d79e33d0cf33f5c.png) *Sonoran CMS - Rank Editor - Rank Permissions* When you are done customizing your rank permissions, click anywhere outside to close the dialog and automatically save it. Your new rank will show up under the group you created it in. You search for specific permissions. This will bring display a number of how many settings match your search in each category, and will show only the ranks in a given category that match the search. ![](https://docs-assets.sonoransoftware.com/sha256/96/96a858b0054b073b885aaa91112fe8af9a53c8acf90fba419cb284d15e0f3bfc.png) *Sonoran CMS - Rank Editor - Search Rank Permissions* If you ever want to modify permissions, click the person icon to the right of the name to open the dialog again. ### Customize Rank Cosmetic Styling Ranks are able to be customized to the styling that best fits your community. You are able to customize the color and icon associated with each rank. You can specify common color names or custom hex colors. To access this setting, click on the icon to the left of the rank name. ![](https://docs-assets.sonoransoftware.com/sha256/f5/f5e8da08a9baf01ca2f07242d70d1e97cbdafb8ebaf6b4947c698f8cf3f89cd5.png) *Sonoran CMS - Rank Editor - Rank Cosmetic Customization* ### Customize Rank Power To the top right of the rank name you will see a number, by default it is 0. Click on this to access the rank power tab. Rank Power determines who has higher authority in the community. ![](https://docs-assets.sonoransoftware.com/sha256/1a/1accf5cbe01e1e066d5bb00a275914eea2446a25850f3cc387308b86e8b96dba.png) *Sonoran CMS - Rank Editor - Rank Power* > [!NOTE] > > Rank **Power** will be compared to other users as a global user power, this will be utilized to determine if you can modify other individuals. If your power is higher than another individual then you can modify them, if it's less then you cannot. ## Importing Ranks from Discord Roles Instead of manually creating rank for everything, you can also directly import the roles from any linked Discord server directly to your CMS Community. To do this, in any group, click the Discord icon in the group header. ![](https://docs-assets.sonoransoftware.com/sha256/78/78994a028ec7bd0d75e7f2149c3e1e08b808e00ac4d273f8e6860d56c52409be.png) *Sonoran CMS - Rank Editor - Import Discord Roles* ### Select Guild > [accordion] Select Discord Guild to Import Roles > > Next, click **Select Guild** and select the linked guild you would like to import roles from. If you have not yet linked a Discord guild to CMS, you must do so through our [Sonoran Discord Bot](/bot/tutorials/getting-started). > > ![](https://docs-assets.sonoransoftware.com/sha256/0d/0d84ce02fd1899ace9f80d736475ffdc1c67d7fad5459006234bdf57b667b4d8.png) > > *Sonoran CMS - Rank Editor - Select Guild* > > ![](https://docs-assets.sonoransoftware.com/sha256/bf/bf6106499f694ab9a8f2ccf0d0170e77c0d0e06c39ca945bbfcea6b17b00f1d6.png) > > *Sonoran CMS - Rank Editor - Click Guild* ### Select Discord Roles for Import > [accordion] Select Discord Roles > > When you select a guild to import roles from, it will populate the window with all existing roles within that Discord. You can select which roles you would like to import, or click the top checkbox to select all. > > ![](https://docs-assets.sonoransoftware.com/sha256/07/079807dcb48c6f5c0fadbbf7161a3684ff05eb9e946b7a314e0dcf7e5eb12d1c.png) > > *Sonoran CMS - Rank Editor - Select Discord Roles* ### Discord Map and Import > [accordion] Discord Map and Import > > You can optionally toggle on the feature to **Also create one-to-one Discord role mapping(s)** at the bottom of the import window. > > If toggled on, this will [automatically map your selected Discord roles to CMS ranks](/bot/tutorials/sonoran-cms-integration/role-mapping), enabling role sync. > > ![](https://docs-assets.sonoransoftware.com/sha256/43/43426db49962d64d822c768dfeafea4043aae77dde77b8b849dc98837e6551fa.png) > > Finally, click **Import Roles to Ranks** at the bottom of the window, and new ranks matching the name and color of the roles will be created: > > ![](https://docs-assets.sonoransoftware.com/sha256/4c/4ce726b7a347289a077692be0f16385b707a684d58536d5f0d7fc20596a8d852.png) > > *Sonoran CMS - Rank Editor - Imported Discord Roles* > > Please note that you will still have to configure permissions for these newly created ranks. By default they will assume the permissions of their department, but any further changes must be done manually. ## Copy Rank IDs Some integrations may require you to input Sonoran CMS rank IDs. Select the `...` menu and the `Copy Rank ID` button to copy the rank ID to your clipboard. ![](https://docs-assets.sonoransoftware.com/sha256/8f/8f901d5bbac9cc952db1a8dede9debb96abd86704892f87bf5fef507b742714f.png) # Merge Duplicate Accounts Source: https://docs.sonoransoftware.com/cms/tutorials/user-management/merge-duplicate-accounts Merge CMS accounts together to remove duplicates, combine ranks, form submissions, and more. ## Duplicate Accounts Duplicate accounts can occur when CMS users accidentally register multiple times, such as creating one account through Sonoran and another through Discord. To resolve this, community admins can merge the duplicate account into the primary account by migrating all associated data, then archive the duplicate account to prevent further use. ## Merging Duplicate Accounts ### Select the Duplicate Account In the user account menu, select the duplicate account. Then, select **Merge Account**. ![](https://docs-assets.sonoransoftware.com/sha256/b8/b813b3bc68705a5a627ed06197c0c5ef770830d4c81e556ca19431dc7dd60d96.png) ### Select and Merge Accounts The **Source Account** will be automatically selected. This **Source Account** will be merged into the **Target Account**. Select the **Target Account** and press **Merge Accounts**. ![](https://docs-assets.sonoransoftware.com/sha256/53/534db6739bfc1eb187209ad16233146d17aff9bd990994d4d2924d0cf2420ed2.png) Once merged: * All ranks, form submissions, and other data will be moved from the **Source Account** to the **Target Account** * The **Source Account** will be archived (all ranks removed) * For data integrity, all [security center logs](/cms/tutorials/administrative/security-center/logging-center) from the **Source Account** will still remain under the **Source Account** # Setting User Ranks Source: https://docs.sonoransoftware.com/cms/tutorials/user-management/modify-users-permissions-and-information Now you're ready to modify your users that have joined your community. Follow the guide below! [Interactive tutorial](https://embed.app.guidde.com/playbooks/9t7tJGYCTmTCa9V68Hzf7f?autoplay=false) > [!WARNING] > > Make sure that you've viewed the [**Creating Ranks**](/cms/tutorials/user-management/creating-departments) guide and have created at least one group prior to modifying user permissions. ## Navigate to the Accounts Panel To access the "Accounts Panel", head to `Administrative Panel` > `User Accounts` Within this "Accounts Panel" is where you'll be able to see every user that has joined your community. From here you can click and edit their information and permissions. ![Sonoran CMS - Administrative Accounts Panel - Utilize this panel to edit and view all users information.](https://docs-assets.sonoransoftware.com/sha256/48/48d49e3e5c16102213212b8e72ff14bd1e17ba280625137e400534f2289c91eb.png) ## Editing Account Information To edit a user’s account, left-click their row in the **User Accounts** table. This opens a dialog where you can update details such as Rank and Identifiers. Assigning ranks grants the user the permissions associated with those roles. When adding identifiers, type the value and press **Enter** to apply it. A user’s permissions are active only when their **System Status** is set to **ACTIVE**. If a user is archived, all permissions are revoked and their access to the community CMS is restricted. ![Administrative Accounts Panel - Account Information Dialog](https://docs-assets.sonoransoftware.com/sha256/1c/1c351ad19a3334ab111ec3942f20db38d04421aac479ddec0b32c60f84d8ff2e.png) ### Assign Rank to Multiple Accounts In the `User Accounts` viewer, you can now tick the checkboxes to select multiple accounts at once. This will allow you to perform actions on multiple accounts at once. ![](https://docs-assets.sonoransoftware.com/sha256/5b/5b3e104b329f996fd23e0f4275fa06f295fe0efb8ffae3a8b7ffcd7621b83461.png) *Sonoran CMS - Multiple Account Selection* Once you have selected the desired accounts, click on the Icon button above to open a dropdown of every action you can perform. For rank management, you have the following options: * **Set Ranks** will automatically replace all assigned ranks with whatever rank you specify * **Add/Remove Ranks** Allows you to add or remove any ranks to selected accounts ![](https://docs-assets.sonoransoftware.com/sha256/bc/bca67e337656e05fc62e7e6b827b9e7d9761bd8d184d6f8ee5a6e96c2b0bc486.png) *Sonoran CMS - Multiple Account Actions* You can also perform administrative actions (currently Kick, Ban, and Archive) on multiple users at once through this dropdown. ### Alternate User Accounts Table Actions Instead of left-clicking a user's row you can right-click which will prompt you with two actions: * **Edit Account Information** which will pop up with the above dialog * **View Member Profile** will redirect you to the user's community profile which will provide more information. ![Sonoran CMS - Administrative Accounts Panel - Account Information Right Click Prompt](https://docs-assets.sonoransoftware.com/sha256/61/61fa5d49fe2ca93c25132819e7a6036c9aa890fbb999771b2b9ebb87fc224b73.png) ![Sonoran CMS - User's Community Profile - Redirected from the "View Member Profile" prompt from above](https://docs-assets.sonoransoftware.com/sha256/cd/cd66614f549570a1941ce1abb65ac545df7e96440f705b1f05a061bf4bd6f09a.png) If you have permission to edit the individuals information in the Account Viewer you can edit the member's name in their Community Profile by clicking their name or the blue pencil shown to the right of it. The pencil will only show if you have permission. ### Granting Expiring Ranks You can configure any rank to expire either after a set duration or at a specific date and time. To begin, assign the user the rank you want to schedule for expiration. After selecting the rank, click the yellow **Set to Expire** button. A dialog will appear where you can choose between a time-based expiration (e.g., after a certain number of days) or an exact expiration date and time. Once you’ve configured the settings, click the green **Set Expiration** button to apply the expiration schedule. ![](https://docs-assets.sonoransoftware.com/sha256/50/50660cd18f45df7c4b96f0d463af6815eb203f9989c8fa5ef831eeb0c0921f89.png) *Sonoran CMS - Rank Expiration Settings* > [!NOTE] > > Checks for rank expirations are done upon each fetch of the account and not **currently** periodically checked. ## Filtering Users by Rank In the `User Accounts` page, you can filter users by rank so that only users who hold the rank(s) you've selected will be shown. To filter by rank, open the dropdown menu to the right of where it says `User Accounts:`. In there you can department sub-menus and click on ranks to filter them. You can select multiple ranks to filter if you would like. To clear filters, you can click the X in the menu box. Below that you can alternatively choose to display Pending, Banned, or Archived members. ![](https://docs-assets.sonoransoftware.com/sha256/9c/9cf1a193fa0d7e835e25ad486f27082cb84f860589e736885fa1975c119ed530.png) *Sonoran CMS - Filter Users by Rank* ## Grant Rank on Join > [!NOTE] > > These settings can be found in `Admin Panel` > `Customization` > `On Join Actions` You can automatically grant a default rank for all users who join your community. This could be used if you want to have a specific rank for inquiring members that only gives them access to certain forms. In this case you would click the green plus button, add a `Modify Ranks` block, then select the rank you wish to grant. Granting a rank will automatically change a new user's status from **Pending** to **Active**. ![](https://docs-assets.sonoransoftware.com/sha256/92/9217b2ea97360dd7663fcf3e012bd053609962bd14cd050265a9b8b1a5117ec1.png) *Sonoran CMS - Customization - On Join Rank* Alternatively, if you do **not** set a rank on join, new users' statuses will remain as **Pending**, prompting them to fill out a membership application. ![](https://docs-assets.sonoransoftware.com/sha256/ab/abdd34903a99001ad2d8e08bb84f6ba5c1f66e35e473ed47c330e8d6e860cd8c.png) *Sonoran CMS - Pending User Form Prompt* # Rank Promotions Source: https://docs.sonoransoftware.com/cms/tutorials/user-management/rank-promotions Configure rank promotion flows for your community members. [Interactive tutorial](https://embed.app.guidde.com/playbooks/wJ25VP5VoPdCjmsS44zKHr?autoplay=false) ## What are Promotions? **Promotion flows** let you easily promote or demote members within your community. For example, a user with the **Rookie** rank can be promoted to **Member**, or an **Administrator** can be demoted to **Moderator**. ![](https://docs-assets.sonoransoftware.com/sha256/bf/bf43863411bcf9cb1c37dff6839d85f1edf86bc9d8846ba6219092cabd5d18df.png) ## Creating Promotion Flows > [accordion] Flow Information and Ranks > > 1. **Access the Promotions Panel** > > Open the **Ranks** panel and select the **Promotions** tab at the top left. > > In the **Promotions** panel, select **Promotion Flows** to view, add, edit, or remove existing promotion flows. > > 2. **Configure Promotion Ranks** > > Use the **Promote From** and **Promote To** fields to label the flow.\ > Example**:** Promote from **Moderator** to **Admin**. > > **Configure Rank Changes** > > * In the **Ranks to Add** section, select **Admin**. > * In the **Ranks to Remove** section, select **Moderator**. > > When executed, this flow will **add the Admin rank** and **remove the Moderator rank**, effectively promoting the user. > > ![](https://docs-assets.sonoransoftware.com/sha256/5e/5eea88497e69c198978514316e066fb8391f0ed871133315f55ea5b2c0d6b1c2.png) > [accordion] Promotion Flow Direction > > **Configure Flow Direction** > > By default, promotional flows can be executed in either direction—promotion or demotion. To reduce the risk of misuse, flows can be restricted to a single direction. > > Select the toggle at the top to change between > > * **Promotion and Demotion** > * **Promote Only** > * **Demote Only** > > For example, a “mass demote” flow may be designed to remove all CMS ranks. If that same flow is accidentally run in reverse, it would instead grant every CMS rank to the user, leading to unintended privilege escalation. > > ![](https://docs-assets.sonoransoftware.com/sha256/a8/a8792558bd3b97a96b88bb94a2385df2fd48a24d9609dcc05b59a1f5566e7957.png) > [accordion] Flow Actions > > When a promotion flow is ran, you can also run automated actions like a Discord webhook, push notification, and more. > > ![](https://docs-assets.sonoransoftware.com/sha256/1b/1bf54148d7ab0485fbeb6b4acbc6cf3441d43e5714dad749403012906c3f3c58.png) ### Multi-Flow Actions > [accordion] Multi-Flow Actions > > Communities can also define general actions that trigger when any one or more promotional flows are executed. This allows, for example, a single community announcement that summarizes all users included and all promotions applied. > > ![](https://docs-assets.sonoransoftware.com/sha256/d7/d71a8bf35391b4a4f5439d1e6ecbec6c805ab0b97afd9724f429258210333803.png) ## Running Promotion Flows > [accordion] Via CMS > > In the **Run Promotions** panel, select the **user(s)**, choose the **promotion flow**, and specify whether to **promote** or **demote**. > > Use the **green “+” icon** to add additional rows, allowing you to run multiple promotional flows simultaneously. > > ![](https://docs-assets.sonoransoftware.com/sha256/01/0179b85f3df30c442203693330fee5cb0995d9706ac8dad5d9b92e65c7a873ce.png) > [accordion] Via Discord Command > > Communities can [run promotional flows right from a Discord command](/bot/tutorials/sonoran-cms-integration/promotion-flows)! > [accordion] Via Form Stage Action > > Communities can also [create custom forms](/cms/tutorials/forms/creating-custom-forms) that will run promotional flows on selected users when the stage is changed. > > The form can have an optional **Promotional Flow** and **Member Selector** question for the [stage action](/cms/tutorials/forms/creating-custom-forms#form-stages) to use. These form inputs can be used in the custom stage action. > > ![](https://docs-assets.sonoransoftware.com/sha256/c9/c94a74534781d7ebcc23a91d2445c2432ae3b795ea53e3290870956f5b7f8ec0.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/03/030d22a77dd9558e9e7dbddda6f967547919dfbfe8308c7933c987463e60582d.png) ### Permissions To allow others to manage Promotion Flows on your behalf, you can assign the following [permissions](/cms/tutorials/user-management/creating-departments#assigning-rank-permissions). * Create/Edit/Remove Promotion Flows * **Modify Departments** * Trigger Promotion Flows * **Change Permissions** * Trigger promotion flows that include ranks above the triggering user’s permission level. * **Change Higher Permission** # Community Profile Source: https://docs.sonoransoftware.com/cms/tutorials/user-management/viewing-a-community-profile Looking to view a member's profile that's within your community? Follow this page for more information! [Interactive tutorial](https://embed.app.guidde.com/playbooks/9pgQ43qPRgvuuVcyA8ma8n?autoplay=false) ![Sonoran CMS - Community Profile](https://docs-assets.sonoransoftware.com/sha256/43/4319c7fc92d7191b82a5c4330cba64a7c6d8bbb09ec6b1e1f27dc47e57572e3f.png) ## Accessing a User's Community Profile There are a few ways to view a community profile, which are listed below. From `Administrative Panel` > `User Accounts`, you can right click on any user, then select `View Member Profile`. ![Sonoran CMS Administrative Panel - Accounts Panel](https://docs-assets.sonoransoftware.com/sha256/69/690094416c86ef88c5c3676559c29dae70796d4c3ab1bac1ad6116496bf8a427.png) You can also click on any user's account avatar to be redirected to their profile. This can be done from the `User Accounts` page when viewed as a grid, from the `Edit Account Information` popup, as well as from form submissions, forum posts, and any other places where a user's avatar may be displayed. ![](https://docs-assets.sonoransoftware.com/sha256/35/354bc2d877ef7bca549fa6da1e634f1911291d04ef904866c9c76168331c744f.png) *Sonoran CMS - View User's Profile* ## Customizing Profile Fields Profile fields can be customized in the admin panel, and communities can control who is allowed to view or edit these fields for both their own profiles and those of other users. > [card] [Customizing Profile Fields](/cms/tutorials/customization/community-profile-fields) # Drive & Documents Source: https://docs.sonoransoftware.com/cms/tutorials/your-drive-and-documents Just like Google Drive or Microsoft Office, create and store documents in your community's drive! ![](https://docs-assets.sonoransoftware.com/sha256/01/012a4cbde031605edd652a9c447d43769d0f8ab714e3a38c52e4a011dc56f77e.png) With your drive, you're able to create files and folders for your community. These files are completely customizable, and have a similar style editor to the Microsoft Office suite ## Community Drive Sonoran CMS offers a powerful file drive system allowing for live document editing, uploads and downloads, easy permission management with CMS ranks, and more! You can even [login with Google to migrate your existing Google Drive](/cms/tutorials/your-drive-and-documents#migrate-files-from-google-drive) files! You can navigate to your drive using the **Drive** button in the admin panel. Or, link the **Drive** to a [custom navigation bar item](/cms/tutorials/community-website/website-builder#toolbar) for the `/drive` URL path. ### Folders > [accordion] Drive Folders > > Folders help you organize your community's drive! To create folders, just use the green plus button, then drag-and-drop files into the folders. You can also drag-and-drop files on the breadcrumbs on the top > > ![](https://docs-assets.sonoransoftware.com/sha256/f6/f694223a96e0fe7128c36351aba46005d6d6078c84ba383d43087c6e0710e563.png) > > *Sonoran CMS - Drive File Path* > > To move a file without drag-and-drop, you can right click the document then **Move to Folder** and select the folder in the popup. > > Right-click to access [share settings](/cms/tutorials/your-drive-and-documents#share-settings) with them to determine who can view/edit via the direct link. ### View Mode > [accordion] List vs Table View > > ![](https://docs-assets.sonoransoftware.com/sha256/6e/6e28f793c557439b9d01c6d3fe7404cf0dbde65e969cf0c6c19f66139f8f297e.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/fd/fdc0186de658803cbbbd3916bdf4bfa2e6a15e6a7327683ba05358b481006207.png) > > Swap the view mode between grid and list using the orange toggle at the top right. ### Share and Public View Settings > [accordion] Share Settings > > ![](https://docs-assets.sonoransoftware.com/sha256/47/47ca4b94a23824c2c6e1d6c84251d813e146f60e2274bd8d01e0f5984997a938.png) > > Access the **Share Settings** via the document editor **Share** button or via right-click on any drive file. > > **Ranks with All Drive Access** > > This shows all ranks that have the "Modify Documents (Drive)" permission, this will automatically grant them permission to modify this drive item. > > **Ranks with Access Permissions** > > This shows all ranks that have been added to have direct view or edit access regardless of what the General Access share type is set to. If a user has a rank listed here the drive item will show in their Drive as well. You can select what ranks you wish to give access permissions and whether they're given permission to view or edit. > > **General Access** > > This allows for various share settings to be applied to the drive item from a single selection. There's various options that will grant members access automatically, the options are the following: > > *Restricted* > > This will only utilize the Ranks with All Drive Access and Ranks with Access Permissions to determine if they have access to the document. > > *Anyone with this link* > > This will allow ANYONE with the share link provided with the button to either view and/or edit the file, depending on what it set. You can click the icon on the left to either hide or show the drive item in your community member's Drive, if you have it hidden they'll still have access to either view or edit depending on what's set directly through the share link. Someone who is not apart of your community's CMS or even signed into Sonoran CMS will be able to view and/or edit through the share link provided. > > *Active members with this link* > > This will allow all users with the community status of "ACTIVE" not "PENDING" to either view or edit the drive item, depending on what's set. You can click the icon on the left to either hide or show the drive item in their Drive, if you have it hidden they still have access to either view or edit depending on what's set directly through the share link. > > *Active & pending members with this link* > > This will allow all users within the community to either view or edit the drive item, depending on what's set. You can click the icon on the left to either hide or show the drive item in their Drive, if you have it hidden they still have access to either view or edit depending on what's set directly through the share link. > > *Inherit Parent Folder General Access* > > This will inherit the parent folder's general access settings, this will simply inherit whatever option from above the folder is set to. > > > [!NOTE] > > > > **Inherit Parent Folder General Access** General Access Share Type cannot be set for any Drive item that is in the root (Home). ### Document Edit History > [accordion] Document Revision History > > When viewing any document in the CMS Drive, select the **Revision History** button to view recent edits. > > ![](https://docs-assets.sonoransoftware.com/sha256/e9/e946c54ffe65e8932b0e44dd1c6950b172fd755467455379953bb975f22f3d45.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/94/94aefb6580d612d8d082d183e344548d64ffac212e46ee656c20713f4ebc2652.png) ### Sensitive Documents > [accordion] Marking Documents as Sensitive > > You can also change the sensitivity of the document. With sensitive mode enabled, viewers will not be able to download, print, or copy the document. A watermark will also be added. > > Marking documents as sensitive requires the **Protect Documents** permission. > > ![](https://docs-assets.sonoransoftware.com/sha256/8a/8a62ba226e19baa51ba13dd57d2e105803d78bfc2fdbd164980ccbac366a822b.png) > > *Editing Document marked as Restricted* > > ![](https://docs-assets.sonoransoftware.com/sha256/c5/c51963129b6b9cb5b58a14b84e288c11cae149b66eb23ec586ce511b654425e5.png) > > *Viewing Document with Watermark* ### Trash > [accordion] Recently Deleted Drive Files > > Recently deleted files are shown in the **Trash** tab. Users can restore deleted files from the trash or permanently delete them with the **Delete From Trash** permission. > > Files in the trash are automatically deleted after seven days. ### Uploading Files > [accordion] Uploading Single Files and ZIPs > > Right-click anywhere in the drive or press **New** > **Upload File** or **Upload ZIP**. Uploading a ZIP file will automatically extract it to the CMS drive. > > Files allowed for upload include: > > * `.docx` Document > * `.xlsx` Spreadsheet > * `.pptx` Presentation > * `.pdf` PDF > * `.mp3` Audio > * `.wav` Audio > * `.rpf` GTA Archive > * `.ttf`, `.otf`, `.woff`, `.woff2` Custom Font (up to 5 MB each; use Upload File) > > For font uploads, conversion, and the sharing settings needed to use a font in CMS editors, see [Fonts & Custom Uploads](/cms/tutorials/customization/fonts). > > ![](https://docs-assets.sonoransoftware.com/sha256/8e/8ed36fcb31aa244cad61d27619725fe58372330fc7a83639dd899344b98ec0f5.png) ### Migrate Files from Google Drive > [!WARNING] > > Due to security restrictions from Google, imports from Google Drive must be completed on the main sonorancms.com URL or app. Communities on a [custom domain](/cms/tutorials/customization/custom-domain#custom-domain) must use the main website or app to complete this process. > [accordion] Migrate Files from Google Drive > > Login with Google to quickly migrate files to the CMS drive for easy permission management! > > Select **New** > **Import** > **Import from Google Drive** > > Follow the prompts to login, select the specific folders/files, and import them. > > ![](https://docs-assets.sonoransoftware.com/sha256/31/315ffb4ce70c71a7d2c959b4e961d36a1067912b777ca3791cbddd4907265c52.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/24/24ba5d3f43cffe60a2642833249403861efb6c2a456a853598286703255307c2.png) ## Drive Downloads > [accordion] Drive File Downloads > > There are several file types that the Sonoran CMS Drive accepts but only handles them as *downloadable* content that isn't for viewable use. The following file types are currently supported for *downloadable content*: > > * `.rpf` GTA Archive > * `.wav`, `.mp3` Audio > * `.zip` ZIP > * `.pdf` PDF > > ![](https://docs-assets.sonoransoftware.com/sha256/dd/ddba8f3a606a7b161bf2e6cd2162c3d560a3d732f8abbf6676fdda9c42260c9c.png) > > *Sonoran CMS - Download from Drive* # First Responder Discount Source: https://docs.sonoransoftware.com/first-responder-discount As part of our commitment to serving the community, we're proud to offer discounts to all U.S. military personnel and first responders. ![](https://docs-assets.sonoransoftware.com/sha256/2f/2f91ce952f529277d56d78f02fcc807178d4bc79d57a7105da249fa8b81c086e.png) ## Military and First Responder Policy Last Updated: 8/21/2023 ### **Sonoran Software Supports First Responders** As part of our commitment to serving the community, we deeply value the relentless effort and dedication displayed by our military and first responders, day in and day out. All U.S. military personnel, police officers, firefighters, and paramedics qualify for a 15% monthly discount. To avail of this offer, create a ticket with our support team at [support.sonoransoftware.com](https://support.sonoransoftware.com/). ### Terms and Conditions Verify this offer with our support team by providing a valid ID and related documentation. We may grant or deny services and discounts at our discretion. The offer applies to Sonoran CAD, CMS, Radio, Store, and Five Bundle. # 👋 Welcome Source: https://docs.sonoransoftware.com/index Select a product to access documentation: > [card] [Sonoran CAD](/cad) > > The most popular dispatching software for FiveM, ER:LC, and more! > [card] [Sonoran CMS](/cms) > > The all-in-one management system built for gaming communities. > [card] [Sonoran Radio](/radio) > > The most popular radio communication for FiveM, ER:LC, and more! > [card] [Sonoran Store](/store) > > Unique scripts for FiveM communities. > [card] [Sonoran Bot](/bot) > > Our integrated Discord bot for Sonoran Software products. > [card] [Sonoran Studio](/studio) > > Live stream overlays, smart lighting, and stream automations. # Miscellaneous Source: https://docs.sonoransoftware.com/other/miscellaneous # Delete Your Account Source: https://docs.sonoransoftware.com/other/miscellaneous/delete-your-account Delete your Sonoran Software account and remove your personal data. ## How to Delete your Account ### Login to the Account Portal Log into your account at account.sonoransoftware.com. ### Request Account Deletion On the sidebar select **Account** > **Advanced** > **Delete Account** * If your account has any active subscriptions, an error will inform you to cancel those first. These can be managed under **Billing** > Select the **Active** Subscription **> Manage**. * You will be sent a confirmation email to delete your account. ![](https://docs-assets.sonoransoftware.com/sha256/0d/0d586d9752160def493831fce16c9dfb03f9f2b6114413dc258d80020106d191.png) ### Verify Deletion Email Check your account email for a confirmation notice from Sonoran Software. Click the link in the email to delete your account. ![](https://docs-assets.sonoransoftware.com/sha256/de/de7fe504b30049a245e9da19205ffe220139365bf07282e34aeb8a20f1d2e45b.png) ### Customer Support Having trouble? [Contact our live chat support team](https://support.sonoransoftware.com/). ## Data Privacy Upon account deletion, Sonoran Software removes private account data from the active account record, including the email address. We may retain limited internal identifiers, such as non-reversible account or security identifiers, where reasonably necessary to prevent abuse, enforce our Terms of Service, investigate fraud, or detect alternate account ban avoidance. Additional details are covered in our [Privacy Policy](/policy/policy/privacy-policy). Deleting a Sonoran account does not automatically remove user-generated content stored in separate services or communities, such as Sonoran CAD, Sonoran CMS, Sonoran Radio, or support portal tickets. Those systems may retain community records, audit history, ticket history, or other user-submitted content according to their own operational needs, legal obligations, and our [Privacy Policy](/policy/policy/privacy-policy). # Troubleshooting Source: https://docs.sonoransoftware.com/other/miscellaneous/troubleshooting # Desktop Application Fails To Update Source: https://docs.sonoransoftware.com/other/miscellaneous/troubleshooting/desktop-application-fails-to-update On 7/28/2025 our code signing certificate was updated, breaking automatic updates for users on older app versions. ## Sonoran CAD, CMS, and Radio Desktop App Updates Failing On 7/28/2025, we updated our code signing certificate following its scheduled three-year expiration. As a result, automatic updates may fail on older versions of our applications. To restore update functionality, please download and install the latest version. Future updates will then resume automatically. ### Download Links: * [Sonoran CAD](/cad/download) * [Sonoran Radio](/radio/download-the-app) * [Sonoran CMS](/cms/download) # Sonoran API Source: https://docs.sonoransoftware.com/other/support-api Sign in with Sonoran and connect to Sonoran Software APIs. Use Sonoran OAuth to let users sign in and share the account and community information they approve. Support integrations can also upload debugging information to a support ticket. ## Available Endpoints * [Upload Debug](/other/support-api/upload-debug) * [Sign in with Sonoran (OAuth)](/other/support-api/oauth) # Sign in with Sonoran Source: https://docs.sonoransoftware.com/other/support-api/oauth Register an OAuth application and request consent to read Sonoran usernames, communities, ownership, and subscription levels. Sonoran OAuth lets a user sign in to your application and approve specific access to their Sonoran account. Use the authorization code flow with **PKCE (S256)**. Applications are public clients: there is no client secret. ## Branding Use the official Sonoran icon with the **Log in with Sonoran** label for your application's sign-in button. Official artwork is available on the [Sonoran branding page](https://sonoransoftware.com/branding). Your application's own logo on the consent page is configured separately with `logo_uri` during registration. ## Endpoints | Purpose | Production URL | | - | - | | Discovery | `https://accountapi.sonoransoftware.com/.well-known/oauth-authorization-server` | | OpenID discovery | `https://accountapi.sonoransoftware.com/.well-known/openid-configuration` | | Register | `https://accountapi.sonoransoftware.com/oauth2/register` | | Authorize (browser) | `https://account.sonoransoftware.com/oauth/authorize` | | Exchange / refresh | `https://accountapi.sonoransoftware.com/oauth2/token` | | Profile | `https://accountapi.sonoransoftware.com/oauth2/userinfo` | | Communities | `https://accountapi.sonoransoftware.com/oauth2/communities` | | Revoke refresh token | `https://accountapi.sonoransoftware.com/oauth2/revoke` | | Signing keys | `https://accountapi.sonoransoftware.com/oauth2/jwks` | For the Accounts profile and community API, use `resource=https://accountapi.sonoransoftware.com` throughout authorization, token exchange, and refresh. Existing Sonoran MCP integrations continue to use their own resource and product permissions. ## Scopes Request only what your integration needs. Scopes are separated by spaces and must be included in the client's registration. | Scope | Access | | - | - | | `openid` | Stable Sonoran account ID (`sub`), an ID token, and access to `/oauth2/userinfo`. | | `profile` | Sonoran username (`preferred_username`). Requires `openid`. | | `email` | Verified account email and `email_verified`. Requires `openid`. | | `offline_access` | A rotating refresh token to remain connected. Omit for a sign-in-only flow. | | `cad.communities.read` | CAD community IDs, names, and ownership. | | `cad.subscriptions.read` | CAD community subscription tier and active status. Requires `cad.communities.read`. | | `cms.communities.read` | CMS community IDs, names, and ownership. | | `cms.subscriptions.read` | CMS community subscription tier and active status. Requires `cms.communities.read`. | | `radio.communities.read` | Radio community IDs, names, and ownership. | | `radio.subscriptions.read` | Radio community subscription tier and active status. Requires `radio.communities.read`. | Existing resource-specific scopes `cad.admin.read`, `cad.admin.write`, `cms.read`, and `cms.write` remain available for their corresponding Sonoran integrations. They do not grant subscription access in this API. Community lookup does not grant permission to administer a community or modify its subscription. ## 1. Register your application Register once per application/environment and store the returned `client_id`. Supply one to ten complete callback URLs. Production web callbacks must use HTTPS. Credentials and URL fragments are rejected. Use an HTTPS callback on your application's domain, as shown below. Native desktop clients may also use an HTTP IP loopback `/callback` URL. ```bash theme={null} curl -X POST https://accountapi.sonoransoftware.com/oauth2/register \ -H 'Content-Type: application/json' \ -d '{ "client_name": "My Community App", "client_uri": "https://example.com", "logo_uri": "https://example.com/assets/logo.png", "redirect_uris": ["https://example.com/oauth/sonoran/callback"], "token_endpoint_auth_method": "none", "grant_types": ["authorization_code"], "response_types": ["code"], "scope": "openid profile cad.communities.read cad.subscriptions.read cms.communities.read cms.subscriptions.read radio.communities.read radio.subscriptions.read" }' ``` The `201` response includes `client_id`, `redirect_uris`, and the allowed `scope` string. The optional `client_uri` is your application's HTTPS website URL. Set `logo_uri` to a publicly accessible HTTPS image URL to display your application's logo on the consent page. A square image works best; without a logo, Sonoran displays a generic application icon. Supplying a logo does not verify your application. Registration does not grant access to an account. Users must approve an authorization request. To add scopes to an existing integration, register a new client with those scopes; existing registrations and tokens are not automatically expanded. ## 2. Redirect the user to Sonoran For each login, generate a cryptographically random `state`, `nonce`, and PKCE `code_verifier`. The verifier must be 43–128 characters using letters, digits, `-`, `.`, `_`, or `~`. Set `code_challenge` to the base64url-encoded SHA-256 hash of that verifier, without padding. Keep the verifier and expected state/nonce tied to the user's login attempt. Open the authorization endpoint with these URL-encoded query parameters: ```text theme={null} response_type=code client_id=YOUR_CLIENT_ID redirect_uri=https://example.com/oauth/sonoran/callback resource=https://accountapi.sonoransoftware.com scope=openid profile cad.communities.read cad.subscriptions.read cms.communities.read cms.subscriptions.read radio.communities.read radio.subscriptions.read state=YOUR_RANDOM_STATE nonce=YOUR_RANDOM_NONCE code_challenge=YOUR_S256_CHALLENGE code_challenge_method=S256 ``` Sonoran displays the account and requested permissions. Unverified callbacks show a warning; the user can choose **Advanced**, acknowledge the risk, then choose **Allow access**. Approved partner callbacks skip the warning and still require consent. Contact Sonoran support to request partner callback verification; developers cannot mark themselves verified. Callback verification does not change redirect matching: `redirect_uri` must exactly match a URL registered for this client. Only the listener port may vary for supported native IP loopback callbacks. Sonoran checks verification for the callback actually used in this request. ## 3. Validate the callback and exchange the code After approval, the callback receives `code`, the original `state`, and `iss=https://accountapi.sonoransoftware.com`. Validate `state` against the login attempt and validate `iss` before exchanging the code. If the user cancels, handle `error=access_denied`. ```bash theme={null} curl -X POST https://accountapi.sonoransoftware.com/oauth2/token \ --data-urlencode 'grant_type=authorization_code' \ --data-urlencode 'client_id=YOUR_CLIENT_ID' \ --data-urlencode 'code=RETURNED_CODE' \ --data-urlencode 'redirect_uri=https://example.com/oauth/sonoran/callback' \ --data-urlencode 'resource=https://accountapi.sonoransoftware.com' \ --data-urlencode 'code_verifier=YOUR_ORIGINAL_VERIFIER' ``` The code expires after five minutes and is single-use. The exchange must use the same client, callback, resource, and matching PKCE verifier. The response includes `access_token`, `token_type: "Bearer"`, `expires_in: 900`, granted `scope`, and `resource`. `openid` adds an `id_token`; `offline_access` adds a `refresh_token`. Validate ID tokens with the published signing keys, issuer, your client ID as audience, expiry, and original nonce. Use the stable `sub` as your user identifier. Use access tokens for API calls; never use an ID token as a bearer API token or put tokens in query strings. ## 4. Read the approved information ```bash theme={null} curl https://accountapi.sonoransoftware.com/oauth2/userinfo \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' curl https://accountapi.sonoransoftware.com/oauth2/communities \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' ``` Example profile with `openid profile`: ```json theme={null} { "sub": "00000000-0000-4000-8000-000000000001", "preferred_username": "Example User" } ``` Example community response (illustrative IDs): ```json theme={null} { "communities": [ { "product": "cad", "id": "00000000-0000-4000-8000-000000000002", "public_id": "MYCOMMUNITY", "name": "My Community", "owner": true, "status": "owner", "subscription": { "tier": "PRO", "active": true } } ] } ``` The endpoint includes only products covered by granted `*.communities.read` scopes. Use `?product=cad`, `?product=cms`, or `?product=radio` to request one product; requesting a product without its scope returns `403`. * `id` is the product's internal community identifier; treat it as an opaque string. Radio IDs may be numeric strings. * `public_id` is the community's public ID. Use the product plus internal `id` as the integration key. * `owner` indicates registered ownership. `status` is `owner` or `member`; it is a relationship label, not an administrator permission or approval/banning status. * `subscription` is omitted entirely without that product's `*.subscriptions.read` scope. `tier` is the product-reported version (for example `FREE`, `PLUS`, `PRO`, or a Sonoran One version); handle additional values and `UNKNOWN`. `active` reports the product's subscription status. * An empty array means the selected products report no communities. Provider lookup failures return `503` (`temporarily_unavailable`), so do not treat a failed request as loss of membership or a downgrade. These endpoints disclose no API keys, payment details, or Stripe subscription IDs. Memberships and subscription details are read again on each request. Cache briefly if needed and handle changes; the token's scopes are not a permanent snapshot of community membership. ## Refresh and disconnect If you requested `offline_access`, refresh with form fields `grant_type=refresh_token`, `client_id`, `refresh_token`, and the same `resource` at `/oauth2/token`. Refresh tokens expire after 30 days. Each refresh returns a replacement token: store it atomically and never reuse the old one. Reusing an old refresh token revokes that token family. To disconnect, POST form fields `client_id` and `token=YOUR_REFRESH_TOKEN` to `/oauth2/revoke`. This revokes its refresh-token family. Already-issued access tokens expire after 15 minutes. Delete your locally stored tokens when the user disconnects. ## Common errors | Error | Action | | - | - | | `invalid_redirect_uri` / unregistered `redirect_uri` | Use a permitted callback and the exact registered URL. | | `invalid_scope` | Check registered scopes and product scope dependencies. | | `invalid_target` | Use the same supported resource in all flow steps. | | `access_denied` | The user cancelled; return to your app without linking. | | `invalid_grant` | Restart login; check code expiry, single use, callback, resource, and verifier. | | HTTP `401` | Access token is invalid/expired or has the wrong audience. Refresh or sign in again. | | HTTP `403` / `insufficient_scope` | Request the required scope through a new consent flow. | | HTTP `503` / `temporarily_unavailable` | Retry later; preserve the last known membership state. | # Upload Debug Source: https://docs.sonoransoftware.com/other/support-api/upload-debug Upload CAD FiveM debug output directly to an open support ticket. ## Upload Debug `POST` `https://api.sonoransoftware.com/v2/upload/debug/{ticketId}` This endpoint allows a CAD FiveM integration to upload debug output directly into an existing support ticket. The `ticketId` path parameter must be the short support ticket ID, not the ticket UUID. Debug uploads are only accepted after a support team member has enabled debug uploads for that ticket. #### Request Body Send the request body as plain text. The body should contain the raw debug output you want attached to the ticket. > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran Support API > version: "1.0" > paths: > /v2/upload/debug/{ticketId}: > post: > summary: Upload CAD debug output to a support ticket > parameters: > - in: path > name: ticketId > required: true > schema: > type: integer > description: Short support ticket ID > requestBody: > required: true > content: > text/plain: > schema: > type: string > example: | > [sonorancad] Debug session started > [sonorancad] Player cache refreshed > [sonorancad] Completed sync in 42ms > responses: > "200": > description: Debug uploaded successfully > "400": > description: Empty body or invalid non-CAD ticket > "403": > description: Debug upload is not enabled for this ticket > "404": > description: Ticket not found > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoransoftware.com/v2/upload/debug/12345" \ > -H "Content-Type: text/plain" \ > --data-binary @debug.txt > ``` ### Response Body > [tab] 200 A successful call will be met with the following response: > > ```json theme={null} > { > "success": true, > "ticketId": 12345 > } > ``` > [tab] 403 Debug upload is not enabled for this ticket: > > ```json theme={null} > { > "success": false, > "error": "Debug upload is not enabled for this ticket." > } > ``` > [tab] 404 Ticket not found: > > ```json theme={null} > { > "success": false, > "error": "Ticket not found." > } > ``` # Translation Support Source: https://docs.sonoransoftware.com/other/translation-support Sonoran CAD, CMS, and Radio support over a dozen different languages. Community members can help contribute to improve their native language. ## Language Selection Selecting your language is easy! > [tab] CAD > > Once signed in, users can select their language in the top-right dropdown. > > ![](https://docs-assets.sonoransoftware.com/sha256/dd/dd3eaf44667d50d04c4021cb1b4cc57fa094218ab81277d5cd9e30a9b4682c82.png) > [tab] CMS > > Once signed in, users can select their language in the top-right dropdown. > > ![](https://docs-assets.sonoransoftware.com/sha256/10/100f0e0021466981d2f8656c947a31a77d2d9cd44dbbcead0f476cb70cfb2d61.png) > [tab] Radio > > Once signed in, users can select their language in the top-right dropdown. > > ![](https://docs-assets.sonoransoftware.com/sha256/19/19d99b814c2c64594e27bda8516b0c261d47254f6b81443e97f1ef9cea7e2cbe.png) ## Improving Translations: Our systems automatically generate translations with AI. These translations can be manually improved by native language speakers. ### Submitting Improvements To submit translations, sign in with your Sonoran Software account at [translate.sonoransoftware.com](https://translate.sonoransoftware.com/). * Select the **CAD**, **CMS,** or **Radio** product * Select the **Language** * Search and enter improved **Suggestions** for your language * Once complete select **Submit Suggestions** > [!NOTE] > > If you do not see your language at all, create a [Support Live Chat](https://support.sonoransoftware.com/) ticket to request generation of an entirely new language file. ![](https://docs-assets.sonoransoftware.com/sha256/65/65e462333c0510e63b661f59d53004c4ca204fff21e165b8116602d8a2aebcc9.png) ### Approval Process Once submitted, you will receive an email confirmation. Our team will attempt to manually review and approve or deny within 72 hours. If you have not received an email reply back within 72 hours with an **approval** or **denial**, feel free to contact us via our [Support Live Chat](https://support.sonoransoftware.com/) or [Discord](https://discord.sonoransoftware.com/). ![](https://docs-assets.sonoransoftware.com/sha256/c9/c9b755815364d5e560a4e69e0f9593e30bb94efea4aba2981034bb0e0887652c.png) ![](https://docs-assets.sonoransoftware.com/sha256/15/150587e12c016ee9609cf4feefd892b07ee8bac85cbcb0e58dd83245e437f565.png) ### Updated Translations Once approved, the updated translations will be **automatically available** on the website version within a few minutes. Desktop and mobile apps will be updated on the next app release. # Policy Source: https://docs.sonoransoftware.com/policy/policy Sonoran Software Systems' Policy Documentation # Gift Cards and Account Credit Source: https://docs.sonoransoftware.com/policy/policy/gift-cards-and-account-credit Terms for Sonoran Software gift cards and the account credit they provide. Last updated: November 4, 2026 This policy covers Sonoran Software gift cards and credit added from them. By purchasing or redeeming a card, you agree to this policy and our [Terms of Service](/policy/policy/terms-of-service). * **Use:** Gift cards provide credit for eligible Sonoran Software subscriptions, including CAD, CMS, Radio, Studio and Sonoran One. Prices and credit are in USD. Sonoran Store (Tebex) cards are separate and follow that store's terms. * **No expiration or inactivity fees:** Purchased gift cards and their account credit do not expire. We charge no inactivity or maintenance fees. * **Account credit stays with the recipient:** Redemption applies the full card value to one Sonoran account. Once applied, credit cannot be transferred to another account or split between accounts. Community gifts credit the selected recipient's account; they are not reserved for one community and do not give the purchaser ownership or control of it. * **Refunds and cash:** Gift-card purchases are non-refundable and excluded from our 48-hour money-back guarantee. Gift cards and account credit cannot be exchanged for cash, except where required by law. Eligible refunds for purchases paid with gift credit return as account credit, unless the law requires otherwise. * **Subscriptions:** Normal subscription prices, renewals and cancellation rules still apply. Gift credit does not cancel a subscription or prevent billing when the credit runs out. * **Security and support:** Keep gift codes and private card links secure; anyone with access may redeem them. Contact [support](https://support.sonoransoftware.com) for a lost card, delivery problem or the wrong card type. Proof of purchase may be required. We may hold or reverse credit associated with fraud or a refunded, disputed or reversed payment, as permitted by law. This policy does not limit rights you have under applicable law. # Privacy Policy Source: https://docs.sonoransoftware.com/policy/policy/privacy-policy Sonoran Software Systems' Privacy Policy ![](https://docs-assets.sonoransoftware.com/sha256/94/94051b87638c1c533cbca8880349978c5d7c1dcdfd982250e1581400d6e148e3.png) ## Privacy Policy Last Updated: November 2nd, 2026 > *These Terms govern your use of Sonoran Software Systems LLC products and sites — Sonoran CAD ([https://sonorancad.com](https://sonorancad.com)), Sonoran CMS ([https://sonorancms.com](https://sonorancms.com)), Sonoran Radio ([https://sonoranradio.com](https://sonoranradio.com)), Sonoran Store ([https://sonoran.store](https://sonoran.store)), and Sonoran Software, including Sonoran One ([https://sonoransoftware.com](https://sonoransoftware.com)) — along with any sub‑domains, mobile apps, and related services (collectively, the “Services”).* *** ### Your Agreement With Us By accessing or using any Service you acknowledge that you have read, understood, and agree to be bound by this Agreement. If you do not agree, you may not use the Services. We may modify these terms **at any time** by posting an updated version and changing the “Last Updated” date above. Continued use of the Services after a change becomes effective constitutes acceptance of the revised terms. ### Eligibility The Services are intended for users **13 years of age or older**. If you are under 18, you must have parent or guardian permission to use the Services. ### Account Registration & Security You are responsible for all activity that occurs under your account and for keeping your credentials secure. We may suspend or terminate any account that violates this Agreement or applicable law. ### Fees, Billing & Renewals Certain features require payment. [**All sales are subject to our refund and purchase policy**](/policy/policy/refund-and-purchase-policy)**.** You authorize us (and our payment processors) to charge your selected payment method on a recurring basis until cancellation. Prices may change upon 30 days’ notice. ### Intellectual Property We (or our licensors) own all intellectual‑property rights in the Services. We grant you a limited, revocable, non‑transferable license to use the Services solely as intended. **No other rights are granted.** ### Acceptable Use You may **not**: 1. Violate any law or third‑party right; 2. Reverse‑engineer, decompile, or attempt to obtain source code; 3. Interfere with or disrupt the Services or others’ use of them; 4. Use the Services to compete with us or to build a similar product. We reserve the right to remove content, suspend accounts, or take any action we deem necessary to protect the Services or our interests. ### Software License Where we provide downloadable software or an API, it is licensed—not sold—on a limited, revocable, non‑exclusive basis solely to interact with the Services as documented. All other use is prohibited unless expressly permitted in writing. ### Termination We may terminate or suspend your access to any Service at our sole discretion, without notice, for conduct we believe violates this Agreement or is harmful to us, other users, or third parties. ### Disclaimers & Limitation of Liability The Services are provided **“AS IS” and “AS AVAILABLE.”** To the maximum extent permitted by law we disclaim all warranties, express or implied, and our total liability for any claim arising out of or relating to the Services will not exceed the greater of (a) fees you paid us for the Service during the **last 30 days** or (b) **USD \$100**. ### Indemnification You will indemnify and hold Sonoran Software Systems LLC and its affiliates harmless from any loss, liability, or claim arising out of your breach of this Agreement or violation of law. ### Governing Law & Dispute Resolution This Agreement is governed by the laws of the **State of Arizona**, USA, without regard to conflict‑of‑law rules. Any dispute will be resolved by **binding arbitration in Yavapai County, Arizona** under the Commercial Arbitration Rules of the American Arbitration Association. **No class actions.** *** ## Privacy Policy ### Information We Collect | Category | Examples | Purpose | | - | - | - | | **Account Data** | Name, email, username, organization | Create & manage accounts | | **Payment Data** | Billing address, last 4 of card, transaction IDs | Process transactions | | **Usage Data** | IP address, device/browser information, log files, cookie or pixel identifiers, pages viewed, referring URLs, and in‑app actions | Service functionality, security, analytics, and campaign measurement | | **Content Data** | User‑generated text, images, Discord messages and attachments, voice or radio traffic (Sonoran Radio) | Provide core features | | **Discord Bot Data** | Discord user, server, channel, role, and message identifiers; command and interaction data | Operate Sonoran Bot integrations and utilities | | **Support Data** | Tickets, chat transcripts, attachments | Customer support | > **We do not collect sensitive personal data** such as biometric identifiers, precise location, health data, or similar special‑category information. ### How We Use Information * Operate, maintain, and improve the Services; * Process payments and prevent fraud; * Understand use of the Services, measure, attribute, and improve marketing campaigns, and personalize advertising as described below; * Respond to inquiries and provide support; * Operate Sonoran Bot features requested by users or enabled by community administrators, including ticket intake and conversation relay; * Send technical, security, and administrative messages; * Comply with legal obligations. ### Legal Bases (EEA/UK Users) We rely on **contract performance**, **legitimate interests** (e.g., security and fraud prevention), **consent** (where required), and **legal compliance**. ### Sharing & Disclosure We share information only with: * Payment processor **Stripe**; * Cloud hosting and infrastructure providers; * Discord, when you use Sonoran Bot or other Discord-connected features; * OpenAI, for advertising measurement on Sonoran One, Sonoran CAD and Sonoran Radio websites, including related Sonoran Accounts and CAD, CMS or Radio billing flows for One purchases, and when you use the Sonoran Software plugin in ChatGPT, as described below; * GitBook, which hosts our published documentation and processes documentation searches and page requests; * Analytics, measurement, and advertising service providers, including Google Analytics, Google Ads, and TikTok; * Law enforcement or regulators when legally required. We may disclose limited Usage Data and pseudonymous or hashed identifiers to these providers for analytics, campaign measurement, attribution, and advertising performance. Some disclosures for personalized advertising may be considered a “sale” or “sharing” under certain privacy laws. You can exercise the available choices described below. Providers' handling of data is also governed by their own terms and privacy policies. ### Cookies & Tracking Technologies We use cookies, pixels, and similar browser or server-side technologies across the Services for authentication, preferences, analytics, campaign measurement, attribution, and advertising performance. These technologies may be provided by **Google Analytics**, **Google Ads**, **TikTok**, and **OpenAI** and may collect or receive device and browser information, IP address, page and referring URLs, cookie or pseudonymous identifiers, and interactions such as page views, logins, checkout activity, and purchases. Where matching information is used, identifiers such as an email address or account ID may be normalized and cryptographically hashed before transmission. On Sonoran CAD and Sonoran Radio websites, campaign measurement may store an advertising click reference, campaign labels, and the original visit time in your browser and associate them with your account and community. We use this information to understand which campaigns lead to community creation and first payments, including a community payment made by a different member where the relevant measurement permissions allow it. When native OpenAI attribution is enabled, we send OpenAI the click reference, event identifier, event type and time, source page, and, for purchases, the amount and currency. Event identifiers may contain an opaque community identifier or a derived transaction identifier. This advertising integration is separate from the optional Sonoran Software plugin in ChatGPT. Sonoran and OpenAI act as independent controllers for their respective processing, as described in the [OpenAI advertising terms](https://openai.com/policies/conversion-terms/) and [OpenAI privacy policy](https://openai.com/policies/privacy-policy/). For Sonoran One, campaign measurement may capture an advertising click reference, campaign labels, and the original visit time and carry a short-lived opaque reference to Sonoran Accounts or a linked CAD, CMS or Radio page. When you sign in, permitted campaign attribution can be linked to your Sonoran account and later eligible One bundle payments through these billing portals. We use a shared payment identifier to count the same One bundle payment once, rather than as separate purchases of the included products. When native OpenAI attribution is enabled for One, we send the click reference, a derived event identifier, event type and time, source page, and purchase amount and currency. We use an approximate country and, for Canada, province or territory supplied by our hosting infrastructure to apply regional measurement choices. Under this rollout, native OpenAI attribution may operate in the United States and, after a visible notice with an opt-out, Australia, New Zealand, and verified Canadian provinces or territories outside Quebec where applicable requirements permit. Quebec and unresolved Canadian locations are not enabled automatically. Native OpenAI attribution remains disabled for UK and EEA visitors under this rollout. Use the **Privacy** link in the website footer to open **Privacy choices** on Sonoran CAD, Sonoran Radio, Sonoran CMS, Sonoran Store, or Sonoran Software. Turning **Analytics & advertising** off disables optional website analytics, ad measurement, and personalized advertising for that browser on the relevant website, including the providers used there. Global Privacy Control and Do Not Track also keep optional website tracking off. Existing regional restrictions and provider-specific consent requirements still apply when this switch is on; turning it on does not create a new regional OpenAI consent grant. Native apps and other websites or browsers have separate choices. For account-linked OpenAI campaign attribution, a browser withdrawal stops local collection immediately and is applied to your account when it synchronizes while you are signed in. It stops future permitted reporting and cancels pending reports once the withdrawal reaches our servers; it does not automatically recall reports already sent to a provider. On the Sonoran Accounts One page, **Ad measurement** also offers **Turn off ad measurement**. Essential signup, payment, and security records remain available. Where prior consent is required, closing or ignoring a notice is not consent. The mobile apps for **Sonoran CAD**, **Sonoran CMS**, and **Sonoran Radio** may use Google Analytics for limited product analytics. It may collect app interactions, device information, a pseudonymous identifier, and an approximate region. It is not used for advertising, retargeting, or tracking across other companies' apps or websites. Where required, analytics remains disabled until the user allows it. Users can change the Usage Analytics setting in the app at any time. [Learn how Google processes this data.](https://policies.google.com/technologies/partner-sites) On Sonoran CAD, Sonoran Radio, Sonoran CMS, Sonoran Store, and Sonoran One public website pages, Google Analytics and Google Ads may use advertising identifiers and website interactions to measure campaigns and, for eligible US web visitors, personalize advertising or show ads to people who previously interacted with the Services. These interactions can include viewing pages, creating a community, starting checkout, or purchasing. Google may use browser identifiers and signals from Google services to associate activity across devices and show relevant ads, including on YouTube. Google handles information under its own [privacy policy](https://policies.google.com/privacy) and [advertising settings](https://myadcenter.google.com/). Google and other third-party vendors may use cookies or device identifiers to show Sonoran ads on YouTube and other sites across the Internet based on your past website visits. You can turn off optional tracking using the website's **Privacy** link without signing in, and manage Google's use of advertising cookies and identifiers through [Google's advertising settings](https://myadcenter.google.com/). Your website choice is saved for that browser and website; other sites, devices, providers, and native apps have separate preferences. Essential account and security storage remains available. Google advertising storage and personalization remain disabled by default outside the United States under this implementation. The CAD website also denies Google analytics storage by default outside the United States; consent-mode cookieless pings may still be sent where optional tracking has not been turned off. You can limit cookies through your browser or available consent controls. Where required by law, we will request consent before enabling non-essential tracking technologies. ### Sonoran Bot and Discord Message Content When a community installs Sonoran Bot or a user interacts with it, we process the Discord identifiers, commands, interactions, and configuration data needed to provide the requested integration or utility. Sonoran Bot accesses guild message content only where it is needed for a feature a user initiates or a community administrator enables, such as creating and continuing a ticket in a bot-created ticket channel. It does not use the Message Content Intent to monitor unrelated conversations. Guild ticket messages and attachments remain hosted by Discord. Sonoran Bot processes their content to operate the ticket within Discord, but does not copy or store that message content or those attachments outside Discord. We may retain limited operational metadata, such as the Discord server, channel, ticket owner, participant, and status identifiers needed to manage the ticket. Discord message content is not sold and is not used to train machine-learning or artificial-intelligence models. Users may opt out by not opening or continuing a ticket. Community administrators may disable the applicable feature or remove Sonoran Bot. Privacy and deletion requests can be submitted using the contact information below, subject to legal and operational retention requirements. ### Data Retention #### Sonoran Software in ChatGPT Connecting the Sonoran Software plugin uses Sonoran Accounts OAuth to identify your account and authorize the requested tools. Access is limited by your granted scopes and current community permissions. We process tool arguments to perform your requests and return the requested results to OpenAI for use in your ChatGPT conversation. Depending on the tool, results can include community settings, account and membership information, permissions, management logs, units and roleplay records. Confirmed administrative changes are saved in Sonoran CAD and may create audit history. CAD characters, in-game vehicles and licenses, incident reports and simulated medical records are intended for fictional multiplayer gaming and roleplay. They are not real-world identity, healthcare or emergency-service records. Do not enter real government identifiers, health information, biometrics or payment-card data into these roleplay workflows. Account and membership information is separate and may concern real users. User-created content is not automatically verified as fictional. The customer plugin does not ask you to provide passwords or integration API keys in chat. Enter or replace integration credentials through the authenticated Sonoran website. Saved integration and database credentials are excluded or redacted from customer tool results. Public documentation queries and page requests are sent to our GitBook-hosted documentation service; do not include private community information or credentials in documentation searches. The MCP gateway processes tool requests and results to service each request; it does not maintain a separate conversation archive. Its structured usage events contain tool names, outcomes, durations, client categories and daily pseudonymous fingerprints, rather than prompts, tool arguments or credentials. Saved community changes, audit history and account information remain subject to the corresponding retention provisions below. Copies returned to ChatGPT are handled under OpenAI's policies and your ChatGPT data controls. GitBook processes documentation requests under its policies. You can stop using or disconnect the plugin in ChatGPT. Disconnecting does not undo saved CAD changes, delete community data or delete previous ChatGPT conversations. Use ChatGPT's controls for its conversation history and the Sonoran privacy contacts in Section 8 for requests concerning data held by Sonoran. #### Retention by data category * **Community Data:** Permanently deleted within 30 days when a community owner deletes their community. * **Voice Transmissions (Sonoran Radio):** Stored only if the owner opts‑in to the voice‑storage feature and automatically deleted **24 hours** after capture. * **Discord Guild Ticket Data:** Ticket messages and attachments remain in Discord and are subject to Discord's and the community's retention controls. Sonoran may retain limited ticket identifiers and status metadata for as long as reasonably necessary to operate the feature. * **Account Information:** Retained as long as necessary for legitimate business purposes. Deleted accounts are flagged as inactive and access‑restricted; associated personal data may be purged or anonymized periodically. * **Campaign Measurement:** Native OpenAI attribution uses the original click's 30-day eligibility window. Limited community campaign labels may be retained longer for our own campaign reporting. We also retain preference and withdrawal records to honor measurement choices; operational signup and payment records have separate retention purposes. ### Your Choices & Rights Depending on your location, you may have the right to **access, correct, delete, or port** your personal data, object to certain processing, or opt out of the sale or sharing of personal information for targeted advertising. The controls above describe choices for specific providers and purposes. For a broader request or to exercise other rights, contact **[privacy@sonoransoftware.com](mailto:privacy@sonoransoftware.com)** or **[support@sonoransoftware.com](mailto:support@sonoransoftware.com)**. ### Children’s Privacy We do not knowingly collect personal data from children under 13 (or under 16 where applicable). If we learn that we have done so, we will delete such data. ### Security We implement reasonable administrative, technical, and physical safeguards to protect personal data. No system is 100 % secure. ### International Transfers We are based in the United States. Information we collect may be transferred to and processed in the U.S. and other countries where we and our providers operate. Data‑protection laws in those countries may differ from those in your home jurisdiction. These transfers remain subject to applicable legal requirements. ### Changes to This Policy We may update this Policy at any time. If we make material changes, we will post an updated Policy and revise the “Last Updated” date. ### Contact Us **Sonoran Software Systems LLC**\ 445 Miller Valley Road\ Prescott, Arizona 86301 [https://support.sonoransoftware.com](https://support.sonoransoftware.com) # Refund and Purchase Policy Source: https://docs.sonoransoftware.com/policy/policy/refund-and-purchase-policy Sonoran Software Systems' Purchase and Refund Policy ![](https://docs-assets.sonoransoftware.com/sha256/94/94051b87638c1c533cbca8880349978c5d7c1dcdfd982250e1581400d6e148e3.png) ## Purchase and Refund Policy Last Updated: November 4, 2026 ### 48 Hour Money Back Guarantee All Sonoran Software Systems, LLC products and Sonoran Software Partners, LLC products are backed by a 48 hour money-back guarantee. This includes both subscriptions and one-time-payments to Sonoran CAD, Sonoran CMS, Sonoran Radio, items in the Sonoran Store, and items in the FiveBundle.com store with any exceptions listed below. #### Gift Cards Gift-card purchases are non-refundable except where required by law and are excluded from the 48-hour money-back guarantee. See our [Gift Cards and Account Credit Policy](/policy/policy/gift-cards-and-account-credit). #### iOS App Store and Google Play Store Mobile applications purchased via the iOS App Store and Google Play Store are outside of our company’s payment processing and must be directed to Apple and Google directly. #### Expert Installation [Expert Installation](/promotions/expert-installation) purchases are non-refundable after the labor has been performed, regardless if one or all credits have been used. These installation credits are non-transferrable and can be redeemed at any time. #### How do I request a refund? Customers must place a ticket on the customer support portal ([https://support.sonoransoftware.com](https://support.sonoransoftware.com/)) **within 48 hours of the initial purchase or renewal**. We reserve the right to refuse additional refunds to customers who have previously received one in the past. We reserve the right to refuse refunds to customers conducting themselves in an “assholeish” or rude and inappropriate manner with our support staff. Refund requests made beyond the 48 hour window of any new or recurring purchase will be denied. Refunds outside of this window will be denied regardless of a community closure, community exit, internal community issues, financial hardship, integration or development issues, dissatisfaction with the product or service, system downtime, or any other reason not mentioned. # Sonoran One + Rocket Node Hosting Promotion Source: https://docs.sonoransoftware.com/policy/policy/sonoran-one-+-rocket-node-hosting-promotion View the full terms for the Sonoran One x Rocket CAD Free FiveM Hosting offer. ### Sonoran One + Rocket Node Promotion Terms Active Sonoran One subscribers may be eligible to receive a coupon code for one free Rocket Node FiveM server on the Starter Plan. This promotion is valid for one FxServer game panel with the Starter Plan resources of 2 GB RAM, 2 vCPU, and 75 GB storage. The promotional hosting benefit remains valid only while the customer’s Sonoran One subscription remains active and in good standing. The coupon code and hosting benefit are intended only for the Sonoran One customer and may not be transferred, resold, shared, or used on behalf of another person or community. Abuse, resale, transfer, fraud, or violation of these terms may result in immediate termination of the Rocket Node FiveM server and/or the customer’s Sonoran One products without refund. Sonoran Software and Rocket Node reserve the right to modify, suspend, or end this promotion at any time. # Terms of Service Source: https://docs.sonoransoftware.com/policy/policy/terms-of-service Sonoran Software Systems' Terms of Service ![](https://docs-assets.sonoransoftware.com/sha256/94/94051b87638c1c533cbca8880349978c5d7c1dcdfd982250e1581400d6e148e3.png) ## Terms of Service Last Updated: June 26th, 2025 > *These Terms govern your use of Sonoran Software Systems LLC products and sites — Sonoran CAD ([https://sonorancad.com](https://sonorancad.com)), Sonoran CMS ([https://sonorancms.com](https://sonorancms.com)), Sonoran Radio ([https://sonoranradio.com](https://sonoranradio.com)) — along with any sub‑domains, mobile apps, and related services (collectively, the “Services”).* *** ### Your Agreement With Us By accessing or using any Service you confirm that you have read, understood, and agree to be bound by these Terms. If you do not agree, do not use the Services. We may modify these Terms **at any time** by posting an updated version and changing the “Last Updated” date above. Continued use of the Services after a change becomes effective constitutes acceptance of the revised Terms. ### Eligibility The Services are intended for users **13 years of age or older**. If you are under 18, you must have parent or guardian permission to use the Services. ### Account Registration & Security You are responsible for all activity that occurs under your account and for keeping your credentials secure. We may suspend or terminate any account that violates these Terms or applicable law. ### Fees, Billing & Renewals Certain features require payment. [**All sales are subject to our refund and purchase policy**](/policy/policy/refund-and-purchase-policy)**.** You authorize us (and our payment processors) to charge your selected payment method on a recurring basis until cancellation. Prices may change upon 30 days’ notice. ### Intellectual Property We (or our licensors) own all intellectual‑property rights in the Services. We grant you a limited, revocable, non‑transferable license to use the Services solely as intended. **No other rights are granted.** ### Acceptable Use You may **not**: 1. Violate any law or third‑party right; 2. Reverse‑engineer, decompile, or attempt to obtain source code; 3. Interfere with or disrupt the Services or others’ use of them; 4. Use the Services to compete with us or to build a similar product. We reserve the right to remove content, suspend accounts, or take any action we deem necessary to protect the Services or our interests. ### Software License Where we provide downloadable software or an API, it is licensed—not sold—on a limited, revocable, non‑exclusive basis solely to interact with the Services as documented. All other use is prohibited unless expressly permitted in writing. ### Termination, Suspension & Removal We reserve the **unfettered right — at any time and for any reason or no reason** — to suspend, disable, restrict, or permanently terminate your access to **any or all Services** (including Sonoran CAD, Sonoran CMS, Sonoran Radio, and any future offerings) and to remove or delete any communities, CAD systems, data, or content associated with your account. Such action may be taken **with or without notice** and without liability to you. Reasons may include, but are not limited to, violation of these Terms, non‑payment, inactivity, suspected fraud, or conduct we, in our sole discretion, deem harmful, disruptive, or otherwise objectionable. We have no obligation to disclose the basis for any action we take and will not be liable for any resulting losses or damages. ### Disclaimers & Limitation of Liability The Services are provided **“AS IS” and “AS AVAILABLE.”** To the maximum extent permitted by law we disclaim all warranties, express or implied, and our total liability for any claim arising out of or relating to the Services will not exceed the greater of (a) fees you paid us for the Service during the **last 30 days** or (b) **USD \$100**. ### Indemnification You will indemnify and hold Sonoran Software Systems LLC and its affiliates harmless from any loss, liability, or claim arising out of your breach of these Terms or violation of law. ### Governing Law & Dispute Resolution These Terms are governed by the laws of the **State of Arizona**, USA, without regard to conflict‑of‑law rules. Any dispute will be resolved by **binding arbitration in Yavapai County, Arizona** under the Commercial Arbitration Rules of the American Arbitration Association. **No class actions.** ### Contact Us **Sonoran Software Systems LLC**\ 445 Miller Valley Road\ Prescott, Arizona 86301 [https://support.sonoransoftware.com](https://support.sonoransoftware.com) # Discord Rewards Source: https://docs.sonoransoftware.com/promotions/discord-rewards Earn discounts up to 100% off when your Discord members participate! Discuss products, share suggestions, and more. Join our [Discord](https://discord.sonoransoftware.com/) to discuss products, share suggestions, and connect with the community. Active participation can earn your community up to **100% off** every month! > [!WARNING] > > The Discord Rewards system is in early testing and subject to change at any point.\ > The [leaderboard winner tier](/promotions/discord-rewards#reward-tiers) will be added later into the beta.\ > See the full list of [terms and conditions](/promotions/discord-rewards#terms-and-conditions) for more information. ## Create Your Rewards ID ### Join Our Discord Join our official Discord: [Discord.SonoranSoftware.com](https://discord.sonoransoftware.com/) ### Copy Your Customer ID When point thresholds are met, discounts are automatically applied to the linked customer account. In order to link your customer account, you will first need your customer ID. Login to account.sonoransoftware.com > `Billing` > Click to copy the customer ID. ![](https://docs-assets.sonoransoftware.com/sha256/f3/f36845d854cdc2e338336927166f6382c7f47a2e4a6a935a7242515675443232.png) ### Register Your Rewards ID In our Discord, use the `/rewardsregister` command. Enter in a community name and your Stripe customer ID. Once created, the message will contain your [rewards ID number](/promotions/discord-rewards#manual-link) and [automatic Discord invite](/promotions/discord-rewards#automatic-invite-link). ![](https://docs-assets.sonoransoftware.com/sha256/4b/4b68901e8a6794a516d4a136b2898f7b023116db568411f616c20f32d911ed5b.png) ![](https://docs-assets.sonoransoftware.com/sha256/6c/6ce8a7bb2815efbbbfe338df53097b1b7b89231a11f91e647ba3a7557e590252.png) *** ## Linking Community Members Community members help earn points by participating in discussions, suggestions, and more. They must link their account to the community's reward ID. ### A. Automatic Invite Link When [registering a community](/promotions/discord-rewards#register-your-rewards-id), a Discord invite code is automatically generated. When users join with this code, they'll be automatically linked to your community's rewards. ### B. Manual Link Members can manually link their Discord account to the community rewards by using the `/rewardslink` command. Members will need your community rewards ID from [registration](/promotions/discord-rewards#register-your-rewards-id), or from the [`/rewardspoints` command](/promotions/discord-rewards#viewing-rewards). ![](https://docs-assets.sonoransoftware.com/sha256/31/31867ee381e097561373cd51c769e8940d958fb1ecab7f7bd0036971d44b49eb.png) ![](https://docs-assets.sonoransoftware.com/sha256/a3/a38f5d8db5a003fef504f9824273969b4bdb799f93d7c9254d0eda94c4e4ddc7.png) *** ## Earning Rewards | Action | Points | Info | | - | - | - | | Suggestion Post Added | 50 | 50 points when a CAD, CMS, or Radio suggestion post is marked with the Added tag after an update release. | | Suggestion Post Interesting Tag | 25 | 25 points when a CAD, CMS, or Radio suggestion post is marked with the Interesting tag by management. | | Nitro Boost | 10 | 10 points per Nitro boost every month. Limited to one boost per user. | | Discussion | 0-3 | Up to 3 points per message in the discussion and suggestion channels, based on quality. | | Community Link | 1 | When users link a rewards community for the first time, your community automatically receives one point. Using your [automatic invite link](/promotions/discord-rewards#a.-automatic-invite-link) helps make this process even easier! | *** ## Viewing Rewards Communities can view their points, information, and rewards tier by using the `/rewardspoints` command. ![](https://docs-assets.sonoransoftware.com/sha256/04/04596b8332cd1741f7292c5eaaac55950599d25068448c1de2ee48bef9a028e5.png) *** ## Reward Tiers Reward levels are earned when your community meets or exceeds the required point threshold, based on activity over the past 30 days. When a new tier is reached, the corresponding discount is automatically applied to the most expensive upcoming subscription renewal on the linked customer account—**but only if your community still qualifies for that tier at the time of renewal**. If the subscription already has a larger discount, no additional discount is applied (discounts cannot be stacked). If your community drops below the required threshold before the renewal date, the discount will not be applied. | Level | Points | Discount | | - | - | - | | 🥉Bronze | 50 | 5% Off | | 🥈 Silver | 100 | 10% Off | | 🥇 Gold | 200 | 15% Off | | 💎 Diamond | 300 | 25% Off | | 👑 Leaderboard Winner | N/A (Top Community Only) **Coming Soon!** | 100% Off | *** ## Terms and Conditions #### 🔧 Beta Program Notice * The rewards program is currently in **early testing**. * **Point levels, calculations, and rewards may change** at any time without notice. * The entire program may be **paused, modified, or removed** during or after testing. * **Rewards are not guaranteed** and may be adjusted or revoked at our discretion. #### 📜 General Terms * Discounts are applied based on your community’s reward tier at the time of **subscription renewal**. * You must be **actively meeting the reward tier** when the renewal is processed to receive a discount. * Discounts **cannot be stacked** with other coupons or promotions. #### 🚫 Abuse & Exploitation * Any **attempts to exploit, manipulate, or abuse** the system—by users or communities—may result in: * Immediate **removal of discounts** * **Revocation of points** * **Permanent disqualification** from the rewards program * Permanent account ban from all platforms #### 📬 Questions? Reach out to our [support team](https://support.sonoransoftware.com/). By participating, you agree to these terms and any future updates. # Expert Installation Source: https://docs.sonoransoftware.com/promotions/expert-installation Our support agents are available 7 days/week to help install your Sonoran CAD, CMS, and Radio FiveM resources on your Windows VPS or dedicated server! ![](https://docs-assets.sonoransoftware.com/sha256/5c/5c4373984a57d04949dabe389575ab40fe21fe213407014c0d31c1f4289cc843.png) ## What is expert installation? > [!WARNING] > > Expert installation installs the CAD, CMS, and Radio FiveM resource onto your WIndows server. > > This service **does not include one-on-one configuration of the individual submodules/plugins**, configuration inside the CAD/CMS/Radio portal, etc. > > Our support team is available 7 days/week to help answer specific questions regarding configuration and customization. Expert installation is a one-time payment of \$34.99 and covers THREE (3) non-transferable installation credits.\ These credits can be used for: * Sonoran CAD - Framework and Plugin Installation * Sonoran CMS - Addon Installation * Sonoran Radio - In-Game Radio and Addon Installation ## How do I purchase expert installation? ### At checkout: When purchasing a new subscription for Sonoran CAD, CMS, or Radio; click `Add` on the `Expert Installation` option under `Add to your order` on the checkout page. ![](https://docs-assets.sonoransoftware.com/sha256/94/948d3da64e6e1e42033150f96fbbf6e378239b58d4949ac63816256f088304ef.png) *Expert Installation - Add to Order* ### In the billing portal: In the CAD, CMS, or Radio billing portal, select `New Subscription` > `Expert Installation` ![](https://docs-assets.sonoransoftware.com/sha256/d4/d4fcb5c6ac95a39b48cd4d69f15e59cf750b8e2732e20bfde8e9bc5f10da98f3.png) *Expert Installation - New Purchase* ## Requirements for Installation 1. Windows VPS or Dedicated Server 2. Windows RDP Access (shared with support agent) 3. Sonoran CAD, CMS, or Radio subscription ## FAQ ### Can I redeem another product installation at a later date? Yes! Your purchase is valid for three installation credits. You could have the agent install and configure CAD plugins and install CMS plugins at a later date. ### Is this purchase eligible for a refund? All of our products are covered in our [48-hour moneyback guarantee](https://sonoransoftware.com/assets/files/internal/purchase_policy.pdf). However, this service is not non-refundable after the labor has been performed, regardless if one or all credits have been used. ### The support agent has installed my plugins, what's next? > [tab] CAD > > Configure your submodules and start using Sonoran CAD! > > > [card] [Submodule Configuration](/cad/integration-plugins/in-game-integration/submodule-configuration) > [tab] CMS > > Configure your submodules and start using Sonoran CMS! > > > [card] [FiveM Installation - Next Steps](/cms/integration-capabilities/in-game-integration-resources/core/free-plugin-installation-next-steps) > [tab] Radio > > Once installed, learn how to use Sonoran Radio! > > > [card] [Usage](/radio/tutorials/usage) # Five Bundle Source: https://docs.sonoransoftware.com/promotions/five-bundle Five Bundle is the ultimate content pack for your FiveM™ community — powered by top creators and unmatched in value. Save big with code "SONORAN" at checkout! ## 🎁 [Five Bundle](https://fivebundle.com/sonoran) [Five Bundle](https://fivebundle.com/sonoran) is the ultimate content pack for your FiveM™ community — powered by top creators and unmatched in value. We've teamed up to deliver the best content at the lowest price. Get more content, pay less. Everything your community needs, all in one place. ![](https://docs-assets.sonoransoftware.com/sha256/98/9877a2712ad0719c38e27af912ec204a7c35c284ff6e2faf081624fd4829f7cb.png) ## 💵 Discount Code Use code `SONORAN` for 20% off your first month on [Five Bundle](https://fivebundle.com/sonoran)! ![](https://docs-assets.sonoransoftware.com/sha256/98/9877a2712ad0719c38e27af912ec204a7c35c284ff6e2faf081624fd4829f7cb.png) *FiveBundle.com Discount Code "SONORAN"* ## 📋 What's Included? [See a complete list of every asset, vehicle, MLO, and more on our FAQ!](https://fivebundle.com/sonoran) # FiveM Hosting Source: https://docs.sonoransoftware.com/promotions/fivem-hosting We've partnered up with Rocket Node to bring one-click FiveM installations on Sonoran CAD, CMS, and Radio! Sonoran One customers have FiveM hosting included for free! ![](https://docs-assets.sonoransoftware.com/sha256/b9/b90d7598474406aace5c13fb81fff177893465ef6583d2aff70905f5ab2bc7a1.png) ## One-Click Installation We've partnered with Rocket Node to bring you one-click Sonoran CAD installation for FiveM — making it easier than ever to host your community and connect with Sonoran CAD. * [Purchase your FiveM Game Server!](https://sonoran.link/v2E9hKGm) * Use code `SONORAN`to save big! > [tab] CAD > > [Video tutorial](https://www.youtube-nocookie.com/embed/h8Ftx14j8l8) > [tab] CMS > > [Video tutorial](https://www.youtube-nocookie.com/embed/L_7V3yOIRaQ) > [tab] Radio > > [Video tutorial](https://www.youtube-nocookie.com/embed/1Vw4XwiLKgY) ## Free Hosting: Sonoran One Sonoran One subscribers can claim a coupon for a free FiveM game server from our partners at Rocket Node! *The coupon is valid for one FxHosting Starter plan (2VCPU 2GB Ram, 75GB storage) for the life of the Sonoran One subscription. View the* [*complete terms*](/policy/policy/sonoran-one-+-rocket-node-hosting-promotion)*.* ### Select a Plan in the Sonoran One Panel Once logged into the Sonoran One panel at [account.sonoransoftware.com/one](https://account.sonoransoftware.com/one), select **Create Subscription** and select **Monthly** or **Quarterly**. In the stripe billing portal, complete the purchase as normal. ![](https://docs-assets.sonoransoftware.com/sha256/f7/f70a10045234fc0417f95ffaa9af76a91630765952ca8c1ba11a248b528187e1.png) ### Upgrade your CAD, CMS, and Radio Communities After completing the purchase, select the CAD, CMS, and Radio communities you wish to upgrade to the Pro version in the [Sonoran One panel](https://account.sonoransoftware.com/one). Alternatively, you can select them separately in the CAD, CMS, and Radio billing portals. ![](https://docs-assets.sonoransoftware.com/sha256/b7/b794cabf1c94072cdce5b77fe51cb7f34448e62c32d673dac1e2d798809181fd.png) ### Claim your Rocket Node Coupon In the **Rocket Node free FiveM hosting** section, select **Claim Coupon** to generate a coupon code for your FiveM server hosting. ![](https://docs-assets.sonoransoftware.com/sha256/43/43c6d5e6d711fdacb75136a392f04aea8ed2552a99e82602acdf77b3fee6a8f8.png) ### Create a Client Account with Rocket Node To claim your free FiveM hosting, you must first create a client account. Navigate to [**sonoran.link/rocket**](https://sonoran.link/rocket) > **Billing** > **Create Account**. ![](https://docs-assets.sonoransoftware.com/sha256/56/569300285366b2c2227e216599368270537c759b446c9017da467333726e88ef.png) ![](https://docs-assets.sonoransoftware.com/sha256/3f/3f8233b90e816ab28b76260240f8a0005ee9a8dc23582618fba0de5cc2933e1e.png) Once created, select **Sonoran Coupon** at the top > paste your **Redeem Code** > select **Redeem**. Once redeemed, access your new FiveM game server under **Services** > **FXServer Hosting**. ![](https://docs-assets.sonoransoftware.com/sha256/57/57dafd27d36cf5829c6f772fea642b0634de33b00031762a9c3c97bb2f7eab8c.png) ![](https://docs-assets.sonoransoftware.com/sha256/72/725f4217507177de623866caaadb9f8a88e432cd0f9c98e755641f1aaa917698.png) # Hire a Developer Source: https://docs.sonoransoftware.com/promotions/hire-a-developer Looking for installation, configuration, or custom integration work? Hire one of our trusted developers for your next project. ## Developer Hire Process ### What is this service used for? Our developer hire service allows you to contract one of our trusted developers for server setup, customization, script creation or optimization, issue troubleshooting, and more. Developer hires have a **two-hour minimum**. We've added dedicated hours to ensure one of our team members can help complete your project! Our dedicated hours are Thursday and Friday from 10:00 to 12:00 Arizona time. ### What does this service cost? Hiring a developer costs **\$99 for two hours**, with a two-hour minimum. Billing is limited to a maximum of two hours at a time. Payments are charged up-front with an electronically signed contract ran through our customer support portal. ### Developer Hire Availability Our developer hires are available to be scheduled between 10 AM and 12 PM MST (Arizona Time) Thursday to Friday each week. Requests are scheduled on a first come first serve basis. ## How to Hire ### Access the Support Site Navigate to [support.sonoransoftware.com](https://support.sonoransoftware.com/) and select `Hire a Developer`. Input the specifics of your project. **Please be as specific as possible** so we can more quickly pair you with an available developer. ![](https://docs-assets.sonoransoftware.com/sha256/dd/ddb580e5156d1e7a3977e28729995a1f9e5b554ac3b50516b3644ccf04e4cd0b.png) ### Agree and Finalize the Contract After speaking with a developer, you will agree to the service(s) to be rendered, project timeline, and payment amount. 1. A form will be sent requesting your full name and address. 2. You will be sent a contractor agreement via PDF to electronically sign and re-upload. You can electronically sign this contract with [Adobe's Acrobat Online](https://www.adobe.com/acrobat/online/sign-pdf.html). ### Complete Payment Once the contract has been finalized and signed by both parties an invoice will be sent. Invoices must be paid before any services will be rendered. # Sonoran Radio Source: https://docs.sonoransoftware.com/radio Choose your game and get started with Sonoran Radio. Radio communication for your community. Choose your game for setup and game-specific features. > [card] [FiveM](/radio/game-integrations/fivem) > > In-game radio, resource setup, and FiveM features. > [card] [ER:LC](/radio/game-integrations/roblox) > > Roblox account linking, virtual towers, and live players. > [card] [Arma 3](/radio/game-integrations/arma-3) > > Mod installation, mission towers, and desktop radio. > [card] [Star Citizen](/radio/game-integrations/star-citizen) > > Coming soon. ## Shared Guides * [Getting Started](/radio/tutorials/getting-started) — download the app, create a community, and invite players. * [Dispatch & Admin Panel](/radio/tutorials/usage/dispatch-panel) — channels, voice effects, tones, and community settings. * [Radio Overlay](/radio/tutorials/usage/desktop-overlay) — radio controls while playing any game. * [Hardware Support](/radio/hardware) — external PTT setup and protocol references. * [Troubleshooting](/radio/tutorials/usage/troubleshooting) — help with audio, devices, and the app. # Developer Documentation Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation Learn more about our developer endpoints, exports, and events! > [card] [API Endpoints v2](/radio/developer-documentation/developer-documentation/api-endpoints-v2) # API Endpoints v2 Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2 Sonoran Radio v2 API endpoints with bearer auth, community-scoped URLs, and documented per-endpoint rate limits. Sonoran Radio v2 moves authentication to the `Authorization` header and scopes community-specific requests with `communityId` in the URL for `/v2/servers/{communityId}/...` routes. ## Available v2 Docs ### Libraries Use the official Sonoran SDK libraries if you want package-managed helpers for the v2 API. > [card] [Libraries](/radio/developer-documentation/developer-documentation/api-endpoints-v2/libraries) ### Authentication Start here for bearer authentication, required headers, server-scoped routing, and common error formats. > [card] [Authentication](/radio/developer-documentation/developer-documentation/api-endpoints-v2/authentication) ### Users User endpoints cover connected users, member approval, moderation, permissions, and channel assignment. > [card] [users](/radio/developer-documentation/developer-documentation/api-endpoints-v2/users) ### Channels Channel endpoints cover channel discovery and tone playback operations. > [card] [channels](/radio/developer-documentation/developer-documentation/api-endpoints-v2/channels) ### Community Server Community server endpoints cover authenticated community identity, server IP registration, subscription lookup, in-game speaker locations, and backend-authoritative room zones. > [card] [community-server](/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server) ## Response Formats ### Successful Requests Successful responses return `application/json`. ### Failed Requests Authenticated v2 request failures return `application/problem+json`. Example: ```json theme={null} { "type": "https://httpstatuses.com/401", "title": "Unauthorized", "status": 401, "detail": "Missing Authorization header.", "instance": "/v2/servers/YOUR_COMMUNITY_ID/channels", "traceId": "00-abc123..." } ``` ## Common Errors | Status | Cause | | - | - | | `400` | Validation failed for one or more request values | | `401` | Missing or invalid bearer token | | `404` | `communityId` is not available to the authenticated API key | | `404` | Requested room, member, or participant was not found | | `429` | Rate limit exceeded for the endpoint | ## Rate Limits All authenticated v2 endpoints are rate limited per API key, not per caller IP. Limits vary by endpoint, so each endpoint page includes the published limit for that route. When a request is rate limited, the gateway returns `429 Too Many Requests`. High-frequency integrations should respect the published per-endpoint limits even if a small internal buffer exists. ## Full OpenAPI Collection > [accordion] OpenAPI v2 Collection (Postman Import) > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran Radio API v2 > version: "1.0" > servers: > - url: https://api.sonoranradio.com > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > schemas: > RadioZone: > description: A polygon or circle GEO/degradation zone with an options object. > allOf: > - type: object > required: [options] > properties: > options: > type: object > - oneOf: > - type: object > required: [points] > properties: > points: > type: array > minItems: 3 > items: > type: object > required: [x, y] > properties: > x: { type: number } > y: { type: number } > - type: object > required: [center, radius] > properties: > center: > type: object > required: [x, y] > properties: > x: { type: number } > y: { type: number } > radius: { type: number, exclusiveMinimum: 0 } > paths: > /v2/server-subscriptions/by-ip: > get: > summary: Get server subscription from IP > responses: > "200": > description: Subscription response > /v2/servers/{communityId}/channels: > get: > summary: Get community channels > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > responses: > "200": > description: Channels response > /v2/servers/{communityId}/transmissions: > get: > summary: Get paginated transmission logs > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: query > name: page > schema: > type: integer > example: 1 > - in: query > name: perPage > schema: > type: integer > example: 25 > responses: > "200": > description: Paginated transmission logs response > /v2/servers/{communityId}/connected-users: > get: > summary: Get connected users > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > responses: > "200": > description: Connected users response > /v2/servers/{communityId}/members: > get: > summary: Get paginated community members > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: query > name: page > schema: > type: integer > example: 1 > - in: query > name: perPage > schema: > type: integer > example: 25 > - in: query > name: status > schema: > type: string > enum: [pending, approved, banned] > - in: query > name: sortBy > schema: > type: string > enum: [username, displayName, approved, pending, permission, banned, accId] > - in: query > name: descending > schema: > type: boolean > example: false > - in: query > name: search > schema: > type: string > example: dispatch > responses: > "200": > description: Paginated members response > /v2/servers/{communityId}/rooms/{roomId}/users/{identity}: > get: > summary: Get connected user > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: path > name: roomId > required: true > schema: > type: integer > example: 1 > - in: path > name: identity > required: true > schema: > type: string > example: 91de0ce8-c571-11e9-9714-5600023b2434 > responses: > "200": > description: Connected user response > /v2/servers/{communityId}/rooms/{roomId}/users/{identity}/channels: > patch: > summary: Set user channels > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: path > name: roomId > required: true > schema: > type: integer > example: 1 > - in: path > name: identity > required: true > schema: > type: string > example: 91de0ce8-c571-11e9-9714-5600023b2434 > requestBody: > required: true > content: > application/json: > schema: > type: object > properties: > transmit: > type: array > items: > type: integer > scan: > type: array > items: > type: integer > example: > transmit: [101] > scan: [101, 102, 103] > responses: > "200": > description: User channels updated > /v2/servers/{communityId}/users/display-name: > patch: > summary: Set user display name > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [accId, displayName] > properties: > accId: > type: string > displayName: > type: string > example: > accId: 91de0ce8-c571-11e9-9714-5600023b2434 > displayName: Dispatch 101 > responses: > "200": > description: Display name updated > /v2/servers/{communityId}/members/approve: > post: > summary: Approve members > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [accIds] > properties: > accIds: > type: array > items: > type: string > example: > accIds: > - 91de0ce8-c571-11e9-9714-5600023b2434 > responses: > "200": > description: Members approved > /v2/servers/{communityId}/members/kick: > post: > summary: Kick members > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [accIds] > properties: > accIds: > type: array > items: > type: string > example: > accIds: > - 91de0ce8-c571-11e9-9714-5600023b2434 > responses: > "200": > description: Members kicked > /v2/servers/{communityId}/members/ban: > post: > summary: Ban members > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [accIds] > properties: > accIds: > type: array > items: > type: string > example: > accIds: > - 91de0ce8-c571-11e9-9714-5600023b2434 > responses: > "200": > description: Members banned > /v2/servers/{communityId}/members/display-names: > patch: > summary: Set member display names > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [accNicknames] > properties: > accNicknames: > type: array > items: > type: object > properties: > accId: > type: string > nickname: > type: string > example: > accNicknames: > - accId: 91de0ce8-c571-11e9-9714-5600023b2434 > nickname: Dispatch 101 > responses: > "200": > description: Member display names updated > /v2/servers/{communityId}/members/permissions: > patch: > summary: Set member permissions > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [userPerms] > properties: > userPerms: > type: array > items: > type: object > properties: > accId: > type: string > perm: > type: integer > profilePerms: > type: array > items: > type: object > properties: > profileId: > type: integer > canJoin: > type: boolean > example: > userPerms: > - accId: 91de0ce8-c571-11e9-9714-5600023b2434 > perm: 34 > profilePerms: > - profileId: 12 > canJoin: true > responses: > "200": > description: Member permissions updated > /v2/servers/{communityId}/server-ip: > post: > summary: Set server IP > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [roomId, serverPort] > properties: > roomId: > type: integer > serverPort: > type: integer > overridePushUrl: > type: string > pushUrl: > type: string > nickname: > type: string > example: > roomId: 1 > serverPort: 30120 > pushUrl: http://127.0.0.1:30120/sonoranradio > nickname: Patrol > responses: > "200": > description: Server IP updated > /v2/servers/{communityId}/speakers: > put: > summary: Set in-game speaker locations > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [locations] > properties: > locations: > type: array > items: > type: object > example: > locations: > - label: Station 1 > id: station-1 > responses: > "200": > description: Speaker locations updated > /v2/servers/{communityId}/rooms/{roomId}/zones: > get: > summary: Get canonical room GEO and degradation zones > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: path > name: roomId > required: true > schema: > type: integer > example: 1 > responses: > "200": > description: Canonical room zone snapshot > /v2/servers/{communityId}/rooms/{roomId}/zones/{zoneType}: > post: > summary: Create or replace a GEO or degradation zone by name > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: path > name: roomId > required: true > schema: > type: integer > example: 1 > - in: path > name: zoneType > required: true > schema: > type: string > enum: [geo, degrade] > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [zone] > properties: > zone: > $ref: "#/components/schemas/RadioZone" > responses: > "201": > description: Canonical room zone snapshot > /v2/servers/{communityId}/rooms/{roomId}/zones/{zoneType}/{zoneName}: > patch: > summary: Replace an existing GEO or degradation zone > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: path > name: roomId > required: true > schema: > type: integer > example: 1 > - in: path > name: zoneType > required: true > schema: > type: string > enum: [geo, degrade] > - in: path > name: zoneName > required: true > schema: > type: string > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [zone] > properties: > zone: > $ref: "#/components/schemas/RadioZone" > responses: > "200": > description: Canonical room zone snapshot > delete: > summary: Delete an existing GEO or degradation zone > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: path > name: roomId > required: true > schema: > type: integer > example: 1 > - in: path > name: zoneType > required: true > schema: > type: string > enum: [geo, degrade] > - in: path > name: zoneName > required: true > schema: > type: string > responses: > "200": > description: Canonical room zone snapshot > /v2/servers/{communityId}/tones/play: > post: > summary: Play tone > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [roomId, tones, playTo] > properties: > roomId: > type: integer > tones: > type: array > items: {} > playTo: > type: array > items: > type: object > example: > roomId: 1 > tones: [12] > playTo: > - type: channel > value: 101 > responses: > "200": > description: Tone played > ``` # Authentication Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/authentication Learn how to authenticate requests against the Sonoran Radio v2 API. All current v2 API endpoints require bearer authentication. ## Base URL ```http theme={null} https://api.sonoranradio.com ``` ## Required Headers | Header | Value | Description | | - | - | - | | `Authorization` | `Bearer YOUR_API_KEY` | Authenticates the request | | `Accept` | `application/json` | Recommended for all requests | | `Content-Type` | `application/json` | Required for requests with a JSON body | ## Routing Authenticated server-specific requests use: ```http theme={null} /v2/servers/{communityId}/... ``` For SDK clients, configure Radio with your public community ID. Room-scoped helpers also use the room ID configured on client creation. ## Example Request > [tab] Sonoran.lua > > ```lua theme={null} > local Sonoran = require("sonoran") > > local client = Sonoran.createClient({ > product = Sonoran.productEnums.RADIO, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > roomId = 1 > }) > > local response = client.radio:getConnectedUsersV2() > > print(response.success) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const Sonoran = require('@sonoransoftware/sonoran.js'); > > (async () => { > const instance = new Sonoran.Instance({ > communityId: 'YOUR_COMMUNITY_ID', > apiKey: 'YOUR_API_KEY', > product: Sonoran.productEnums.RADIO, > roomId: 1, > }); > > const response = await instance.radio?.getConnectedUsersV2(); > console.log(response); > })(); > ``` > [tab] Sonoran.py > > ```python theme={null} > from sonoran import Instance, productEnums > > instance = Instance( > apiKey="YOUR_API_KEY", > communityId="YOUR_COMMUNITY_ID", > product=productEnums.RADIO, > roomId=1, > ) > > response = instance.radio.getConnectedUsersV2() > > print(response.success) > print(response.data if response.success else response.reason) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > using Sonoran; > > using var sonoran = new SonoranClient(new SonoranClientOptions > { > product = SonoranProduct.RADIO, > communityId = "YOUR_COMMUNITY_ID", > apiKey = "YOUR_API_KEY", > roomId = 1 > }); > > var response = await sonoran.Radio.getConnectedUsersV2(); > > Console.WriteLine(response.success); > Console.WriteLine(response.data); > ``` > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/connected-users" \ > --header "Authorization: Bearer YOUR_API_KEY" \ > --header "Accept: application/json" > ``` ## Response Formats ### Successful Requests Successful responses return `application/json`. ### Failed Requests Authenticated v2 request failures return `application/problem+json`. Example: ```json theme={null} { "type": "https://httpstatuses.com/401", "title": "Unauthorized", "status": 401, "detail": "Missing Authorization header.", "instance": "/v2/servers/YOUR_COMMUNITY_ID/connected-users", "traceId": "00-abc123..." } ``` ## Common Authentication Errors | Status | Cause | | - | - | | `401` | Missing `Authorization` header | | `401` | `Authorization` header is not using the `Bearer` scheme | | `401` | API key is invalid | | `404` | The requested `communityId` is not configured for the authenticated community | ## Rate Limits All v2 endpoints are rate limited per API key, not per caller IP. Limits vary by endpoint, so check the individual endpoint page for the current enforced limit. When a request is rate limited, the API returns `429 Too Many Requests`. These retries are intentionally limited. High-frequency integrations should still avoid bursty request patterns and should respect the published per-endpoint limits. # Channels Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/channels # Get Community Channels Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/channels/get-community-channels Get configured channel groups and channels for a specific Sonoran Radio server. ## Get Community Channels `GET` `/v2/servers/:communityId/channels` > **Rate limit:** `6 requests per minute`\ > Authenticated v2 endpoints are rate limited per API key rather than per IP address. Returns channel groups and channel definitions for the selected server. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:getCommunityChannelsV2() > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.getCommunityChannelsV2(); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.getCommunityChannelsV2() > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.getCommunityChannelsV2(); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/channels: > get: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X GET "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/channels" \ > -H "Authorization: Bearer your-community-api-key" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "groups": [], "channels": [ { "id": 101, "name": "Law Dispatch" } ] } ``` # Get Transmissions Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/channels/get-transmissions Page through recent transmission logs for a specific Sonoran Radio community. ## Get Transmissions `GET` `/v2/servers/:communityId/transmissions` > **Rate limit:** `12 requests per minute` Returns paginated recent transmission log rows for the selected community. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | **URL Parameters** | Name | Type | Description | | - | - | - | | `communityId` | string | Sonoran Radio community ID | **Query Parameters** | Name | Type | Description | | - | - | - | | `page` | integer | 1-based page number. Defaults to `1`. | | `perPage` | integer | Page size. Defaults to `25`, maximum `100`. | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:getTransmissionsV2({ > page = 1, > perPage = 25 > }, "YOUR_COMMUNITY_ID") > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.getTransmissionsV2({ > page: 1, > perPage: 25 > }, 'YOUR_COMMUNITY_ID'); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.getTransmissionsV2({ > "page": 1, > "perPage": 25, > }, "YOUR_COMMUNITY_ID") > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.getTransmissionsV2(new GetTransmissionsV2Query > { > Page = 1, > PerPage = 25 > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran Radio API v2 > version: "1.0" > servers: > - url: https://api.sonoranradio.com > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > paths: > /v2/servers/{communityId}/transmissions: > get: > summary: Get paginated transmission logs > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: query > name: page > schema: > type: integer > example: 1 > - in: query > name: perPage > schema: > type: integer > example: 25 > security: > - bearerAuth: [] > responses: > "200": > description: Paginated transmission logs response > "401": > description: Missing or invalid bearer token > "404": > description: Community not found for this API key > ``` > [tab] cURL > > ```bash theme={null} > curl -G "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/transmissions" \ > -H "Authorization: Bearer your-community-api-key" \ > --data-urlencode "page=1" \ > --data-urlencode "perPage=25" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "transmissions": [ { "id": "184927", "serverId": 12345, "account": "91de0ce8-c571-11e9-9714-5600023b2434", "channelId": 7, "time": "2026-06-18T18:42:31.000Z", "audioUrl": "https://cdn.example.com/transmissions/12345/2026-06-18_184231_audio.mp3", "transcript": "Unit 12, show me en route." } ], "pagination": { "page": 1, "perPage": 25, "total": 143, "totalPages": 6 } } ``` # Play Tone Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/channels/play-tone Play one or more tones for a specific Sonoran Radio server. ## Play Tone `POST` `/v2/servers/:communityId/tones/play` > **Rate limit:** `12 requests per minute`\ > This endpoint has a small internal gateway buffer, but the published public limit is `12 requests per minute`. Plays one or more saved tone IDs or custom tone payloads to channels, groups, or in-game speaker targets. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:playToneV2(1, { 12 }, { > { type = "channel", value = 101 } > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.playToneV2( > 1, > [12], > [{ type: "channel", value: 101 }], > 1 > ); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.playToneV2( > 1, > [12], > [{"type": "channel", "value": 101}], > 1, > ) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.playToneV2(new PlayToneV2Request > { > Tones = new object[] { 12 }, > PlayTo = new object[] { new { type = "channel", value = 101 } } > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/tones/play: > post: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/tones/play" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"roomId\":1,\"tones\":[12],\"playTo\":[{\"type\":\"channel\",\"value\":101}]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "roomId": 1, "played": true } ``` # Community Server Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server > [card] [Get Server Info](/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/get-server-info) > [card] [Manage Room Zones](/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/manage-zones) # Get Server Info Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/get-server-info Retrieve the authenticated Radio community identity and its current logo URL. `GET` `https://api.sonoranradio.com/v2/servers/:communityId/info` > **Rate limit:** `10 requests per minute` per API key. The `communityId` path value is the short Radio community ID. The bearer API key must belong to that community. The response includes the currently stored `logoUrl`, which may use an older Radio image path until that logo is migrated. Once migrated, its URL is `https://s3.sonoranradio.com/com/{communityUuid}/logo.png`. ## Example Request > [tab] cURL > > ```bash theme={null} > curl --request GET \ > --url "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/info" \ > --header "Authorization: Bearer YOUR_COMMUNITY_API_KEY" \ > --header "Accept: application/json" > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > info: > title: Sonoran Radio v2 - Get Server Info > version: 1.0.0 > servers: > - url: https://api.sonoranradio.com > paths: > /v2/servers/{communityId}/info: > get: > summary: Get the authenticated community identity > security: > - bearerAuth: [] > parameters: > - in: path > name: communityId > required: true > schema: > type: string > responses: > '200': > description: Community identity > content: > application/json: > schema: > type: object > required: [communityUuid, communityId, logoUrl] > properties: > communityUuid: > type: string > format: uuid > communityId: > type: string > logoUrl: > type: [string, 'null'] > format: uri > '401': > description: Missing or invalid bearer key > '404': > description: Community does not exist or is not accessible with this key > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > ``` ## Response Successful requests return `application/json`: ```json theme={null} { "communityUuid": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "communityId": "EXAMPLERADIO", "logoUrl": "https://s3.sonoranradio.com/42/community/comImage/image_example.png" } ``` `logoUrl` is `null` when no community logo is configured. Missing or invalid credentials return `401`. An API key for another community returns `404` without revealing that community's UUID. # Get Server Subscription from IP Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/get-server-subscription-from-ip Return the highest Sonoran Radio subscription level associated with the caller IP. ## Get Server Subscription from IP `GET` `/v2/server-subscriptions/by-ip` > **Rate limit:** `2 requests per minute` Returns the highest matching subscription level for the caller IP. This endpoint does not require bearer authentication. **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:getServerSubscriptionFromIpV2() > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.getServerSubscriptionFromIpV2(); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.getServerSubscriptionFromIpV2() > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.getServerSubscriptionFromIpV2(); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/server-subscriptions/by-ip: > get: {} > ``` > [tab] cURL > > ```bash theme={null} > curl -X GET "https://api.sonoranradio.com/v2/server-subscriptions/by-ip" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "subscription": 2 } ``` # Manage Room Zones Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/manage-zones Retrieve and mutate backend-authoritative GEO and degradation zones for a Sonoran Radio room. These endpoints manage the canonical GEO and degradation zone configuration for one Radio room. Emergency zones remain panel-managed and are not modified by these routes. | Method | Route | Purpose | | - | - | - | | `GET` | `/v2/servers/:communityId/rooms/:roomId/zones` | Retrieve the complete room snapshot | | `POST` | `/v2/servers/:communityId/rooms/:roomId/zones/:zoneType` | Create or replace a zone by name | | `PATCH` | `/v2/servers/:communityId/rooms/:roomId/zones/:zoneType/:zoneName` | Replace an existing zone | | `DELETE` | `/v2/servers/:communityId/rooms/:roomId/zones/:zoneType/:zoneName` | Delete an existing zone | `zoneType` must be `geo` or `degrade`. The `zoneName` path value must be URL encoded. > **Rate limits:** reads allow `12 requests per minute`; mutations allow `30 requests per minute`. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` for POST and PATCH | POST and PATCH accept a `zone` object. GEO zones contain `transmitChannels`, `scanChannels`, and `acePerms`; degradation zones contain `degradeStrength`. A zone must use exactly one supported shape: * Polygon: `points` containing at least three finite `{ x, y }` coordinates. * Circle: `center` containing finite `{ x, y }` coordinates and a positive finite `radius`. Both shapes use `options.minZ` and `options.maxZ` for their vertical bounds. For example, a circle shape can replace the `points` property in the examples below with `center: { x: 0, y: 0 }, radius: 100`. **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local snapshot = client.radio:getZonesV2() > > local created = client.radio:createZoneV2("geo", { > points = { > { x = -100.0, y = -100.0 }, > { x = -100.0, y = 100.0 }, > { x = 100.0, y = 100.0 } > }, > options = { > name = "Downtown", > minZ = 0, > maxZ = 100, > transmitChannels = { 143504 }, > scanChannels = {}, > acePerms = {} > } > }) > > local updated = client.radio:updateZoneV2("geo", "Downtown", updatedZone) > local deleted = client.radio:deleteZoneV2("geo", "Downtown") > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const snapshot = await instance.radio?.getZonesV2(); > > const created = await instance.radio?.createZoneV2('geo', { > points: [ > { x: -100, y: -100 }, > { x: -100, y: 100 }, > { x: 100, y: 100 } > ], > options: { > name: 'Downtown', > minZ: 0, > maxZ: 100, > transmitChannels: [143504], > scanChannels: [], > acePerms: [] > } > }); > > const updated = await instance.radio?.updateZoneV2('geo', 'Downtown', updatedZone); > const deleted = await instance.radio?.deleteZoneV2('geo', 'Downtown'); > ``` > [tab] Sonoran.py > > ```python theme={null} > snapshot = instance.radio.getZonesV2() > > created = instance.radio.createZoneV2("geo", { > "points": [ > {"x": -100, "y": -100}, > {"x": -100, "y": 100}, > {"x": 100, "y": 100}, > ], > "options": { > "name": "Downtown", > "minZ": 0, > "maxZ": 100, > "transmitChannels": [143504], > "scanChannels": [], > "acePerms": [], > }, > }) > > updated = instance.radio.updateZoneV2("geo", "Downtown", updated_zone) > deleted = instance.radio.deleteZoneV2("geo", "Downtown") > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var snapshot = await sonoran.Radio.getZonesV2(); > > var zone = new RadioGeoZone > { > Points = > [ > new() { X = -100, Y = -100 }, > new() { X = -100, Y = 100 }, > new() { X = 100, Y = 100 } > ], > Options = new() > { > Name = "Downtown", > MinZ = 0, > MaxZ = 100, > TransmitChannels = [143504] > } > }; > > var created = await sonoran.Radio.createZoneV2(RadioMutableZoneType.Geo, zone); > var updated = await sonoran.Radio.updateZoneV2(RadioMutableZoneType.Geo, "Downtown", zone); > var deleted = await sonoran.Radio.deleteZoneV2(RadioMutableZoneType.Geo, "Downtown"); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran Radio Room Zones API > version: "2.0" > servers: > - url: https://api.sonoranradio.com > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > schemas: > RadioZone: > allOf: > - type: object > required: [options] > properties: > options: { type: object } > - oneOf: > - type: object > required: [points] > properties: > points: > type: array > minItems: 3 > items: > type: object > required: [x, y] > properties: > x: { type: number } > y: { type: number } > - type: object > required: [center, radius] > properties: > center: > type: object > required: [x, y] > properties: > x: { type: number } > y: { type: number } > radius: { type: number, exclusiveMinimum: 0 } > paths: > /v2/servers/{communityId}/rooms/{roomId}/zones: > get: > security: [{ bearerAuth: [] }] > parameters: > - { in: path, name: communityId, required: true, schema: { type: string, example: YOUR_COMMUNITY_ID } } > - { in: path, name: roomId, required: true, schema: { type: integer, example: 1 } } > responses: > "200": { description: Canonical room zone snapshot } > /v2/servers/{communityId}/rooms/{roomId}/zones/{zoneType}: > post: > security: [{ bearerAuth: [] }] > parameters: > - { in: path, name: communityId, required: true, schema: { type: string, example: YOUR_COMMUNITY_ID } } > - { in: path, name: roomId, required: true, schema: { type: integer, example: 1 } } > - { in: path, name: zoneType, required: true, schema: { type: string, enum: [geo, degrade] } } > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [zone] > properties: > zone: { $ref: "#/components/schemas/RadioZone" } > responses: > "201": { description: Canonical room zone snapshot } > /v2/servers/{communityId}/rooms/{roomId}/zones/{zoneType}/{zoneName}: > patch: > security: [{ bearerAuth: [] }] > parameters: > - { in: path, name: communityId, required: true, schema: { type: string, example: YOUR_COMMUNITY_ID } } > - { in: path, name: roomId, required: true, schema: { type: integer, example: 1 } } > - { in: path, name: zoneType, required: true, schema: { type: string, enum: [geo, degrade] } } > - { in: path, name: zoneName, required: true, schema: { type: string } } > requestBody: > required: true > content: > application/json: > schema: > type: object > required: [zone] > properties: > zone: { $ref: "#/components/schemas/RadioZone" } > responses: > "200": { description: Canonical room zone snapshot } > delete: > security: [{ bearerAuth: [] }] > parameters: > - { in: path, name: communityId, required: true, schema: { type: string, example: YOUR_COMMUNITY_ID } } > - { in: path, name: roomId, required: true, schema: { type: integer, example: 1 } } > - { in: path, name: zoneType, required: true, schema: { type: string, enum: [geo, degrade] } } > - { in: path, name: zoneName, required: true, schema: { type: string } } > responses: > "200": { description: Canonical room zone snapshot } > ``` > [tab] cURL > > ```bash theme={null} > curl "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/rooms/2/zones" \ > -H "Authorization: Bearer your-community-api-key" > > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/rooms/2/zones/geo" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d '{"zone":{"points":[{"x":-100,"y":-100},{"x":-100,"y":100},{"x":100,"y":100}],"options":{"name":"Downtown","minZ":0,"maxZ":100,"transmitChannels":[143504],"scanChannels":[],"acePerms":[]}}}' > > curl -X DELETE "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/rooms/2/zones/geo/Downtown" \ > -H "Authorization: Bearer your-community-api-key" > ``` ## Response Every successful operation returns the complete canonical mutable-zone snapshot for the room: ```json theme={null} { "roomId": 2, "geoZones": [], "degradeZones": [] } ``` # Set In-Game Speaker Locations Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/set-in-game-speaker-locations Set in-game speaker locations for tone playback on a specific Sonoran Radio server. ## Set In-Game Speaker Locations `PUT` `/v2/servers/:communityId/speakers` > **Rate limit:** `2 requests per minute` Stores the in-game speaker list used by tone playback targets. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:setInGameSpeakerLocationsV2({ > { > label = "Fire Station 123", > id = "STATION_123" > } > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.setInGameSpeakerLocationsV2([ > { > label: "Fire Station 123", > id: "STATION_123" > } > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.setInGameSpeakerLocationsV2([ > { > "label": "Fire Station 123", > "id": "STATION_123", > } > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.setInGameSpeakerLocationsV2(new object?[] > { > new { label = "Fire Station 123", id = "STATION_123" } > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/speakers: > put: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X PUT "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/speakers" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"locations\":[{\"label\":\"Fire Station 123\",\"id\":\"STATION_123\"}]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "locationsCount": 1 } ``` # Set Server IP Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/set-server-ip Set or update a server room IP and push URL for a specific Sonoran Radio server. ## Set Server IP `POST` `/v2/servers/:communityId/server-ip` > **Rate limit:** `2 requests per minute` Adds or updates a room origin and push URL for the selected server. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:setServerIpV2({ > communityId = "YOUR_COMMUNITY_ID", > roomId = 1, > serverPort = 30120, > pushUrl = "http://127.0.0.1:30120/sonoranradio", > nickname = "Patrol" > }) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.setServerIpV2({ > communityId: "YOUR_COMMUNITY_ID", > roomId: 1, > serverPort: 30120, > pushUrl: "http://127.0.0.1:30120/sonoranradio", > nickname: "Patrol" > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.setServerIpV2({ > "communityId": "YOUR_COMMUNITY_ID", > "roomId": 1, > "serverPort": 30120, > "pushUrl": "http://127.0.0.1:30120/sonoranradio", > "nickname": "Patrol", > }) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.setServerIpV2(new SetServerIpV2Request > { > ServerPort = 30120, > PushUrl = "http://127.0.0.1:30120/sonoranradio", > Nickname = "Patrol" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/server-ip: > post: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/server-ip" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"roomId\":1,\"serverPort\":30120,\"pushUrl\":\"http://127.0.0.1:30120/sonoranradio\",\"nickname\":\"Patrol\"}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "roomId": 1, "pushUrl": "http://127.0.0.1:30120/sonoranradio" } ``` # Libraries Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/libraries Install links for the official Sonoran SDK libraries used with the v2 API. The official Sonoran SDK libraries provide package-managed access to Sonoran Radio integrations and v2 API helpers. ## Package Manager Links * [Sonoran.js on npm](https://www.npmjs.com/package/@sonoransoftware/sonoran.js) * [Sonoran.lua on LuaRocks](https://luarocks.org/modules/sonoransoftware/sonoran.lua) * [Sonoran.Net on NuGet](https://www.nuget.org/packages/Sonoran.Net) * [Sonoran.py on PyPI](https://pypi.org/project/Sonoran.py/) # Retrieving Your Credentials Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/retrieving-your-credentials All API calls must be authenticated with a community ID and API key. ## Radio Community ID and API Key Your Sonoran Radio community ID and API key are located under **Administration** > **Community ID** and **Community API Key** ![](https://docs-assets.sonoransoftware.com/sha256/2f/2fe879515ec81ee8887ae54158e884a163dbada6f2755e312e5838b1379957da.png) # Users Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users # Approve Members Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/approve-members Approve existing pending members for a specific Sonoran Radio server. ## Approve Members `POST` `/v2/servers/:communityId/members/approve` > **Rate limit:** `12 requests per minute`\ > This endpoint has a small internal gateway buffer, but the published public limit is `12 requests per minute`. Approves pending community members already attached to the selected server. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:approveMembersV2({ > "91de0ce8-c571-11e9-9714-5600023b2434" > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.approveMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.approveMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.approveMembersV2(new[] > { > "91de0ce8-c571-11e9-9714-5600023b2434" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/members/approve: > post: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/approve" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"accIds\":[\"91de0ce8-c571-11e9-9714-5600023b2434\"]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "approvedAccIds": [ "91de0ce8-c571-11e9-9714-5600023b2434" ] } ``` # Ban Members Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/ban-members Ban members from a specific Sonoran Radio server. ## Ban Members `POST` `/v2/servers/:communityId/members/ban` > **Rate limit:** `4 requests per minute` Bans members from the selected server and disconnects them from live radio sessions when applicable. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:banMembersV2({ > "91de0ce8-c571-11e9-9714-5600023b2434" > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.banMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.banMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.banMembersV2(new[] > { > "91de0ce8-c571-11e9-9714-5600023b2434" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/members/ban: > post: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/ban" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"accIds\":[\"91de0ce8-c571-11e9-9714-5600023b2434\"]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "bannedAccIds": [ "91de0ce8-c571-11e9-9714-5600023b2434" ] } ``` # Get Connected User Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/get-connected-user This endpoint gets a connected user in a specific room for a specific Sonoran Radio server. ## Get Connected User `GET` `/v2/servers/:communityId/rooms/:roomId/users/:identity` > **Rate limit:** `12 requests per minute`\ > This endpoint has a small internal gateway buffer, but the published public limit is `12 requests per minute`. Returns a single connected participant. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:getConnectedUserV2(1, "91de0ce8-c571-11e9-9714-5600023b2434", "YOUR_COMMUNITY_ID") > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.getConnectedUserV2(1, "91de0ce8-c571-11e9-9714-5600023b2434", "YOUR_COMMUNITY_ID"); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.getConnectedUserV2(1, "91de0ce8-c571-11e9-9714-5600023b2434", "YOUR_COMMUNITY_ID") > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.getConnectedUserV2("91de0ce8-c571-11e9-9714-5600023b2434"); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/rooms/{roomId}/users/{identity}: > get: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X GET "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/rooms/1/users/91de0ce8-c571-11e9-9714-5600023b2434" \ > -H "Authorization: Bearer your-community-api-key" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "identity": "91de0ce8-c571-11e9-9714-5600023b2434", "name": "Officer Smith", "metadata": "{\"sonrad\":true}", "state": "ACTIVE" } ``` # Get Connected Users Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/get-connected-users This endpoint gets all connected users for a specific Sonoran Radio server. ## Get Connected Users `GET` `/v2/servers/:communityId/connected-users` > **Rate limit:** `6 requests per minute` Returns every currently connected radio participant for the selected server. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | **URL Parameters** | Name | Type | Description | | - | - | - | | `communityId` | string | Sonoran Radio community ID | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:getConnectedUsersV2() > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.getConnectedUsersV2(); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.getConnectedUsersV2() > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.getConnectedUsersV2(); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/connected-users: > get: > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X GET "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/connected-users" \ > -H "Authorization: Bearer your-community-api-key" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "connectedUsers": [ { "identity": "91de0ce8-c571-11e9-9714-5600023b2434", "name": "Officer Smith", "metadata": "{\"sonrad\":true}", "roomId": 1 } ] } ``` # Get Members Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/get-members This endpoint gets paginated community members for a specific Sonoran Radio community. ## Get Members `GET` `/v2/servers/:communityId/members` > **Rate limit:** `15 requests per minute` Returns paginated community membership data, including approval state, permission level, and per-profile access. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | **URL Parameters** | Name | Type | Description | | - | - | - | | `communityId` | string | Sonoran Radio community ID | **Query Parameters** | Name | Type | Description | | - | - | - | | `page` | integer | 1-based page number. Defaults to `1`. | | `perPage` | integer | Page size. Defaults to `25`, maximum `100`. | | `status` | string | Optional filter: `pending`, `approved`, or `banned`. | | `sortBy` | string | Optional sort field: `username`, `displayName`, `approved`, `pending`, `permission`, `banned`, or `accId`. | | `descending` | boolean | Set to `true` to sort descending. | | `search` | string | Optional search across username, display name, and account ID. | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:getMembersV2({ > page = 1, > perPage = 25, > status = "approved", > sortBy = "username", > search = "dispatch" > }, "YOUR_COMMUNITY_ID") > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.getMembersV2({ > page: 1, > perPage: 25, > status: 'approved', > sortBy: 'username', > search: 'dispatch' > }, 'YOUR_COMMUNITY_ID'); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.getMembersV2({ > "page": 1, > "perPage": 25, > "status": "approved", > "sortBy": "username", > "search": "dispatch", > }, "YOUR_COMMUNITY_ID") > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.getMembersV2(new GetMembersV2Query > { > Page = 1, > PerPage = 25, > Status = "approved", > SortBy = "username", > Search = "dispatch" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.0.3 > info: > title: Sonoran Radio API v2 > version: "1.0" > servers: > - url: https://api.sonoranradio.com > components: > securitySchemes: > bearerAuth: > type: http > scheme: bearer > paths: > /v2/servers/{communityId}/members: > get: > summary: Get paginated community members > parameters: > - in: path > name: communityId > required: true > schema: > type: string > example: YOUR_COMMUNITY_ID > - in: query > name: page > schema: > type: integer > example: 1 > - in: query > name: perPage > schema: > type: integer > example: 25 > - in: query > name: status > schema: > type: string > enum: [pending, approved, banned] > - in: query > name: sortBy > schema: > type: string > enum: [username, displayName, approved, pending, permission, banned, accId] > - in: query > name: descending > schema: > type: boolean > example: false > - in: query > name: search > schema: > type: string > example: dispatch > security: > - bearerAuth: [] > responses: > "200": > description: Paginated members response > "400": > description: Validation failed > "401": > description: Missing or invalid bearer token > "404": > description: Community not found for this API key > ``` > [tab] cURL > > ```bash theme={null} > curl -G "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members" \ > -H "Authorization: Bearer your-community-api-key" \ > --data-urlencode "page=1" \ > --data-urlencode "perPage=25" \ > --data-urlencode "status=approved" \ > --data-urlencode "sortBy=username" \ > --data-urlencode "search=dispatch" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "members": [ { "accId": "91de0ce8-c571-11e9-9714-5600023b2434", "username": "Officer Smith", "displayName": "Dispatch 101", "permission": 34, "profilePerms": [ { "id": 12, "profileId": 7, "canJoin": true } ], "approved": true, "pending": false, "banned": false } ], "pagination": { "page": 1, "perPage": 25, "total": 1, "totalPages": 1 } } ``` # Kick Members Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/kick-members Remove members from a specific Sonoran Radio server. ## Kick Members `POST` `/v2/servers/:communityId/members/kick` > **Rate limit:** `4 requests per minute` Removes members from the selected server and disconnects them from live radio sessions when applicable. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:kickMembersV2({ > "91de0ce8-c571-11e9-9714-5600023b2434" > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.kickMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.kickMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.kickMembersV2(new[] > { > "91de0ce8-c571-11e9-9714-5600023b2434" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/members/kick: > post: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/kick" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"accIds\":[\"91de0ce8-c571-11e9-9714-5600023b2434\"]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "kickedAccIds": [ "91de0ce8-c571-11e9-9714-5600023b2434" ] } ``` # Set Member Display Names Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/set-member-display-names Update stored member display names for a specific Sonoran Radio server. ## Set Member Display Names `PATCH` `/v2/servers/:communityId/members/display-names` > **Rate limit:** `4 requests per minute` Updates member nicknames for the selected server. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:setMemberDisplayNamesV2({ > { > accId = "91de0ce8-c571-11e9-9714-5600023b2434", > nickname = "Chief Miller" > } > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.setMemberDisplayNamesV2([ > { > accId: "91de0ce8-c571-11e9-9714-5600023b2434", > nickname: "Chief Miller" > } > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.setMemberDisplayNamesV2([ > { > "accId": "91de0ce8-c571-11e9-9714-5600023b2434", > "nickname": "Chief Miller" > } > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.setMemberDisplayNamesV2(new[] > { > new MemberDisplayNameV2Change > { > AccId = "91de0ce8-c571-11e9-9714-5600023b2434", > Nickname = "Chief Miller" > } > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/members/display-names: > patch: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X PATCH "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/display-names" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"accNicknames\":[{\"accId\":\"91de0ce8-c571-11e9-9714-5600023b2434\",\"nickname\":\"Chief Miller\"}]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updatedAccIds": [ "91de0ce8-c571-11e9-9714-5600023b2434" ] } ``` # Set Member Permissions Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/set-member-permissions Update member permissions for a specific Sonoran Radio server. ## Set Member Permissions `PATCH` `/v2/servers/:communityId/members/permissions` > **Rate limit:** `4 requests per minute` Updates permission bitmasks and optional profile permissions for one or more server members. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:setMemberPermissionsV2({ > { > accId = "91de0ce8-c571-11e9-9714-5600023b2434", > perm = 34 > } > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.setMemberPermissionsV2([ > { > accId: "91de0ce8-c571-11e9-9714-5600023b2434", > perm: 34 > } > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.setMemberPermissionsV2([ > { > "accId": "91de0ce8-c571-11e9-9714-5600023b2434", > "perm": 34 > } > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.setMemberPermissionsV2(new[] > { > new MemberPermissionV2Change > { > AccId = "91de0ce8-c571-11e9-9714-5600023b2434", > Perm = 34 > } > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/members/permissions: > patch: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X PATCH "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/permissions" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"userPerms\":[{\"accId\":\"91de0ce8-c571-11e9-9714-5600023b2434\",\"perm\":34}]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "updatedAccIds": [ "91de0ce8-c571-11e9-9714-5600023b2434" ] } ``` # Set User Channels Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/set-user-channels Update the transmit and scan channels for a connected user on a specific Sonoran Radio server. ## Set User Channels `PATCH` `/v2/servers/:communityId/rooms/:roomId/users/:identity/channels` > **Rate limit:** `6 requests per minute` Updates the connected participant's current transmit and scan channel state. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:setUserChannelsV2(1, "91de0ce8-c571-11e9-9714-5600023b2434", { > transmit = { 101 }, > scan = { 101, 102, 103 } > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.setUserChannelsV2( > 1, > "91de0ce8-c571-11e9-9714-5600023b2434", > { transmit: [101], scan: [101, 102, 103] }, > 1 > ); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.setUserChannelsV2( > 1, > "91de0ce8-c571-11e9-9714-5600023b2434", > {"transmit": [101], "scan": [101, 102, 103]}, > 1, > ) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.setUserChannelsV2( > "91de0ce8-c571-11e9-9714-5600023b2434", > new { transmit = new[] { 101 }, scan = new[] { 101, 102, 103 } } > ); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/rooms/{roomId}/users/{identity}/channels: > patch: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X PATCH "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/rooms/1/users/91de0ce8-c571-11e9-9714-5600023b2434/channels" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"transmit\":[101],\"scan\":[101,102,103]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "identity": "91de0ce8-c571-11e9-9714-5600023b2434", "roomId": 1, "transmit": [101], "scan": [102, 103] } ``` # Set User Display Name Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/set-user-display-name Update a stored user display name for a specific Sonoran Radio server. ## Set User Display Name `PATCH` `/v2/servers/:communityId/users/display-name` > **Rate limit:** `12 requests per minute`\ > This endpoint has a small internal gateway buffer, but the published public limit is `12 requests per minute`. Updates a single member display name and propagates that update to connected sessions. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:setUserDisplayNameV2({ > communityId = "YOUR_COMMUNITY_ID", > accId = "91de0ce8-c571-11e9-9714-5600023b2434", > displayName = "Chief Miller" > }) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.setUserDisplayNameV2({ > communityId: "YOUR_COMMUNITY_ID", > accId: "91de0ce8-c571-11e9-9714-5600023b2434", > displayName: "Chief Miller" > }); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.setUserDisplayNameV2({ > "communityId": "YOUR_COMMUNITY_ID", > "accId": "91de0ce8-c571-11e9-9714-5600023b2434", > "displayName": "Chief Miller", > }) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.setUserDisplayNameV2(new SetUserDisplayNameV2Request > { > AccId = "91de0ce8-c571-11e9-9714-5600023b2434", > DisplayName = "Chief Miller" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/users/display-name: > patch: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X PATCH "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/users/display-name" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"accId\":\"91de0ce8-c571-11e9-9714-5600023b2434\",\"displayName\":\"Chief Miller\"}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "accId": "91de0ce8-c571-11e9-9714-5600023b2434", "displayName": "Officer Smith" } ``` # Unban Members Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/unban-members Unban members from a specific Sonoran Radio server. ## Unban Members `POST` `/v2/servers/:communityId/members/unban` > **Rate limit:** `4 requests per minute` Unbans members from the selected server so they can rejoin the community. **Headers** | Name | Value | | - | - | | Authorization | `Bearer ` | | Content-Type | `application/json` | **Examples** > [tab] Sonoran.lua > > ```lua theme={null} > local response = client.radio:unbanMembersV2({ > "91de0ce8-c571-11e9-9714-5600023b2434" > }, 1) > ``` > [tab] Sonoran.js > > ```javascript theme={null} > const response = await instance.radio?.unbanMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1); > ``` > [tab] Sonoran.py > > ```python theme={null} > response = instance.radio.unbanMembersV2([ > "91de0ce8-c571-11e9-9714-5600023b2434" > ], 1) > ``` > [tab] Sonoran.Net > > ```csharp theme={null} > var response = await sonoran.Radio.unbanMembersV2(new[] > { > "91de0ce8-c571-11e9-9714-5600023b2434" > }); > ``` > [tab] OpenAPI > > ```yaml theme={null} > openapi: 3.1.0 > paths: > /v2/servers/{communityId}/members/unban: > post: > security: > - bearerAuth: [] > ``` > [tab] cURL > > ```bash theme={null} > curl -X POST "https://api.sonoranradio.com/v2/servers/YOUR_COMMUNITY_ID/members/unban" \ > -H "Authorization: Bearer your-community-api-key" \ > -H "Content-Type: application/json" \ > -d "{\"accIds\":[\"91de0ce8-c571-11e9-9714-5600023b2434\"]}" > ``` ## Response Successful requests return `application/json`. ```json theme={null} { "unbannedAccIds": [ "91de0ce8-c571-11e9-9714-5600023b2434" ] } ``` # Development Branch Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/development-branch Sonoran Radio provides a dedicated development API server and web version to work directly with our communities. Find out more information below! > [!WARNING] > > The development API and Radio branches are entirely separate from the current production version. For more information in working with our development team please [contact us](https://support.sonoransoftware.com/). or join our community [Discord](http://discord.sonorancad.com/). ## Rate Limiting Sonoran Radio's development branch maintains the same rate limiting as production. However, rate limits only result in a one minute block as opposed to an hour. ## Development API Server All API endpoints and requests should be made to the following address: ``` https://staging-api.dev.sonoranradio.com ``` ## Development Radio The latest Radio development version can be accessed at the following address: ``` https://staging.dev.sonoranradio.com ``` ## Development Subscription - Free > [!WARNING] > > Data will be reset at random times and **this environment is not suitable for production use**. Use only for testing new features when requested by Sonoran Software Development and for developing API based resources. When building or testing our API library, you can upgrade your development community to pro for free! 1. Create a new PRO subscription in the development billing portal. 2. At checkout enter `4242 4242 4242 4242` as the card number with any CVV and expiration date. 3. Apply the subscription to your development testing community. ## **Developer Discord** Join our [Discord](http://discord.sonorancad.com/) and access the `#community-development` channel. Here you can discuss API related issues, development, and more. # Open Source Contributions Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/open-source-contributions The Sonoran Radio FiveM resource is open for public contributions! ## FiveM Resource Repository [Click here to view the open source FiveM resource.](https://github.com/Sonoran-Software/radio_fivem) ## Submitting Pull Requests Just like with Sonoran CAD and CMS, the Sonoran Radio resource is open for public contributions. Pull requests with new functionality or bug fixes will be reviewed and merged when appropriate. When applicable, accepted pull requests may be eligible for Sonoran account credit. [Join our Discord](https://discord.sonoransoftware.com/) for more contact with developers. # Push Events Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/push-events Learn more about our Backend -> Game Server push events! ## Push Event Address Push events are sent to your community's `pushUrl` (full IP/port) set in the [set-server-ip](/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/set-server-ip) API endpoint. This endpoint should be called on startup. Push events can be authenticated by comparing the event's `id` and `key` to your community ID and API key. # Play Tone Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/push-events/play-tone The play_tone push event is sent to the game server when a dispatcher is sending a tone to one or more in-game speakers. ## Play Tone The `play_tone` push event is sent to the game server when a dispatcher is sending a tone to one or more in-game speakers. These in-game speaker IDs are set from the [set-server-speakers](/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/set-in-game-speaker-locations) API endpoint. ```json theme={null} { "id": "", // Community ID "key": "", // Community API Key (Use to authenticate) "type": "play_tone", "payload": { // Tone audio file URLs in the order of "stack" "src": [ "https://s3.sonoransoftware.com/radio/system/tones/signal_100.mp3", ], "ids": [ "STATION_123", "STATION_456" ] } } ``` # User Connected Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/push-events/user-connected The user_connected push event is sent to the game server when a user connects to the radio. ## User Connected The `user_connected` push event is sent to the game server when a user connects to the radio. ```json theme={null} { "id": "", // Community ID "key": "", // Community API Key (Use to authenticate) "type": "user_connected", "payload": { "identity": "000-000-000-000" } } ``` # FiveM Resource API Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/resource-events Learn more about custom integrations with the in-game resource! These events are provided by the **FiveM resource** for use in FiveM scripts. For shared HTTP endpoints, see [API Endpoints v2](/radio/developer-documentation/developer-documentation/api-endpoints-v2). ## Push-to-talk Listen for `SonoranRadio::API:Talking` in a client script to detect when the local player starts or stops transmitting. The `toggle` argument is `true` when transmitting and `false` when stopped; `inVeh` indicates whether the player is in a vehicle. ```lua theme={null} -- Event sent from Sonoran Radio TriggerEvent('SonoranRadio::API:Talking', toggle, inVeh) -- Event listener in a custom script AddEventHandler('SonoranRadio::API:Talking', function(toggle, inVeh) print(toggle) -- Boolean (Are they transmitting?) print(inVeh) -- Boolean (Are they in a vehicle) end) ``` ## Radio Enabled You can check if the radio is active (turned on) like so:
  `-- In your custom script -- true = active -- false = inactive
  local isActive = exports['sonoranradio']:isRadioActive()
  `
## Emergency (911) Calls You can start, end, and toggle an emergency call with a client resource export: ```lua theme={null} -- In your custom script -- true = Start -- false = End -- 'toggle' = Toggle exports['sonoranradio']:setEmergencyCall('toggle') exports['sonoranradio']:setEmergencyCall('toggle', 'My Custom Name') ``` The following client events reflect the emergency call status: ```lua theme={null} -- Event sent from Sonoran Radio TriggerEvent('SonoranRadio::API:EmergencyCall', enabled) -- Event listener in a custom script AddEventHandler('SonoranRadio::API:EmergencyCall', function(enabled) print(enabled) -- Boolean (is the call starting (true) or ending (false)) end) ``` ```lua theme={null} -- Event sent from Sonoran Radio TriggerEvent('SonoranRadio::API:EmergencyCallDispatcher', dispatcherNames) -- Event listener in a custom script AddEventHandler('SonoranRadio::API:EmergencyCallDispatcher', function(dispatcherNames) print(dispatcherNames) -- Table with strings for the dispatcher's names -- NOTE: does not receive `{}` if emergency call is ended -- (above event will receive that) end) ``` ## Signal Quality You can read the player's signal quality and apply extra degradation from another client resource. ```lua theme={null} -- In your custom script exports['sonoranradio']:getSignalQuality() -- raw infrastructure quality from 0.0 to 1.0 exports['sonoranradio']:getEffectiveSignalQuality() -- final quality after zones + extra degradation exports['sonoranradio']:getExtraSignalDegradation() -- total extra degradation from third-party modifiers ``` ### Forcing Extra Degradation Use keyed modifiers so multiple resources can affect signal quality without overwriting each other. ```lua theme={null} -- Add 25% extra degradation from your resource exports['sonoranradio']:setExtraSignalDegradation('my-resource', 0.25) -- Reduce degradation by 10% for a temporary buff or item exports['sonoranradio']:setExtraSignalDegradation('signal-booster', -0.10) -- Clear your modifier when it is no longer needed exports['sonoranradio']:clearExtraSignalDegradation('my-resource') exports['sonoranradio']:clearExtraSignalDegradation('signal-booster') ``` The `amount` passed to `setExtraSignalDegradation(key, amount)` is clamped between `-1.0` and `1.0`. * Positive values add more degradation. * Negative values reduce degradation. * Passing `0` or `nil` removes that key's modifier. ### Getting Signal Details If you need the full breakdown of what the player is experiencing, use: ```lua theme={null} local signal = exports['sonoranradio']:getSignalQualityDetails() print(signal.baseQuality) -- tower/rack/repeater quality before degradation print(signal.zoneDegradation) -- active tunnel/polyzone degradation print(signal.extraDegradation) -- third-party modifier total print(signal.totalDegradation) -- final degradation after combining both print(signal.effectiveQuality) -- final signal quality sent to the radio UI print(signal.zoneName) -- current degradation zone name, or nil ``` ## Panic Button You can listen to or active the panic button with an API event ```lua theme={null} -- Activate the panic button TriggerEvent('SonoranRadio::API:PanicButton') -- Listen to the panic button AddEventHandler('SonoranRadio::API:PanicButton', function(status) print(status) -- Boolean (whether the panic button is active or not) -- your code here end) ``` ## Set Display Name Programmatically update a user's radio display name (Client Side) > [!WARNING] > > The user must have permission to set their own display name ```lua theme={null} -- Set your current display name in the radio exports['sonoranradio']:handleNameChange('my new name') ``` #### Guest Display Names To customize guest display names without giving permission to change their own name, you can update the `Config.getGuestDisplayName` ```lua theme={null} -- My Custom Guest Display Name Generator -- Param `source`: The server id of the user logging in as guest -- Returns string or nil (to use default) Config.getGuestDisplayName = function(source) return ('I am logging in as a guest %s %s'):format(GetDisplayName(source), makeid()) end ``` ## Tower Destruction Get notified when a radio tower is destroyed or repaired ```lua theme={null} -- Event sent from Sonoran Radio (server-side) TriggerEvent('SonoranRadio::API:TowerDishDestroyed', towerId, tower.DishStatus) -- Event listener in a custom script AddEventHandler('SonoranRadio::API:TowerDishDestroyed', function(playerSource, towerId, dishStatus) print(playerSource) -- The player ID that destroyed the dish print(towerId) -- Numerical ID of the tower print(dishStatus) -- Array of statuses {'alive', 'alive', 'dead', 'alive'} end) -- Event sent from Sonoran Radio (server-side) TriggerEvent('SonoranRadio::API:TowerRepaired', towerId, tower.DishStatus) -- Event listener in a custom script AddEventHandler('SonoranRadio::API:TowerRepaired', function(playerSource, towerId, dishStatus) print(playerSource) -- The player ID that repaired the tower print(towerId) -- Numerical ID of the tower print(dishStatus) -- Array of statuses {'alive', 'alive', 'alive', 'alive'} -- (NOTE: will always contain all 'alive') end) ``` ## Developer Events This document lists the server-side events emitted for developer integrations. Payload sketches use Lua table syntax. Unless noted, timestamps are Unix seconds from `os.time()`. All payloads are sanitized to contain only primitive values and shallow tables. ### Common Payload Shapes * **Player Payload** ``` { serverId = number, name = string?, identifiers = { string, ... }?, position = { x = number, y = number, z = number }?, heading = number? } ``` Returned by `DeveloperEvents.playerContext`. `position`/`heading` are included when the underlying call requested coordinates. * **Dispatcher Payload** ``` { serverId = number, name = string?, phoneNumber = string?, identifiers = { string, ... }? } ``` Specialised player payload that also embeds the dispatcher’s lb-phone number when available. * **Callee Payload** ``` { serverId = number?, name = string?, phoneNumber = string?, identifier = string? } ``` Populated only when the lb-phone API exposes the remote party’s information. * **Static Jammer Payload** ``` { id = string?, name = string?, note = string?, type = 'static' | 'handheld' | string, range = number?, strength = number?, active = boolean, temporary = boolean?, owner = number?, position = { x = number?, y = number?, z = number?, heading = number?, exact = boolean? }? } ``` * **Handheld Jammer Payload** ``` { id = string?, owner = number?, name = string?, range = number?, strength = number?, active = boolean } ``` ### Dispatcher Redial Lifecycle * `SonoranRadio::Developer:DispatcherRedial:Requested` * Fired when a dispatcher starts a redial request. * Payload: `dispatcher`, `context` * `SonoranRadio::Developer:DispatcherRedial:Failed` * Emitted when a redial cannot be created (missing phone number, lb-phone offline, etc). * Payload: `dispatcher`, `context`, `reason`, `message` * `SonoranRadio::Developer:DispatcherRedial:Started` * Indicates the lb-phone call was created successfully. * Payload: `dispatcher`, `context`, `callId`, `startedAt` * `SonoranRadio::Developer:DispatcherRedial:Answered` * Emitted when the callee picks up. * Payload: `dispatcher`, `context`, `callId`, `callee?`, `answeredAt`, `call?` * `SonoranRadio::Developer:DispatcherRedial:CancelRequested` * Fired as soon as the dispatcher manually cancels. * Payload: `dispatcher`, `context`, `callId`, `callee?`, `requestedAt` * `SonoranRadio::Developer:DispatcherRedial:Ended` * Always emitted when the call fully terminates (hang-up, timeout, cancellation). * Payload: `dispatcher`, `context`, `callId`, `callee?`, `reason`, `startedAt`, `answeredAt?`, `endedAt`, `call?` ### Panic Button * `SonoranRadio::Developer:Panic:Activated` * Fired when a user enables panic. * Payload: * `player` – player payload including coordinates/heading when available * `active` – always `true` * `updatedAt` – timestamp the server acknowledged the change * `metadata?` – sanitized metadata sent with the panic request (currently nil) * `SonoranRadio::Developer:Panic:Cleared` * Emitted when panic is cleared by the user or implicitly (logout/cleanup). * Payload: * `player` * `active` – always `false` * `updatedAt` * `metadata?` * `reason?` – `'playerDropped'` when cleared because the player disconnected ### Radio State * `SonoranRadio::Developer:RadioState:Updated` * Fired whenever a client publishes a new radio state snapshot. * Payload: * `player` * `state` – sanitized copy of the radio state table supplied by the client ### Jammer Lifecycle * `SonoranRadio::Developer:Jammer:Spawned` * Static jammer placed via the build tools. * Payload: `player`, `jammer` (static payload), `metadata?` * `SonoranRadio::Developer:Jammer:Moved` * Static/dynamic jammer repositioned. * Payload: `player`, `jammer`, `from?` (position), `to?` (position), `dynamic` (boolean) * `SonoranRadio::Developer:Jammer:Deleted` * Jammer removed from the world. * Payload: `player`, `jammer`, `dynamic` * `SonoranRadio::Developer:Jammer:PowerToggled` * Jammer power state flipped (static or dynamic). * Payload: `player`, `jammer`, `dynamic` * `SonoranRadio::Developer:Jammer:HandheldActivated` * Handheld jammer equipped by a player. * Payload: `player`, `jammer` (handheld payload), `options?` * `SonoranRadio::Developer:Jammer:HandheldDeactivated` * Handheld jammer unequipped or forcibly cleared. * Payload: `player`, `jammer` (handheld payload), `reason?` (`'playerDropped'` when cleanup triggered) * `SonoranRadio::Developer:Jammer:HandheldPowerToggled` * Handheld jammer power state toggled while equipped. * Payload: `player`, `jammer` * `SonoranRadio::Developer:Jammer:HandheldPlaced` * Equipped handheld placed on the ground as a temporary static jammer. * Payload: `player`, `handheld` (handheld payload prior to placement), `groundJammer` (static payload) * `SonoranRadio::Developer:Jammer:HandheldDropped` * Handheld converted to a ground jammer via inventory drop recovery. * Payload: `player`, `handheld?`, `groundJammer`, `dropId?` # Stream Deck API Source: https://docs.sonoransoftware.com/radio/developer-documentation/developer-documentation/stream-deck-api Integrate the Sonoran Radio Stream Deck plugin with desktop or FiveM. Sonoran Radio includes a Stream Deck plugin that can control the desktop application directly or control the FiveM radio through the desktop app. This document covers the public integration contract for: * the built-in **desktop bridge** exposed by the Electron app * the built-in **FiveM bridge** exposed by the Electron app when Stream Deck actions are set to `FiveM` ## Overview Each Stream Deck action is configured with a target: * `Desktop` sends commands directly to Sonoran Radio Desktop * `FiveM` sends commands to Sonoran Radio Desktop, which forwards them to a FiveM client over localhost The plugin uses the same command and snapshot schema for both targets. The difference is transport: * `Desktop` uses local HTTP requests to Sonoran Radio Desktop * `FiveM` uses local HTTP requests to Sonoran Radio Desktop, and Sonoran Radio Desktop forwards commands and receives snapshots over a local WebSocket connected by your FiveM client script ## Recommended FiveM Architecture When the Stream Deck action target is set to `FiveM`, the recommended flow is: ``` Stream Deck Plugin -> Sonoran Radio Desktop HTTP bridge -> local FiveM WebSocket client -> FiveM client script -> Sonoran Radio iframe/NUI Sonoran Radio iframe/NUI -> FiveM client script -> local FiveM WebSocket client -> Sonoran Radio Desktop snapshot cache -> Stream Deck Plugin label/status polling ``` This means the Stream Deck plugin does not need to talk to the FiveM NUI directly anymore. As long as: 1. Sonoran Radio Desktop is running 2. the Stream Deck action is set to `FiveM` 3. your FiveM client script is connected to the desktop WebSocket 4. your FiveM client script forwards commands to the iframe and forwards snapshots back to desktop the plugin will behave the same as normal. ## Desktop Bridge When Sonoran Radio Desktop is running, it starts a local HTTP bridge on: ``` http://127.0.0.1:39112 ``` ### Health Check `GET /streamdeck/health` Response: ```json theme={null} { "ok": true, "appReady": true, "snapshotReady": true, "attempts": 1, "lastError": null } ``` ### Get Current Snapshot `GET /streamdeck/labels` Response: ```json theme={null} { "ok": true, "appReady": true, "channels": [ { "id": 101, "label": "Law 1", "groupId": 10, "groupName": "Patrol" } ], "state": { "connected": true, "aiEnabled": false, "micOpen": false, "primaryChIds": [101], "scannedChIds": [102, 103], "sfxVolume": 25, "agentGain": 100 } } ``` ### Send a Command `POST /streamdeck/command` Headers: ```http theme={null} Content-Type: application/json ``` Example request: ```json theme={null} { "command": "transmit.ptt", "phase": "down" } ``` Example response: ```json theme={null} { "ok": true, "command": "transmit.ptt" } ``` If the command is invalid, the radio is not ready, or the payload is malformed, the bridge returns a non-200 response. ## FiveM Desktop Bridge When the Stream Deck action target is set to `FiveM`, the plugin first talks to the desktop app at: ``` http://127.0.0.1:39112 ``` The desktop app then talks to your FiveM client over: ``` ws://127.0.0.1:39112/streamdeck/fivem/socket ``` ### Health Check `GET /streamdeck/fivem/health` Response: ```json theme={null} { "ok": true, "socketPath": "/streamdeck/fivem/socket", "websocketClients": 1, "snapshotReady": true, "attempts": 1, "lastError": null } ``` ### Get Current FiveM Snapshot `GET /streamdeck/fivem/labels` Response: ```json theme={null} { "ok": true, "websocketClients": 1, "snapshotReady": true, "channels": [ { "id": 101, "label": "Law 1", "groupId": 10, "groupName": "Patrol" } ], "state": { "connected": true, "aiEnabled": false, "micOpen": false, "primaryChIds": [101], "scannedChIds": [102, 103], "sfxVolume": 25, "agentGain": 100 } } ``` ### Forward a Command to FiveM `POST /streamdeck/fivem/command` Headers: ```http theme={null} Content-Type: application/json ``` Request: ```json theme={null} { "command": "transmit.ptt", "phase": "down" } ``` Response: ```json theme={null} { "ok": true, "command": "transmit.ptt", "delivered": 1 } ``` If no FiveM socket clients are connected, the desktop app returns a non-200 response. ## WebSocket Message Contract Your FiveM client should connect to: ``` ws://127.0.0.1:39112/streamdeck/fivem/socket ``` ### Messages Sent From Desktop to FiveM #### `hello` Sent immediately after the socket connects. ```json theme={null} { "type": "hello", "ok": true, "snapshot": { "channels": [], "state": { "connected": false, "aiEnabled": false, "micOpen": false, "primaryChIds": [], "scannedChIds": [], "sfxVolume": 0, "agentGain": 0 } } } ``` #### `streamdeck_command` Sent when a Stream Deck action is pressed/rotated while targeting `FiveM`. ```json theme={null} { "type": "streamdeck_command", "payload": { "command": "transmit.toggleChannels", "channelIds": [101, 102] } } ``` #### `streamdeck_snapshot` Sent when the FiveM client explicitly requests the latest cached snapshot. ```json theme={null} { "type": "streamdeck_snapshot", "snapshot": { "channels": [], "state": { "connected": false, "aiEnabled": false, "micOpen": false, "primaryChIds": [], "scannedChIds": [], "sfxVolume": 0, "agentGain": 0 } } } ``` ### Messages Sent From FiveM to Desktop #### `streamdeck_snapshot` Send this whenever the iframe publishes a new radio snapshot. ```json theme={null} { "type": "streamdeck_snapshot", "snapshot": { "channels": [ { "id": 101, "label": "Law 1", "groupId": 10, "groupName": "Patrol" } ], "state": { "connected": true, "aiEnabled": false, "micOpen": false, "primaryChIds": [101], "scannedChIds": [102, 103], "sfxVolume": 25, "agentGain": 100 } } } ``` #### `streamdeck_snapshot_request` Optional. Ask the desktop app to send back its current cached snapshot. ```json theme={null} { "type": "streamdeck_snapshot_request" } ``` ### Optional Acknowledgements The desktop app may reply with: * `streamdeck_snapshot_ack` * `streamdeck_command_ack` These are informational and do not need special handling. ## Command Payload All commands use the same JSON shape: ```json theme={null} { "command": "string", "phase": "down", "channelId": 101, "channelIds": [101, 102] } ``` Fields: | Field | Type | Required | Notes | | - | - | - | - | | `command` | string | Yes | One of the supported command IDs listed below | | `phase` | `"down"` or `"up"` | No | Defaults to `"down"` if omitted | | `channelId` | number | Conditional | Used by single-channel commands | | `channelIds` | number\[] | Conditional | Used by multi-channel commands | ### Phase Rules Most commands execute on `phase: "down"`. The following hold-style commands use both phases: * `transmit.ptt` * `transmit.tempChannel` For those commands: * send `phase: "down"` when the button is pressed * send `phase: "up"` when the button is released ### Supported Commands | Command | Extra Fields | Description | | - | - | - | | `group.next` | None | Move to the next channel group | | `group.previous` | None | Move to the previous channel group | | `channel.next` | None | Move to the next channel within the current group | | `channel.previous` | None | Move to the previous channel within the current group | | `transmit.toggleChannels` | `channelIds` | Toggle one or more transmit channels | | `transmit.tempChannel` | `channelId`, `phase` | Temporarily transmit on a single channel while held | | `scan.toggleChannels` | `channelIds` | Toggle one or more scan channels | | `toggle.ai` | None | Toggle AI on or off | | `transmit.ptt` | `phase` | Push-to-talk | | `toggle.toneBoard` | None | Open or close the tone board | | `audio.volumeUp` | None | Increase master volume | | `audio.volumeDown` | None | Decrease master volume | | `audio.volumeMute` | None | Toggle master mute | | `audio.sfxUp` | None | Increase SFX volume | | `audio.sfxDown` | None | Decrease SFX volume | | `audio.sfxMute` | None | Toggle SFX mute | | `audio.aiUp` | None | Increase AI volume | | `audio.aiDown` | None | Decrease AI volume | | `audio.aiMute` | None | Toggle AI mute | | `audio.currentChannelsUp` | None | Increase current primary channel volume | | `audio.currentChannelsDown` | None | Decrease current primary channel volume | | `audio.currentChannelsMute` | None | Toggle mute for current primary channels | | `desktop.connectedUsers` | None | Open the connected users window | | `desktop.focusRadio` | None | Focus the Sonoran Radio desktop window | | `desktop.toggleRadio` | None | Show or hide the Sonoran Radio desktop window | ## Snapshot Schema The plugin reads a snapshot to populate action configuration, channel selectors, and active button state. ```json theme={null} { "channels": [ { "id": 101, "label": "Law 1", "groupId": 10, "groupName": "Patrol" } ], "state": { "connected": true, "aiEnabled": false, "micOpen": false, "primaryChIds": [101], "scannedChIds": [102, 103], "sfxVolume": 25, "agentGain": 100 } } ``` ### Channels | Field | Type | Description | | - | - | - | | `id` | number | Channel/profile ID | | `label` | string | Display name shown in the plugin | | `groupId` | number | Parent group ID | | `groupName` | string | Parent group display name | ### State | Field | Type | Description | | - | - | - | | `connected` | boolean | Whether the radio is currently connected | | `aiEnabled` | boolean | Whether AI is enabled | | `micOpen` | boolean | Whether the microphone/PTT is currently active | | `primaryChIds` | number\[] | Current transmit channels | | `scannedChIds` | number\[] | Current scan channels | | `sfxVolume` | number | Current SFX volume | | `agentGain` | number | Current AI volume | ## FiveM Iframe Message Contract Inside the FiveM web view, Sonoran Radio uses iframe messages for Stream Deck integration. ### Messages Sent To Sonoran Radio #### `streamdeck_command` Send a standard command payload: ```json theme={null} { "type": "streamdeck_command", "payload": { "command": "transmit.toggleChannels", "channelIds": [101, 102] } } ``` #### `streamdeck_snapshot_request` Request that the iframe publish its latest state: ```json theme={null} { "type": "streamdeck_snapshot_request" } ``` ### Messages Sent From Sonoran Radio #### `streamdeck_snapshot` The iframe emits this message whenever radio/channel state changes and also in response to `streamdeck_snapshot_request`. ```json theme={null} { "type": "streamdeck_snapshot", "snapshot": { "channels": [ { "id": 101, "label": "Law 1", "groupId": 10, "groupName": "Patrol" } ], "state": { "connected": true, "aiEnabled": false, "micOpen": false, "primaryChIds": [101], "scannedChIds": [102, 103], "sfxVolume": 25, "agentGain": 100 } } } ``` ## FiveM JavaScript Example The following browser-side example shows the minimum bridge needed in FiveM to make Stream Deck `FiveM` mode work through Sonoran Radio Desktop. This example assumes: * your FiveM client script can open a browser WebSocket to `ws://127.0.0.1:39112/streamdeck/fivem/socket` * your client script can forward messages to the Sonoran Radio iframe/NUI * your iframe/NUI can send `streamdeck_snapshot` messages back to this script ```js theme={null} const DESKTOP_SOCKET_URL = 'ws://127.0.0.1:39112/streamdeck/fivem/socket'; let desktopSocket = null; let reconnectTimer = null; let latestSnapshot = { channels: [], state: { connected: false, aiEnabled: false, micOpen: false, primaryChIds: [], scannedChIds: [], sfxVolume: 0, agentGain: 0, }, }; function postToRadioIframe(message) { window.postMessage(message, '*'); } function sendToDesktop(message) { if (!desktopSocket || desktopSocket.readyState !== WebSocket.OPEN) return; desktopSocket.send(JSON.stringify(message)); } function scheduleReconnect() { if (reconnectTimer) return; reconnectTimer = window.setTimeout(() => { reconnectTimer = null; connectDesktopSocket(); }, 3000); } function handleDesktopMessage(message) { if (!message || typeof message.type !== 'string') return; if (message.type === 'hello' && message.snapshot) { latestSnapshot = message.snapshot; return; } if (message.type === 'streamdeck_command' && message.payload) { postToRadioIframe({ type: 'streamdeck_command', payload: message.payload, }); return; } if (message.type === 'streamdeck_snapshot') { latestSnapshot = message.snapshot || latestSnapshot; } } function connectDesktopSocket() { if (desktopSocket && (desktopSocket.readyState === WebSocket.OPEN || desktopSocket.readyState === WebSocket.CONNECTING)) { return; } desktopSocket = new WebSocket(DESKTOP_SOCKET_URL); desktopSocket.addEventListener('open', () => { sendToDesktop({ type: 'streamdeck_snapshot', snapshot: latestSnapshot, }); }); desktopSocket.addEventListener('message', (event) => { try { handleDesktopMessage(JSON.parse(event.data)); } catch (error) { console.error('Failed to parse desktop Stream Deck message', error); } }); desktopSocket.addEventListener('close', scheduleReconnect); desktopSocket.addEventListener('error', scheduleReconnect); } window.addEventListener('message', (event) => { const data = event.data; if (!data || typeof data.type !== 'string') return; if (data.type === 'streamdeck_snapshot' && data.snapshot) { latestSnapshot = data.snapshot; sendToDesktop({ type: 'streamdeck_snapshot', snapshot: data.snapshot, }); return; } if (data.type === 'streamdeck_snapshot_request') { postToRadioIframe({ type: 'streamdeck_snapshot_request' }); } }); connectDesktopSocket(); ``` ## Notes * Use channel IDs exactly as returned by the snapshot. * `transmit.tempChannel` and `transmit.ptt` should send both press and release phases. * Multi-channel commands should send `channelIds` as an array of numbers. * Your FiveM client does not need to translate command names or payload fields. Forward them exactly as documented. * The desktop app caches the most recent FiveM snapshot, so send `streamdeck_snapshot` whenever radio state changes inside the iframe. # Download the App Source: https://docs.sonoransoftware.com/radio/download-the-app Download the Sonoran Radio app for Windows, macOS, Linux, iOS, and Android! | Website | [Visit](https://sonoranradio.com) | | - | - | | Windows Desktop | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=radio\&platform=windows) | | macOS Desktop | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=radio\&platform=macos) | | Linux (AppImage) | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=radio\&platform=linux) | | iOS App Store | [Purchase](https://apps.apple.com/us/app/sonoran-radio/id6502618935) | | Google Play Store | [Purchase](https://play.google.com/store/apps/details?id=com.sonoranradio) | These desktop downloads follow the latest available release for each platform. ### Linux Download the AppImage, mark it executable in your file manager, and open it to start the app. [Verify the Linux download signature](https://sonoran-software.github.io/Sonoran-Desktop-Apps/signing.html). # Arma 3 Integration Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3 Connect Arma 3 to the Sonoran Radio desktop overlay with physical towers, inventory radios, and optional AI hearing. The Sonoran Radio Arma 3 integration connects an Arma mission to the Sonoran Radio desktop overlay. Signal towers affect radio quality, inventory items can select team-specific radio frames, and an optional setting lets nearby AI detect players while they transmit. CBA\_A3 is required. TFAR and ACRE are not required. > [!NOTE] > > Sonoran Radio does not add an in-game radio menu or a `Y` keybind. Players use the **Sonoran Radio desktop app** and its **Overlay** tab beside **Dispatch** for radio controls. ## Features * Signal towers placed in Eden or Zeus * Three stock Arma tower models and invisible signal-only repeaters * Configurable range, dish capacity, power, destruction, with terrain attenuation * Automatic signal degradation in the desktop overlay * BLUFOR and OPFOR inventory radio items * Custom Arma item-to-desktop-frame mappings * Optional AI hearing while transmitting * SQF APIs for scripted missions and custom inventory systems For shared controls and hotkeys, see [Radio Overlay](/radio/tutorials/usage/desktop-overlay). ## Community-wide controls Bridge use, signal integration, and AI hearing are configured only in **Community Customizations → Game Integrations → ARMA 3**. They default to enabled. Mod version 0.3.3 or newer removes the old CBA settings and in-game overrides. ## Guides > [card] [Install and Connect](/radio/game-integrations/arma-3/install-and-connect) > [card] [Signal Towers and Repeaters](/radio/game-integrations/arma-3/signal-towers-and-repeaters) > [card] [Radio Items and Team Frames](/radio/game-integrations/arma-3/radio-items-and-team-frames) > [card] [AI Hearing](/radio/game-integrations/arma-3/ai-hearing) > [card] [Mission Maker API](/radio/game-integrations/arma-3/mission-maker-api) > [card] [Troubleshooting](/radio/game-integrations/arma-3/troubleshooting) Use [Dispatch AI for Arma 3](/radio/game-integrations/arma-3/arma-3) to change radio channels, manage scanned channels, set timers, and work with CAD from the desktop overlay. # AI Hearing Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/ai-hearing Let nearby Arma 3 AI detect a player's position while they transmit through Sonoran Radio. AI hearing is an optional community setting that gives away a transmitting player's position to nearby AI. It reproduces the core TFAR voice-exposure behavior without installing or calling TFAR. The feature is enabled by default for ARMA communities. ## Enable AI hearing 1. As a community administrator, open **Community Customizations → Game Integrations → ARMA 3** in Sonoran Radio. 2. Leave **Enable ARMA 3 bridge** enabled. 3. Set **AI can hear radio transmissions** as desired. The setting applies to the entire community and reaches active radio clients within 30 seconds. There is no per-player or CBA override in mod version 0.3.3 or newer. The hearing radius is fixed at 20 meters. Tower configuration remains separate. Disabling AI hearing does not disable automatic in-game direct-talk synchronization. ## Behavior While the player holds Sonoran Radio's desktop push-to-talk control: * The desktop overlay publishes a local transmitting heartbeat. * The Arma client asks the server to expose that player to nearby living AI. * AI closer to the speaker receive stronger knowledge of the player's position. * Each AI is updated at most once every 20 seconds. * AI that already have substantial knowledge of the player are not repeatedly updated by the radio system. The desktop app sends the PTT heartbeat once per second. If the heartbeat stops, the bridge treats it as stale after three seconds and marks the player as no longer transmitting. Closing the overlay therefore cannot leave the player permanently exposed. ## Requirements AI hearing works only when: * community bridge use and AI hearing are enabled; * the player is alive and has the Arma mod loaded; * the Sonoran Radio desktop overlay is open; * the local bridge is running; and * a living non-player AI unit is within the 20-meter hearing radius. Arma's normal proximity voice or another radio mod does not trigger this feature. It follows Sonoran Radio's own desktop transmission state. ## Automatic direct-talk synchronization This is separate from AI hearing. While the desktop overlay transmits, the bridge can hold Arma's **Push to Talk (Direct)** action so nearby players also hear the speaker through Arma voice. The mod automatically detects a single keyboard binding for that action. Bind it to a plain keyboard key, not a mouse/controller button or a modifier-key combination, and use a different key for Sonoran Radio push-to-talk. No separate bridge launcher is normally needed. Arma must be focused, mission updates must be arriving, and Arma voice/microphone settings must be working. The held key releases when transmission stops, the game loses focus, or updates expire. Run Arma and the companion at the same Windows privilege level. Test with another player; nearby listeners may hear both proximity and radio audio. Turning off community AI hearing only stops AI exposure; it does not disable this direct-talk behavior. # Dispatch AI for Arma 3 Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/arma-3 Use Dispatch AI radio commands and timers through the desktop overlay while playing Arma 3. Dispatch AI's shared radio commands work while playing Arma 3. Change your primary channel, manage scanned channels, ask which channels you are on, and set timers through the desktop overlay. ## Setup 1. Complete the [common Dispatch AI setup](/radio/tutorials/usage/dispatch-ai#common-setup), including the CAD link required by the current setup. 2. Sign in to the Sonoran Radio desktop app and join your community's Radio server. 3. [Open the desktop overlay](/radio/tutorials/usage/desktop-overlay#open-the-overlay). 4. Hold push-to-talk and say, “Dispatch, switch me to Command.” Use a channel name from your community. You can also set **AI Toggle** under **Settings** > **Hotkeys** to trigger the AI manually. | Task | Example | | - | - | | Change channel | “Dispatch, switch me to Command.” | | Scan another channel | “Dispatch, add Support to my scanned channels.” | | Set a timer | “Dispatch, set a timer for five minutes.” | [CAD commands](/radio/tutorials/usage/dispatch-ai#sonoran-cad-commands), including current-call readbacks, are available when you use the linked CAD community. For Arma signal towers, inventory radios, and nearby AI reacting to transmissions, see the [Arma 3 integration](/radio/game-integrations/arma-3). [AI Hearing](/radio/game-integrations/arma-3/ai-hearing) controls how Arma AI units react to radio traffic. # Install and Connect Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/install-and-connect Install the Sonoran Radio Arma 3 mod on a dedicated server and each player's Windows client. ## Requirements * Arma 3 version 2.12 or newer * [CBA\_A3](https://steamcommunity.com/sharedfiles/filedetails/?id=450814997) * The Sonoran Radio Arma 3 mod on the server and every player client * The Sonoran Radio desktop app for each player * Windows on player computers; the client bridge uses the packaged `sonoran_radio_x64.dll` and PowerShell TFAR and ACRE are not required. If your community does not want a second radio system or duplicate push-to-talk behavior, do not load those mods alongside Sonoran Radio. ## Install the mod ### Steam Workshop Subscribe to the [Sonoran Radio Arma 3 mod](https://steamcommunity.com/sharedfiles/filedetails/?id=3798834148) and CBA\_A3. Add both mods to the dedicated server's mod list and to the preset distributed to players. Load CBA\_A3 before Sonoran Radio. ### Dedicated server setup 1. Install both Workshop mods on the server and keep them updated. 2. Add both to the server's normal `-mod` startup parameter, with CBA first. For example, if your mod folders use these names: ```text theme={null} "-mod=@CBA_A3;@SonoranRadio" ``` Use your actual folder names or paths. Sonoran Radio is required on clients too; do not load it only through `-serverMod`. 3. Copy the `.bikey` files from both mods' `keys` folders into the server's `keys` folder. When Sonoran Radio updates, copy the key supplied with that release. 4. Restart the server and distribute a preset containing both mods to your players. Keep BattlEye and signature verification enabled. A kick needs its original error investigated; disabling protection is not an installation step. ## Community setup A community administrator selects **ARMA 3** under **Community Customizations → Game Integrations**. The **ARMA 3 Installation** expansion contains a four-step walkthrough above the three community settings. | Setting | Default | Effect | | - | - | - | | Enable ARMA 3 bridge | On | Allows Radio to use the local bridge and the desktop app to attempt automatic startup of the installed bridge. | | ARMA 3 signal integration | On | Applies tower quality to radio audio. Turn it off to stop applying ARMA signal degradation while keeping other bridge features available. | | AI can hear radio transmissions | On | Allows nearby AI to detect players transmitting through the desktop overlay. | These settings are saved for the **whole community**, not per user. Only community administrators can change them. Active radio clients refresh them within 30 seconds. Disabling bridge use also stops Radio's signal and AI-hearing integration; the other two saved values are retained. Mod version **0.3.3 or newer** has no Sonoran CBA addon-settings menu or legacy in-game overrides. Tower modules remain configurable in Eden and Zeus. Use an updated desktop app and backend with community-settings support alongside the updated mod. The bridge process may still exist because the mod starts its local transport. Disabling community bridge use stops Radio from using it; it does not terminate that process. No Radio API key belongs in the mod. ## Connect the desktop overlay 1. Open the Sonoran Radio desktop app. 2. Select the same Radio community used by the other players. 3. Join the desired channel or scan group. 4. Select the **Overlay** tab at the top, alongside **Dispatch**. 5. Start or join the Arma mission with the integration mod enabled. The Arma mod starts its localhost companion automatically. No Radio API key is stored in the mod, and players do not need to start a separate bridge window. The tab is disabled on the website; hover over it for the desktop-app requirement. It is hidden in the mobile app. ![Sonoran Radio top navigation showing the Overlay tab beside Dispatch](https://docs-assets.sonoransoftware.com/sha256/67/67c68bf7594dd8339210f64f06560a3f014b21f23ed7ed155ac3b2fb9f9de0bd.png) *Open the overlay from the top Overlay tab beside Dispatch in the desktop app. The tab is disabled on the website.* For Arma, use **Fullscreen Window** display mode. Exclusive fullscreen can hide desktop overlays. Enable **No Pause** in the Arma launcher (or use `-noPause`) if the game pauses when you focus the overlay. See [Desktop Overlay](/radio/tutorials/usage/desktop-overlay) for moving, resizing, and hotkeys. The integration continues to use Sonoran Radio's normal desktop push-to-talk controls. Pressing `Y` in Arma will not open a Sonoran menu. ## Verify the local bridge After the client enters a mission, open the following address on that same computer: ``` http://127.0.0.1:39114/health ``` A working bridge returns JSON containing `"ok": true` and `"integration": "arma3"`. The bridge only listens on the local computer and does not expose Radio credentials. Continue with [Signal Towers and Repeaters](/radio/game-integrations/arma-3/signal-towers-and-repeaters) to add coverage to a mission. # Mission Maker API Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/mission-maker-api Script Sonoran Radio towers, active inventory radios, and signal events in an Arma 3 mission. The editor module is recommended for most missions. The following SQF functions are available when a mission needs dynamic towers or a custom inventory integration. > [!NOTE] > > Tower registration and state functions must run on the server. Positions use Arma ASL coordinates. ## Register a coordinate-only tower ```sqf theme={null} [ "altis_north_relay", // Unique tower ID [14567, 16789, 185], // Position ASL 8000, // Range in meters 4, // Total dishes objNull, // Physical object 4, // Active dishes true // Powered ] call sonoran_radio_fnc_registerTower; ``` Registering the same ID again replaces the existing tower record. ## Register a physical object Give the editor object a variable name such as `radioTowerWest`, then run this on the server: ```sqf theme={null} [ "altis_west_relay", [], 6000, 4, radioTowerWest, 4, true ] call sonoran_radio_fnc_registerTower; ``` The mod derives the antenna location from the top of the object's bounding box. Killing or deleting the object turns off the tower and sets its active dishes to zero. ## Change tower state ```sqf theme={null} // Power off while preserving the current active-dish count. ["altis_north_relay", false, -1] call sonoran_radio_fnc_setTowerState; // Restore power with two active dishes. ["altis_north_relay", true, 2] call sonoran_radio_fnc_setTowerState; ``` ## Unregister a tower ```sqf theme={null} ["altis_north_relay"] call sonoran_radio_fnc_unregisterTower; ``` ## Read local signal quality Run on a player client: ```sqf theme={null} private _quality = call sonoran_radio_fnc_getSignalQuality; private _towerId = missionNamespace getVariable ["sonoran_radio_bestTowerId", ""]; ``` Quality is normalized from `0` to `1`. Subscribe to signal changes through CBA: ```sqf theme={null} ["sonoran_radio_signalQualityChanged", { params ["_quality", "_previousQuality", "_towerId"]; systemChat format ["Signal %1 from %2", _quality, _towerId]; }] call CBA_fnc_addEventHandler; ``` ## Override the active radio item For a nonstandard client-side inventory system: ```sqf theme={null} ["my_mod_field_radio"] call sonoran_radio_fnc_setActiveRadioItem; ``` Return to automatic `ItemRadio` detection with: ```sqf theme={null} [""] call sonoran_radio_fnc_setActiveRadioItem; ``` ## Enable the Arma Debug Console The console is already available while previewing from Eden. To enable it elsewhere, use Eden's **Attributes** > **General** > **States** > **Debug Console** option or add one of the following values to the mission's `description.ext`: ```cpp theme={null} // Host or logged-in server admin only. enableDebugConsole = 1; ``` ```cpp theme={null} // Everyone. Use only in a private development mission. enableDebugConsole = 2; ``` During the mission, press `Esc` and select **Debug Console**. Use **Server Exec** for tower registration/state calls and **Local Exec** for player inventory or local signal calls. > [!WARNING] > > Do not publish a public mission with `enableDebugConsole = 2`. It allows every player to execute arbitrary SQF. See Bohemia Interactive's [Arma 3 Debug Console documentation](https://community.bohemia.net/wiki/Arma_3:_Debug_Console) for the complete access rules. # Radio Items and Team Frames Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/radio-items-and-team-frames Use Arma 3 inventory radios to select BLUFOR, OPFOR, or custom Sonoran Radio desktop frames. Equip a radio item to use the desktop frame assigned to it by your community. ## Included radio items | Display name | Item class | Default frame | | - | - | - | | Sonoran Radio (BLUFOR) | `SonoranRadio_Item_BLUFOR` | ARMA 3 BLUFOR | | Sonoran Radio (OPFOR) | `SonoranRadio_Item_OPFOR` | ARMA 3 OPFOR | ![Sonoran Radio desktop radio frame displayed over Arma 3 gameplay](https://docs-assets.sonoransoftware.com/sha256/64/64f33e38390cf3db08b621a4bb369f2536200e4ab67f81d5d837a78a0679883e.jpg) *The desktop radio overlay remains visible and usable while playing Arma 3.* New Radio communities registered with **ARMA 3** selected include the two example desktop frames and mappings. Existing communities can map these classes to an existing frame or create new frames. On both default ARMA frames, the lower-left button beneath the screen returns to the Radio portal. The upper-left and upper-right buttons change channels, and the center button reconnects the radio. Older default frames with unchanged button layouts receive the portal button when the overlay is reopened. For a custom frame, add **Back to Portal** in **Customize > Overlay > Manual > Add Button**, position it over the intended button, and select **Save changes**. The overlay's **Panic** control can also update your CAD unit. Configure the CAD API link in **Customize > Dispatch AI** and follow [Sonoran CAD Integration](/radio/tutorials/integrations/sonoran-cad-integration#desktop-overlay-panic). > [accordion] Select a frame manually > > 1. Open **Settings** > **Audio** on the desktop overlay. > 2. Open **Radio Frame** and select a community frame. > > ![Desktop overlay Audio settings with the Radio Frame dropdown open](https://docs-assets.sonoransoftware.com/sha256/5e/5ee3b2d3194df27d40018adf3c4fe1e15d5f7951d304984fbd3b97f224210839.jpg) > > *Choose a frame in the desktop overlay settings.* > > Equipping a mapped Arma radio item selects its assigned frame automatically. ## Give a player a radio 1. Open the player loadout in Eden or Zeus Arsenal. 2. Search for **Sonoran Radio (BLUFOR)** or **Sonoran Radio (OPFOR)**. 3. Equip the intended radio item. > [accordion] Give a radio using mission scripts > > In a unit's Eden initialization field, use Arma's [`linkItem`](https://community.bohemia.net/wiki/linkItem) command: > > ```sqf theme={null} > this linkItem "SonoranRadio_Item_BLUFOR"; > ``` > > To give yourself the BLUFOR item from the Arma Debug Console, select **Local Exec** and run: > > ```sqf theme={null} > player linkItem "SonoranRadio_Item_BLUFOR"; > ``` > > For OPFOR, replace the class name with `SonoranRadio_Item_OPFOR`. The item name does not automatically follow the unit's side. Mission makers must give each player or loadout the desired BLUFOR or OPFOR item. > [!WARNING] > > Give a player only one intended radio item at a time. An assigned radio takes priority; otherwise the first detected radio in the inventory is reported. ## Map an item to a desktop frame 1. Open the Sonoran Radio admin panel. 2. Navigate to **Customize** > **Overlay**. 3. Select the frame that should represent the team or inventory item. 4. In **ARMA Item Class Names**, enter the exact `CfgWeapons` class name and press Enter to create a chip. 5. Select **Save**. 6. Close and reopen the desktop overlay on player computers so it downloads the updated frame list. Class matching is case-insensitive. Assign each item class to one frame. Uploading new custom frame artwork requires a Pro subscription. Changes to frame mappings appear after the player reopens the overlay. Equipping a mapped radio switches the frame within a few seconds. If an item has no mapping, the current frame stays selected. > [accordion] Custom inventory items > > Any custom item that inherits Arma's `ItemRadio` is detected automatically. Add its `CfgWeapons` class name to the desired frame in the admin panel. > > For an inventory system that does not inherit `ItemRadio` or use Arma's assigned radio slot, call the client-side override when the custom radio is used: > > ```sqf theme={null} > ["my_mod_field_radio"] call sonoran_radio_fnc_setActiveRadioItem; > ``` > > Clear the override and return to automatic detection with: > > ```sqf theme={null} > [""] call sonoran_radio_fnc_setActiveRadioItem; > ``` # Signal Towers and Repeaters Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/signal-towers-and-repeaters Place and configure Sonoran Radio signal towers in Eden or during a live Arma 3 mission with Zeus. Place towers to provide radio coverage for your mission. Players use the strongest available tower signal in the [desktop overlay](/radio/tutorials/usage/desktop-overlay). ## Place a tower in Eden 1. Open the mission in Eden Editor. 2. Select **Systems (F5)** > **Modules** > **Sonoran Radio**. 3. Place **Signal Tower / Repeater** at the desired location. 4. Configure its settings in the module attributes. 5. Optionally synchronize the module to an existing map or editor object. When synchronized to a physical object, that object becomes the tower. Its antenna position is calculated from the top of its model, and destroying it disables the signal. Use a unique **Tower ID** when mission scripts need to update the tower later. A blank ID is safe for editor-only towers because the mod generates one. ## Place a tower in Zeus 1. Open Zeus during the mission. 2. Select **Modules** > **Sonoran Radio** > **Signal Tower / Repeater**. 3. Click the desired location on the map or in the world. 4. Complete the **Sonoran Radio Tower** dialog and select **OK**. ![Sonoran Radio Tower configuration dialog in Arma 3 Zeus](https://docs-assets.sonoransoftware.com/sha256/7c/7c8a6c8dc88b8a004a7ec31b440c347c1bcee3f9cb4aef1485e9a8686560d1b8.jpg) *Configure the repeater model, signal range, dishes, power, damage, and visibility before placing the tower.* Double-click the Sonoran Radio module to change its settings during the mission. Deleting the module unregisters its signal and removes any physical object that the module spawned. > [accordion] Tower settings > > | Setting | Default | Behavior | > | - | -: | - | > | Repeater model | Small Repeater | Selects the physical Arma object to spawn. Ignored for invisible or synchronized towers. | > | Signal range | 5,000 m | Maximum coverage radius. Valid values are 1 to 100,000 meters. | > | Dish count | 4 | Total tower capacity. Valid values are 1 to 16. | > | Active dishes | 4 | Working capacity. May be 0 and cannot exceed the dish count. | > | Powered | On | An unpowered tower provides no signal. | > | Indestructible | Off | Prevents the physical tower object from taking damage. | > | Invisible (signal only) | Off | Uses the module position without spawning or using a physical object. | > > ### Physical tower models > > | Zeus label | Arma class name | > | - | - | > | Small Repeater | `Land_TTowerSmall_1_F` | > | Tall Repeater | `Land_TTowerSmall_2_F` | > | Large Radio Tower | `Land_TTowerBig_1_F` | > > ![Large Sonoran Radio signal tower placed in an Arma 3 mission](https://docs-assets.sonoransoftware.com/sha256/2e/2e171fd96b4322b7e69fa29cd82124a7062b7c78f8b246fc84b0b57c0b1440ed.jpg) > > *The Large Radio Tower physical preset in-game.* ## Invisible towers Enable **Invisible (signal only)** before confirming the module. Coverage originates from the module position, but no physical tower is spawned. An invisible tower cannot be damaged because there is no physical object. Disable it by editing the module and clearing **Powered**, or remove it by deleting the module. ## Destructible towers Leave **Indestructible** disabled and place a physical model. Normal Arma damage can then destroy the object. When the object is killed or deleted, the server turns the tower off and sets its active dishes to zero, removing its coverage. To restore a destroyed physical tower, replace or recreate the module/object. Mission scripts can also register a replacement object and restore its state through the [Mission Maker API](/radio/game-integrations/arma-3/mission-maker-api). ## Signal Coverage Signal weakens with distance. Inactive dishes and obstructing terrain reduce coverage. Unpowered towers, towers with no active dishes, and towers outside your range provide no signal. ## Community signal settings An administrator controls **Enable ARMA 3 bridge** and **ARMA 3 signal integration** under **Community Customizations → Game Integrations → ARMA 3**. These apply community-wide and are not player settings. Mod version 0.3.3 or newer no longer exposes Sonoran CBA settings. Calculation defaults are fixed: a 1-second update interval, a 0.02 minimum quality change, and a 0.35 terrain-blocking multiplier. Turning off community signal integration stops Radio from applying that calculated quality; it does not remove towers. A mission with no registered Sonoran towers starts with zero signal quality. Existing terrain scenery does not automatically create Sonoran coverage. Place a powered Sonoran tower module to begin coverage. ## Admin tower diagnostics A logged-in or voted server administrator can run: ```text theme={null} #sonoranradio debugmode on #sonoranradio debugmode off ``` This toggles the tower debug display and signal logging. It is a diagnostic tool, not a player override for community settings. # Troubleshooting Source: https://docs.sonoransoftware.com/radio/game-integrations/arma-3/troubleshooting Diagnose Arma 3 tower signal, desktop-frame switching, bridge, and AI-hearing issues. ## Pressing Y does not open a menu This is expected. Sonoran Radio does not add an Arma radio dialog or `Y` keybind. Open the Sonoran Radio desktop app, connect to a Radio channel, and select the **Overlay** tab at the top, alongside **Dispatch**. ## The overlay receives no tower signal Check the following: 1. CBA\_A3 and Sonoran Radio are loaded on both the server and client. 2. The Sonoran Radio desktop overlay is open. 3. A tower module exists and **Powered** is enabled. 4. **Active dishes** is greater than zero. 5. The player is inside the tower's configured range. 6. A destructible physical tower has not been killed or deleted. 7. Terrain attenuation is not reducing an already weak edge-of-range signal. 8. **Enable ARMA 3 bridge** and **ARMA 3 signal integration** are enabled under **Community Customizations → Game Integrations → ARMA 3**. Allow up to 30 seconds for active clients to refresh changes. Mod version 0.3.3 or newer has no Sonoran CBA settings. A logged-in or voted server admin can use `#sonoranradio debugmode on` to enable tower diagnostics and signal logging, then `#sonoranradio debugmode off` to stop. Arma normally stores client RPT files under: ``` %LOCALAPPDATA%\Arma 3 ``` ## The local bridge is not running Visit: ``` http://127.0.0.1:39114/health ``` If the page does not load: 1. Confirm `sonoran_radio_x64.dll` and the `bridge` directory remain in `@sonoran_radio`. 2. Confirm PowerShell is available and security software did not quarantine the DLL or bridge script. 3. Confirm another application is not using UDP port `39113` or HTTP port `39114`. 4. Run `@sonoran_radio\bridge\start-bridge.cmd` as a manual fallback, then reload the health page. The bridge is localhost-only. Firewall port forwarding is not required. ## The wrong radio frame is displayed 1. Confirm the exact item class is listed on the intended frame under **Customize** > **Overlay**. 2. Save the frame configuration. 3. Close and reopen the desktop overlay to download the changed mappings. 4. Give the player only one intended radio item. The assigned radio is preferred; otherwise the first detected inventory radio is used. 5. Wait up to two seconds after changing the inventory item. Class matching is case-insensitive. If an item has no mapping, the overlay leaves the current frame selected. ## The BLUFOR or OPFOR frame is missing New communities registered with **ARMA 3** selected include the example ARMA 3 BLUFOR and ARMA 3 OPFOR frames. For an older community, create or select a desktop frame and add the corresponding class manually: ``` SonoranRadio_Item_BLUFOR SonoranRadio_Item_OPFOR ``` ## AI does not react to radio traffic 1. Enable **Enable ARMA 3 bridge** and **AI can hear radio transmissions** in the community's ARMA 3 integration settings. There is no in-game or per-user override. 2. Confirm the desktop overlay—not Arma proximity voice—is actively transmitting. 3. Confirm the AI is alive, is not player-controlled, and is within 20 meters of the speaker. 4. Confirm the local bridge health endpoint works. 5. Remember that the same AI is updated at most once every 20 seconds and AI that already know the player's location do not need another reveal. TFAR is not required and does not control this setting. ## Overlay hidden or game pauses when focused Select Arma's **Fullscreen Window** display mode. Exclusive fullscreen may hide desktop overlays. Enable **No Pause** in the launcher or use `-noPause` if the game pauses when the overlay has focus. On the website, the **Overlay** tab is intentionally disabled; use the desktop app. The mobile app does not display this tab. ## BattlEye kicks or modified-data messages Keep the original client kick message and server/client logs. A message saying you cannot connect for a number of seconds indicates a reconnect cooldown, not the original failure. Wait for it to expire, connect once, and inspect the first kick reason. “Uses modified data file” alone does not identify a blocked Sonoran DLL or prove the mod caused a kick. Check that client/server mod versions agree and that the server has the current CBA and Sonoran `.bikey` files. If BattlEye explicitly names a blocked file, retain its exact path and message for support. Do not disable BattlEye or signature verification as the standard fix. ## A tower cannot be destroyed Invisible towers have no physical object and cannot take damage. For a physical tower, edit its module and make sure **Indestructible** is disabled. If a synchronized editor object has its own mission damage protection, remove that protection as well. # FiveM Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem Install and use Sonoran Radio in FiveM. 1. [Install the FiveM resource](/radio/game-integrations/fivem/installing-the-in-game-resource). 2. [Learn the in-game radio controls](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio). 3. Configure the [in-game radio features](/radio/game-integrations/fivem/in-game-radio) for your community. For installation or audio problems, see [FiveM Troubleshooting](/radio/game-integrations/fivem/troubleshooting). Shared channels and dispatch settings are covered in [Using Sonoran Radio](/radio/tutorials/usage). Use [Dispatch AI](/radio/game-integrations/fivem/fivem) for voice channel controls, timers, CAD actions, emergency call readouts, and GPS routing. # Big Daddy Radio Animations Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/big-daddy-radio-animations Sonoran Radio is partnered with Big Daddy Scripts to offer a FREE copy of their radio animations script! ![](https://docs-assets.sonoransoftware.com/sha256/37/37ca282783d0c3f9528b6b1a3784ec3d0e38a7e5d03218aa5fa44a9deec1bca8.png) *Sonoran Radio x Big Daddy Scripts* ## What is this offer? > [!WARNING] > > This script requires the **pro** version of Sonoran Radio **standalone**. > > [Click to learn more about Sonoran Radio standalone!](/radio) Big Daddy's radio animation script enhances your Sonoran Radio experience by adding new in-game animations. As one of the most popular scripts of its kind, it offers versatile options based on where your radio is positioned—whether on your chest, shoulders, or handheld. This provides a more immersive and personalized interaction. ## Download and Installation ### Download the Script and Product Key Create an account and [download the latest script resource](https://sonoran.link/bigdaddy) from Big Daddy Scripts. In the account portal, select your recent order and copy the product key. ![](https://docs-assets.sonoransoftware.com/sha256/56/56c17cd61788b95271ee16cdc3c93f97cd4aac382920267b8414bb96815ee168.png) *Big Daddy - Account Panel* ![](https://docs-assets.sonoransoftware.com/sha256/d3/d398829302ab9b0a47062d8126885e5e8a1aee73fb1e535c58b273bfe676a2ae.png) *Big Daddy - License Key* ### Install The Script #### A. Extract Extract the script to your server's `resources` folder. #### B. License Key In the `settings.ini` file, paste your license key. ![](https://docs-assets.sonoransoftware.com/sha256/27/2727d783ffe3f0d98b611747949a238135f8ba3b0070f21ccd7df44b163098bf.png) *Big Daddy - Product Key* #### C. Ensure the Resource In your `server.cfg` file, add the following line **after** your Sonoran Radio resource lines:
  `# Start the sonoranradio resource
  ensure sonoranradio
   # Permissions for auto-updater (REQUIRED)
  add_ace resource.sonoranradio command allow
  add_ace resource.sonoranradio_updatehelper command allow
   # ----------------NEW---------------- # Big Daddy Radio Animation Script
  ensure BigDaddy-RadioAnimation
  `
*Sonoran Radio will automatically detect the script named `BigDaddy-RadioAnimation`, and disable the default Sonoran Radio animation (`disableAnimation` from the `config.lua`)* ### Enjoy! Once in-game, you can use the `/radioanim` command to open up the customization menu. This script will automatically detect when you are talking on your Sonoran Radio. > [!NOTE] > > This script also makes **users talk on their in-game microphone when they talk on the radio**. > > To disable this, ensure the `Config.talkSync` is disabled in the Sonoran Radio `config.lua` and the `TalkSync` is set to `false` in Big Daddy's Animation `settings.ini` file. [See the documentation for more information about configuration options and commands.](https://wiki.bigdaddyscripts.com/documentation/sonoran-radio-animation/) # Dispatch AI for FiveM Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/fivem Set up Dispatch AI for FiveM emergency calls, GPS routing, and automatic arrival status. Use [Dispatch AI](/radio/tutorials/usage/dispatch-ai) to change radio channels, manage scanned channels, set timers, and work with CAD. FiveM also supports emergency call readouts and in-game GPS routing. ## Setup 1. Complete the [common Dispatch AI setup](/radio/tutorials/usage/dispatch-ai#common-setup). 2. Install the [FiveM Radio resource](/radio/game-integrations/fivem/installing-the-in-game-resource). 3. Sign in to the in-game radio with your Sonoran account. For CAD actions, use that account in CAD or complete the in-game `/link` flow. 4. Use the wake word while transmitting, or configure the FiveM AI keybind in the radio settings. ![FiveM Dispatch AI keybind settings](https://docs-assets.sonoransoftware.com/sha256/f7/f7040278dfe07b747c9393b8f28280faf801a93bafc802d5673e16da21d963ce.png) ## Emergency Call Readouts 1. Connect the intended CAD server in Radio's **Customization** > **Dispatch AI**. 2. Open **Customization** > **Game Integration** > **FiveM**. 3. Under **FiveM Zones**, select the **Server** running Dispatch AI, then select **Emergency Zones**. 4. Draw a zone and select it to assign the channels that should receive calls in that area. 5. Generate a 911 call in the linked CAD server with coordinates inside a zone. Dispatch AI creates a dispatch call, removes the original 911 call, and reads it over the zone's assigned channels. Calls without coordinates or outside the zones are not read automatically. ![Game Integration with FiveM selected and Emergency Zones open](https://docs-assets.sonoransoftware.com/sha256/d2/d2013772e76491e5503b42c025ce53510f6e065e09bf20611627bf11482baffe.jpg) ## GPS Routing | Destination | Example | | - | - | | Postal code | “Dispatch, route me to postal 123.” | | Dispatch call | “Dispatch, route me to the robbery call.” | | Another unit | “Dispatch, route me to unit B-11.” | Postal routing requires **Nearest Postal** or another resource supporting `/postal `. Routing to a unit uses that unit's available CAD coordinates. > [accordion] Automatic en-route and on-scene status > > With **Nearest Postal v1.5.4 or newer**, AI GPS routing can set your CAD status to en-route and then on-scene when you arrive. > > Configure `Config.autoOnSceneStatus` in the [Radio resource configuration](/radio/game-integrations/fivem/installing-the-in-game-resource#configuration-options). For channel changes, timers, and current-call readbacks, see the [shared commands](/radio/tutorials/usage/dispatch-ai#radio-commands). # FiveM Inventories Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/fivem-inventories Sonoran Radio integrates with FiveM inventory systems for physical radio and scanner items. ## QBCore QBCore inventory support for the radio and [radio scanner](/radio/game-integrations/fivem/in-game-radio/radio-scanners) items is automatically detected. ### Configuration #### Inventory Restriction To restrict radio and scanner access to users with the radio item in their inventory, set `config.enforceRadioItem` to `true`. #### Inventory Item Customize your radio and scanner items in your config.lua's `Config.RadioItem` and `Config.ScannerItem` objects. > [accordion] Config.Lua Properties > > ```lua theme={null} > -- Located in the Radio's config.lua > Config.RadioItem = { -- Note: Changes to this item will require a server restart to take effect > name = 'sonoran_radio', -- Item name in your inventory | STRING > label = 'Sonoran Radio', -- Label for the item in your inventory | STRING > weight = 1, -- Weight of the item in your inventory | INT > description = 'Communicate with others through the Sonoran Radio', -- Description of the item in your inventory | STRING > } > Config.ScannerItem = { > name = 'sonoran_radio_scanner', -- Item ID > label = 'Sonoran Radio Scanner', -- Label for the item in your inventory > weight = 1, -- Weight of the item in your inventory > description = 'Listen to radio chatter with the Sonoran Radio Scanner', -- Description of the item in your inventory > } > > ``` ### Supported Inventories (QBCore) Currently, the following QBCore inventories are supported: * QBCore Inventory * OX Inventory * QS Inventory * Core Inventory ## Qbox ### Configuration #### Inventory Restriction To restrict radio and scanner access to users with the radio item in their inventory, set `config.enforceRadioItem` to `true`. #### Inventory Item Qbox requires you to manually add the following to your `/ox_inventory/data/items.lua` file. The config.lua's `Config.RadioItem` and `Config.ScannerItem` can not be used with Qbox. > [accordion] Ox Inventory Items File > > ```lua theme={null} > ['sonoran_radio_scanner'] = { > label = 'Sonoran Radio Scanner', > description = 'Listen to radio chatter with the Sonoran Radio Scanner', > weight = 1, > client = { > image = 'radio.png', > remove = function(total) > if total < 1 then > TriggerServerEvent('SonoranRadio::DropItem::Scanner') > end > end > } > }, > ['sonoran_radio'] = { > label = 'Sonoran Radio', > description = 'Communicate with others through the Sonoran Radio', > weight = 1, > client = { > image = 'radio.png' > } > }, > ``` ### Supported Inventories (Qbox) Currently, the following Qbox inventories are supported: * OX Inventory ## Known Issues and Limitations ### OX Inventory > [accordion] OX Inventory Bugs and Limitations > > **QBCore Support** > > [OX inventory has officially dropped QBCore support in sole favor of the Qbox framework. However, full functionality can still work.](https://overextended.dev/ox_inventory/Frameworks/qbx) ### QS Inventory > [accordion] QS Inventory Bugs and Limitations > > **Official Support** > > While QS inventory has not been officially tested with Sonoran Radio, customers have reported it working with full functionality. Report any issues on our [support website](https://support.sonoransoftware.com). # FiveM Phone Scripts Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/fivem-phone-scripts Sonoran Radio integrates with FiveM phone scripts to allow players to call Sonoran Radio emergency service dispatchers right from their phone ## LB Phone LB Phone support for Sonoran Radio is as easy as changing a configuration variable. ### Configuration 1. In your [config.lua](/radio/game-integrations/fivem/installing-the-in-game-resource#updates), set `Config.phoneResource` to `'lb-phone'`. 2. Ensure you start the `lb-phone` resource prior to Sonoran Radio. 3. [Customize the emergency call number and hide the call banner.](/radio/tutorials/usage/dispatch-panel/emergency-calls#customize-the-emergency-number-and-banner) ### Usage In LB Phone, dial 911 ([or your customized number](/radio/tutorials/usage/dispatch-panel/emergency-calls#customize-the-emergency-number-and-banner)) to connect with a Sonoran Radio dispatcher. Press the end call button to hang up. ![](https://docs-assets.sonoransoftware.com/sha256/46/466a09845c5470fc33672416c9daf7ae70d01c98bc770dc06dd5f8e4478f3864.png) *Sonoran Radio: LB Phone Emergency Call* ![](https://docs-assets.sonoransoftware.com/sha256/6c/6c906eece34ed12b700f804707d28b79bba773375bda12c475ebabe35f7544ca.png) *Sonoran Radio: LB Phone Emergency Call* # In-Game Radio Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio # Background Audio Injection Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/background-audio-injection Background audio injection blends in-game sounds—like sirens, helicopter rotors, boat engines, and gunshots—into your microphone output. ![](https://docs-assets.sonoransoftware.com/sha256/e0/e097a62070e9a5df5af36a1206c923cb3f3ea468a92eafe432ffe04446161768.png) *Sonoran Radio - Background Noise Injection* ## Example Video The example video shows audio snippets with: * [Digital Effect](/radio/tutorials/usage/dispatch-panel/custom-voice-effects): Sirens in Background * [Vocoder](/radio/tutorials/usage/dispatch-panel/custom-voice-effects): Helicopter Rotors [Video tutorial](https://www.youtube-nocookie.com/embed/Ea9EowWi-Io) Sonoran Radio: Background Audio Injection ## Using Background Audio Injection ### What is Background Audio Injection? Background audio injection blends in-game sounds—like sirens, helicopter rotors, boat engines, and gunshots—into your microphone output. If you're responding with sirens active, others on the radio will hear them in the background of your voice transmissions. The sound effect volume level is determined by the distance to the source. ### Enabling Background Audio Injection To enable this feature: 1. Ensure your community is on the Pro version of Sonoran Radio. 2. Set `enableBackgroundAudio` to `true` in your [config.lua](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) file. ### Customizing Background Audio Sounds Background audio sounds can be customized in the event of a specific siren type, gunshot sound, etc. Communities can override the sound effects with custom files in the admin [SFX Customization panel](/radio/tutorials/usage/dispatch-panel/custom-sfx#background-audio-injection). ## Troubleshooting ### Can't Hear Sirens If sirens are not playing in the background of your microphone (when next to a vehicle with one on), follow these troubleshooting steps. #### LVC Users (Luxart Vehicle Control) Sonoran Radio integrates with Luxart Vehicle Control to determine when sirens are activated. 1. Ensure you have configured the `Config.luxartResourceName` configuration option to match the resource name of your installed Luxart Vehicle Control resource. 2. Ensure you are on the latest version of Luxart Vehicle Control, as older versions do not contain the developer events needed. 1. LVC (v3.2.9-Rev2+): [Download](https://github.com/TrevorBarns/luxart-vehicle-control/releases) 2. LVC Fleet (v1.0.1+): [Download](https://github.com/TrevorBarns/luxart-vehicle-control-fleet/releases) #### Native Fallback For communities not using LVC, the radio defaults to native siren detection. However, it cannot distinguish between just police lights and lights with sirens. As a result, background siren audio will play whenever police lights are active. # Configuring ACE Permissions Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions Restrict user access to community approval, permissions, commands and features in-game with ACE permissions. ## **Command ACE Permissions** ACE permissions allow you to restrict what users have access to certain commands. ACE permissions are configured in your `server.cfg` file.\ To keep them organized, you can also place them in a separate file (e.g., `permissions.cfg` in the same directory) and then `exec permissionss.cfg` from within your `server.cfg`. ### **1. Create a Permission Group** Here, we'll create an `admin` ACE group that has access to all of the `sonoranradio.example` categorized permissions. ``` # ACE group name 'admin' for 'sonoranradio.example' permission category add_principal group.admin sonoranradio.example ``` ### **2. Assign Permissions to the Group** This adds all of the Sonoran Radio permissions (configuring repeaters, using the radio, and repairing repeaters) to the `sonoranradio.example` category that the `admin` ACE group has access to. > [accordion] Group Permission Example > > ``` > # Add permissions to the ace category "sonoranradio.example" > > # Tower Configuration Menu > add_ace sonoranradio.example command.radiomenu allow > > # Radio Access (Optional: If `acePermsForRadio` is `true` in config.lua) > # If using `acePermSync` in config.lua, this will also auto-approve the user in the community > add_ace sonoranradio.example sonoranradio.use allow > > # Radio Display Name Command Access > add_ace sonoranradio.example sonoranradio.displayname allow > > # ACE Permission Sync (Optional: If `acePermSync` is `true` in config.lua) > # See the "ACE Permission Sync" section below this documentation section for more info > # This example auto-approves the user in the radio community > add_ace sonoranradio.example sonoranradio.autoapprove allow > > # Tower Repair (Optional: If `acePermsForTowerRepair` is `true` in config.lua) > add_ace sonoranradio.example sonoranradio.repair allow > > # Connected Users List (Optional: If `acePermsForRadioUsers` is `true` in config.lua) > add_ace sonoranradio.example sonoranradio.radiousers allow > > # Radio Scanner Menu (Optional: If `chatter` is `true` in config.lua) > add_ace sonoranradio.example sonoranradio.scanner allow > > # Radio Scanner Channel Access (Optional: If `chatter` is `true` in config.lua) > # Number is based off of the channel ID > add_ace sonoranradio.example sonoranradio.channel.123 > > # Give the group access to /radio scanner > add_ace group.admin sonoranradio.jammers allow > > # You can restrict specifc jammer types to specific ace groups > add_ace group.admin sonoranradio.jammer_handheld allow > ``` ### **3. Add Users to the ACE Group** This grants a user the `admin` ACE permission group, specific to their in-game license ID. ``` add_principal identifier.license:{GTA License} group.admin ``` *** ## ACE Permission Sync > [!WARNING] > > **ACE permission sync will override all existing user permissions.** > > **Any manually granted permissions will be removed**, ensuring the user has only the permissions configured through ACE. ACE permission sync allows you to automatically approve users in the radio community, grant access to private channels, and give user permissions like name changes, kick, etc. This sync is ran whenever you turn the radio on and connect. [View other ways to manage user permissions.](/radio/tutorials/getting-started/invite-and-manage-users) ### Enable ACE Permission Sync To enable this feature, set your [`config.lua`'s `Config.acePermSync` value](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) to `true`. ### Guest Login ACE permission sync also allows new users to bypass the Sonoran account login and [sign in as a guest](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#login-as-guest). > [!NOTE] > > **Forced Guest Login** > > You can force authorized users with ACE permissions to automatically get logged in as a guest if `Config.forceGuestLogin = true`. #### Restrict Guest Logins The [config.lua's `acePermsForRadioGuests` property](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) is `false` by default. * When `false`: All users can see and use the **Login as Guest** button. * When `true`: Users must have the `sonoranradio.use` ACE permission to see the **Login as Guest** button. Once logged in as a guest, radio permissions will be granted based on the[ configured ACE permissions](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions#permission-sync-options). ### Permission Sync Options > [accordion] Community Approval > > Community members must be approved when first joining the radio. The approval behavior is dependent upon your [config.lua's `acePermsForRadio` value](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). > > If `acePermsForRadio` is `true` users will need the `sonoranradio.autoapprove` permission to be automatically approved in the community. > > If `acePermsForRadio` is `false` users will be automatically approved when turning on the radio. > [accordion] Private Channels > > Access to private channels can be granted via ACE permissions. > > You will need the channel ID ([visible in the dispatch panel](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#channel-ids) or [in-game radio](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#copying-channel-and-scan-list-ids)) for each channel ACE permission. > > `sonoranradio.channel.123` > [accordion] General Permissions > > General radio community permissions can also be granted via ACE permissions. > > Admin: `sonoranradio.admin` > > Approve Members: `sonoranradio.communityapprove` > > Change Display Name: `sonoranradio.setmynickname` > > Manage Display Name: `sonoranradio.setnickname` > > Kick from Community: `sonoranradio.communitykick` > > Kick from Radio: `sonoranradio.radiokick` > > Move Radio Users: `sonoranradio.radiomove` > > Play Dispatch Tones: `sonoranradio.radiotones` > > Override Talkover Protection: `sonoranradio.radiotalkover` > > Stun Radio Users: `sonoranradio.radiostun` > > ![](https://docs-assets.sonoransoftware.com/sha256/4e/4e58ee11981495ff9112d8873a4d5c26431118292128e40e618636ab6df2cad4.png) ### Permission Sync Example > [accordion] Permission Sync Configuration Example > > ``` > # Grant the ADMIN radio permission to everyone in the admin group > add_ace group.admin sonoranradio.admin allow > > # Grant the talkover-override permission to everyone in the admin group > add_ace group.admin sonoranradio.radiotalkover > > # Grant the radio-stun permission to everyone in the admin group > add_ace group.admin sonoranradio.radiostun allow > > # Auto-approve everyone in the leo group > add_ace group.leo sonoranradio.autoapprove allow > ``` ## ACE Permission Tools You can also use external services like [Sonoran CMS](/cms/integration-capabilities/fivem-game-panel/qbcore-and-qbox-panel/aces-and-principals) to easily manage ACE permissions via ranks and Discord roles. ![](https://docs-assets.sonoransoftware.com/sha256/cb/cb38d8dff545e3548792bd82c1aac3437d86c18963dcb1ea6356f81db3a5bfa5.png) *Sonoran CMS - QB Core Panel* ![](https://docs-assets.sonoransoftware.com/sha256/55/55700713a3434c8f248dc2409e5d62cc52b74101d477f5d4063ef31f58fe3e06.png) *Sonoran CMS - vMenu Panel* # Connected Users List Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/connected-users-list View the in-game connected radio list to quickly identify what users are online. The Connected Users Overlay is part of the **FiveM `radio_fivem` integration**. It displays connected users, their channels, and who is transmitting while you play. ![](https://docs-assets.sonoransoftware.com/sha256/c6/c6bc5290c1d098e5eb6b9fab2a2caec83f7de0c9a13a8cb319c04fe0b8ca67e9.png) *Sonoran Radio - Connected Users* ## Accessing the Connected Users List In-game, users can utilize the `/radiousers` command or a [customizable FiveM keybind](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands) (`F11` by default) to open the connected users window. This window displays all active users connected to the radio, and the channel they are in. When a user is transmitting, their name will turn green. ### Resize and Reposition #### Resize To resize the connected users list, use the command `/radiouserssize W H` with `W` being the width in pixels (ex: `500`) and `H` being the height (ex: `500`). ![](https://docs-assets.sonoransoftware.com/sha256/12/124e2de178b85a77b1b7b7bd0f8277d73d7b6aaa67861877bd11b4df772a6186.png) #### Reposition To move the connected users list on your screen, click and drag while the in-game radio is in focus. ## ACE Permission Restrictions Communities can restrict access to this command with ACE permissions: > [card] [Configuring ACE Permissions](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions) # FiveM Radio Frames Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames Configure FiveM radio frames, vehicle-specific layouts, and frame access. FiveM radio frames are managed in the Radio panel under **Customize > Overlay**. The same editor supplies the desktop overlay. Add a **Panic** control to layouts that need one. See [Sonoran CAD Integration](/radio/tutorials/integrations/sonoran-cad-integration) for the FiveM CAD plugin and desktop overlay panic setup. Desktop overlay synchronization requires the CAD API link under **Customize > Dispatch AI**. ## Create or edit a frame Select **FiveM** in **Customize > Game Integration**, then follow [Create a custom overlay](/radio/tutorials/usage/desktop-overlay#create-a-custom-overlay). Upload your artwork, position the screen and buttons, and select **Save changes**. Uploading new custom artwork requires **Pro**. With Pro, [Overlay AI](/radio/tutorials/usage/desktop-overlay/overlay-ai) can generate your radio frame artwork and editable screen from text or reference photos. Start with a blank frame or refine an existing one, then select **Save changes**. ![Shared Radio Overlay editor with a County Patrol frame](https://docs-assets.sonoransoftware.com/sha256/72/72adf5262d855e28e907a93b305dd1bcc5690d4ecf15c2aaa42887f7ba07721d.jpg) *Edit FiveM frames from the Radio panel.* Use an updated FiveM resource. With your server's push URL configured, saving sends the updated frames to connected players. The resource also checks on startup and roughly every 30 seconds. If a check fails, it keeps the last successfully loaded frames and tries again. ## Set a layout for vehicle classes The **On-foot**, **Vehicle**, and **Aircraft** layout controls appear when the community has **FiveM** selected as its game. A frame can have several vehicle layouts, each with its own image, screen, buttons, and vehicle classes. 1. In **Customize > Overlay**, select the frame you want to edit and choose **Vehicle** or **Aircraft**. 2. Select **Add layout**, or choose an existing entry from **Vehicle layout** or **Aircraft layout**. 3. Under **Vehicle classes**, select the classes that should use that layout. For example, class `18` is **Emergency**, while `15` and `16` are aircraft. Clearing all selected classes makes a vehicle layout match every class. 4. Use **Change image** and the editor controls to position its screen and buttons. Use the up and down arrows to set layout order, then select **Save changes**. FiveM uses the **first** vehicle layout whose class list matches the vehicle. Put a layout that matches all classes after more specific layouts. Aircraft-only layouts appear under **Aircraft**; layouts with any non-aircraft class appear under **Vehicle**. The order is shared between those tabs. The radio automatically applies that layout when you enter a matching vehicle and returns to On-foot when you exit. If no vehicle layout matches, it uses On-foot. See [FiveM Frame Changes](/radio/game-integrations/fivem/in-game-radio/fivem) for examples and troubleshooting. ![FiveM Overlay editor with Vehicle selected, a vehicle layout, and Emergency class 18 selected](https://docs-assets.sonoransoftware.com/sha256/59/59e38f3a0895b6a76f691633018f9e8c270a15d632c56d6de0795d8b74cada93.jpg) *Choose a FiveM vehicle layout and the classes that use it.* ## Change your frame in game 1. Open the radio's **Settings**. 2. Select the **FiveM** tab. 3. Choose a frame from **Radio Frame**. Only frames available to your player appear in the list. ![FiveM settings with the Radio Frame dropdown showing Default, County Patrol, and Signal Pro](https://docs-assets.sonoransoftware.com/sha256/b6/b6be012d1066943c58034f480cc58ee7afdcc2acf83af00642bd99b1053b758a.jpg) *Choose a frame in Settings > FiveM.* ## Restrict frame access Create and edit frames in the Radio panel's **Customize > Overlay** editor. To control which FiveM players can select each frame, configure `Config.frames` in your server's Sonoran Radio resource **config.lua**. The in-game radio only lets players choose from the frames available to them; frame setup and permission rules are not configured in that menu. * `permissionMode = 'none'` lets everyone use all available frames. * Use `ace`, `qbcore`, `qbox`, or `esx` to restrict frames by department permissions or job grades. * Copy the ID shown below each frame's name in the Overlay editor into the department's `allowedFrames` list. Use the exact `frame:` value, such as `frame:2`; the frame's display name is not a permission identifier. For example, allow players with the `sonoranradio.patrol` ACE to use two community frames: ```lua theme={null} Config.frames = { permissionMode = 'ace', adminPermission = 'sonoranradio.admin', departments = { patrol = { label = 'County Patrol', permissions = { ace = { 'sonoranradio.patrol' } }, allowedFrames = { 'frame:1', 'frame:2' } } } } ``` Replace those IDs with your own. Grant `sonoranradio.patrol` to the players who should use the patrol frames through your server's ACE configuration. For framework permissions, use `permissions.jobs` and the allowed `grades` from the resource's example configuration. [Sonoran CMS can manage ACE permissions from community roles](/cms/integration-capabilities/sonoran-radio-sync). # FiveM Frame Changes Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/fivem Automatically use on-foot, vehicle, and aircraft radio layouts in the FiveM resource. The Sonoran Radio FiveM resource reads whether your character is in a vehicle and which vehicle class it belongs to. It automatically displays the matching layout of your selected frame. ## Set up automatic layout changes 1. [Install and configure the FiveM resource](/radio/game-integrations/fivem/installing-the-in-game-resource). 2. In **Customize** > **Overlay**, open **Manual** and configure the frame's **On-foot** layout. 3. Select **Vehicle** or **Aircraft**, select **Add layout**, and choose the **Vehicle classes** that should use it. Add additional layouts if different classes need different radio designs. Set their order, then select **Save changes**. See [Set a layout for vehicle classes](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames#set-a-layout-for-vehicle-classes). 4. Open the radio in FiveM and select that frame in **Settings** > **FiveM** > **Radio Frame**. 5. Enter a vehicle to check its matching layout, exit to check the on-foot layout, and enter a helicopter or plane to check an aircraft layout. | Player state | Layout | | - | - | | On foot | On-foot | | In a vehicle other than a helicopter or plane | Vehicle, when configured for that class | | In a helicopter or plane | Aircraft, when configured for that class | | No matching vehicle or aircraft layout | On-foot | FiveM uses the **first** vehicle layout whose class list matches the vehicle. Layouts restricted to helicopters and planes appear under **Aircraft**; layouts with non-aircraft classes appear under **Vehicle**. Both tabs share one matching order. An empty class list matches every class, so place that layout after more specific ones. For example, place an **Emergency** class `18` layout before a layout with no classes selected. An emergency vehicle uses the first layout; other vehicles use the layout that matches every class. Returning to foot uses the selected frame's On-foot layout. Layout changes work for both drivers and passengers. Emergency lights and sirens do not need to be active, and screen-recording access is not required for the FiveM resource. ## Make frames available to players The panel controls frame artwork and layouts. FiveM's `Config.frames` controls which frames a player may select, using the community's configured ACE or framework permissions. The Overlay editor displays an identifier such as `frame:123` under each frame name. Add that identifier to the relevant department's `allowedFrames` list when restricting frame access. Existing migrated skin names continue to resolve to their managed frames. See [Restrict frame access](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames#restrict-frame-access) for the department and permission configuration. ## Apply updates and troubleshoot After selecting **Save changes**, the resource refreshes the community's frames. A configured game-server push connection can deliver the update immediately; the resource also checks on startup and roughly every 30 seconds. Failed checks retain the last successfully loaded configuration. If a layout does not change: * Confirm that the intended frame is selected in the in-game radio settings. * Confirm that the intended vehicle layout was added and saved in the panel. * Check its vehicle classes and matching order. An earlier layout that matches every class can take priority over a later aircraft or emergency layout. * Check `Config.frames` if the frame is missing from a player's settings. * If recent edits have not appeared, check that the resource can reach the Radio backend and allow it to refresh. The [desktop previous/next-frame hotkeys](/radio/tutorials/usage/desktop-overlay/changing-radio-frames#change-frames-with-desktop-hotkeys) operate the desktop overlay. FiveM players choose their in-game frame through the in-game radio settings. # Geo Channels Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/geo-channels Automatically change your transmit and scan channels based on in-game location. Geo channels let you define in-game zones that automatically switch your transmitting and scanned channels based on your location. For example, entering a downtown area can automatically switch your radio to the **City** channel, while driving on the highway can switch it to the **Highway** channel. ## Creating Geo Zones ### Via Radio Panel > [accordion] Geo Zones via Radio Panel > > 1. Open **Customization** > **Game Integration** > **FiveM**. > 2. Under **FiveM Zones**, choose your **Server** and select **Geo Channels**. > 3. Use the polygon, rectangle, or circle tool to draw a zone. > 4. Select the zone to set its name, Z coordinates (floor and ceiling height), and channels to transmit and scan when entered. > > Additionally, you can enter comma separated ACE permissions for the zone. When configured, the zone will only apply to users with those ACE permissions. > > ![FiveM Geo Channels in Game Integration](https://docs-assets.sonoransoftware.com/sha256/68/683c00fd8bc3bebc41114eaffd533bcf078b0386d8793859f5a9d2878167a9fb.jpg) ### Via In-Game Menu > [accordion] Accessing the Menu > > Open the menu with the in-game `/radiomenu` command and select `Geo Channels` > > ![](https://docs-assets.sonoransoftware.com/sha256/8e/8e6dc32635591b435de40a7489432d9549fd83309b08d702d5932f7cc44c7012.png) > > *Sonoran Radio - In-game Menu* > [accordion] Zone Configuration Options > > In the `Geo Channels` menu, you can specify which channels you want to transmit and scan upon entering, ace perms required to auto switch, add points to create a 3D zone and toggle auto switching on and off. > > ![](https://docs-assets.sonoransoftware.com/sha256/9d/9db9d8226566b48930fe1a6fd02a3f284841fd57e140967032b6535210ea190d.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/ee/ee6ed7017278f028d6308bc0c19438cbab819838f9eb307cb9637a6f30c850a4.png) > > `Add Point to Zone` > > * Adds another point to the 3D zone > > `Undo Last Point` > > * Removes the last placed point from the 3D zone > > `Min Z` > > * The minimum Z value (floor height) of the 3D zone > > `Max Z` > > * The maximum Z value (ceiling height) of the 3D zone > > `Finish Zone Creation` > > * Finishes the 3D zone creation and saves to the `geochannels.json` file > > `Cancel Zone Creation` > > * Cancels the 3D zone editor and closes the menu > > `Edit Geo Zones` > > * Opens the Geo Zone editor menu > > `Select Zone` > > * Select the zone you would like to edit > > `Transmit Channels` > > * The channels you will automatically join and transmit in upon entering the zone, and leave upon exiting the zone > > `Scan Channels` > > * The channels you will automatically join and scan in upon entering the zone, and leave upon exiting the zone > > `ACE Permissions` > > * The ACE permission required for the auto switch to happen upon entering/ exiting the zone. If left blank **ALL** radio users will join and exit the channel upon entering that zone > [accordion] View and Remove Configured Geo Zones > > Select `Edit Geo Zones` in the menu and toggle on `Show Zones`. All configured zones on the map will be displayed in green. If the config.lua's `debug` mode is set to true, all zones will also be made visible. > > Use the `Select Zone` menu option to swap back and forth between zones. Your selected zone will be displayed in red. > > Use the `Delete Zone` menu option to delete the selected (red) zone. > > ![](https://docs-assets.sonoransoftware.com/sha256/cf/cf7a1e6d91e42e98098fe705bb911d89a3dfe92bb122c0b8c2385a726ac53fdf.png) > > *Degredation Zone: Visible and Selected* ## Commands and ACE Permissions > [accordion] FiveM Geo Channel Config + ACE Permissions > > In the [config.lua](/radio/game-integrations/fivem/installing-the-in-game-resource#updates)'s `Config.geoChannels` property allows for additional customization. > > **User Toggle** > > Users can use `/radio geoswitch` to toggle the auto-switcher on/off for themselves. > > An optional `acePermission` can be added to restrict this command to specific users. # Hear Nearby Radio Chatter Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/hear-nearby-radio-chatter Pulled over in a traffic stop? You'll hear the real radio chatter when an officer has an active radio nearby! ![](https://docs-assets.sonoransoftware.com/sha256/15/151b96da3c9dbd5e0def58a604a1812f1293f7869c6c7bd5a50517ce82fbf640.png) *Sonoran Radio - Hear Nearby Chatter* Pulled over in a traffic stop? You'll hear the real radio chatter when an officer has an active radio nearby! > [!WARNING] > > Due to bandwidth usage, this feature is automatically enabled with the Pro version only! > > [Learn more about our paid subscription plans.](/radio/pricing/pricing-faq/standalone-pricing) ## Video Example [Video tutorial](https://www.youtube-nocookie.com/embed/R9-xBm0sGBA) ## Audio Examples ### Nearby Radio If someone nearby has a radio, you'll hear the radio traffic they’re listening to coming from their device. The closer they are the louder the radio traffic will be. However, if they're [using an earpiece](/radio/game-integrations/fivem/in-game-radio/hear-nearby-radio-chatter#in-game-earpiece), the audio won’t be audible to others. ### Radio in Vehicle When someone with a [nearby radio](/radio/game-integrations/fivem/in-game-radio/hear-nearby-radio-chatter#nearby-radio) enters a vehicle, the radio audio will become muffled. However, if a door is open, or a window is down or broken, the audio will become clearer and louder again. ### Nearby Emergency Phone Call When someone is [making an emergency call to a dispatcher](/radio/tutorials/usage/dispatch-panel/emergency-calls), nearby users will faintly hear the dispatcher's voice coming from the caller's phone. ### Nearby Radio Scanner When someone is carrying (or has placed down) [a radio scanner](/radio/game-integrations/fivem/in-game-radio/radio-scanners), nearby users will hear the channel that the scanner is set to. ## Usage ### Default Chatter Volume The volume of nearby radio chatter matches the volume setting of the emitting radio. Users with an active radio can [adjust its volume using a hotkey or the settings menu](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#adjust-volume). ### Adjust Volume Players can adjust the nearby radio volume in-game using the `/radiovolume` command. Ex: `/radiovolume 75` sets the nearby radio to 75% volume. > [accordion] Technical Information > > When a player is within 15 game units of an active radio, they will hear the live chatter from the nearest radio. If multiple radios within range are tuned to different channels, the player will hear all those channels blended, but the sound will primarily emit from the closest radio source. > > *This feature is experimental and subject to both change and improvements.* ## In-Game Earpiece Some communities may offer custom EUP (clothing and accessories) that players can use to personalize their characters. For radio users, an option to wear an earpiece (headphones) could be useful, allowing them to listen to radio chatter privately without others nearby overhearing. Whenever a user inserts or removes a configured in-game earpiece, a notification will be displayed confirming that others around you can or can not hear your radio. Communities can easily select which clothing items will be treated as a radio earpiece. ![](https://docs-assets.sonoransoftware.com/sha256/02/02dabb38342127f6e5e643dec1e4ad75f769529fc7c81559e721efc77cf14aae.png) *Sonoran Radio: In-Game Radio Earpiece* ![](https://docs-assets.sonoransoftware.com/sha256/67/67040dadd9ecefd5f10f242b9e314d1728314567d000de80fd5296ac6bf03fe1.png) *Sonoran Radio: Configure Earpieces* ### Open the Earpiece Menu Open the earpiece configuration menu via `/radiomenu` > `Configure Earpiece Chatter` ![](https://docs-assets.sonoransoftware.com/sha256/7b/7bb2d2194f5a942b6a8d0358dba949dcfbea3f039a64a55031f719bb9dd25b3b.png) *Sonoran Radio Menu* ### Toggle Earpiece Items To add a chatter exclusion click "Add Earpiece Item" and select the component you'd like to add. Additionally, select any specific textures that will be considered an earpiece. Once selected, anyone wearing this earpiece will not emit radio chatter to nearby users. ![](https://docs-assets.sonoransoftware.com/sha256/67/67040dadd9ecefd5f10f242b9e314d1728314567d000de80fd5296ac6bf03fe1.png) *Add or Remove Earpiece* ![](https://docs-assets.sonoransoftware.com/sha256/24/24edbf373d344f532fb35ff0ec44471c1fbd90297b2989253c37126ad6955560.png) *Earpiece Item Selection* ![](https://docs-assets.sonoransoftware.com/sha256/16/1657bc5bd84c5b9d3e195ff0740a6f5ff72026196e8fc5e2a205271ff4e70a07.png) *Earpiece Texture Selection* ### Removing Earpieces To remove an earpiece option, navigate to the `Remove Earpiece Item` Menu option > Select the specific earpiece item > and `Confirm Removal` ![](https://docs-assets.sonoransoftware.com/sha256/05/05adbebb8dfeae78bb234b18c64926b75918b866ff0319986d43481528c0fe6e.png) ### Manual Earpiece IDs (Advanced) > [accordion] Manually Configure Earpiece IDs > > The `earpieces.json` file defines earpiece items (custom EUP prop IDs) that block radio chatter from being heard nearby. > > Component IDs > > Look [here](https://docs.fivem.net/natives/?_0x829F2E2) for the component IDs for props (hats, glasses, earpieces, etc.). To find component IDs for drawables (shirts, pants, backpacks, etc.), look [here ](https://docs.fivem.net/natives/?_0x262B14F48D29DE80)and add 14 to the number. > > For example, to exclude a clothing item under ACCESSORIES, it might look like this: > > ```lua theme={null} > { > componentId = 22, -- accessories (8) + offset (14) is 22 > drawableId = 78, -- Number in vMenu > texture = 0, -- Number in vMenu (or 0 for all textures) > } > ``` ## Radio Scanners Learn more about in-game radio scanners: > [card] [Radio Scanners](/radio/game-integrations/fivem/in-game-radio/radio-scanners) # In-Game Repeaters Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/in-game-repeaters Configure and customize destructible radio towers in-game to impact radio performance. [Video tutorial](https://www.youtube-nocookie.com/embed/sHAgi1Z_Er8) ## Available Repeater Types ### Server Rack Server rack style repeaters are found by default inside of police stations and hospitals. These repeaters offer the most interactive destruction experience. Press `E` on the door to open it. Each server inside can be individually destroyed and will fall separately out of the rack. These can be configured with 1-5 servers in each. As more of these servers are destroyed, the repeater signal will diminish. ![](https://docs-assets.sonoransoftware.com/sha256/4f/4f9187fbffdefacdb9e2e38735695af0f374f004347e0ede8bd555f9e6e0e469.png) *Server Rack* ![](https://docs-assets.sonoransoftware.com/sha256/29/293148b69ca56dc546a69a8dc5829fd5d9a1a0338eebddda494e0d37dd7e1f01.png) *Server Rack - Opened* ![](https://docs-assets.sonoransoftware.com/sha256/53/535100a9213296bd6e6f138fab7efd179315c3500a5bcca88fc606b7fdcff02e.png) *Server Rack - Destroyed* ### Radio Tower Tower style repeaters are found by default on hills, mountains, and large rooftops. Players can climb the ladder to reach the top. There are four dishes inside that each account for 25% of the health. As more of these dishes are destroyed, the repeater signal will diminish. ![](https://docs-assets.sonoransoftware.com/sha256/be/bef861c9bab16c7ada9f06e38214a652859cf910f73d85e8632f3d52506b1e3c.png) *Radio Tower* ![](https://docs-assets.sonoransoftware.com/sha256/4a/4aff790795787f30ccd1d53995ce147668b0818f619717c8c7afa2d0fc93e854.png) *Radio Tower - Destroyed* ### Cellular Antenna Cellular antenna style repeaters are found by default on the side of high-rises and other buildings. Destroying this antenna will disable it's repeater range. ![](https://docs-assets.sonoransoftware.com/sha256/8c/8c015699f1e4c6dadbe369eb384e3ee1f84ddb9b80ad172be04314e75681da75.png) *Cellular Antenna* ![](https://docs-assets.sonoransoftware.com/sha256/d2/d2918d5dcd69e826d8124af19aef0b2a0c9c20d85358fdf8a5039a60eed78c0d.png) *Cellular Antenna - Destroyed* ### Custom Repeaters Additional integrations like the [mobile command center](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters#mobile-command-center-repeater), [power grid hacking](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters#hacking-repeaters-power-grid-integration), and [custom vehicle repeaters](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters#mobile-vehicle-repeaters) offer further customization. *** ## Configuration ### Tower Placement #### Default Positions ![](https://docs-assets.sonoransoftware.com/sha256/0c/0c22892a4c506f6935898bad7a2eecae6eb41bef40e38ca82bf1db2d5d70d722.png) *Sonoran Radio - Default Tower Positions* #### Game Menu Configuration To add, edit, or remove a repeater, open the configuration menu by typing `/radiomenu`. Access to this command requires the `command.radiomenu` [ACE permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). ![](https://docs-assets.sonoransoftware.com/sha256/f3/f3f9648c7a3c9f354ad0a2a141434df17f7029969e7de2d1b05466261f575b81.png) *Spawn Repeater* ![](https://docs-assets.sonoransoftware.com/sha256/64/64d315b788761198c15c5af5c068f7f01348c06ac1c9197499428373c23fe17c.png) *Move/Edit Repeater* ![](https://docs-assets.sonoransoftware.com/sha256/dd/dde68f8f11d2da99d11d9a62fcbd828418b90702998c89b2a816b5bbde9df5ec.png) *Delete Repeater* #### Manual Configuration Alternatively, you can edit the individual `towers.json` file in the `sonoranradio` resource. > [accordion] towers.json > > ```json theme={null} > [ > // Radio Tower > { > // Unique Identifier > "Id": "74d910e5-5705-4b58-baaf-88a8ca82734c", > // Type of repeater (tower) > "type": "radioTower", > // XYZ Coordinates > "PropPosition": { > "x": -577.4769287109375, > "y": -138.4747314453125, > "z": 51.9765625 > }, > // Signal range in units > "Range": 1500, > // Allow destruction > "Destruction": true > }, > // Server Rack > { > // Unique Identifier > "Id": "50a9c40a-e5bb-46b2-9a83-c5164599c64c", > // Type of repeater (Server Rack) > "type": "serverRack", > // XYZ Coordinates > "PropPosition": { > "x": 443.3538513183594, > "y": -983.1824340820312, > "z": 30.6783447265625 > }, > // 360 degree compass heading for angles > "heading": 90, > // Signal range in units > "Range": 1500, > // Status of each server in rack: "alive" or "dead" > "serverStatus": [ > "alive", > "alive", > "alive", > "alive", > "alive" > ], > // Is the repeater on or not > "Powered": true, > // Make the repeater invisible by setting to true > "NotPhysical": false, > // Temporary repeater > "DontSaveMe": false, > // Allow destruction > "Destruction": true > }, > // Cell Repeater > { > // Unique Identifier > "Id": "1f68f034-500b-4b29-9356-8c8bf63fda04", > // Type of repeater (cell repeater) > "type": "cellRepeater", > // XYZ Coordinates > "PropPosition": { > "x": 152.5, > "y": -775.9000244140625, > "z": 264.29998779296877 > }, > // 360 degree compass heading for angles > "heading": 340.0, > // Signal range in units > "Range": 1500.0, > // Is the repeater on or not > "Powered": true, > // Make the repeater invisible by setting to true > "NotPhysical": false, > // Temporary repeater > "DontSaveMe": false, > // Status of the antenna: "alive" or "dead" > "AntennaStatus": "alive", > // Allow destruction > "Destruction": true > } > ] > > ``` *** ## Using the In-Game Towers ### Destroying a Tower When tower destruction is enabled, users can use any form of weapon to damage the repeaters. Once damaged and destroyed, the tower no longer provides radio coverage within that range. ### Repairing a Tower #### Individual Towers Players can walk up to a destroyed repeater and press `G` to being the repair process. The repair time can be configured in the `config.lua`'s `towerRepairTimer`. You can also restrict permissions to repairing a tower with [ACE permissions](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions) by setting `acePermsForTowerRepair` to `true` in the `config.lua`. #### All Towers The configuration menu can be used to repair all repeaters on the map at once. ![](https://docs-assets.sonoransoftware.com/sha256/20/20e3c1e001507f3aaeedb0f458c3d0575b16af9dae993b0ca8fd4f371142b74c.png) *Sonoran Radio: Repair All Repeaters* ### Viewing Tower Coverage #### Via In-Game Map Enabling`Config.debug` in the `config.lua` file will display a radius around each tower, where the edge represents 50% radio quality. #### Via Sonoran CAD Live Map View Sonoran Radio repeater signal strength and health on the integrated CAD live map.\ Or, view dispatch call information on the in-game radio! > [card] [Sonoran CAD Integration](/radio/tutorials/integrations/sonoran-cad-integration) ### Viewing Signal Strength Coming Soon! *** ## Degrade Signals in Tunnels Sonoran Radio also allows you to configure tunnels and other areas where signal will be degraded! > [card] [Tunnels and Degrade Zones](/radio/game-integrations/fivem/in-game-radio/tunnels-and-degrade-zones) *** ## Additional Integrations ### Mobile Command Center Repeater The [Sonoran Mobile Command Center](https://www.sonoran.store/package/5287071) also offers a built-in radio repeater to improve reception on a scene. Raise the radio antenna by running the `/mccradio` command. ![](https://docs-assets.sonoransoftware.com/sha256/5e/5e15472c0d679f88e89dee73a75beea6e08b654316488be0bb8053ebe901ebbc.png) *Sonoran Mobile Command Center* ![](https://docs-assets.sonoransoftware.com/sha256/90/90640a7c4d5bc807d9e09669c8366107fad8d6b6ac04c60affd9dc460d3f6ba5.png) *Sonoran Mobile Command Center* ### Hacking Repeaters - Power Grid Integration Communities can add additional [Sonoran Power Grid](https://www.sonoran.store/package/5120025) integration support, enabling users to hack a radio repeater's power source instead of destroying it. ![](https://docs-assets.sonoransoftware.com/sha256/86/864369edaca880ee77e4d6abf793893ce2ec74220514c1fb7da9b58f082dbed5.png) *Sonoran Power Grid* ### Mobile (Vehicle) Repeaters Mobile repeaters extend radio coverage from configured vehicle models and attached trailer models. Their coverage moves with the vehicle while the repeater is active. Enable the feature in `config.lua`: ```lua theme={null} Config.enableVehicleRepeaters = true ``` Vehicle models are configured via in-game menu. #### Configure a Vehicle Model Configuration requires the `command.radiomenu` [ACE permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). 1. Enter the vehicle you want to configure. To configure a trailer model, attach the trailer to the vehicle first. 2. Open `/radiomenu`. 3. Select **Radio Repeaters** > **Mobile Repeater Vehicles**. 4. Select **Add Current Vehicle** or **Add Attached Trailer**. 5. Set the menu label and repeater range, then select **Save Vehicle Repeater**. ![](https://docs-assets.sonoransoftware.com/sha256/60/60b588fc7f3f6eb3a304d1ebd9e062edd32bb2ac2b66dbbf30085c8f78ede662.png) ![](https://docs-assets.sonoransoftware.com/sha256/1f/1fead9b29e6d721556720533fad6fc0a6e9c1040ce4f4ba4a60e2482ded7d5b2.png) ![](https://docs-assets.sonoransoftware.com/sha256/05/0561a2cf78433b4e7848f344b9dfd3365ea5d6407a8dc6fbe13a344b8e88435e.png) The range must be between `1` and `10000`. The detected model is saved, so the configuration applies to every vehicle with that model, not only the vehicle used during setup. Use the same menu to update an existing model or select **Remove Configured Vehicle** to delete it. Removing a model also disables active repeaters using that model. #### Activate a Mobile Repeater Activation does not require the administrator configuration permission. 1. Sit in the driver or front-passenger seat of a configured vehicle. 2. Run `/radio repeater` to open the activation menu. 3. Select **Enable Current Vehicle Repeater** or **Enable Attached Trailer Repeater**. The menu displays whether the repeater is active or inactive. If both the towing vehicle and its attached trailer are configured, the activation menu targets the trailer. Administrators can also activate or deactivate the detected repeater from **Mobile Repeater Vehicles** in `/radiomenu`. #### Repeater Lifecycle The server tracks active mobile repeaters as their networked vehicles move. A mobile repeater is automatically disabled when its vehicle is destroyed, despawns, or its model is removed from the configuration. If menu changes do not persist, check the server log and verify that the resource has permission to write `mobileRepeaters.json`. # In-Game Speakers Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/in-game-speakers Configure in-game speakers that dispatchers can send tones to! ![](https://docs-assets.sonoransoftware.com/sha256/07/07710e9df0d031a327f3843d3594e1fb8571c247e50d1efd89aab97ec8291bde.png) [Video tutorial](https://www.youtube-nocookie.com/embed/q-8u20usxvg) ## Configuring In-Game Speakers ### Access the Menu Open the menu with the in-game `/radiomenu` command and select `Toneboard Speaker Menu` > `Spawn/Move/Delete Speaker` ![](https://docs-assets.sonoransoftware.com/sha256/70/70ac6ac075391a9debb265006e615f8dbad9726c0011a11d5feac76a0a89e930.png) *Sonoran Radio - /radiomenu* ![](https://docs-assets.sonoransoftware.com/sha256/da/da6038d7d2325c2d9bc1215a1c1b0ecd1aeb7e66760bb08d365fa35e2f93c976.png) *Sonoran Radio - Toneboard Speaker Menu* ### Configure the Speaker #### Menu Options The spawn (create) and edit menu will allow you to set the speaker type, name, range, and position. ![](https://images-ext-1.discordapp.net/external/U2ds6All9FbMQfcQwxwjdF1WIt6ExVgfdFaQY1gHg9I/https/cdn.jordan2139.me/u/1052403544944283680/DczIjmhx.png?format=webp\&quality=lossless) #### Speaker Types When spawning a new speaker please select the type you would like to use. See types below: ![](https://docs-assets.sonoransoftware.com/sha256/2d/2d5ee97dd17d939f47611074c12dae67225d88284e8d45d4f21caff36c08a3f6.png) *Small - Wall* ![](https://docs-assets.sonoransoftware.com/sha256/9b/9b568104d649563d49f191dc9007cf921334af2a56079d77f38acfdbc3f65f10.png) *Medium* ![](https://docs-assets.sonoransoftware.com/sha256/6e/6ecad0ba8c21855148271f821578ba14caaf7ef8688be989503a2fe5233fca35.png) *Medium - Wall* ![](https://docs-assets.sonoransoftware.com/sha256/0f/0faf9d6d42f73bb03ae8b99daf2c6b0d49e7c1b627d1e952247827c0e1daab36.png) *Large* #### Speaker Position Use the controls displayed on screen to rotate and move the speaker to the desired location. ![](https://images-ext-1.discordapp.net/external/QpaFNLLXgyKaCSITDzzPoyCElQH-nFXr9JVC-uniLiA/https/cdn.jordan2139.me/u/1052403544944283680/qLCwBu8I.png?format=webp\&quality=lossless) *Sonoran Radio - Speaker Position Controls* ### Speaker Grouping Speakers can be grouped by a customizable name when placed. Grouped speakers show up as a single option on the tone board. If you would like to group already placed speakers you can do so by navigating to the `speakers.json` file and adding a `group` property. (If the value of the group property is empty, speakers will not group together). See below for more: | Ungrouped Speaker(s) | Grouped Speaker(s) | | - | - | | ![](https://docs-assets.sonoransoftware.com/sha256/8e/8e81581e89d0e6a35bf6e67c56f95ceb1637fd6905fbfbf9a944817709b4bc49.png) | ![](https://docs-assets.sonoransoftware.com/sha256/0f/0f1cfa9719d0c40dd63f6035f9d389ada9216f6bdda93d88301d4a909568f9b5.png) | ## Playing Tones to In-Game Speakers Dispatchers can now [use the tone board](/radio/tutorials/usage/dispatch-panel/custom-tone-board) and select one of the in-game speaker options to broadcast tones, microphone recordings, or AI powered text-to-speech to. ![](https://docs-assets.sonoransoftware.com/sha256/d7/d7e48a80d1f3b1ba7a4208483564c5c1cec78de5cce1857b485b092cd41c88e4.png) *Sonoran Radio - In-Game Speaker Broadcast* # IP Whitelisting Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/ip-whitelisting My community wants to whitelist **only** the Sonoran RADIO IP address to send requests to my FiveM server. How can I do this? You may whitelist the following IPs: ``` 24.199.66.94 198.199.90.248 34.173.36.190 ``` Last Updated : 8/26/2025 # AI Pursuit Auto-Callouts Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/pursuit-callouts Let Sonoran Radio handle your pursuit location and direction callouts automatically! ## Video Example [Video tutorial](https://www.youtube-nocookie.com/embed/G4OvM1hRfz8) ## Enabling Auto-Callouts Auto-callouts can be enabled using the in-game keybind (configurable in the `config.lua`) or by using the `/sonradtogglecallouts` command in-game ![](https://docs-assets.sonoransoftware.com/sha256/94/941952f0730db079775e6ea5d01f5d21ffa4bc4131df779cbc4452cee0ef4dc3.png) When your radio is powered, auto-callouts are enabled, and you're in a vehicle - Sonoran Radio will automatically callout street and direction changes over the radio. If configured, it will also callout average your speeds Example: "Westbound, East Joshua Road, Speeds 85" ## Configuration You can [change settings for auto-callouts (`Config.autoCallouts`) in the `config.lua` file](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). ### **Keybinds** You can [edit the default keybinding under the `Config.keybinds['toggleAutoCallouts']` setting](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). By default, it is unset. ### **Speeds** You can [configure the type of speed announced in the auto-callout using the `Config.autoCallouts.speedUnit` config option](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). By default, it is in miles per hour, but can be changed to kilometers per hours (`kmh`), or speed callouts can be disabled by setting it to `none`. ### Postal Codes You can [configure the callouts to state the unit's postal code using the `Config.autoCallouts.withPostals` config option](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). Additionally, you will need to specify the name of your postal code resource in the [`Config.autoCallouts.postalResource` config option](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). ### **Languages** Below is a complete list of all languages and words. If a street name or language needed is not listed below, [create a support ticket](https://support.sonoransoftware.com/) to have them added. > [accordion] English > > ``` > // Directions > Northbound > Eastbound > Southbound > Westbound > > // GTAV Roads > Runway1 > Plaice Pl > Voodoo Place > Buccaneer Way > Cavalry Blvd > El Burro Blvd > New Empire Way > Signal St > Abattoir Ave > Elysian Fields Fwy > Exceptionalists Way > Chupacabra St > Miriam Turner Overpass > Chum St > Hanger Way > South Shambles St > Orchardville Ave > Popular St > Greenwich Pkwy > Sustancia Rd > La Puerta Fwy > Dry Dock St > Autopia Pkwy > Dutch London St > Great Ocean Hwy > Davis Ave > El Rancho Blvd > Jamestown St > Carson Ave > Del Perro Fwy > Roy Lowenstein Blvd > Little Bighorn Ave > Grove St > Labor Pl > Covenant Ave > Red Desert Ave > Brouge Ave > Macdonald St > Bay City Ave > Tower Way > Mutiny Rd > Palomino Ave > Alta St > Innocence Blvd > Amarillo Way > South Arsenal St > Strawberry Ave > Amarillo Vista > Forum Dr > Goma St > Fudge Ln > Magellan Ave > Melanoma St > Rub St > Capital Blvd > Aguja St > Shank St > Vitus St > Tug St > Olympic Fwy > Crusade Rd > Tackle St > Olympic Fwy > Power St > Elgin Ave > South Rockford Dr > Cortes St > Calais Ave > Palomino Fwy > Invention Ct > Prosperity St > Adam's Apple Blvd > Conquistador St > Vespucci Blvd > Sinner St > Fantastic Pl > Imagination Ct > Del Perro Fwy > Supply St > Ginger St > Sandcastle Way > Lindsay Circus > Atlee St > San Andreas Ave > Decker St > Low Power St > Equality Way > Utopia Gardens > Peaceful St > Mirror Park Blvd > East Mirror Dr > Sinners Passage > West Mirror Drive > North Rockford Dr > Los Santos Freeway > Integrity Way > Mirror Pl > Marathon Ave > Nikola Pl > Las Lagunas Blvd > Swiss St > Movie Star Way > Nikola Ave > Boulevard Del Perro > Bay City Incline > Ineseno Road > Cougar Ave > Bridge St > Liberty St > Heritage Way > Playa Vista > Abe Milton Pkwy > Morningwood Blvd > Dorset Dr > San Vitus Blvd > Glory Way > Occupation Ave > West Eclipse Blvd > Dorset Pl > Meteor St > Rockford Dr > Hawick Ave > Boulevard Del Perro > Carcer Way > Portola Dr > South Boulevard Del Perro > Perth St > Mad Wayne Thunder Dr > Eastbourne Way > Tangerine St > York St > Spanish Ave > Alta Pl > Laguna Pl > Mad Wayne Thunder Dr > Vinewood Park Dr > Milton Rd > Sam Austin Dr > Vinewood Blvd > Kortz Dr > Caesars Place > Strangeways Dr > Americano Way > Picture Perfect Drive > South Mo Milton Dr > North Archer Ave > Edwood Way > Steele Way > Richman St > Clinton Ave > Hardy Way > Eclipse Blvd > Fenwell Pl > Dunstable Dr > Gentry Lane > Greenwich Pl > Dunstable Ln > North Conker Ave > Greenwich Way > Didion Dr > Ace Jones Dr > Cox Way > Cockingend Dr > Wild Oats Dr > Baytree Canyon Rd > Barbareno Rd > Hillcrest Ridge Access Rd > Senora Rd > Whispymound Dr > Marlowe Dr > North Sheldon Ave > Hangman Ave > Hillcrest Ave > Kimble Hill Dr > Lake Vinewood Dr > Normandy Dr > Banham Canyon Dr > Mt Haan Rd > Lake Vinewood Est > Mt Haan Dr > Mt Vinewood Dr > Tongva Dr > Galileo Park > East Galileo Ave > Senora Way > West Galileo Ave > Senora Fwy > Buen Vino Rd > Galileo Rd > Zancudo Grande Valley > Zancudo Barranca > Zancudo Rd > Route 68 > Fort Zancudo Approach Rd > Joshua Rd > Chianski Passage > Route 68 Approach > Panorama Dr > Cat-Claw Ave > Smoke Tree Rd > Calafia Rd > Cholla Rd > Nowhere Rd > Marina Dr > East Joshua Road > Algonquin Blvd > Alhambra Dr > Cassidy Trail > Meringue Ln > Zancudo Ave > Lesbos Ln > Mountain View Dr > Lolita Ave > Cholla Springs Ave > Niland Ave > Armadillo Ave > North Calafia Way > Seaview Rd > Union Rd > Grapeseed Main St > Grapeseed Ave > Catfish View > Joad Ln > O'Neil Way > Procopio Promenade > Paleto Blvd > Duluoz Ave > Procopio Dr > Pyrite Ave > Cascabel Ave > > // Florida Roads > Stockyard Rd > Sawgrass Expressway > Davie Blvd > Flagler St > Flamingo Rd > Broward Blvd > Las Olas Blvd > Brickell Pl > Brickell Ave > Weston Vista Dr > Weston Rd > Seminole Way > Everglades Blvd > Plantation Rd > Sawgrass Expy > Fishing Dock Rd > A1A Scenic Highway > Griffin Rd > Biscayne Blvd > Biscayne Ramp > Coconut Palm Dr > Collins Ave > Seven Mile Bridge Rd > Sunrise Blvd > Buccaneer Blvd > Ocean Club Dr > Alligator Alley > Davie Rd > Broward County Pkwy > Justice Blvd > Commercial Blvd > Coconut Creek Pkwy > Everglades Trail > Panther Pkwy > Gulf View Rd > Sheriff Dr > Marsh Passage > US-27 Access Rd > Cypress Preserve Blvd > Marina Rd > Gator Rd > Washington Ave > Spanish River Rd > SW 8th St > Panther Run > Weston Blvd > Sawgrass Way > Volunteer Rd > NW 27th Ave > Port Blvd > Interstate 4 > Brickell Bay Dr > Drydock Ave > Cypress Creek Rd > Weston Hills Dr > Weston Hills Ln > PortMiami Tunnel Rd > Everglades Observatory Rd > US-98 Alternate > Lakeview Dr > Weston Way > Coral Way > Pine Island Rd > NW 79th St > Big Cypress Rd > Okeechobee Rd > Miami Ave > Dolphin Expressway (SR 836) > Freedom Blvd > Le Jeune Rd > Paradise Blvd > Plantation Preserve Dr > Airbase Access Rd > Convention Center Dr > Sugar Cane Rd > Markham Park > Markham Park Rd > Plantation Ln > Little Havana Ave > Freedom Tower Blvd > Wynwood Ave > Belle Glade Rd > Belle Glade Main St > Interstate 75 > Biscayne Pkwy > Biscayne Pl > Biscayne Way > Coconut Grove Dr > Hangar Way > Outpost Rd > Coral Gables Blvd > Hillcrest Dr > Hillcrest Access Rd > Paradise Ct > Everglades Rd > Brickell Key Dr > Innovation Court > Innovation Ct > NW 36th St > Farm Rd > US-98 > Rickenbacker Cswy > Interstate 95 > Industrial Pl > Cypress Pl > Lake Okeechobee Dr > Lake Estates Dr > Alton Rd > Marsh Ln > Liberty City Blvd > Palm Circle > NW 62nd St > Florida Turnpike > Utility Rd > NW 20th St > Thunder Rd > Ocean Dr > Marathon Key Blvd > Overseas Hwy Frontage Rd > Coral Gables Dr > Medical Pkwy > Orange Grove Ln > NE 2nd Ave > Biscayne Overpass > Biscayne Park Blvd > Reflection Pl > Miracle Mile > Sawgrass Ridge Dr > Star Island Dr > Cypress Hill Dr > Cypress Hill Rd > Royal Palm Dr > Pirate Cove Rd > MacArthur Cswy > Edison Ave > Edison Pl > Normandy Isle Dr > N Miami Ave > Key Largo Dr > Old Cutler Rd > Coral Gables Ave > North Bay Ave > NW 87th Ave > I-395 > Orange Grove Rd > Overseas Hwy > Key Colony Blvd > University Dr > Sunset Key Rd > Gulfstream Dr > Scenic Overseas Dr > Tarpon Basin Ct > Playa Vista > SE 1st Ave > Harbor Dr > FPL Service Rd > Islamorada Dr > Key Largo Promenade > Brickell Heights Blvd > Prosperity Walk > Islamorada Ave > Cypress Pass > Redland Rd > US-27 > US-27 Business > US-27 Connector > MLK Blvd > River Rd > Runway 1 > Florida Ave > Beachfront Rd > Ocean Reef Dr > Tamiami Trail East > Everglades Way > Marina Service Rd > Overseas Causeway > Harbor St > Harbor Passage > South Port Blvd > South Beach Blvd > South Bayshore Dr > South Harbor Industrial Rd > Española Way > Weston Industrial Blvd > Liberty City Ave > Doral Industrial Blvd > Quarry Rd > Palm Ave > Charter Boat Row > Little River Rd > Cypress Preserve Rd > Freedom Tower Dr > Harbor Key Rd > Keys County Rd > Flamingo Gardens > Bayfront Park Dr > Saint Vitus St > Bayou Place > West Lake Dr > Weston Ridge Dr > Ranch Rd > SE 2nd St > Everglades Canal Rd > Big Cypress Basin > Tamiami Trail > > // Speeds (MPH/KMH - Every 5) > Zero > Five > Ten > Fifteen > Twenty > Twenty-five > Thirty > Thirty-five > Forty > Forty-five > Fifty > Fifty-five > Sixty > Sixty-five > Seventy > Seventy-five > Eighty > Eighty-five > Ninety > Ninety-five > One hundred > One hundred five > One hundred ten > One hundred fifteen > One hundred twenty > One hundred twenty-five > One hundred thirty > One hundred thirty-five > One hundred forty > One hundred forty-five > One hundred fifty > One hundred fifty-five > One hundred sixty > One hundred sixty-five > One hundred seventy > One hundred seventy-five > One hundred eighty > One hundred eighty-five > One hundred ninety > One hundred ninety-five > Two hundred > Two hundred five > Two hundred ten > Two hundred fifteen > Two hundred twenty > Two hundred twenty-five > Two hundred thirty > Two hundred thirty-five > Two hundred forty > Two hundred forty-five > Two hundred fifty > Two hundred fifty-five > Two hundred sixty > Two hundred sixty-five > Two hundred seventy > Two hundred seventy-five > Two hundred eighty > Two hundred eighty-five > Two hundred ninety > Two hundred ninety-five > Three hundred > ``` ### Audio Playback By default, users can hear the AI transmissions locally when their radio is playing them. This can be disabled in the FiveM tab of the radio settings. # Radio Jammers Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/radio-jammers Deploy a signal jammer to disrupt nearby emergency radios for the ultimate heist! ![](https://docs-assets.sonoransoftware.com/sha256/c5/c57fcc0b70eb1166ba9da03b0bbf8654eddca266133c486307697a944c50679b.png) ## Video Example Coming soon! ## Using the Radio Jammer ### Enabling the Jammer 1. Enable the `Config.radioJammers.enabled` option in your [config.lua](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). 2. Add the `sonoranradio.jammers` [ace permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). ### Opening in Standalone You can use `/radio jammer` command to open a personal scanner. This requires the `sonoranradio.jammers` [ace permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). ### Opening in a Framework Server (QBCore, Qbox, etc.) With the radio jammer item in their inventory, users can double click to open the [scanner menu](/radio/game-integrations/fivem/in-game-radio/radio-jammers#using-the-radio-scanner-1). [View our complete list of supported FiveM frameworks an inventories.](/radio/game-integrations/fivem/fivem-inventories) ![](https://docs-assets.sonoransoftware.com/sha256/3b/3bedcc80fa36b436163e6bd6d0eef045740b6441071dcf466a1f982aa17088ff.png) *Sonoran Radio Jammer Item in Inventory* #### Item Drop > [!WARNING] > > Dropping jammers is not currently supported in OX inventory. > > Support will be added at a later date, pending more information from the OX development team. If the jammer item is dropped on the floor, you can interact by being near it and pressing `E`. If the jammer is powered on, it will impact radios in the configured radius. ![](https://docs-assets.sonoransoftware.com/sha256/35/35a254563ee55a64d12e64df948ef03bcd552046b55056c290e8e72a9531fad3.png) *Sonoran Radio Jammer Interaction* ## Permanent Jammers Permanent Jammers are available to everybody at configurable locations across the map. #### Configuring Permanent Jammers You can use `/radio jammers` to easily add, move, or delete persistent jammers ![](https://cdn.discordapp.com/attachments/871554360285474847/1428501231596208158/image.png?ex=68f2baf1\&is=68f16971\&hm=c5157bfd8fc03dc870bdd669c9285882d5723eab799ee9ab09e07a4f6e35f046&) ![](https://cdn.discordapp.com/attachments/871554360285474847/1428501231277445213/image.png?ex=68f2baf1\&is=68f16971\&hm=e8b2d6551fc92c517e4f831ac2864569261635c5082ff9881212cf62b72cd94a&) ![](https://cdn.discordapp.com/attachments/871554360285474847/1428501231948660816/image.png?ex=68f2baf1\&is=68f16971\&hm=9bee1262d6a2970b252ed09984f69dad06ca517eb85b960615aebfad96d981fc&) When creating a jammer, you have the ability to choose between many different jammer-like models to best fit your needs. ![](https://cdn.discordapp.com/attachments/871554360285474847/1428502707408207882/image.png?ex=68f2bc51\&is=68f16ad1\&hm=6b588ca32861e637cedd30a8c0d58941dd956cf4988423f6e3b63ec44e13241c&) *"Satellite Jammer"* ![](https://cdn.discordapp.com/attachments/871554360285474847/1428502808436412538/image.png?ex=68f2bc69\&is=68f16ae9\&hm=09a02f409d103d9f145da258df0ad492e145f2dcde9d90ebdfc303572493c555&) *"Case Jammer"* ![](https://media.discordapp.net/attachments/871554360285474847/1428501230812004435/image.png?ex=68f2baf1\&is=68f16971\&hm=e07883e37771a496cd200a3ca60c611f4f27c9a5b7a46c2b955d5602f36ef286&=\&format=webp\&quality=lossless\&width=1536\&height=864) *"Suitcase Jammer"* ![](https://cdn.discordapp.com/attachments/871554360285474847/1428504579489660968/1000.png?ex=68f2be10\&is=68f16c90\&hm=46af200ce78885145c8d881161ff32b11a60da6a9e69495ffbad041ccf79301e&) *"Handheld Jammer"* You can also modify the `jammers.json` config file for more customization. By default, there are no jammers spawned. ## Jamming Radio Effect In-game radio screens will reflect a jamming effect, with the intensity based on the jammer strength. ## Developers ### Ace Permissions If you have enabled `Config.radioJammers.permissionMode`, you must add permissions in your `server.cfg`for the scanner to work. The ACE permission for `/radio scanner` is `sonoranradio.jammers`. The ACE permissions for specific jammer types are `sonoranradio.jammer_handheld`. * `jammer_handheld` and other options are from the names in your [config.lua](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). Learn more about [ACE Permissions](/radio/game-integrations/fivem/in-game-radio/radio-jammers#ace-permissions). ### Giving the Scanner Item (QBCore) Sonoran Radio does not provide a way to get the scanner item independently. You can give the item with any method, but here's an example chat command: ``` /giveitem sonoran_radio_jammer_handheld 1 ``` # Radio Scanners Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/radio-scanners Discretely listen to your community's radio ![](https://docs-assets.sonoransoftware.com/sha256/8e/8eb2caa78156bc7e795232ffb6d4388ed299c5eb53e24f93b217bc1bf7f675ab.png) *Sonoran Radio - In-Game Scanner* > [!WARNING] > > Due to bandwidth usage, this feature is automatically enabled with the Pro version only! > > [Learn more about our paid subscription plans.](/radio/pricing/pricing-faq/standalone-pricing) ## Video Example ## Using the Radio Scanner ### Enabling the Scanner An active Sonoran Radio Pro subscription is required for nearby radio chatter and all scanner types, including permanent scanners. 1. Enable the `config.chatter` option in your [config.lua](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). 2. Add the `sonoranradio.scanner` [ace permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). ### Opening in Standalone You can use `/radio scanner` command to open a personal scanner. This requires the `sonoranradio.scanner` [ace permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). ### Opening in a Framework Server (QBCore, Qbox, etc.) With the radio scanner item in their inventory, users can double click to open the [scanner menu](/radio/game-integrations/fivem/in-game-radio/radio-scanners#using-the-radio-scanner-1). [View our complete list of supported FiveM frameworks an inventories.](/radio/game-integrations/fivem/fivem-inventories) ![](https://docs-assets.sonoransoftware.com/sha256/d9/d99c8c42041f8d154f66c29029ebe4afcf8fe2c1807090364a07cf9ca77c3b72.png) *Sonoran Radio Scanner Item in Inventory* #### Item Drop > [!WARNING] > > Dropping scanners is not currently supported in OX inventory. > > Support will be added at a later date, pending more information from the OX development team. If the scanner item is dropped on the floor, you can open its scanner menu by being near it and pressing `E`. If the scanner is powered, transmissions will be heard by nearby users. ![](https://docs-assets.sonoransoftware.com/sha256/39/397b54cff399eba92f0a1a58789130f79696d4aed4adea6d248bffc2e91935f2.png) *Sonoran Radio Scanner Item Drop Use Hint* ### Radio Scanner Menu ![](https://docs-assets.sonoransoftware.com/sha256/fa/fab258ea2bf55ab43397f29419724566c52c52498cf17cd1d37cb42fdae658e3.png) ![](https://docs-assets.sonoransoftware.com/sha256/45/45451ce19be746b5ec043579fb1661de971d803aef4dfafc8dc932fae4900f10.png) Press the power button and the scanner will auto-connect to the default channel. Use the knob to scroll through all available channels. By default, only public radio channels will be available. For [private channels](/radio/tutorials/usage/dispatch-panel/configure-channels#restrict-channel-visibility), you can [configure ACE permissions to access them](/radio/game-integrations/fivem/in-game-radio/radio-scanners#ace-permissions). ## Permanent Scanners Permanent Scanners are scanners that are available to everybody at configurable locations across the map. For example, you can add a scanner in the Sandy Shores Sheriff Station that will always listen the `County Patrol Ops` channel. #### Configuring Permanent Scanners You can use `/radiomenu` to easily add, move, or delete persistent scanners ![](https://docs-assets.sonoransoftware.com/sha256/c3/c35f1a085fce37290bd6443521d9bab50073c22773795fe6f3b12a2c542c40dc.png) ![](https://docs-assets.sonoransoftware.com/sha256/b0/b0b6136c9de5d97f85401ea8b8a3286a1c12f9ff4e7cc9c517eefaa1e35c9884.png) ![](https://docs-assets.sonoransoftware.com/sha256/cc/ccdcb5d8f6ebee564fada090f8b8b60e6d168928ec6afd31900384622883dd8b.png) ![](https://docs-assets.sonoransoftware.com/sha256/5f/5fb185f0e10452e37926663e242cc908f176fc70ad9b7fed826a6d53929efaaf.png) When creating a scanner, you have the ability to choose between many different scanner-like models to best fit your needs ![](https://docs-assets.sonoransoftware.com/sha256/e4/e42dd7a0373df4c27948596e71ff53f111b86ff109a8832344bca1e9fc00aab3.png) You can also modify the `scanners.json` JSON config file for more customization. By default, scanners connect to the default channel, but you can customize the channel ID it uses. > [accordion] Example Scanner JSON > > ```json theme={null} > { > "Id": "036a2ad1-eeae-4519-be4c-67157b8a035d", > "Note": "Sandy Sheriff Station", > "Powered": true, > "ChannelId": 31226, > "PropModel": "prop_cs_hand_radio", > "PropPosition": { > "x": 1853.98, > "y": 3688.92, > "z": 34.38054, > "heading": 32.76, > "exact": false > } > } > ``` #### Finding Channel IDs The channel IDs can be found in the [dispatcher panel](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#channel-ids) or [in-game radio](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#copying-channel-and-scan-list-ids). ## Developers ### Ace Permissions If you have enabled `Config.acePermsForScanners`, you must add permissions in your `server.cfg`for the scanner to work. The channel IDs can be found in the [dispatcher panel](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#channel-ids) or [in-game radio](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#copying-channel-and-scan-list-ids). ```bash theme={null} # Give the group access to /radio scanner add_ace group.admin sonoranradio.scanner allow # Only public (non-private) channels are accessible # Grant access to a private channel with the ID of 123 add_ace group.admin sonoranradio.channel.123 allow ``` ### Giving the Scanner Item (QBCore) Sonoran Radio does not provide a way to get the scanner item independently. You can give the item with any method, but here's an example chat command: ``` /giveitem sonoran_radio_scanner 1 ``` Please note that if you changed `Config.ScannerItem.name`, it will not work with `sonoran_radio_scanner` # Tablet Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/tablet View the dispatcher panel via in-game tablet! ## Using the In-Game Tablet The in-game tablet allows users to access the dispatch panel. ![](https://docs-assets.sonoransoftware.com/sha256/28/2858332daf5effd21b41f79e918cc195721d28dd127d558f063b40c5a7c5dd7c.png) ### Via Command Users in-game can use the `/radio tablet` to open the tablet. The tablet will display the dispatch panel, also available on the web and desktop applications. ### Via Keybind Users in-game can also specify a custom keybind to open and close the tablet. ![](https://docs-assets.sonoransoftware.com/sha256/17/173b616f93b8ef1a7f40ef1c5e0265019b2e717169b782e9f63fdd2fd89a726e.png) # Tunnels and Degrade Zones Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/tunnels-and-degrade-zones Configure tunnels, underpasses, and other areas where radio signal will be degraded! ![](https://docs-assets.sonoransoftware.com/sha256/3f/3f1fcb020ad2f8110f4e50e79e8c99a7e7a5ada879abb8225bf773b652eaf16d.png) *Sonoran Radio - Tunnel Detection System* [Video tutorial](https://www.youtube-nocookie.com/embed/IHNPs6aATQU) ## What are Degrade Zones? Degradation zones are areas like tunnels, underground areas, or mountain valleys that would experience signal loss in a realistic scenario. [Custom voice effects](/radio/tutorials/usage/dispatch-panel/custom-voice-effects) will distort the audio more as signal loss increases. ## Creating and Modifying Zones ### Via Radio Panel > [accordion] Degrade Zones via Panel > > 1. Open **Customization** > **Game Integration** > **FiveM**. > 2. Under **FiveM Zones**, choose your **Server** and select **Degrade Zones**. > 3. Use the polygon, rectangle, or circle tool to draw a zone. > 4. Select the zone to set its name, Z coordinates (floor and ceiling height), and degrade strength. > > ![FiveM Degrade Zones in Game Integration](https://docs-assets.sonoransoftware.com/sha256/95/9529460e0c097c0ecb11d14c2e41eec77e9a04a7c83f8cf2cfa7b3a0c6afa862.jpg) ### Via In-Game Menu > [accordion] 1. Accessing the Menu > > Open the menu with the in-game `/radiomenu` command and select `Degradation Zones` > > ![](https://docs-assets.sonoransoftware.com/sha256/54/543db9a1f7b07e6261d8b93fdf735a0ab8c9253591bc25e24a20ec0a6e8013f4.png) > > *Sonoran Radio -* > [accordion] 2. Zone Configuration Options > > In the `Degradation Zones` menu, you can specify the strength and add points to create a 3D zone. > > When creating a zone you can visualize via the drawn polygon and manipulate and move your last placed point using the on-screen controls > > ![](https://docs-assets.sonoransoftware.com/sha256/e4/e4338e1596ad482faf16002a488df1891b135401f54c0243f77367e6cbaaeed7.png) > > *Sonoran Radio - Degradation Zone Options* > > ![](https://docs-assets.sonoransoftware.com/sha256/ea/ea635ab5a854e1742677ddac208c042f6cc87c03cba87e561552c8313c02bfde.png) > > *Sonoran Radio - Degradation Zone Poly* > > `Strength`\ > \- The percent the signal strength will be cut by when inside the zone (0-1).\ > \- Example: 0.5 = 50% [voice effect](/radio/tutorials/usage/dispatch-panel/custom-voice-effects) degradation > > `Add Point to Zone`\ > \- Adds another point to the 3D zone > > `Undo Last Point`\ > \- Removes the last place point in the 3D zone > > `Min Z`\ > \- The minimum Z value (floor height) of the 3D zone > > `Max Z`\ > \- The maximum Z value (ceiling height) of the 3D zone > > `Finish Zone Creation`\ > \- Finishes the 3D zone and saves to the `tunnels.json` file > > `Cancel Zone Creation`\ > \- Cancels the 3D zone editor and closes the menu > [accordion] 3. View and Remove Configured Zones > > Select `Edit Degradation Zone` in the menu and toggle on `Show Zones`. All configured zones on the map will be displayed in green. If the config.lua's `debug` mode is set to `true`, all zones will also be made visible. > > Use the `Select Zone` menu option to swap back and forth between zones. Your selected zone will be displayed in red. > > Use the `Delete Zone` menu option to delete the selected (red) zone. > > ![](https://docs-assets.sonoransoftware.com/sha256/e0/e0af62ec8d84b7ebc43f3c42698245558520e20bdf9dda9fe06bb197244a26b6.png) > > *Degradation Zone: Visible* > > ![](https://docs-assets.sonoransoftware.com/sha256/cb/cbf15920c67d4b054769d0a7397e4219be332c442439d7101312698a342924eb.png) > > *Degradation Zone: Selected* # Using the In-Game Radio Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio Learn more about the in-game radio resource. [Video tutorial](https://www.youtube-nocookie.com/embed/x51SsH0LHUM) ## Initial Setup ### Displaying the In-Game Radio By default, the radio display remains visible on-screen at all times. Users can toggle focus on the radio, enabling interaction when needed and un-focusing when done. 1. Use the [customizable keybind](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#setting-your-push-to-talk-ptt-keybind) (Default is `~` right above tab) 2. Use the `/radio` command Access to the radio can be restricted with [ACE permissions](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions). ### Hiding the In-Game Radio #### A. Via Button Use the purple button or icon on the radio frames: ![](https://docs-assets.sonoransoftware.com/sha256/d9/d937ac172ea95ea45b76ee2915475524891032da1119390f74235d9fda4397fa.png) *Vehicle Radio: Hide Button* ![](https://docs-assets.sonoransoftware.com/sha256/b8/b8bdbc8293326f09a29a6cbff8998f32127554bb860b6071411bb61dccdb223d.png) *Handheld Radio: Hide Button* #### B. Via Command Use the `/radio hide` command in-game to hide the radio. #### C. ESC Options You can also [customize the display behavior when pressing `ESC`](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#escape-mode). ### Logging In > [accordion] Login with Account > > When you first use the in-game resource, you'll need to log in.\ > A 4-digit code will appear for you to sign in from your browser. > > ![](https://docs-assets.sonoransoftware.com/sha256/1d/1d739ff8ed5a3962e0235cdc3df41a01a53b132eab8f249a81b2f2b5c2d068fd.png) > > This will open [sradio.link](https://sradio.link) in a web browser, log in if needed, and your radio will be linked automatically with a 4-digit code. > > ![](https://docs-assets.sonoransoftware.com/sha256/cd/cdf2efea56f6ad1b7c3fe85a5577d41071a1a745c2cd3e86de43268819ac3089.png) > > *Sonoran Radio - Activate Link* > [accordion] Login as Guest > > When you first use the in-game resource, you'll need to log in.\ > If your community has ACE permissions configured, no account creation or link is necessary. > > ![](https://docs-assets.sonoransoftware.com/sha256/3e/3ee7d89951c840eb1e9f6ef5b02ae10488883ee09baf34880ada2b8d500f1e6a.png) > > Select **Login as guest** to bypass the account link and start using your radio. This guest option will only display if `acePermsForGuests` is set to `true`. > > If `Config.forceGuestLogin = true` it will bypass this screen and automatically login radio users in as guest using ACE permissions. > > #### Permission Configuration > > Learn how to [configure ACE permissions for the radio](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions#ace-permission-sync). > > #### Display Name > > Custom display names are saved locally in your cache and automatically restored on future guest logins. > > Guest usernames are set in the following priority order (whichever is found first): > > * Last used guest display name > * [Custom framework function](/radio/developer-documentation/developer-documentation/resource-events#guest-display-names) > * First and last name from QBCore, QBox, or ESX. > * In-game display name > > [Users with permission can change this name](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#display-names). ### Logging Out You can logout/un-link your in-game radio via the settings menu (gear icon). ![](https://docs-assets.sonoransoftware.com/sha256/0d/0d7296745883f544c3754519cd3f7b5c4906a3540b5dd98796346c333f850742.png) *In-Game Radio - Settings* ![](https://docs-assets.sonoransoftware.com/sha256/d4/d49ea3fd3b7d2acc3034916f99d8b1ef1e53e9f93a77390f10821564be273b38.png) *In-Game Radio - Unlink* *** ## Using the In-Game Radio ### Setting your Push-To-Talk (PTT) Keybind [You can customize your PTT button in your GTA Settings.](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands) ### Connecting and Switching Channels > [accordion] Channel Selection via Knob > > The radio will connect when you turn it on with the power button ([unless you need to login first](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#logging-in)). > > **Previous/Next Channel (In Group)** > > * Left click the top knob to rotate to the next channel inside the channel group. > > **Previous/Next Group** > > * Right-click the top knob to change its mode from channel changing to group changing. > * Left click the top knob to rotate to the next channel group. > > ![Sonoran Radio: Power Button](https://docs-assets.sonoransoftware.com/sha256/e4/e4008ed781b03804a02c60a8a964edc99e33125f40cf4fe11eded52537321fb5.png) ![Sonoran Radio: Channel List](https://docs-assets.sonoransoftware.com/sha256/2b/2be4e544c1bc00718585a85434c12d23c70fb55bd96f017aab6d250d83f0c805.png) > [accordion] Channel Selection via Menu > > Select the channel menu icon to open the channel selection options. Click on the channel you wish to transmit on. > > `CTRL` + `Click` allows you to select multiple channels to transmit on at once. > > ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d0702ba3b889a9fd65a2103295f60492d28f3da7c68b561cfcf3b6b0d2774ed.png) > > *Modern UI - Channel Menu Icon* > > ![](https://docs-assets.sonoransoftware.com/sha256/12/121f5e5fb6c191014280ce8cb450c0a42a059029da6f0fa4d8afb13b22ceb6c3.png) > > *Text UI - Channel Menu Icon* > > ![](https://docs-assets.sonoransoftware.com/sha256/ba/ba69d6abdb89d2eb073f86a793fb446cf64cc121b70e49fc3664246c6ddf65e4.png) > > *Modern UI - Channel Selection* > > ![](https://docs-assets.sonoransoftware.com/sha256/ab/ab30dbb4652f6da2db5695c0524631936ec2b1cf237de264a7d2e2776b2ebcde.png) > > *Text UI - Multi-Channel Selection* > [accordion] Channel Selection via Hotkeys, Commands, and Stream Deck > > Channels can also be changed via: > > * [Channel Change Keybind](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#prev-next-channel-in-group) > * [In-Game Commands (Optional Stream Deck Integration)](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#fivem-client-commands) ### Channel Scanning/Listening > [accordion] Scanning Radio Channels > > Scanning a radio channel allows users to hear all transmissions, even if they are not actively transmitting on that channel. However, transmissions on the primary channel (the one you are actively talking on) will take priority, muting transmissions from scanned channels whenever someone speaks on the primary channel. > > **Selecting Scanned Channels (**[**Modern or Text Display**](/radio/tutorials/usage/desktop-overlay#create-a-custom-overlay)**)** > > 1. Select the Channel Scan Icon > 2. Select the channel group to view the contained channels > 3. Click on a channel to toggle on/off scanning > > [Learn how to toggle a channel scan via command or Stream Deck!](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#toggle-channel-scan) > > ![](https://docs-assets.sonoransoftware.com/sha256/4f/4ffff048a41e6ff7d3b0bbbeec7c6554bf0c0b400f1e10fceeb7d03f07819261.png) ![](https://docs-assets.sonoransoftware.com/sha256/e7/e7fe3da6acbc5ee1c5e222f1f0e7c06515557e6dce28903ae5fce52909beafb8.png) > > Users can also [create a scan list](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#scan-lists) to swap between multiple scanned channels at once. ### Custom Scan Lists > [accordion] Scan Lists > > Users can scan one or more channels to listen without transmitting. For monitoring multiple channels, "Scan Lists" let users group channels and easily switch between them. > > **Creating a Scan List (**[**Modern or Text Display**](/radio/tutorials/usage/desktop-overlay#create-a-custom-overlay)**)** > > 1. Toggle scanning on one or more channels. > 2. Select the `+` icon next to `Scan Lists` to create a new scan list with the current selection. > 3. Scan lists can be reordered via drag-and-drop. > 4. Select the adjust button to rename or remove the scan list. > 5. Click on the scan list to scan all of the channels inside of it. > 6. Scan lists can be reordered via drag-and-drop > > [Learn how to toggle a scan list via command or Stream Deck](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#toggle-scan-list)! > > ![](https://docs-assets.sonoransoftware.com/sha256/e9/e9ed97fda58bc52625c18c8a4f625c9052ddfb5fd956da84bf54cc492f7b80f0.png) ![](https://docs-assets.sonoransoftware.com/sha256/8e/8e99aee2aadf5734f7527d3abb9977caf2d597923f7341c01cb0dfdfaf135355.png) ### Adjust Volume > [!NOTE] > > Your radio volume also controls how loudly [nearby users hear the radio chatter](/radio/game-integrations/fivem/in-game-radio/hear-nearby-radio-chatter). > [accordion] Radio Volume > > **System-Wide Volume** > > In the settings menu (gear icon) you can adjust the radio's total volume output. > > ![In-Game Radio - Settings](https://docs-assets.sonoransoftware.com/sha256/0d/0d7296745883f544c3754519cd3f7b5c4906a3540b5dd98796346c333f850742.png) ![](https://docs-assets.sonoransoftware.com/sha256/75/750f027bbb78cba68b6d9422d6fb13e571e780b1f0694abb7cee864a673bdb0e.png) > > **Per-User Volume** > > You can also right-click on any user to adjust their volume specifically. > > ![In-Game Radio - Per-User Volume](https://docs-assets.sonoransoftware.com/sha256/15/153cf4f806f475c00bc21073b6673dd5cc059528189e7b52d77aeca0c45e0589.png) > > **Per-Channel Volume** > > Select the volume icon to change the current channel's transmission volume. > > ![](https://docs-assets.sonoransoftware.com/sha256/97/97d8d3d5c14ea2df4d247e6a9d51ca121fcbc67b60d5e15e2a611fa955133366.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d52e563f7150947db6c80c0bf32c424cd9685b5689e64c9aeb1dee1d96d3d9c.png) > > **Volume Hotkey** > > [You can also use the in-game keybind to quickly adjust volume.](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#volume-up-down) > > The adjustment amount is customizable in the settings menu. > > ![](https://docs-assets.sonoransoftware.com/sha256/ba/bab2d6016d01d8c084dcac49ed2ae220dd5b6c7b0c1f1d57f881142702c9726b.png) ### Adjust Volume With Sirens > [accordion] Automatic Volume Increase w/Sirens > > When in-game, turning on your sirens will increase your overall radio volume by the configured amount. Turning your sirens back off will lower the volume back down. > > This feature is automatically integrated with [Luxart Vehicle Control](https://github.com/TrevorBarns/luxart-vehicle-control).\ > If the resource is not named `LVC`, the [`config.luxartResourceName` value must be updated](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). > > For communities not using LVC, the functionality will fall back to a FiveM native that will trigger the functionality if either lights or sirens are activated. > > ![](https://docs-assets.sonoransoftware.com/sha256/fb/fb37f06adf92d43b245e08c1860ee90d7e681d39efaac57774be5840fab152c8.png) ### Move and Resize the Radio > [!NOTE] > > **If you move your radio too far off of your screen:** > > Use `/radio reset` to reset the size and position. > [accordion] Radio Move and Resize > > On the radio screen, open the `Settings` modal by pressing the gear icon. > > Select `Move/Resize` > > * Click and drag the radio to change it's position on your screen. > * Hold `ctrl` and drag to resize the radio. > * Press `esc` to save the new size and position. > > ![In-Game Radio - Settings](https://docs-assets.sonoransoftware.com/sha256/0d/0d7296745883f544c3754519cd3f7b5c4906a3540b5dd98796346c333f850742.png) ![In-Game Radio - Move/Resize](https://docs-assets.sonoransoftware.com/sha256/6d/6db96fb4a28f2a23d60c42b3f277d8d4ffc7dc36084140b5d0950bda0578a4cc.png) > > ![In-Game Radio - Adjustment](https://docs-assets.sonoransoftware.com/sha256/3f/3f3f47763f3aa95200bb1c15ee1b8a0c3b70f5d3499c29eccf0dc61dac708a12.png) ### Escape Mode > [accordion] ESC Radio Display Behavior > > The Escape Mode selector changes the in-game radio display behavior after pressing `ESC`.\ > The server default for this setting can be configured in the [config's `defaultEscapeMode` property](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). > > `Keep Radio Visible` > > * The radio stays visible on `ESC` > > `Hide Radio` > > * The radio closes on `ESC` > > `XMITT (PTT)` > > * The radio closes on `ESC`, but is visible while transmitting > > ![](https://docs-assets.sonoransoftware.com/sha256/fb/fb37f06adf92d43b245e08c1860ee90d7e681d39efaac57774be5840fab152c8.png) ### Panic > [accordion] In-Game Panic > > Pressing the orange panic button on the in-game radio toggles your panic status. > > This can also toggle your panic status in [Sonoran CAD](/radio/tutorials/integrations/sonoran-cad-integration#cad-panic). > > [Dispatchers will also be able to see and clear your panic status.](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#unit-panic) > > Sonoran Radio has a [configurable option](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) to automatically press a users PTT button for a configurable amount of time when the user presses their radio panic button: > > ```lua theme={null} > Config.autoPttOnPanic = { > enabled = true, -- Enable automatic PTT when panic button is pressed > duration = 15 -- Duration in seconds to hold PTT when panic button is pressed > } > ``` > > ![](https://docs-assets.sonoransoftware.com/sha256/16/167b9a993adba6d8285405066e2166717a9e74b97b1fedf5799f75d09a325bec.png) ### Display Names > [accordion] Update User Display Name > > [View several different methods to update a user's display name in the radio.](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#display-names) ### Radio Types Sonoran Radio offers three radio platforms: handheld, top-down HUD, and vehicle.\ All three radio platforms can have [customizable frame styles](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#change-radio-frames). ![](https://docs-assets.sonoransoftware.com/sha256/bd/bdee0f40e48ea5e4c261aa17f33551d0d926f306d153924572fd863e5298be5a.png) When opening the radio via `/radio` the handheld radio will display on-screen.\ The vehicle UI will display when opening the radio inside of a vehicle.\ The top-down HUD style can be viewed with the `/radiohud` command. ### Change Radio Frames The settings menu also allows you to customize your radio frame: ![](https://docs-assets.sonoransoftware.com/sha256/d3/d3401806b340e7004e714c0f9d25f086316edd2b96e438f8174a77d53f63808e.png) *Sonoran Radio - Custom Frames* Learn more about customizable radio frames: > [card] [FiveM Radio Frames](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames) ## Civilian Usage ### Placing an Emergency (911) Call Civilians can place an emergency call to speak directly with dispatchers: > [card] [Emergency Calls](/radio/tutorials/usage/dispatch-panel/emergency-calls) ## Custom Animations Unlock multiple more custom radio animations, FREE with Sonoran Radio pro! ![](https://docs-assets.sonoransoftware.com/sha256/37/37ca282783d0c3f9528b6b1a3784ec3d0e38a7e5d03218aa5fa44a9deec1bca8.png) *Sonoran Radio x Big Daddy Scripts* > [card] [Big Daddy Radio Animations](/radio/game-integrations/fivem/big-daddy-radio-animations) # FiveM Keybinds & Commands Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands Learn more about customizing your in-game FiveM keybinds. ## FiveM Keybinds Sonoran Radio allows you to customize keybinds for in-game actions on the radio. To customize these, navigate to your GTA `Settings` -> `Key Bindings` -> `FiveM` -> `(sonoranradio)` Communities can also customize the default keybinds for new users in the [configuration's](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) `keybind` property with the [available options](https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/). ![](https://docs-assets.sonoransoftware.com/sha256/9d/9d875cf5c8e43ab17500ab445005fd3bf4eb34a19d8ebdb49fad9d015070bf87.png) *FiveM Keybinds: Sonoran Radio* ### Radio Power This keybind will turn your radio on/off. ### Prev/Next Channel (In Group) These keybinds will move you to the previous or next channel within the current channel group. ### Prev/Next Group These keybinds will move you to the previous or next channel group. ### Radio PTT This keybind will transmit your voice on the radio while being held down. ### Panic This keybind will toggle your panic status in the radio, and in [Sonoran CAD](/radio/tutorials/integrations/sonoran-cad-integration#cad-panic). #### Auto PTT on Panic Sonoran Radio has a [configurable option](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) to automatically press a users PTT button for a configurable amount of time when the user [presses their radio panic button](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#panic): ```lua theme={null} Config.autoPttOnPanic = { enabled = true, -- Enable automatic PTT when panic button is pressed duration = 15 -- Duration in seconds to hold PTT when panic button is pressed } ``` ### Volume Up/Down This keybind will quickly adjust your volume up/down, [based on the percentage set in your settings menu](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#radio-volume). ### Toggle Radio Users This keybind will display the [current radio connected user list](/radio/game-integrations/fivem/in-game-radio/connected-users-list). ### Toggle Radio Talk Animation This keybind will toggle on/off the talking animation. *** ## Stream Deck Integration Stream Deck plugins like [FXCommands](https://marketplace.elgato.com/product/fxcommands-fivem-a6cdf538-76ac-4fc7-b8b8-130ea2b8bcbb) can be used to trigger any of the [FiveM client commands](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#fivem-client-commands) below. *** ## FiveM Client Commands ### Copying Channel and Scan List IDs FiveM commands require channel and scan list IDs. These IDs can be made visible by toggling the `#` icon in the channel or scan list menus. ![](https://docs-assets.sonoransoftware.com/sha256/35/35e667a478ab30c424c8d19473ef0347de689e48910390d4da8abc6ca8938380.png) *Modern UI: Channel and Scan IDs* ![](https://docs-assets.sonoransoftware.com/sha256/11/1118c06aaa77363a6209d32fb06e7caddda85c28285ef050eb97dfbc65e18d3b.png) *Modern UI: Channel IDs* ### Toggle Channel Transmit To toggle [transmitting on a specific channel](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#connecting-and-switching-channels) use the command `/radio channel ID` ### Toggle Scan List To toggle on/off a specific [scan list](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#custom-scan-lists) use the command `/radio scanlist ID` ### Toggle Channel Scan To toggle on/off [scanning a specific channel](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#channel-scanning-listening) use the command `/radio scan ID` ### Mobile Repeater Menu To activate or deactivate a configured [vehicle or trailer repeater](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters#mobile-vehicle-repeaters), use the command `/radio repeater` This opens an activation-only menu for all players. Configuring which vehicle models have repeaters remains restricted to administrators through `/radiomenu`. *** ## FiveM Server Commands Commands for the server console. ### Debug Mode Toggle Toggle the [`config.debug` mode](/radio/game-integrations/fivem/installing-the-in-game-resource#updates) with the command `sonoranradio debugmode` Note: This mode does not persist through server restarts. ### Update Resource Command Run the automatic update with the command `sonoranradio update` # Installing the FiveM In-Game Resource Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/installing-the-in-game-resource Learn how to download and install the Sonoran Radio FiveM resource. ## One-click Installation with RocketNodeRocketNode offers one-click Sonoran Radio installation for your FiveM server.- [Purchase your FiveM Game Server!](https://sonoran.link/p62G7ncv) - Use code `SONORAN` to save big![Video tutorial](https://www.youtube-nocookie.com/embed/1Vw4XwiLKgY)## Install the FiveM Resource[Video tutorial](https://www.youtube-nocookie.com/embed/5cPJCugzP4g)### Download the ZIPDownload a pre-configured version of the in-game resource from the panel. This download will already have your community ID and API key in the `config.lua` file.Navigate to **Customize** > **Game Integration** > **FiveM** > **FiveM Installation**. Expand the installation section and download the resource.### Extract the ZIP FileExtract the .zip file into your resources directory. Place the `sonoranradio` and `sonoranradio_updatehelper` into a folder labeled `[sonoranradio]`![](https://docs-assets.sonoransoftware.com/sha256/34/34d81179f8580b118937c44ff267532f8a2d321e4b7719082639eafef79cf9a5.png)*Sonoran Radio - Folder Structure*### Update Your Server ConfigIn your `server.cfg` file, add the following:``` exec @sonoranradio/sonoranradio.cfg ```> [!WARNING] > > Do not start `sonoranradio_updatehelper` manually or use `ensure [sonoranradio]`. Use the `exec` line above to avoid server crashes.> [!WARNING] > > Start this resource **AFTER** your preferred framework and any additional framework core resources such as inventory resources***## Configuration Values \> [accordion] Configuration Options \> \> | Parameter | Default | Description | \> | - | - | - | \> | `comId` | EMPTY | The Sonoran Radio Community ID | \> | `apiKey` | EMPTY | The Sonoran Radio Community API Key | \> | `debug` | `false` | Display tower ranges on the map and other console prints. / This can be toggled live with the [debug mode command](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#debug-mode). | \> | `allowUpdateWithPlayers` | `false` | Allow the auto-updater to restart the resource while players are still in the server. | \> | `enableCanary` | `false` | Allow the auto-updater to pull development branches for early testing. | \> | `allowAutoUpdate` | `true` | Allow the auto-updater to run. | \> | `chatter` | `true` | Pro only. Allow nearby radio chatter and scanners. | \> | `talkSync` | `true` | Talk in-game whenever you talk on the radio / / If using [BD Animations](/radio/game-integrations/fivem/big-daddy-radio-animations), you will also need to disable their `TalkSync` feature in the `settings.ini` file. | \> | `emergencyCallCommand` | `911` | Command suffix to start or stop an emergency call (i.e. '911' == /radio 911) | \> | `luxartResourceName` | `lvc` | Resource name for Luxart Vehicle Control, [used for the siren volume integration](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#automatic-volume-increase-w-sirens). | \> | `keybinds` |
`Config.keybinds = { 	['toggle'] = '', 	['ptt'] = 'BACKSLASH', ['power'] = '',['panic'] = '',['nextChannel'] = '',['prevChannel'] = '',['talkAnim'] = '',['nextGroup'] = '',['prevGroup'] = '',['volUp'] = '',['volDown'] = '',['toggleAutoCallouts'] = '',['toggleGeoSwitch'] = '',['toggleAi'] = '',
\> }
\> `
| Default radio keybinds (these can be changed in GTA settings). / / Use the `Input Parameter` from the [CFX Documentation](/bot). | \> | `enableVehicleRepeaters` | `true` | Enable mobile vehicle and trailer repeaters. Configure compatible models and ranges through [/radiomenu](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters#mobile-vehicle-repeaters); players activate them with `/radio repeater`. | \> | `towerRepairTimer` | `20` | Time (in seconds) that it takes a player to repair a destructed tower. | \> | `rackRepairTimer` | `15` | Time (in seconds) that it takes a player to repair a destructed server rack. | \> | `antennaRepairTimer` | `15` | Time (in seconds) that it takes a player to repair a destructed cellular antenna. | \> | `acePermSync` | `false` | [Sync ACE permissions to auto-approve and grant radio permissions from in-game](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions#ace-permission-sync). | \> | `acePermsForRadioGuests` | `false` | Restricts the [Login as Guest button](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#login-as-guest) to users with an ACE permission. | \> | `acePermsForServerRepair` | `false` | Restrict the ability to repair damaged radio repeaters with ACE permissions. ACE Command: `sonoranradio.repair` | \> | `acePermsForTowerRepair` | `false` | Restrict the ability to repair damaged radio repeaters with ACE permissions. ACE Command: `sonoranradio.repair` | \> | `acePermsForAntennaRepair` | `false` | Restrict the ability to repair damaged radio repeaters with ACE permissions. ACE Command: `sonoranradio.repair` | \> | `acePermsForRadio` | `false` | Restrict the usage of the radio (`/radio`) with ACE permissions. / / ACE Command: `sonoranradio.use` | \> | `enforceRadioItem` | `false` | Require the user to have a item in their inventory to be able to use the radio or radio scanner. / [View supported frameworks and inventories.](/radio/game-integrations/fivem/fivem-inventories) | \> | `acePermsForRadioUsers` | `false` | Restrict the usage of the radio (`/radiousers`) with ACE permissions. / / ACE Command: `sonoranradio.radiousers` | \> | `syncPlayerNameToRadio` | `false` | Set the radio user's display name to match their in-game name. | \> | `disableRadioOnDeath` | `true` | Disables radio when dead. | \> | `restoreRadioStateWhenAlive` | `true` | Restore the radio's power state (on/off) when you are revived or respawn. | \> | `deathDetectionMethod` | `auto` | What method to use for death detection. / / `auto`, `manual`, or `qbcore` | \> | `heavySignalDegradeInWater` |
`Config.heavySignalDegradeInWater = { -- Heavily degrade radio signal while the player is in water to mimic an IP67-rated handheld
\> enabled = true, -- Set to true to enable heavy signal degrade in water
\> pedInWaterDegredation = 0.6, -- Signal strength multiplier when the player is simply in water (e.g. 0.6 would reduce signal strength to 60% of normal)
\> pedUnderWaterDegredation = 0.3 -- Signal strength multiplier when the player is underwater (e.g. 0.3 would reduce signal strength to 30% of normal)
\> }
\> `
| Heavily degrade radio signal while the player is in water to mimic an IP67-rated handheld | \> | `disableAnimation` | `false` | Disable the radio talking animation for custom animation scripts. | \> | `pttAnimation` |
`Config.pttAnimation = {
\> 	dictionary = 'random@arrests',
\> 	name = 'generic_radio_chatter'
\> }
\> `
| Configure the animation dictionary and name used while transmitting on foot with the radio closed. This setting has no effect when `disableAnimation` is `true`. | \> | `noPhysicalCellRepeaters` | `false` | Hide the in-game cellular antenna repeaters | \> | `noPhysicalRacks` | `false` | Hide the in-game server rack repeaters | \> | `noPhysicalTowers` | `false` | Hide the in-game tower repeaters | \> | `defaultEscapeMode` | `keep` | The default [escape behavior for the in-game radio](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#c.-esc-options). / / Options: `keep`, `hide`, `transmit_only`. | \> | `autoCallouts` |
`{
\> enabled = true, -- Whether or not this feature is enabled
\> speedUnit = 'mph', -- mph \\| kmh \\| none -- The unit of speed provided with the callout
\> withPostals = false, -- Whether to include postals with the automatic callouts
\> postalResource = 'nearest-postal',
\> }
\> `
| When enabled, user radios will [automatically transmit their heading, road, and speeds](/radio/game-integrations/fivem/in-game-radio/pursuit-callouts) during a pursuit. | \> | `geoChannels` |
`Config.geoChannels = {
\> enabled = true,
\> command = 'sonradgeoswitch', -- command to toggle geo-channel switching \\| e.g. /sonradgeoswitch
\> friendlyCommand = 'geoswitch', -- friendly subcommand of the /radio command to toggle geo-channel switching \\| e.g. / radio geoswitch
\> acePermission = '', -- ACE permission required to use disable geo-channel switching \\| Leave blank to allow all users
\> showNotifications = true -- Show notifications when geo-channel switching is enabled/disabled
\> }
\> `
| When enabled, configure specific channels to transmit and scan when inside a [geographical zone](/radio/game-integrations/fivem/in-game-radio/geo-channels). | \> | `autoOnSceneStatus` |
`Config.autoOnSceneStatus = {
\> enabled = true, -- Enable automatic ON_SCENE status when arriving at a waypoint created by SonoranRadio AI
\> distance = 30.0, -- Distance in meters from the waypoint to trigger ON_SCENE status
\> statusEnum = 4, -- Status enum for "ON_SCENE" -- See https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/set-unit-status#unit_status for more information
\> timeout = 300000 -- Time in milliseconds to timeout the auto ON_SCENE status after arriving at the waypoint
\> }
\> `
| When the [AI dispatcher GPS routes a user](/radio/game-integrations/fivem/fivem#gps-routing), [automatically update their CAD status](/radio/game-integrations/fivem/fivem#gps-routing) to en-route. Upon arrival, update their CAD status to on-scene. | \> | `radioJammers` |
`Config.radioJammers = {
\> enabled = true, -- Enable or disable radio jammers
\> menuCommand = 'jammers', -- Subcommand to open the jammers menu \\| e.g. /sonoranradio jammers
\> toggleRange = 3.0, -- Distance in meters required to toggle a jammer on/off
\> permissionMode = 'none', -- ace, qbcore, esx or none
\> acePermission = 'sonoranradio.jammers', -- ACE permission required to use jammers
\> allowedJobs = { -- Jobs that can use jammers \\| Requires permission mode to be set to 'qbcore' or 'esx' ['hacker'] = {
\> grades = { -- Job grades that can use jammers
\> 1,
\> 2,
\> 3
\> }
\> }
\> },
\> jammers = { -- See file for full example
\> }
\> }
\> `
| Configuration for in-game signal jammers. | \> | `forceGuestLogin` | `Config.forceGuestLogin = false -- Automatically log authorized radio users in as guests using ACE permissions` | Automatically log authorized radio users in as guests using ACE permissions | ***## ACE Permissions (Command Restrictions)ACE permissions allow communities to restrict access to actions like using the radio, adding and removing towers, repairing towers, and more.> [card] [Configuring ACE Permissions](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions)***## UpdatesWith `allowAutoUpdate = true`, the resource checks for updates when it starts and roughly every hour afterward. It downloads an available update and restarts the resource when the server is empty, unless `allowUpdateWithPlayers` is enabled.***## Next StepsLearn how to customize and use the dispatch and in-game portals:> [card] [usage](/radio/tutorials/usage) # FiveM Troubleshooting Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/troubleshooting Resolve common FiveM radio issues. * [Microphone not working](/radio/game-integrations/fivem/troubleshooting/in-game-microphone-not-working) * [Set the in-game microphone](/radio/game-integrations/fivem/troubleshooting/set-mic-in-game-for-radio) * [In-game volume too low](/radio/game-integrations/fivem/troubleshooting/in-game-volume-too-low) * [In-game timeouts](/radio/game-integrations/fivem/troubleshooting/in-game-timeouts) For desktop, browser, or device issues, see [general troubleshooting](/radio/tutorials/usage/troubleshooting). # In-Game Microphone Not Working Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/troubleshooting/in-game-microphone-not-working Fix a common issue causing the in-game microphone to not work. ## In-Game Microphone Not Working Due to an old version of Chromium (web browser) that FiveM utilizes, we are unable to change audio devices in-game. FiveM utilizes your "default" Windows microphone. To resolve this issue, simply set your desired microphone "as default" in Windows. ### Control Panel Sound Open the `Control Panel` and select `Hardware and Sound` ![](https://docs-assets.sonoransoftware.com/sha256/44/44bea3324a6c34bb26814aec417b574ca81182e7286c8030ba95923393cbf07a.png) ### Manage Audio Devices Select `Manage Audio Devices` ![](https://docs-assets.sonoransoftware.com/sha256/ae/aeb95c59698988a0582958406e88bc02647cf5e1f9baba2eba0ced7e6640eeae.png) ### Set Microphone as Default * Select the `Recording` tab * Select your microphone * Select `Set Default` * Select `Apply` ![](https://docs-assets.sonoransoftware.com/sha256/54/54b417d65b846df685d7c8ec1ecf5c74b096103fa07e811bce4323dedd4199c6.png) ### Restart your Game After setting your new default microphone restart your FiveM application. ## Further Troubleshooting If you have set your mic as the default device and you are still unable to hear it in game, try the following steps: * Ensure device is marked as "Default Communication Device" as well. If the "Set Default" button is greyed out, that means it is both the default device and the default communication device. * Reset your audio devices in Windows settings, as shown below. ### Resetting Windows Audio Devices 1. Open Windows Settings, navigate to `System` > `Sound` 2. Under `Advanced sound options`, click `App volume and device preferences` 3. Scroll to the bottom and click `Reset` to reset to the Microsoft recommended defaults. 4. Restart FiveM to ensure it recognizes the changes. # In-Game Timeouts Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/troubleshooting/in-game-timeouts Learn more about in-game client timeouts throwing error messages. Some users may see `SonoranRadio::ReceiveRadioStates` listed multiple times after receiving a timeout. When your client receives a timeout from the server for any reason, it will display a list of the most recent requests. Because Sonoran radio frequently sends client data requests, these will consequently be displayed. **This is not an issue with or related to Sonoran Radio**. This is a general timeout between the client and server listing all recent calls as diagnostic information. ![](https://docs-assets.sonoransoftware.com/sha256/e0/e0deb3b0edbd8ed9185c4fd1dd1508c89ccb9548a7f2a36d9e8dcf0b5f276f72.png) *Sonoran Radio - Client Timeouts* # In-Game Volume Too Low Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/troubleshooting/in-game-volume-too-low Having trouble hearing the radio in-game? You may need to increase the FiveM subprocess in your volume mixer. ## FiveM Volume Sonoran Radio runs in FiveM's Chromium browser in-game. While FiveM is running, ensure that you have the volume for this turned up: ### Access the Volume Mixer Open the `Volume Mixer` via Windows search or right-clicking the sound icon in your taskbar. ![](https://docs-assets.sonoransoftware.com/sha256/7b/7b315265a35a980faccf2004ee07c3b66aed667896b1677582e1b73f24186ec7.png) *Windows Search: Volume Mixer* ![](https://docs-assets.sonoransoftware.com/sha256/f0/f0ac8090bcef1ed4d4822c5bdcb46c0b8455be3a85cb4ffca0bee3a7b7a5853f.png) *Taskbar: Volume Mixer* ### Adjust the FiveM Chromium Subprocess In the `Volume Mixer` adjust the volume of the `FiveM Chromium Subprocess`. ![](https://docs-assets.sonoransoftware.com/sha256/e2/e242144dd327ea501a17fe05208b16e42cb25919f63b3bfe5863dcca30f3e487.png) *FiveM Chromium Subprocess Volume* ## Manually Increase Radio Volume If you're still having issues, you can manually enter a number higher than the 200% limit on the volume slider. Click the `Volume` button to change the slider to a number input, and carefully enter a number value higher than 200. ![](https://docs-assets.sonoransoftware.com/sha256/e1/e15c904b0295bdaafca946b7c93ac440785a2dbef8263d58db65fc9cc30d52bc.png) *Radio Volume: Manual Input* # Set Mic In-game for Radio Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/troubleshooting/set-mic-in-game-for-radio Configure and manage your in-game microphone settings for Sonoran Radio, including microphone selection, muting, and Automatic Gain Control configuration. ## Set Your Microphone Sonoran Radio allows you to select and configure your microphone directly in-game. ### Step 1: Open the Microphone Menu In chat, run the following command: ``` /radio 911 mic ``` \ \ This will open the microphone configuration menu. ![](https://docs-assets.sonoransoftware.com/sha256/18/18dfd3664746f33bad83b0c610b09a9608fc1a61eee4304e3eb20e727a6e909e.png) Open microphone menu ### Step 2: Select Your Microphone Click the dropdown menu and choose the microphone you want to use. Select microphone\\ ![](https://docs-assets.sonoransoftware.com/sha256/12/12c251a24b9111be1281a3553b381551781cd69e833641fcb3166bf7aeb624e3.png) ### Step 3: Configure Microphone Settings Once selected, you can enable or disable your microphone and configure Automatic Gain Control.\ ![](https://docs-assets.sonoransoftware.com/sha256/36/3645596678f5adcb4aff89b0759072eb1b4906e92df56da3902833154ea9e87b.png) #### Controls * **Blue Microphone** = Microphone Enabled * **Red Microphone** = Microphone Muted/Disabled * **Green Slider** = Automatic Gain Control (AGC) Automatic Gain Control helps balance microphone volume automatically. Microphone controls ### Step 4: Return to the Game Press `ESC` to close the menu and return to gameplay. # Vehicle Radio Display Source: https://docs.sonoransoftware.com/radio/game-integrations/fivem/vehicle-radio-display View Sonoran Radio on a working, in-vehicle 3D display! ## Vehicle Radio Display (Video Tutorial) [Video tutorial](https://www.youtube-nocookie.com/embed/xbV3KpBOFi4) > [!NOTE] > > The vehicle radio display is a **free** Tebex script fully compatible with the **free** version of Sonoran Radio. ![](https://docs-assets.sonoransoftware.com/sha256/1a/1a140fe25a5426dbe398a0111ebe4bdc88968ef5405167d84ddef9427e6d1b15.png) *Sonoran Radio - Vehicle Display* ## Installation (Written) ## Download the Script "Purchase" the **free** [vehicle radio display from the Sonoran Store](https://www.sonoran.store/package/6668073). Once purchased, see: [How to download the script from your Keymaster account.](/store/general/tebex-assets) ## Install the script #### A. Extract Folders Extract the script's two folders (`sonoran-radiodisplay` and `sonoran-radiodisplay_helper`) to a folder in your server's resources folder called `[sonoranradio]`. ![](https://docs-assets.sonoransoftware.com/sha256/e4/e4d51bf85f27772d0a68f176fd9a1d93b4982e917df2387b0239ca8855cc5447.png) *Radio Display - Folders* #### B. Rename Config Files Inside of the `sonoran-radiodisplay` folder: * Rename `config.changeme.lua` to `config.lua` * See more about the [configuration options](/radio/game-integrations/fivem/vehicle-radio-display#configuration) here. * Rename `radios.changeme.json` to `radios.json` #### C. Start the Resource To start the display resource and give the auto-updater permissions to run, paste the following into your `server.cfg` ``` # Start the Radio Display Resource ensure sonoran-radiodisplay # Grant permissions to the auto-updater add_ace resource.sonoran-radiodisplay command allow add_ace resource.sonoran-radiodisplay_helper command allow ``` ## Configuration The `config.lua` file allows you to customize the labels, ACE permissions, and more! > [accordion] Default config.lua > > ```lua theme={null} > Config = {} > > Config.debug_mode = false -- Enable debug mode > Config.configuration_version = 1.0 > Config.auto_update = true -- Enable auto updates > > Config.lang = { > addNewRadioHelp = 'Open the menu to begin spawning a new in-car model model', > vehNotCompatible = 'This vehicle is not compatible with the in-car model placement system!', > vehAlrRadio = 'This vehicle already has a valid in-car radio!', > radioMenuHeader = 'Sonoran In-Car Radio', > creditsPanel = 'Made by', > spawningSubMenu = 'In-Car Radio Spawning', > attachingSubMenu = 'Attaching', > deletionSubMenu = 'Are you sure?', > radioAttachMenuButton = 'Attach In-Car Radio', > deleteMenuButton = 'Delete Current In-Car Radio', > spawnMenuButton = 'Spawn In-Car Radio', > deletionConfirmationButton = 'Yes, remove from all of these vehicles', > deletionCancelButton = 'Cancel', > deletionCancelled = 'In-Car Radio deletion cancelled', > noRadioFound = 'No In-Car Radio is in this vehicle!', > modelComboBox = 'Model:', > vehAlrRadioNoti = '~r~This vehicle already has an In-Car Radio of this type', > notInVeh = '~r~You must be in a vehicle!', > vehicleBone = 'Radio - Vehicle Bone', > object = "Object:", > vehicleBoneComboBox = 'Vehicle Bone', > objectName = 'Sonoran In-Car Radio', > attachButton = 'Attach', > detachButton = 'Detach', > confirmPlacementButton = 'Apply to all of this vehicle model', > cannotGoFaster = '~r~You cannot go any faster!', > cannotGoSlower = '~r~You cannot go any slower!', > } > > Config.commands = { > carRadioMenu = 'radiodisplay', > restricted = false -- should the radio display menu be restricted? > } > > Config.permissionMode = "ace" -- Available Options: ace, framework, custom > > -- Ace Permissions Section -- > Config.acePerms = { > aceObjectUseMenu = "sonoran.incarradio", -- Select the ace for placing new In-Car radios > aceObjectAdminUseMenu = "sonoran.incarradio.admin", -- Select the ace for placing new In-Car radios into all vehicles of the same model > } > > -- Framework Related Settings -- > Config.framework = { > frameworkType = "qb-core", -- This setting controls which framework is in use options are esx or qb-core > civilianJobNames = {"unemployed"}, -- An array of job names that should be allowed to use the radio menu > adminJobNames = {"admin"}, -- An array of job names that should be allowed to use the radio menu as an admin > useCivilianJobListAsBlacklist = false, -- This will treat the civilian job list as a blacklist rather than a whitelist > } > > -- Configuration For Custom Permissions Handling -- > Config.custom = { > checkPermsServerSide = true, -- If true the permission event will be sent out to the server side resource, this is recommended > permissionCheck = function(_, type) -- This function will always be called server side. > if type == 0 then -- Check permission to use the menu > return true or false -- Return true if they have admin, return false if they don't > end > end > } > > Config.general = { > notificationType = "native", -- Available options: native, pNotify, okokNotify > useAllowlistAsBlacklist = false, -- If true, the Config.allowlistedCars will be treated as an blacklist > } > > Config.allowlistedCars = { > "POLICE", > "POLICE2", > "POLICE3", > "POLICE4", > "FBI", > "FBI2", > "SHERIFF", > "SHERIFF2", > } > > ``` ## Spawning the Radio Display 1. Sit in a stopped vehicle and run `/radiodisplay` (or your configured menu command). 2. Select **Spawn In-Car Radio**, then **Sonoran In-Car Radio** to open placement for a new radio. To reposition an existing radio, select **Attach In-Car Radio**, then **Position this vehicle's radio**. ### Move Select **Move** and left-drag a red, green, or blue arrow to move the radio along that axis. Drag a colored square to move along two axes at once. ![Radio placement in a vehicle with Move selected, red, green, and blue movement arrows, plane squares, and apply, save, and cancel buttons](https://docs-assets.sonoransoftware.com/sha256/38/386f99fdc9b22d931cd014c8d2b23e8ecb5d6d4ac3a366b72fd6b4e372d4cae0.png) *Drag an arrow to move along one axis, or a square to move along two.* ### Rotate Select **Rotate** and left-drag a colored ring to turn the radio around that axis. The outer ring rotates it relative to your current view. ![Radio placement in a vehicle with Rotate selected, red, green, and blue rotation rings, the outer view ring, and apply, save, and cancel buttons](https://docs-assets.sonoransoftware.com/sha256/be/befa965d75209d16f39d724d4e7127f22d9f6e07196b68329598af5697ba9e55.png) *Drag a colored ring to rotate the radio, or use the outer ring to rotate relative to your view.* Switch between **Local axes** and **World axes** to align movement and rotation with the radio or the world. Enable **Snap** for 1 cm movement and 5° rotation steps. ### Adjust your view | Control | Action | | - | - | | Right-drag | Look around the cabin. Enable **Orbit radio** to circle the radio instead. | | Middle-drag | Lean the camera slightly. | | Mouse wheel | Zoom in or out. | | **Look at display** | Aim the camera at the radio. | | **Cabin view** | Restore the starting camera view. | ### Apply or save * **Apply to this vehicle** applies the placement to the current radio without saving it for other vehicles. * **Save for this vehicle model** saves the placement and uses it for vehicles of the same model. This requires administrator access when menu restrictions are enabled. * **Reset** restores the radio's position and rotation from when you opened the editor. * **Cancel** leaves an existing radio unchanged, or removes a new radio created for this placement session. When restrictions are enabled in [configuration](/radio/game-integrations/fivem/vehicle-radio-display#configuration), menu access uses the configured permissions. With ACE permissions, `Config.acePerms.aceObjectUseMenu` grants menu access and `Config.acePerms.aceObjectAdminUseMenu` grants administrator access, including model saves. Keep the vehicle stopped while placing the radio. Moving the vehicle or leaving it cancels placement. Close the tablet or other windows before opening the editor. ### `radios.json` Property Explanation | Property Name | Example | Notes | | - | - | - | | `ID` | `2` | A unique ID for this saved radio placement. | | `Position` | | The radio's saved x, y, and z offsets. | | `Rotation` | | The radio's saved pitch, roll, and yaw. | | `Vehicle` | `POLICE` | This is the vehicles spawn code | | `Bone` | `-1` | The vehicle attachment point used by the radio. | ### Commands | Command Name | Command Description | Required Permissions | | - | - | - | | `/radiodisplay` | Open the radio menu to spawn or reposition a display. | As configured | ### Default Vehicles | Vehicle Spawncode | Adds Radio by Default | | - | - | | `FBI` | `yes` | | `FBI2` | `yes` | | `POLICE` | `yes` | | `POLICE2` | `yes` | | `POLICE3` | `yes` | | `POLICE4` | `yes` | | `POLICEOLD1` | `no` | | `POLICEOLD2` | `no` | | `SHERIFF` | `yes` | | `SHERIFF2` | `yes` | ## Additional Display Resources Loving the radio display? Check out our [in-vehicle police radar](/store/radar-display) and [radar detector](/store/radar-detector) displays! ![](https://docs-assets.sonoransoftware.com/sha256/9a/9abde9d9004c3e914a0499c1011ea0e76612e1b26fdf21361545d04f2606bb8a.png) *Sonoran Store: Radar Display* ![](https://docs-assets.sonoransoftware.com/sha256/85/8513b68b4e372dc36eba3121118a08a5829930a87784d19890e629155bc4dae8.png) *Sonoran Store: Radar Detector* ### Changelog #### v1.0.1 * `fix: Duplicate radio items when a passenger is in the vehicle` #### v1.0.0 * `Initial Release` # Choose Your Game Source: https://docs.sonoransoftware.com/radio/game-integrations/game-integrations Connect Sonoran Radio to your game. Choose your game for installation and game-specific features. | Game | Setup | Radio controls | | - | - | - | | [FiveM](/radio/game-integrations/fivem) | Install the FiveM resource. | In-game radio | | [Roblox / ER:LC](/radio/game-integrations/roblox) | Link your ER:LC private server and Roblox account. | Desktop app and overlay | | [Arma 3](/radio/game-integrations/arma-3) | Install the Arma mod on the server and player computers. | Desktop app and overlay | **[Star Citizen](/radio/game-integrations/star-citizen):** Coming soon. Community setup, channels, and dispatch controls are covered in [Getting Started](/radio/tutorials/getting-started) and [Using Sonoran Radio](/radio/tutorials/usage). # ER:LC (Roblox) Source: https://docs.sonoransoftware.com/radio/game-integrations/roblox Use Sonoran Radio with Roblox and connect ER:LC signal coverage. Use the [Sonoran Radio desktop app and overlay](/radio/tutorials/usage/desktop-overlay) while playing Roblox. For **Emergency Response: Liberty County (ER:LC)**, connect your private server to add live player positions and location-based radio signal: 1. [Link your server and Roblox account](/radio/game-integrations/roblox/erlc-setup). 2. [Place virtual towers and check player coverage](/radio/game-integrations/roblox/erlc-signal-towers). 3. [Open the desktop overlay](/radio/tutorials/usage/desktop-overlay#open-the-overlay). ER:LC does not require an in-game resource. The ER:LC integration applies to ER:LC private servers. Use [Dispatch AI for ER:LC](/radio/game-integrations/roblox/erlc) for voice channel controls, timers, CAD actions, and emergency call readouts. # Dispatch AI for ER:LC Source: https://docs.sonoransoftware.com/radio/game-integrations/roblox/erlc Read ER:LC emergency calls over the correct Sonoran Radio channels with Dispatch AI. Use the [shared Dispatch AI commands](/radio/tutorials/usage/dispatch-ai#radio-commands) to change channels, manage scanned channels, set timers, and work with CAD through the desktop app. ER:LC also supports automatic emergency call readouts. ## Emergency Call Readouts 1. Complete the [common Dispatch AI setup](/radio/tutorials/usage/dispatch-ai#common-setup). 2. [Connect your ER:LC private server to Sonoran CAD](/cad/integration-plugins/erlc/getting-started), including the event webhook, and enable emergency call synchronization for the desired teams. 3. Confirm that Radio's **Customization** > **Dispatch AI** links to the same CAD server receiving those calls. 4. Complete the [Radio ER:LC setup](/radio/game-integrations/roblox/erlc-setup). 5. In Radio, open **Customization** > **Game Integration** > **ER:LC**. Select **Emergency Zones** and choose the **Room** running Dispatch AI. 6. Use **Draw Polygon** or **Draw Circle** to create a zone. Select the zone and choose its **Transmit channels**. 7. Submit an ER:LC emergency call inside a zone and check that it reaches CAD and is read over the assigned channels. ![ERLC emergency zone editor with Dispatch and Patrol selected as transmit channels](https://docs-assets.sonoransoftware.com/sha256/26/266e20f84f2a51d01e5a4aeccde1a0a3694cdfc8b45d3bfe0f2e7d20212e9671.jpg) *Select the room, draw a zone, and choose which channels receive its emergency call readouts.* Dispatch AI creates a dispatch call, removes the original 911 call, and reads it over the zone's channels. The imported call must include coordinates inside a configured zone. Linking ER:LC to Radio provides the Radio integration; the CAD connection imports emergency calls. Both are needed for these readouts. > [accordion] A call is not being read out > > 1. Confirm the emergency call appears in the linked CAD server. > 2. Confirm it has coordinates inside an emergency zone. > 3. Check that the zone has channels assigned for the room running Dispatch AI. > 4. Confirm Dispatch AI is enabled, has remaining usage, and is not paused for a human dispatcher. ## Use the AI While Playing 1. Sign in to the Sonoran Radio desktop app and join your community's Radio server. 2. [Open the overlay](/radio/tutorials/usage/desktop-overlay#open-the-overlay). 3. Hold push-to-talk and say, for example, “Dispatch, switch me to Patrol.” See [Radio Commands](/radio/tutorials/usage/dispatch-ai#radio-commands), [Timers](/radio/tutorials/usage/dispatch-ai#timers), and [Sonoran CAD Commands](/radio/tutorials/usage/dispatch-ai#sonoran-cad-commands). # ER:LC Frame Changes Source: https://docs.sonoransoftware.com/radio/game-integrations/roblox/erlc-1 Use the visible ER:LC ELS controller to switch desktop radio layouts, including macOS screen-recording setup. The Sonoran Radio desktop overlay can automatically display your selected frame's Vehicle layout when ER:LC's **ELS controller** is visible in the bottom-right corner of the Roblox window. When the controller is absent, it displays the On-foot layout. ![ER:LC ELS controller with siren buttons, alley and spotlight controls, and the emergency-light stage selector](https://docs-assets.sonoransoftware.com/sha256/81/816a1c3c8c181f259239d44aa2a6e0f576dfef92a23582339597d816c652319a.png) *The bottom-right ELS controller identifies the Vehicle layout even when emergency lights are off.* > [!WARNING] > > This feature identifies the visible ELS controller. Civilian vehicles and other vehicles without that controller use the On-foot layout, even while you are seated. Keep the controller visible to use the Vehicle layout. ## Configure the community 1. In the Radio panel, open **Customize** > **Game Integration** and select **ER:LC**. 2. Follow [Configure frames and variants](/radio/tutorials/usage/desktop-overlay/changing-radio-frames#configure-frames-and-variants) to save **On-foot** and **Vehicle** layouts in **Customize** > **Overlay**. After an administrator saves frame changes, close and reopen any overlay that is already running so it downloads the updated frames and variants. ER:LC frame detection uses local screen access and does not require an ER:LC API key or a linked Roblox account. [Private-server and Roblox account linking](/radio/game-integrations/roblox/erlc-setup) configure location-based radio signal separately. ## Enable detection on your computer 1. Open ER:LC in the Roblox player and start the Sonoran Radio **desktop app**. 2. Open your Radio community, connect to a channel, and select the **Overlay** tab beside **Dispatch**. See [Open the Overlay](/radio/tutorials/usage/desktop-overlay#open-the-overlay). 3. Open the overlay's **Radio Settings** > **Audio** and select the desired radio frame. 4. In **ER:LC vehicle detection**, turn on **Use screen detection**. 5. Leave **Roblox window** on **Find Roblox window automatically**, or select the correct Roblox player window if more than one is open. Use **Refresh Roblox windows** if it is missing. 6. Enter a vehicle with an ELS controller and keep the controller visible. Allow a few seconds for the radio to confirm the change. Exit the vehicle to check that the On-foot layout returns. Emergency lights and sirens can be on or off. The detector checks the controller's presence, and confirms repeated readings to avoid switching layouts from a single capture. Detection preferences are saved on each computer. The desktop app checks window images locally; screen images are not saved or uploaded. ## Allow screen access on macOS If macOS blocks access, **ER:LC vehicle detection** displays permission guidance: 1. Select **Open System Settings**. 2. Open **Privacy & Security** > **Screen & System Audio Recording**. Older macOS versions call this **Screen Recording**. 3. Enable **Sonoran Radio**. 4. Fully quit and reopen Sonoran Radio, then reopen the overlay. 5. Return to **ER:LC vehicle detection** and select **Check access** if needed. For first-time access, this button can request permission from macOS. If access is restricted by your Mac's administrator, ask them to enable it. If the settings button cannot open System Settings, navigate to the same panel manually. ## Check detection and troubleshoot The detection status is in **Radio Settings** > **Audio** > **ER:LC vehicle detection**. The frame itself does not display a separate detection badge. | Status or symptom | What to check | | - | - | | Off | Turn on **Use screen detection**. | | Looking for Roblox window | Open the Roblox player and refresh the window list. Roblox Studio is not a capture target. | | Screen recording access required | Follow the macOS permission steps above, then fully quit and reopen Radio. | | On foot while seated | Confirm that the vehicle has a visible bottom-right ELS controller. | | In a vehicle, but the artwork is unchanged | Confirm that the selected frame has a saved Vehicle variant, then close and reopen the overlay to load recent edits. | | Unable to determine vehicle state or an unreadable window | Restore the Roblox window, confirm the selected capture window, and show the ELS controller clearly. | **Last ELS controller check** shows whether the controller was found, absent, or uncertain. An unreadable capture can temporarily retain the last confirmed layout, so allow a few seconds after restoring the window before checking again. To select a different radio design while playing, use the [previous/next-frame desktop hotkeys](/radio/tutorials/usage/desktop-overlay/changing-radio-frames#change-frames-with-desktop-hotkeys). Automatic detection applies the current state to that frame's saved variants. # ER:LC Setup Source: https://docs.sonoransoftware.com/radio/game-integrations/roblox/erlc-setup Link your ER:LC private server and Roblox account to Sonoran Radio. ## Before You Begin You need an ER:LC private server with the **API Pack** upgrade and permission to customize your Radio community. ## Get Your ER:LC API Key 1. In ER:LC, open **Menu** > **Servers** > **Owned Servers**. 2. Select your private server. If needed, purchase **Upgrade Packs** > **API Pack**. 3. Join the server and open **Server Info** > **Edit Server Settings**. 4. Under **ER:LC API**, select **Edit** and copy the key. Keep your API key private. ## Link the Private Server 1. Open your Radio community. 2. Navigate to **Customize** > **Game Integration** > **ER:LC**. 3. Paste the key into **ER:LC API Key** and select **Link Server**. 4. Confirm that **ER:LC Private Server** displays your server's join code. ![ER:LC API key field and Link Server button](https://docs-assets.sonoransoftware.com/sha256/70/7032ba748ea7904413d6b2d5d7be54f1cab2e35dabbbb8b593d289c1529f068b.jpg) *Enter your private-server API key to connect ER:LC.* ![Linked ER:LC private server with a join code and Unlink button](https://docs-assets.sonoransoftware.com/sha256/f1/f104f2005d9bd2b63ee08defff14c3ca296edf403465327fb90d3cc311a64901.jpg) *The join code appears once the server is linked.* ## Link Your Roblox Account Each player must link the Roblox account they use in ER:LC to receive location-based signal. 1. Sign in to Radio and open the linked community or standalone radio view. 2. Select **Link Roblox** in the red banner above the radio panel. 3. Sign in to Roblox and authorize the link. 4. Return to Radio. The banner disappears when the linked account is detected. ![Link Roblox banner in Sonoran Radio](https://docs-assets.sonoransoftware.com/sha256/57/57ab77cffcda3a33122ca0e38f196712f16e8c866d4d64a12ee369c1a987da82.jpg) *The banner appears above the radio panel for players who have not linked Roblox.* Already linked Roblox through another Sonoran product? You can use that existing link. ## Add Coverage and Start Playing 1. [Place virtual signal towers](/radio/game-integrations/roblox/erlc-signal-towers). 2. Join the linked ER:LC private server. 3. Connect to your Radio channel in the desktop app and [open the overlay](/radio/tutorials/usage/desktop-overlay#open-the-overlay). > [accordion] Replace the API key or disconnect the server > > 1. Select **Unlink** and confirm. > 2. To reconnect, enter the new API key and select **Link Server**. > > Live player positions and signal updates stop while the server is unlinked. For automatic emergency call announcements, complete [Dispatch AI for ER:LC](/radio/game-integrations/roblox/erlc). # Virtual Towers & Live Players Source: https://docs.sonoransoftware.com/radio/game-integrations/roblox/erlc-signal-towers Place virtual towers and view ER:LC player signal coverage. Virtual towers provide location-based radio signal to your **desktop overlay while playing ER:LC**. The signal bars change as you drive into and out of tower coverage. ![Driving in ERLC with the Sonoran Radio desktop overlay and an arrow pointing to its tower signal bars](https://docs-assets.sonoransoftware.com/sha256/8c/8c04de0b9c3213d5f2d3ba70da7af412282f0f4a1cfbfc60722cc488722f1041.png) *The overlay's signal bars reflect your coverage from the virtual towers.* > [card] [Radio Overlay](/radio/tutorials/usage/desktop-overlay) First, [link your private server and Roblox account](/radio/game-integrations/roblox/erlc-setup), then open the desktop overlay. ## Place a Tower 1. Open **Customize** > **Game Integration** > **ER:LC**. 2. Under **ER:LC Map Configuration**, select **Towers**. 3. Select **Place Tower**, then click a location on the map. 4. Enter a **Tower name** and set its **Range**. 5. Click outside the field to finish editing. Changes save automatically. ![ER:LC virtual tower coverage with the Edit Tower controls open](https://docs-assets.sonoransoftware.com/sha256/24/24bb45f9bce74d33b98446d6f9834bbe511bf4ad6f2422cd75f5d377add4096a.jpg) *Name each tower and adjust its coverage range.* Click a tower to edit it. Drag its marker to move it, or select **Delete Tower** to remove it. With **zero towers**, Radio keeps signal at **100%** even if the user's Roblox account or player location is unavailable. Placing the first tower enables location-based signal. Removing the last tower restores full signal on the next refresh. ## Check Signal Coverage Green indicates stronger coverage; yellow and red indicate weaker coverage. Outside a tower's range, it provides no signal. Where towers overlap, players use the strongest available signal. In **Towers** mode, hover over the map to preview the signal percentage at that location. To make signal quality affect transmission audio, your community needs to configure **Custom Voice Effects** and assign the effect profile to its radio channels. Enable effects such as **Clipping**, **Digital**, or **Analog** to make audio cut out, distort, or become static-filled as tower signal weakens. Follow the guide below to customize and apply these effects. > [card] [Custom Voice Effects](/radio/tutorials/usage/dispatch-panel/custom-voice-effects) ## View Live Players Players matched to linked Roblox accounts appear as blue markers with their names and signal percentages. Join the linked ER:LC server and allow a few seconds for the map to refresh. ![ER:LC map showing player names and different signal percentages](https://docs-assets.sonoransoftware.com/sha256/05/050a876a313927ce0948f4a37ceaa2ac636cf013b75c367b2e63042ae5c78c09.jpg) *Player markers show how coverage changes across the map.* > [accordion] Configure emergency zones > > 1. Select **Emergency Zones** in the same map editor. > 2. Choose the **Room**. > 3. Select **Draw Polygon** and place at least three points, then select **Finish Zone**. Or select **Draw Circle**, click its center, then click its edge. > 4. Enter a **Zone name** and choose **Transmit channels** in the zone settings. > > Select a zone to edit it. Drag the handles to reshape it, or select **Delete Zone** to remove it. Zones belong to the selected room; changes save automatically. > [accordion] A player is missing or has no signal > > 1. Confirm the private server is linked under **Game Integration**. > 2. Confirm the player joined that ER:LC private server. > 3. Link the Roblox account the player is using to their Sonoran account. > 4. Make sure the player is within a tower's range. > 5. Allow a few seconds for the next update. # Star Citizen — Coming Soon Source: https://docs.sonoransoftware.com/radio/game-integrations/star-citizen Star Citizen integration is coming soon. **Coming soon.** In the meantime, use the [Sonoran Radio desktop app and overlay](/radio/tutorials/usage/desktop-overlay) for radio communication while playing. # Radio Hardware Source: https://docs.sonoransoftware.com/radio/hardware Connect an external push-to-talk button or headset to Sonoran Radio. > [!NOTE] > > **Gaming communities are limited to two users with hardware access enabled at a time**, > across all rooms. Real-world agencies will need **Sonoran Radio Enterprise (coming soon)**. > [!WARNING] > > Hardware support is experimental and in testing. You may encounter bugs. Use an external push-to-talk button to transmit on your Sonoran Radio channels: hold to talk, release to stop. Audio pairing and PTT button setup are separate. ## Connection options | Platform | Control options | | - | - | | iOS and Android | Keyboard/HID, AINA A.18 BLE, Jabra / BlueParrott BLE, Blu-PTT BLE, PTT-Z BLE | | Android | BlueParrott Classic, Zello-style Bluetooth serial (SPP), USB-C CDC, configured phone PTT buttons | | iOS | MFi accessories using the PTT SDK protocol | See [Protocols and Standards](/radio/hardware/protocols) for the exact interfaces. ## Set up an accessory 1. Connect to your community, then open **Settings → Hotkeys → External PTT Button**. 2. Pair headset audio in your phone's Bluetooth settings. Pair Android serial and BlueParrott Classic accessories there too. 3. Choose the control connection below, select your accessory, and press **Connect**. 4. The primary button is selected automatically. Press and release once to arm it. To choose another button, select **Assign Accessory Button** and press/release it. Button checks in settings do not transmit. 5. Close settings, hold the button to talk, and release to stop. Wait for the transmit indication before speaking. **Keep the app open and the screen awake.** | Accessory | Setup control | | - | - | | Bluetooth BLE or Android serial/Classic | **Find Bluetooth Accessory** | | Android USB-C CDC | **Find USB Accessory**; allow USB access, then find/connect again | | iOS MFi | Pair or plug in the accessory, then **Find MFi Accessory** | | Android phone button | **Phone PTT Buttons**, then connect the phone-button adapter | | Keyboard/HID button | Pair in system settings, then **Assign Keyboard Button** and press/release it | Your first assigned PTT press requests a hardware slot; **Enable Hardware Access** reserves one beforehand. The slot stays reserved between transmissions. If both slots are occupied, a popup explains the limit and on-screen PTT remains available. Use **Release Hardware Slot** to free it when finished. Connecting a Jabra / BlueParrott control assigns its configurable button to Sonoran Radio. Restore its previous function in the manufacturer's app when needed. Close other PTT apps that may own the accessory connection. ## Falconclaw setup Follow the [Falconclaw pairing manual](https://www.falconclaw.eu/cdn/shop/files/FC_PTT_MANUAL_PUBLIC.pdf?v=4001290175019457488) to pair **FALCONCLAW** audio and **BLU-PTT** control. Choose the Blu-PTT entry in **Find Bluetooth Accessory**. FC-PTT compatibility is awaiting confirmation from hardware testing. Bluetooth audio uses Falconclaw's onboard microphone. ## Configured Android phone buttons Configure your phone's button mapper to send the [Zello-style press/release actions](/radio/hardware/protocols#android-phone-button-broadcasts) to Sonoran Radio. A mapping targeted only at Zello will not reach Sonoran; available mapping options depend on your phone's firmware. ## Reconnecting Leaving the app, losing the control connection, or disconnecting releases hardware access. Return to the app and reconnect if needed. For a sleeping PTT-Z button, press and release to wake it, then hold again to talk. A continuous transmission ends after 60 seconds; release before pressing again. # Hardware Protocols and Standards Source: https://docs.sonoransoftware.com/radio/hardware/protocols External PTT interfaces, platform support, and original specifications. For pairing instructions, see [Radio Hardware](/radio/hardware). ## Keyboard and HID input **iOS and Android.** OS-paired keyboard controls provide physical key-down/key-up events through [GCKeyboard](https://developer.apple.com/documentation/gamecontroller/gckeyboard) on iOS and [hardware key events](https://developer.android.com/develop/ui/views/touch-and-input/keyboard-input/commands) on Android. A media play/pause toggle is not a held PTT button. ## AINA A.18 BLE **iOS and Android.** [AINA A.18 specification](https://ainaptt.com/wp-content/uploads/2024/08/AINA_APTT_Communication_Protocol_v18_aina.pdf), for Voice Responder firmware FW2251A1 or later. | Field | Value | | - | - | | Service | `127FACE1-CB21-11E5-93D0-0002A5D5C51B` | | Button characteristic | `127FBEEF-CB21-11E5-93D0-0002A5D5C51B` | | Primary / secondary | Bits `0x01` / `0x04` | | Heartbeat | Bit `0x80`; two-second held-button watchdog | ## Jabra / BlueParrott BLE **iOS and Android.** [BlueParrott BLE specification](https://blueparrott-developer.net/Home/InterfaceSpecificationBLE). | Field | Value | | - | - | | Service | `95665A00-8704-11E5-960C-0002A5D5C51B` | | Button characteristic | `66339E60-D55A-11E5-B7CB-0002A5D5C51B` | | Mode characteristic | `8D2EDDE0-D55A-11E5-A6C4-0002A5D5C51B` | | Setup | App name `Sonoran Radio`, key `sdk`, mode `2` | | Events | `0` release, `1` press | ## PTT-Z BLE **iOS and Android.** [PTT-Z01 protocol reference](https://github.com/dannymcc/android-ble-ptt). Advertised name starts with `PTT`; service `FFE0`, notify characteristic `FFE1`. One byte: `01` press, `00` release. The first release arms input. ## Blu-PTT BLE **iOS and Android.** [Blu-PTT implementation reference](https://www.b4x.com/android/forum/threads/ble-manager-scan2.110849/) and [ProPTT2 control reference](https://dev.proptt2.com/docs-net-bluetooth.html). | Field | Value | | - | - | | Advertised service | `2320AE58-8394-4652-95F7-0A872AC0958F` | | Notification service | `89A8591D-BB19-485B-9F59-58492BC33E24` | | Button characteristic | `894C8042-E841-461C-A5C9-5A73D25DB08E` | | Events | `01` press, `00` release | Named Blu-PTT devices can also be discovered without an advertised service UUID. Connection verifies the notification interface. The first release arms input. ## Android BlueParrott Classic **Android.** [BlueParrott Classic specification](https://blueparrott-developer.net/Home/InterfaceSpecificationBluetoothClassic). Uses `+ANDROID` vendor commands with qualifier `BP`, app name `Sonoran Radio`, key `sdk`, and mode `2`. Matching state confirmation enables `PTT,P` press and `PTT,R` release events from the selected headset. ## Android phone-button broadcasts **Android.** [Zello OEM specification](https://support.zello.com/zw/zello-hardware-partner-technical-integration). | Button | Press | Release | | - | - | - | | Primary | `com.zello.ptt.down` | `com.zello.ptt.up` | | Secondary | `com.zello.intent.buttonExtra1.down` | `com.zello.intent.buttonExtra1.up` | The mapper must broadcast implicitly or target `com.sonoranradio`. The receiver runs while the adapter is selected and the app is in the foreground. ## iOS MFi PTT SDK **iOS.** [MFi PTT SDK v1.1](https://blueparrott-developer.net/Home/CustomMfiPttProtocol), using ExternalAccessory protocol `com.pttsdk.ea.protocol`. Packets contain start byte `3C`, type, big-endian command and payload length, optional payload, then end byte `3E`. Zero-payload Notify type `02` commands `1001` and `1005` represent press and release. The first release arms input. ## Android Bluetooth SPP **Android.** [Zello serial specification](https://support.zello.com/zw/zello-hardware-partner-technical-integration). Paired device name contains case-sensitive `PTT`; SPP UUID `00001101-0000-1000-8000-00805F9B34FB`. ```text theme={null} +PTTS=P button down +PTTS=R button up ``` The first release arms input. ## Android USB-C CDC **Android.** [Zello USB-C specification](https://support.zello.com/zw/zello-hardware-partner-technical-integration). A CDC-DATA interface with one bulk-IN endpoint carries two-byte messages: key code, then state. Odd states mean pressed; even states mean released. Primary PTT is `0x46`; secondary PTT is `0x66`. Audio uses its separate interface. # Pricing FAQ Source: https://docs.sonoransoftware.com/radio/pricing/pricing-faq Learn more about Sonoran Radio's paid plans! ## Does the vocoder require Pro? **Server AMBE vocoding requires Sonoran Radio Pro.** It processes community voice effects on the server and adds a small network delay. Codec2 vocoding and other custom voice effects remain available on Free, Plus, and Pro. See [Custom Voice Effects](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#vocoder) for setup instructions, or [View and Compare Plans](/radio/pricing/pricing-faq/standalone-pricing#server-ambe-vocoder) for the plan comparison. # View and Compare Plans Source: https://docs.sonoransoftware.com/radio/pricing/pricing-faq/standalone-pricing Learn more about pricing on Sonoran Radio standalone! Subscription Options All payment options are monthly or quarterly (3 month) subscriptions. Quarterly subscriptions offer a 25% discount. | Subscription | Monthly | Quarterly | | - | - | - | | Free | \$0/mo | \$0/qr | | Plus | \$14.99/mo | \$33.75/qr | | Pro | \$19.99/mo | \$45/qr | ## Subscription Limits Specific features are limited based on the subscription version. View the details below: ### Connected Users Depending upon your subscription level, your community is limited to the maximum amount of users connected at one time. ![](https://docs-assets.sonoransoftware.com/sha256/d1/d1d47adf212799e4767a686ad1062674ad3e1b811cbf09bd6a6dd23cb83c2fbc.png) | Subscription | Limit | | - | - | | Free | 10 Connected Users | | Plus | 30 Connected Users | | Pro | Unlimited Connected Users | ### [Multi-Server](/radio/tutorials/usage/dispatch-panel/multi-server) Using multiple identical servers for overflow?\ Multi-server lets each server run independently while sharing the same channel setup, keeping communications separate and organized. | Subscription | Limit | | - | - | | Free | 1 Server | | Plus | 1 Server | | Pro | Unlimited Servers | ### [Server AMBE Vocoder](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#vocoder) Server-sided AMBE vocoding for community voice effects requires **Pro** and adds a small network delay due to server-sided processing. | Subscription | Server AMBE | | - | - | | Free | 🚫 | | Plus | 🚫 | | Pro | ✅ | Codec2 vocoding and other custom voice effects remain available on all plans. Server AMBE is available for community voice effects, rather than local listener effects. ### [Desktop Overlay](/radio/tutorials/usage/desktop-overlay) Customize your desktop overlay with unique radio frames for your community! Pro adds custom frame artwork and the **Custom** screen editor for colors, typography, icons, and layout. ![](https://docs-assets.sonoransoftware.com/sha256/1b/1b95c22c761bcd9f8f605cc09842288a17c0f1c539cc3e7c0b9fe686def2f568.png) | Subscription | Limit | | - | - | | Free | Default three frames | | Plus | Default three frames | | Pro | Full frame and screen customization | ### [Overlay AI](/radio/tutorials/usage/desktop-overlay/overlay-ai) Create custom radio frame artwork and editable screens from descriptions or reference photos, then refine colors, icons, labels, and layouts with chat. ![Sonoran Radio Overlay AI creating a custom radio frame and screen from a reference photo](https://docs-assets.sonoransoftware.com/sha256/3f/3f5d844c86ee1d8b71b199779778e7182ef85f7c952cf3cb37e3d403ebc1d9e0.webp) | Subscription | Limit | | - | - | | Free | 🚫 | | Plus | 🚫 | | Pro | Monthly AI allowance included | The editor displays the remaining allowance and reset date. Usage varies by request, with new frame artwork using more than a simple screen edit. The allowance resets on the first of each month in UTC. See [Overlay AI usage](/radio/tutorials/usage/desktop-overlay/overlay-ai#monthly-ai-allowance). ### [Hear Nearby Radio Chatter](/radio/game-integrations/fivem/in-game-radio/hear-nearby-radio-chatter) and [Scanners](/radio/game-integrations/fivem/in-game-radio/radio-scanners) ![](https://docs-assets.sonoransoftware.com/sha256/15/151b96da3c9dbd5e0def58a604a1812f1293f7869c6c7bd5a50517ce82fbf640.png) *Sonoran Radio - Hear Nearby Chatter* ![](https://docs-assets.sonoransoftware.com/sha256/07/07e60ca5cd2acfba3fb1fad2bcf88a09d70e69dbb28739c4ae9b09c61e2bbc30.png) *Sonoran Radio - Scanners* Pulled over in a traffic stop? You'll hear the real radio chatter when an officer has an active radio nearby! | Subscription | Limit | | - | - | | Free | 🚫 | | Plus | 🚫 | | Pro | ✅ | ### [In-Game Background Audio](/radio/game-integrations/fivem/in-game-radio/background-audio-injection) ![](https://docs-assets.sonoransoftware.com/sha256/e0/e097a62070e9a5df5af36a1206c923cb3f3ea468a92eafe432ffe04446161768.png) Experience immersive, realistic transmissions with in-game sirens, rotor blades, gunfire, and more blended into your microphone audio. | Subscription | Limit | | - | - | | Free | 🚫 | | Plus | 🚫 | | Pro | ✅ | ![](https://docs-assets.sonoransoftware.com/sha256/8d/8d41770af30c09e970ca65be05be7fe622dc4e46edaf02c23151bcb98ecbe039.png) ### [Community-Wide Sound Effect Customization](/radio/tutorials/usage/dispatch-panel/custom-sfx#community-wide-sfx) * Key Up/Down SFX * Talkover Deny/Override SFX * Incoming Emergency Call SFX | Subscription | Limit | | - | - | | Free | 🚫 | | Plus | ✅ | | Pro | ✅ | ### [Per-User Sound Effect Customization](/radio/tutorials/usage/dispatch-panel/custom-sfx#per-user-sfx) * Key Up/Down SFX | Subscription | Limit | | - | - | | Free | 🚫 | | Plus | 🚫 | | Pro | ✅ | ### [Transmission Logs](/radio/tutorials/usage/dispatch-panel/transmission-logs) ![](https://docs-assets.sonoransoftware.com/sha256/62/627b74999d4b820936c9b226911d1eb228f0b5078089257003bf0d351aef7037.png) | Subscription | Limit | | - | - | | Free | 🚫 | | Standard | 🚫 | | Pro | ✅ | ### [Custom Domain](/radio/tutorials/usage/dispatch-panel/custom-domain-vanity-url#custom-domain) ![](https://docs-assets.sonoransoftware.com/sha256/37/3739f5f1066ff1255f959a7afbee54e910feb2045e5fd9cfb4e8bcf2a9035edf.png) | Subscription | Limit | | - | - | | Free | 🚫 | | Standard | 🚫 | | Pro | ✅ | ### [Custom Community ID (Vanity URL)](/radio/tutorials/usage/dispatch-panel/custom-domain-vanity-url#customizing-your-community-id) | Subscription | Limit | | - | - | | Free | 🚫 | | Standard | ✅ | | Pro | ✅ | ### [Dispatch AI](/radio/tutorials/usage/dispatch-ai) Dispatch AI usage is limited by total AI token usage. Token usage varies depending on request length, task complexity, and the number of actions performed. The limits below are conservative estimates of the number of requests supported by each tier. | Subscription | Average Number of Prompts per Month | | - | - | | Free | \~140-360 | | Standard | \~1,400-3,600 | | Pro | \~4,200-10,750 | # Roadmap & Changelog Source: https://docs.sonoransoftware.com/radio/roadmap/roadmap-and-changelog View our development team's upcoming roadmap and historical changelog. # Changelog Source: https://docs.sonoransoftware.com/radio/roadmap/roadmap-and-changelog/changelog View the changelog for the Sonoran Radio application and in-game resource. ### 2.28.15 11/05/2026 > [tab] New > > Website: Homepage and Feature Pages > > * Updated the homepage and feature pages with current product images, voice samples, and improved sharing previews. > > Billing and Community Gifts > > * Added a compact billing page with account credit and community assignment, plus a configurable gift link in the community header. ### 2.28.14 10/22/2026 > [tab] Changed > > Hardware PTT: Simpler Accessory Setup > > * Simplified device selection and setup instructions for PTT buttons and accessories. ### 2.28.13 10/21/2026 > [tab] New > > Android: Screen-Off Hardware PTT > > * Added support for retaining connected PTT accessories while the screen is off during an active Android radio session. ### 2.28.12 10/21/2026 > [tab] New > > Enterprise: Product Preview > > * Added the Enterprise landing page with hardware compatibility information, \$8-per-user pricing, and service reliability details. > > Hardware: External Push-to-Talk (Experimental) > > * Added foreground hardware PTT controls for iOS and Android, with a two-user limit per gaming community and a clear notice when all slots are in use. ### 2.28.11 10/14/2026 > [tab] New > > Panic CAD Sync > > * Triggering radio panic will sync to your linked CAD community > > Discord Role Mapping > > * Discord \<-> Radio permission syncing > * Configurable through Radio UI and Discord bot settings > [tab] Changed > > Custom Screen Editor > > * Configurable text alignment > * Configurable button text color > * Decorative images ### 2.28.10 10/13/2026 > [tab] Changed > > Store Listing Screenshots > > * Updated iPhone, iPad, and Google Play screenshots to show radio channels, voice effects, game integrations, and scan lists. > [tab] Fixed > > Mobile: Camera Uploads and Purchase Promotions > > * Fixed camera photo uploads on iOS and removed custom domain configuration and purchase promotions from mobile apps. ### 2.28.7 10/08/2026 > [tab] New > > ER:LC Automatic Frame Change: > > * Being on-foot or in a vehicle will now change your radio frame to what's configured in your Overlay editor > > Frame Scroll Hotkeys: > > * Hotkeys added to swap between frames with ease > > Overlay AI: > > * Generate custom screens and frames with our Overlay AI > * Use reference photos to create realistic frames and screens based on your favorite radio models > > FiveM Guest Only: > > * Toggle your FiveM server to use a guest only mode based on ACE permissions ### 2.28.5 09/24/2026 > [tab] Fixed > > Dispatch AI: Free Community Voice Requests > > * Fixed voice requests failing when transmission recordings are enabled on a free community. ### 2.28.4 09/23/2026 > [tab] Changed > > FiveM Radio Frames: Portal Customization > > * Existing local skins migrate automatically, and frame layouts and vehicle class rules are now managed in Customize > Overlay. ### 2.28.2 09/21/2026 > [tab] New > > Overlay Config Overhaul > > * Overhaul of the desktop overlay configurator with options to select the screen theme, resize items easier, etc. > * Added an option to reset your overlay configuration to default for your game. > > Arma 3 Integration > > * Added full in-game integration for Arma 3. > > Game Selection > > * Select your game when registering your community for easier default customization. > [tab] Fixed > > Community Deletion > > * Fixed an issue after deleting a community causing an error, even though the community was fully deleted. ### 2.28.0 09/10/2026 > [tab] New > > Dispatch AI: Radio Channel Controls > > * Added voice commands to switch radio channels, manage scanned channels, report current channels, and repeat current call details. > > ER:LC Towers > > * Added virtual towers for ER:LC desktop signal strength > [tab] Fixed > > Mobile Builds: Store Publishing > > * Updated Android compatibility for Google Play and enabled replacement of pending TestFlight reviews for production iOS builds. ### 2.27.18 08/19/2026 > [tab] Fixed > > Desktop Overlay: Fullscreen Support > > * Fixed desktop radio overlays disappearing behind fullscreen applications when interacted with. ### 2.27.12 07/16/2026 > [tab] New > > Dispatch AI - Translation Support > > * Added multi-language support to Dispatch AI. Allowing users to speak and listen to the AI with non-English languages. ### 2.27.11 07/14/2026 > [tab] New > > General Theme Update > > * Updated the overall theme for dispatchers and admins > > Emergency Call Locality > > * Added customization to the "Call 911" button to use different numbers other than 911 for other countries > > Dial Pad SFX > > * Added customizable dial pad SFX when dialing a number in the emergency call tab or in the dispatcher's call tab > [tab] Fixed > > AI Wake Word Disabled > > * Fixed an issue where dispatch AI would say that it was offline when a wake word was detected even if your community had disabled the AI ### 2.27.10 07/13/2026 > [tab] Fixed > > Hotkey Clear > > * When pressing ESC on hotkey recording, the radio now properly clears the key instead of only working with the right click menu. ### 2.27.9 07/03/2026 > [tab] New > > Dispatch AI - Free > > * Unlocked dispatch AI to now be available on the free plan of both Sonoran Radio and CAD, with tiered token limits per-month. > > Billing Portal UI Revamp > > * Updated and revamped the Sonoran Radio billing portal > > Portal Revamp > > * Updated the main community selection portal to be more consistent with CMS and CAD portals > > Account Menu Revamp > > * Updated the account menu to be more consistent with the CMS and CAD menus, along with a social connect modal > [tab] Changed > > Header Logo Navigation > > * Updated the routing behavior when clicking on the Sonoran Radio logo in the top right ### 2.27.7 07/01/2026 > [tab] New > > Transmission Transcripts > > * All transmission logs for pro communities now contain transcripts from localized AI, no longer requiring communities to enter an external API key and pay for AI usage. > > Tone Board Voice Effects > > * Added a customization option to disable voice effects for tone board tones. > [tab] Fixed > > Tone Board TTS > > * Fixed an issue causing the localized text-to-speech tones on the tone board requiring pro instead of the free version ### 2.27.6 06/27/2026 > [tab] New > > FiveM Phone Dial > > * Added the ability to dial specific phone numbers in FIveM from the dispatch panel > > Server Rename > > * Added the ability to manually rename a server name in the radio panel for communities who have multiple > [tab] Changed > > Channel ID Display > > * Channel IDs are now displayed in the admin configuration menu ### 2.27.2 06/08/2026 > [tab] New > > Dispatch AI v2 > > * An overhaul to the AI dispatcher, no longer requiring you to bring your own AI API key. ### 2.27.0 06/01/2026 > [tab] New > > App Emergency Call > > * Added the ability to make emergency calls from the web, desktop, or mobile version instead of only in-game FiveM. > > In-Game Name Sync > > * Added a new config option allowing communities to sync users' in-game names to their radio display name. > > In-Game Emergency Call Mic Setup > > * Added a new command for users to change their microphone input device when placing in-game emergency calls. > > Custom Zone Maps > > * Added the ability to upload custom FiveM maps to the zone editor. > > Permission ID Generator > > * Added a UI in the members panel to generate and copy a bitwise permission ID for external use (Discord bot role sync). > > Admin Permissions > > * Removed the ability for users to remove their own admin permission. > > Tone Voice Effects > > * Tones played on the radio now have the custom voice effects applied to them. > > In-Game Errors > > * Added standardized error codes to the in-game resource complete with short links to specific documentation. > [tab] Changed > > Permission Removal > > * Restricted the ability to remove permissions from your own account > > Tone Stop on Channel Exit > > * Local tones now stop playing right away when exiting the channel they were playing on > > Framework Startup Retry > > * Added retry logic when the radio resource starts up if it fails to detect a framework (QB, QBox, ESX) due to startup order. > [tab] Fixed > > In-Game User List Resize > > * Fixed an issue with the in-game user list not being able to be resized and moved in some cases. ### 2.26.4 04/21/2026 > [tab] New > > Translations > > * Added translation support > > Log Search > > * Added the ability to view and search logs from user actions. > > FiveM Guest Login > > * Added a login method based on in-game ACE permissions, allowing users to login as guest and not require an account. > > Ban User > > * Added the ability to ban a user, preventing them from re-joining as a pending user. > > Tone Board Improvements > > * Added the ability to save tone stacks and the board now auto-selects your currently transmitting channels. > > Desktop Overlay > > * Added customizable desktop overlays to see your radio in-game on any application. > > Community Image Customization > > * Communities can now set a custom logo for their radio community > > Connected Users Popout > > * Added a new overlay window with a hotkey to show connected users > > Privacy Tab - Recordings > > * Added a tab to toggle on/off the ability to send local transmission recordings > > Stun > > * Added the ability to stun a user from talking temporarily. > > TTS Tone > > * Added AI text-to-speech support for tone board tones. > > Channel Volume > > * Added per-channel volume > > Client FX > > * Added client-sided customizable voice effects. > [tab] Fixed > > Emergency Call Disconnect > > * Fixed an issue where creating an emergency call would cause other users to listen in. > > URL Migration > > * Updated internal S3 storage URLs for newer infrastructure paths. > > Temporary Transmit Channel Change > > * Fixed an issue where using a hotkey to temporarily transmit in another channel resulted in the first channel still hearing you for a few seconds ### 2.26.3 - 04/07/2026 > [tab] New > > Client Side Voice FX > > * Individual users can now customize voice effects on their own, bypassing community channel-level FX. > > Vocoder Preview > > * Added audio preview support to the vocoder in the voice effect editor. > > Voice Effects: Unlimited > > * Removed paid restrictions, allowing the free tier to create unlimited custom voice effect profiles. > [tab] Changed > > EQ V1 Depreciation > > * Removed the old, depreciated V1 EQ option from the voice FX customization. ### 2.26.0 - 04/03/2026 > [tab] New > > Stream Deck Plugin > > * Added an official Stream Deck plugin for advanced control and integration > > Text-to-Speech Tones > > * Added free, localized text-to-speech tones in the tone board editor (permanent) and in the tone board (temporary) > * Tone board users can use speech-to-text to quickly enter text into the text-to-speech input > > Per-Channel Volume > > * Right-click or select the volume icon on a channel to adjust the per-channer volume ### 2.25.0 - 03/30/2026 > [tab] New > > Radio Channels: Unlimited for Free > > * Free communities can now configure unlimited channels without limits > > Tone Board: Unlimited for Free > > * Free communities can now configure unlimited tones without limits > > Stun User > > * Added a new right-click menu option and permission to stun a user from talking temporarily. > > Ping User > > * Added a new right-click menu option to ping a user > > User List Overlay > > * Added a new desktop overlay option with a hotkey to display the current list of users and channels > > Community Image > > * Added the ability to customize your radio community's logo > > Hotkey Recording > > * Added support for multi-combination hotkeys > * Hotkeys now auto-save after releasing the combination Open Overlay Mobile Button > > Open Overlay Mobile Button > > * Added a button on the "mobile" (non-dispatch) UI panel for desktop users with smaller windows > > Overlay Back Button > > * Tweaked the close button on the desktop overlay to swap back to the main radio screen instead of the community menu > > Settings Privacy Tab > > * Users can now individually opt-out of having their radio transmissions recorded > [tab] Fixed > > Temporary Transmit > > * Fixed an issue where using a hotkey to temporarily transmit in a specific channel resulted in your current channel still hearing your transmission briefly ### 2.24.5 - 02/18/2026 > [tab] Changed > > Desktop Overlay Promo > > * Added a check to ensure the community is on Pro before uploading a custom frame. > * Added a popup promotional to encourage upgrading when uploading a custom frame. > [tab] Fixed > > Desktop Overlay Overflow > > * Fixed an issue where users in channel would overflow the screen in the desktop overlay. > > Free Community Upload Overlay Frame > > * Fixed an issue with an undefined error message when a community on the free version would attempt to upload a custom radio frame. ### 2.24.4 - 02/17/2026 > [tab] New > > Desktop Overlay > > * Added a desktop overlay with customizable frames to display your radio on top of any game window. ### 2.24.0 - 01/29/2026 > [tab] New > > Geo Channels > > * Communities can now specify custom coordinate zones with specific radio channels to transmit and scan. When a player enters the zones, their radio channels will be automatically updated. > > Degrade/Tunnel Zones - Panel UI > > * Degredation zones can now be viewed and configured via the zones panel in Sonoran Radio. > > AI Emergency Zones > > * Communities can now create emergency zones for dispatch AI to read out CAD emergency calls to specific channels based on location. > > AI Auto-Status Routing > > * When the AI GPS routes a user to a specific postal or coordinate locations, the AI will automatically mark the unit as en-route and on-scene. > > FiveM Guest Login - Framework > > * Integrated the guest login with QB-Core, QBox, and ESX to use the player's character name by default. > > FiveM Guest Display Name Function > > * Communities can now use a custom function to set user's guest display names for their framework. > > FiveM Tablet > > * Added an in-game tablet to view the dispatch panel. > > Tone Board Improvements > > * Tone board now auto-selects your currently transmitting channels. > * Tone stacks can now be saved for faster, repeated use. > > Notifications > > * In-game notifications now support an "auto" mode, automatically detecting any of the new notification options: native, pNotify, ox\_lib, okokNotify, chat, lation\_ui or custom. > [tab] Changed > > FiveM Resource Restart Auto-Connect > > * When the FiveM resource is restarted, all users will now automatically re-connect to their radio. ### 2.23.2 - 01/07/2026 > [tab] New > > Recording Filtering > > * Added the ability to filter transmission recordings by user and channel. > > User Ban > > * Added the ability to ban a user account from the members tab, preventing them from re-joining as a pending user. > [tab] Fixed > > Mobile Server Selection > > * Disabled the automatic connect on mobile if the community has multiple servers configured. Allowing the user to select the server prior to connecting. > > Members Panel Pagination > > * Added pagination to the members table, resolving a timeout issue for communities with several thousand users. ### 2.22.2 - 01/02/2026 > [tab] New > > Dispatch UI Revamp > > * Initial UI revamps for the dispatch panel > [tab] Fixed > > Audio Synchronization > > * Fixed an issue where users could sometimes hear transmissions they were not scanning ### 2.22.1 - 12/30/2025 > [tab] Fixed > > Audio Leak Degradation > > * Fixed an issue where scanning and listening to 50-100 users at once would slowly create a node leak, resulting in laggy or stuttering audio until after a refresh. > > Push-To-Talk Hotmic > > * Fixed an issue where quickly pressing push-to-talk could result in a stuck "hot mic" on. ### 2.22.0 - 12/29/2025 > [tab] New > > FiveM Login as Guest > > * Added a new option for FiveM communities. Allowing users to **bypass the need for a linked Sonoran account to login and utilizing ACE permissions** for all radio access. > [tab] Fixed > > Audio Node Disposal > > * Improved audio node disposal for temporarily muted users and channels in attempt to resolve an issue with distortion over time. ### 2.21.7 - 12/22/2025 > [tab] New > > AI Pursuit Callout Hear > > * Added a settings option to toggle on the ability to hear your AI pursuit callouts when enabled. > > Community Log Search > > * Added a panel to view user logs for configuration edits and more. > > Translations > > * Added translation support along with several new language examples. > [tab] Changed > > Custom Domain Removal > > * Added handling on community downgrade to remove the custom domain from Cloudflare. > > Bandwidth > > * Tweaked connection subscription events in an effort to minimize bandwidth usage. > [tab] Fixed > > API Channel > > * Fixed an issue where changing the radio channel via API would result in client side errors. > > Trialing Status > > * Fixed an issue where trial subscription days would still place the user on the free version. ### 2.21.3 - 10/28/2025 > [tab] New > > Resource Exports > > * Added and documented several new developer exports in the FiveM resource. > [tab] Fixed > > Shared Channel UI > > * Fixed an issue with shared channels causing the in-game/mini UI to show the user in the main shared channel instead of the per-group subchannel. > > UI Positions > > * Fixed an issue with saving radio UI positions in-game. > > CF Custom Domains > > * Fixed an issue with newly created custom domains on Cloudflare. > > Desktop Split Error > > * Fixed an error that would popup on the desktop version. ### 2.21.2 - 10/21/2025 > [tab] Changed > > Custom Domains Cloudflare for SaaS > > * Updated the custom domain setup to use the newer "Cloudflare for SaaS" method, with legacy being depreciated in the near future. > [tab] Fixed > > Reconnection Handling > > * Fixed an issue primarily in-game, where users would be unable to hear other transmissions after a network reconnection. ### 2.21.0 - 10/17/2025 > [tab] New > > Shared Radio Channels > > * Communities can now link multiple radio channels together from separate groups. Useful for shared "Interops" or other communication channels between departments. > > Signal Jammers > > * Added in-game signal jammer items, configurable with QB Core and ESX to block radio signals within a specified radius. > > Emergency Call Redial > > * Added the ability to re-dial an emergency caller after the call has been ended. > > AI Callouts: Postal Code > > * Added postal code text-to-speech in the AI pursuit callouts. > > Earpiece Notifications > > * Added an in-game notification whenever a configured earpiece is inserted or removed, confirming if other players nearby can hear your radio or not. ### 2.20.0 - 07/21/2025 > [tab] New > > Voice EQ: V2 > > * Added a new pre and post-effect advanced EQ in the voice effect settings. > > Persistent Scanners: Model Options > > * Added new model options for in-game persistent scanners. > > Persistent Scanners: Move > > * Added the ability to move an existing in-game persistent scanner instead of needing to delete and re-add it. > > Radio Frame & User List Size Safety > > * Added checks to prevent users from resizing the radio or connected users list to be off of their screen, reducing the need for the `/radio reset` command. > > Default Settings: ESC Behavior > > * Added the ability to set the in-game FiveM ESC default behavior. > > VFX Customization: XMIT vs RECV Signal Strength > > * Added two sliders in the voice customization testing menu to better reflect in-game usage for both transmitter and receiver signal strength. > [tab] Fixed > > Desktop Channel Hotkey > > * Fixed an issue with desktop per-channel hotkeys not being able to be re-registered with a new key. > > \#29952 - Persist Frame > > * Fixed an issue where frame selection would not persist when in QB item mode. ### 2.19.0 - 07/10/2025 > [tab] New > > Custom Domain > > * Added the ability to utilize a custom domain, logging users directly into your radio community. > > Vanity URLs > > * Communities now have a free vanity URL located at COMMUNITYID.sonoranradio.com. > > Custom Community ID > > * Communities can now customize their community ID for easier user joining and vanity URL customization. > > Scanner UI Menu > > * Added a graphical UI to interact with in-game scanners. > > Frame Customization: In-Game Placement Menu > > * Added an in-game menu to easily customize new frames and live adjust the positioning, sizing, etc. > > Aircraft Frame Support > > * Added support to specify custom radio frames for aircraft use. > > Proxy URL - IP Backup > > * In the event that the CFX proxy fails for push events, servers will automatically fall back to a direct IP and port. > > AI Pursuit Callouts > > * Added AI powered pursuit callouts, toggleable with a hotkey. When enabled, your radio will automatically transmit your heading, street, and speed. > > Speaker Grouping > > * Added the ability to group multiple in-game speakers to a single location, cleaning up the dispatch tone board. > > \#28477 Panic Open Mic > > * Added the option to automatically leave the user's microphone on for a configurable amount of time after pressing the panic button. > > Desktop: Side Mouse Button Support > > * Overhauled and wrote a custom keybind handler, allowing for better keybind support with side mouse buttons and more. > > QBox Death Support > > * Added death detection support for QBox, allowing the radio to shut off when dead. > [tab] Fixed > > \#29110 - CAD Call Info Close > > * Fixed an issue causing radio call information screens to not clear when a CAD call is closed or your unit is unassigned. > > ACE Perm Sync - Don't Require Auto-Approve > > * Fixed an issue causing ACE permission sync to require the auto-approve permission before granting any other permissions. > > User List Improvements > > * Fixed an issue with the in-game online users list not allowing for complete scrolling with large player counts. > > \#29490 - Talking while Dead > > * Fixed an issue allowing some users to talk on the radio when the prevent transmission while dead feature was enabled. > > \#29213 - Server Rack Positioning > > * Fixed an issue causing server rack repeaters to spawn and save slightly off of their proper position. > > In-Game Chatter - Custom Community PTT SFX > > * Fixed an issue causing in-game chatter to use the default mic clicks instead of the custom community-wide microphone clicks. > > Text UI Condense Improvements > > * Fixed an issue causing the transmitting username on the text based UI to show twice, taking up space and shifting the UI into two parts. > > Multiple Servers - Same IP > > * Fixed an issue where running multiple servers on the same IP (but different ports) and on the same radio community would cause one to override the push url for the other. > > Servers - Admin Delete > > * Fixed an issue where users with the admin permission could not delete servers. ### 2.18.0 - 05/08/2025 > [tab] New > > Simulated Background > > * Added new functionality to add in simulated background noise for in-game sirens, boat engines, helicopter rotors, and gunshots. > > Multi-Server > > * Added support for multiple radio servers under one community. > > LB Phone Integration > > * Added integration with LB phone to call emergency services and hide the emergency call banner from the user's screen. > * Thank you to [IC-Technologies](https://github.com/IC-Technologies) for providing much of the LB Phone integration code! > > Default Community Settings > > * Added a new customization option for default user settings when joining a community. > > Auto-Gain Control > > * Set automatic microphone gain to be enabled by default. > > Menu: Repair all Repeaters > > * Added a new menu option to repair all radio towers and repeaters at once. > > \#28108 - Extended Frequency Options > > * Removed frequency restrictions from radio channels in advanced mode. > > Management Panel Lookups > > * Added new internal tools for faster customer support. > [tab] Fixed > > \#28202 Connected Users List > > * Fixed an issue with users transmitting on multiple channels not showing properly on the in-game user list. > > \#28418 - Enforce Radio Item > > * Fixed an issue causing the enforce radio inventory item function to not work. > > HF: Chatter Exclusions > > * Fixed an issue with non-props not working properly as earpieces when configured. > > Siren Volume Increase Pop > > * Removed the volume increase/decrease sound effect when toggled via the in-game siren toggle. > > \#28572 - Desktop Copy > > * Fixed a permission issue preventing the community ID/key copy function from working on desktop. ### 2.17.2 - 04/07/2025 > [tab] Fixed > > Audio Duplication and Static > > * Fixed an issue causing some users to transmit doubled audio (echoing) and/or constant static when not using the vocoder. > > \#28123 - Local SFX > > * Fixed an issue causing local custom mic click SFX to not work. > > RocketNode Promotional Images > > * Fixed an issue causing RocketNode promotional images to not load in the app versions of Sonoran Radio. ### 2.17.0 - 04/03/2025 > [tab] New > > Multi-Channel Transmit > > * `CTRL` + `Click` on a channel to transmit on multiple at once. > > Chatter: Volume Level from Source Player > > * In-game chatter volume is based on the person's actual radio volume. Turning down your radio on a traffic stop will make it quieter for people around you. > > Hotkeys: Per-Channel PTT > > * Added customizable per-channel PTT buttons in the dispatcher panel, allowing users to quickly switch and talk in a specific channel with one key. > > Hotkeys: Clear/Un-Set > > * Right-click on a hotkey to clear it. > > Radio Event: 911 Call Answered - Dispatcher Name > > * Added the ability to see the 911 call's dispatcher name both in-game and programmatically with the resource API. > > Tower Destruction Events > > * Added in-game events on tower destruction to help log who damaged the repeaters. > [tab] Fixed > > \#27676: Mic Perm Reset > > * If a user clicks deny on the in-game F8 mic permissions, it will reprompt them every time they try and use the radio. > > Modern UI - Remove Scrollbar > > * Hid the vertical scrollbar on the modern UI when in-game. > > Channel TTS Cache Busting > > * Fixed an issue causing the channel AI TTS audio to not clear cache when updated directly from the dispatch panel. ### 2.16.0 - 03/10/2025 > [tab] New > > Qbox & OX Inventory Support > > * Added support for OX inventory in both QBCore and QBox > > Display Name: CAD Sync > > * Added a new CAD integration feature to automatically update your radio display name based on unit information > > Display Name: Command > > * Added an in-game command to set your radio display name > > Display Name: Export > > * Added a developer export to set your radio display name > > Voice Effects: Import/Export > > * Added a modal to import and export radio voice effect profiles > > Radio Active Export > > * Added a developer export to check if the radio is active (turned on) > [tab] Fixed > > Config.lua Malformat - Throw Clear Error > > * In the event of a malformed config.lua, the resource will throw a clear error message > > Neaby Chatter: Buzz > > * Fixed an issue causing a loud but short "buzz" sound when passing a nearby radio (chatter) at rapid speeds > > HF: #27364 Panic Keybind > > * Fixed an issue throwing an error when pressing the in-game panic keybind > > Scan List Restore Post-Transmit > > * Fixed an issue causing the scan list to not properly restore after a super short transmit (by yourself or others) in your primary channel ### 2.15.0 - 02/12/2025 > [tab] New > > ACE Permission Sync (Auto-Approve + Community Perms) > > * Added an ACE permission sync option to automatically approve users and grant community permissions based on in-game ACE permissions. > > In-Game Channel Changer - Group Handling > > * Added a right-click option on the top channel change knob in-game to toggle between changing channels and channel groups. > > Tone Board: Live TTS AI > > * Added the ability to generate temporary AI powered text-to-speech tones directly from the tone board. > > Scanned Channel Audio Indicator > > * Added new UI elements on the in-game radio to indicate a transmission from a scanned channel, along with the user's name and channel. > > \#27054 Mute Scanned on Primary Transmission > > * Added the setting option (enabled by default) to mute scanned channels when another user is talking on your primary channel. > > \#27143 Group Change Channel Persistence > > * Using hotkeys to change your group from one to another now saves and restores your last used channel when going back to a previous group. > > Volume Hotkey SFX > > * Added customizable hotkey sound effects for the volume hotkeys. > > Tunnels: Menu Expansion > > * Added a toggle visibility button in the tunnel editor menu. > * Added the ability to select and remove a configured tunnel via menu. > > Dispatch UI: Show Channel IDs > > * Dispatch UI now has a toggle button to view channel IDs for in-game permissions. > > Channel & Group Hotkey: In-Game Notify on No Options > > * Added small in-game notices on channel and group change hotkeys if there is no other group or channel to page to, in order to reduce confusion. > [tab] Fixed > > \#27173 Hotkey Resize > > * Fixed an issue causing desktop hotkeys to stop working if the screen was resized down to mobile UI mode and back. ### 2.14.0 - 01/30/2025 > [tab] New > > Panic: Radio & Dispatch Display > > * Expanded radio panic functionality to reflect in the in-game and dispatch UI with a customizable sound. > > Volume Hotkeys > > * Added in-game and in-app hotkeys to quickly adjust the radio volume by a configurable amount. > > Channel Hotkeys > > * Added in-game and in-app hotkeys to quickly page through channels in your group. > > Group Hotkeys > > * Added in-game and in-app hotkeys to quickly page through channel groups. > > Sirens On Volume Increase > > * Added automatic, configurable volume adjustment when sirens are toggled on in-game. > > In-Game Channel Transmit Command > > * Added a new in-game command to toggle transmitting on a specific channel. > > In-Game Scan List Command > > * Added a new in-game command to toggle a scan list. > > In-Game Scan Channel Command > > * Added a new in-game command to toggle a channel scan. > > In-Game Stream Deck Integration > > * Documented Stream Deck integration with the new FiveM commands. > > Frame Selection Persist > > * In-game frame selection now persists/saves for the next time you join. > > Emergency Call Export: Answered + Ended > > * Added additional integration values for in-game emergency calls to determine when the call is answered by a dispatcher or ended by a dispatcher. > > Emergency Call Resource Export: Name Parameter > > * Added an additional parameter to customize the caller's name for in-game emergency calls. > > Scan List: Drag-and-Drop Reorder > > * Scan lists can now be reordered via drag-and-drop > > Modern UI: Group Name Display > > * The modern in-game radio style display now also lists the channel group. > [tab] Fixed > > Speaker Menu: Live Updates + JSON Corrupted > > * Fixed issues causing the in-game speaker location menu to not live update in the dispatch tone board and cause the JSON config to become malformed. ### 2.13.2 - 01/22/2025 > [tab] Fixed > > AI Tone TTS: Removed Character Limit > > * Removed the 50 character limit for community integrated AI text-to-speech tones. > > Transmission Logs: Vocoder Cutoff > > * Fixed an issue causing transmission logs to be cutoff when using the vocoder effect due to other optimizations. > > Transmission Logs: Download > > * Fixed an issue causing downloaded transmission logs to be corrupt and not playable. ### 2.13.0 - 01/21/2025 > [tab] New > > In-Game Physical Scanners > > * Added in-game physical scanner items for civilians to hear radio transmissions > > Transmission Logs > > * Added transmission logs in the dispatch panel with optional AI transcriptions > > \#26361 Transmit to In-Game Speakers > > * Added the ability to locally record microphone audio to play over the tone board to radios and in-game speakers > > AI: Tone Text to Speech > > * Added the ability to generate AI text to speech tones > > \#26385 Stacked Tones > > * Added the ability to "stack" and play multiple tones in a row > > \#26534 In-Game/Mobile Radio Scan Lists > > * Added configurable scan lists to quickly swap between multiple scanned channel groups > > \#26414 Persist scanned channels > > * Scanned channels now save locally to be restored when turning the radio back on > > Vocoder Bitrates > > * Added adjustable bitrates to the vocoder voice effect > > Free Vocoder > > * Made the new vocoder available to the free version of Sonoran Radio > > In-Game Text Radio SONORAN Branding > > * Added small branding to the text based display in-game when large enough (vehicle display) > > Vocoder PTT Timing > > * Overhauled and improved vocoder PTT handling to ensure local UIs update much faster without a long delay before and after the transmissions > [tab] Fixed > > \#26458 Connect: Permission Denied Mic General Error > > * Added improved notice and handling in the browser version if microphone permissions are not granted > > Hotkey: Prevent Left Mouse > > * Blacklisted the left mouse button from being used as a hotkey ### 2.12.0 (Full Release) - 12/31/2024 > [tab] New > > Radio Chatter: Vehicle Detection > > * Added vehicle detection to lower and muffle nearby radio chatter if the user enters a vehicle. Chatter volume resumes if the window is down/broken or the door opens. > > Emergency Call: Nearby Chatter > > * When a user is making an emergency call on the phone, nearby users can now faintly hear the dispatcher talking on the other side of the phone. > > Voice Effect: Clipping > > * Added a new "clipping" voice effect to cut audio in and out when the radio signal is poor. This effect is designed to pair particularly well with the vocoder. > > Transfer Community > > * Added an option in the administration panel to transfer community ownership to another user. > > Emergency Call: SFX > > * Added a community customizable incoming emergency call sound effect for dispatchers. > [tab] Fixed > > Backend Error API Clearnup > > * Cleaned up general backend errors from the API > > In-Game Debug > > * Removed leftover in-game debug prints ### 2.11.0 (Beta) - 12/19/2024 > [tab] New > > Text Style Display > > * Added a new screen display style with a "text-based" UI for older radio styles > > Settings UI: Tabs > > * Overhauled the settings modal with tabs for each section > > Hide Radio ESC User Config > > * Added three radio display options for ESC behavior (stay on screen, hide, show only while transmitting) > > Expired Community Removal > > * Added automatic community deletion, if on the free version, after 30 days with a 21 day notice > [tab] Fixed > > Emergency Call: Fix Hear Radio Chatter Nearby > > * Fixed an issue where users could not hear nearby radio chatter while on a 911 call > > Hide/Close Radio when QB Item Gone > > * Fixed an issue where removing the QB/ESX radio item would not turn off and remove the radio from the user's screen ### 2.10.0 (Beta) - 12/03/2024 > [tab] New > > \#25437 Radio In-Game Display > > * The in-game radio will now persist on the user's screen, until they use `/radio hide`. Per-user customization will be released in a coming update. > > \#25917 - EUP Chatter > > * Added support for drawable items (in addition to the existing prop support) for EUP chatter exclusion. > > Permission Reactivity > > * When connected to the radio, user permissions will now update in real time. > > Customize 911 Command > > * Added a new config `emergencyCallCommand` property to customize the /radio 911 to other numbers or words based on locality. > > Configure Default Keybinds > > * Added new configuration values to customize the default radio keybinds for new in-game users. > > In-Game Unlink via Pending Screen > > * Added an account un-link for the in-game pending community approval screen. > > Community Cards - Leave Community > > * Added a leave community button in the portal. > > In-Game Audio Subprocess Info > > * Added a short URL guide in the in-game volume slider to help users who may be having a hard time hearing people. > > Homepage - Emergency Call Promo > > * Added a promotional tab on the front page for the in-game emergency call feature. > [tab] Fixed > > \#25858 Radio Frames > > * Fixed an issue causing some communities to have no frame options available in settings based on their config values. > > HUD Disconnect > > * Fixed an issue causing the HUD view to show as disconnected. > > \#25846 - Connected Users API > > * Fixed an API 500 error when requesting the active users, but none are connected. > > \#25741 - Radio Inventory > > * Fixed an issue where using enforceRadioItem would throw an error that the radio item is not in your inventory. ### 2.9.0 (Beta) - 11/07/2024 > [tab] New > > In-Game Emergency Calls > > * Added a way for players in-game to place an emergency (911) call to dispatchers > > Developer Export - Radio Signal > > * Added an export to get a user's radio signal quality > > Developer Export - Panic > > * Added an export to listen for a radio panic press > > \#24896 Radio Item - Customize ID and Name > > * Added customization options for the in-game radio item's ID and name > > Auto-Join User on URL Load > > * Users automatically join the community if they load a community's specific URL > > Disable PTT SFX For Myself and/or Others > > * Added a settings option to disable hearing mic-clicks for yourself and/or other users > > Mute Scanned When Transmitting > > * Added a settings option to mute scanned channels while transmitting > > Debug Mode Toggle Command > > * Added a toggle command for debug mode > > Sonoran Account Avatar > > * Added the user's Sonoran account avatar in the panel > > Core Security Update > > * Improved credential storage security > > Browser Hotkey Notice - Not Global > > * Added a notice in the settings page, if using the web version, that hotkeys are not "global" and the page must be in focus > [tab] Fixed > > Apple Silicon Hotkey Fix > > * Fixed an issue causing global desktop hotkeys to be unavailable on Apple silicon based computers > > In-Game Channel Selector - Private Channels > > * Fixed an issue allowing users without permissions to access a private channel if they used the channel selector in-game > > Toggle repeater mapping spamming chat > > * Removed debug logs on repeater toggle > > \#24958 QB Item Check Function > > * Updated a depreciated QB item check method > > HF: #25273 - PTT/Audio Flicker > > * Fixed an issue causing vMenu Proxychat and Mumble Chat to flicker and stick with TalkSync enabled > > HF: QB Metadata Tower Break > > * Fixed an issue in QB Core mode causing tower signals to always be perfiect if the player had no metadata property. > > HF: Member Tab > > * Fixed an issue causing the members tab to not display if the user had a permission to kick, rename, or approve members but not the admin permission. > > HF: Channel Permissions Owner Bypass > > * Fixed an issue causing private channels to be hidden for the server owner. > > HF: Move User 500 > > * Fixed an issue where moving your channel via context menu would throw a 500 error. > > HF: Channel Add in Group via Dispatch > > * Fixed an issue where adding a new channel via dispatch panel would put it in the first channel group, not the group that it was added from. > > HF: TTS Replay On Reconnect > > * Fixed an issue where connecting to a non-default channel, disconnecting by switching radio panel tabs, and re-connecting would start playing the TTS of the old channel name before correcting. > > HF: AI TTS Generation on Create Channel > > * Fixed an issue causing AI TTS generation to fail when creating a new channel. ### 2.8.0 (Beta) - 10/10/2024 > [tab] New > > CAD Integration > > * Added `sonrad` integration to display Sonoran CAD call information on the in-game radio, along with panic functionality > > Top-Down HUD Improvements > > * Improved the top-down radio HUD to display the channel name, frequencies, and color changes when a user is transmitting > > Talkover Override > > * Added a new permission granting users the ability to double-press their PTT button to override the talkover protection and silence the other transmitter > > CMS Sync - Talkover Override Permission > > * Added the ability to manage talkover override permission via Sonoran CMS > > Talkover Override Success Tone > > * Added a new, community-customizable talkover override success sound effect > > Homepage Revamp > > * Completely revamped the homepage for feature highlights > > UI Cleanup/Component Optimization > > * General internal cleanup and optimizations, making way for new future UI possibilities > > Community Kick - Disconnect from Radio > > * When a player is kicked from the community (via Radio members tab or CMS) they will now be automatically disconnected from the radio, preventing them from transmitting any further > > Home Button - Auto-Reconnect > > * Pressing the home button on the in-game radio (to hard refresh) will now automatically re-connect the user > > Optimized Signal Quality Reports > > * Optimized in-game tower signal reporting to spam fewer updates across the websockets, only reporting when there is a significant enough change > [tab] Fixed > > Permission Checks > > * Fixed multiple backend permission checks preventing users without the `Admin` permission from accessing functionality > > Key Input on Power Toggle > > * Fixed an issue causing the in-game "press any key" popup to display every time you turned off/on the radio, instead of just once at the initial game join > > \#25095 - TTS Fast > > * AI channel name TTS will now stop playing if you quickly switch to another channel before the audio has finished > > Radio Frame - Persist Selection > > * Fixed an issue where selecting a different radio frame in the settings would not save/persist after closing the radio > > Mobile repeaters won't toggle on > > * Fixed an issue causing the `G` button in vehicles configured to act as a mobile repeater to not work > > Admin Panels - No Perm Redirect > > * Added local permission checks to prevent users from loading UI panels by changing the browser URL, even though the backend properly prevented data manipulation > > Unable to Leave Pending Community > > * Fixed an unauthorized error from happening when trying to leave a community you were pending in. > > New User - Unknown Display Name > > * Fixed an issue where a user newly joining the community and connecting to the radio would display as "Unknown User" to people already connected > > QB Reference Error > > * Fixed an error causing the in-game resource to fail under certain QB Core modes ### 2.7.2 (Beta) - 09/27/2024 > [tab] Fixed > > Voice Degradation > > * Fixed an issue causing some users to experience gradual voice degradation that was only fixed after refreshing/power toggling the radio > > Digital Voice Effect > > * Smoothed and reduced the initial digital voice filter effect ### 2.7.0 (Beta) - 09/25/2024 > [tab] New > > Voice Effect Customization > > * Added the ability to create multiple custom voice effect filters and apply them per-channel. > > Tone Board - Play to In-Game Speakers > > * Added the ability configure in-game speakers and play radio tones to them. > > Tunnel Signal Degrade > > * Added the ability to configure in-game tunnels and other 3D areas that reduce radio signal quality. > > AI Channel Text-To-Speech > > * Added automatic AI generated channel name TTS that will play when connecting and switching channels. > > Context Menu Name Change > > * Added the ability to right-click on a connected user to quickly modify their display name. > > Private Channel Permissions > > * Added the ability to toggle channel visibility to private, requiring a user permission to connect. > > CMS x Radio - Private Channel Permissions > > * Added the ability to automatically manage private radio channel permissions via Sonoran CMS. > > CMS x Radio - Name Sync > > * Added the ability to automatically manage radio display names via Sonoran CMS. > > Nearby Radio Chatter - Earpiece > > * Added the ability to configure in-game earpiece EUP that will prevent people nearby from hearing your radio. > > Game Resource Optimization > > * Added multiple new in-game optimizations to improve resource performance. > > Connected Users List - Save Position > > * Added size and position persistence to the in-game connected users list. > > Proxy URL - Retry > > * Added retry logic and UI errors in the event that the in-game resource can not get the proxy URL. > [tab] Fixed > > \#24819 - Talkover on Scan > > * Fixed an issue causing talkover protection to prevent someone listening to a channel with someone transmitting from transmitting in their own, clear channel. > > Tone Configuration Fixes > > * Fixed multiple issues with tone files and tone cosmetic customizations not being persisted or removed. > > CAD Livemap Repeater Types > > * Fixed an issue causing only the radio tower type repeaters to show on the CAD livemap. ### 2.6.2 (Beta) - 09/13/2024 (In-Game Only) > [tab] Fixed > > In-Game Connected Users > > * Fixed an issue with the connected users list causing some names to not change to green while the user was talking ### 2.6.1 (Beta) - 09/11/2024 (In-Game Only) > [tab] New > > In-Game Connected Users > > * When talking, user names will display as green > * Added proper CSS ellipsis to display names > * Added tooltip to user display names > * Alphabetically sorted display names > [tab] Fixed > > Radio and Connected User Hide > > * Fixed an issue causing the radio and connected user menu to not hide when pressing ESC if no hotkey was set ### 2.6.0 (Beta) - 09/11/2024 > [tab] New > > Hear Chatter In-Game > > * Civilians can now hear live radio chatter when there is a nearby radio. This requires the pro version. > > Top-Down HUD > > * Added the top-down radio HUD UI in-game > > Multi-Frame > > * Added four radio frame options in-game to choose from, customizable by the community > > In-Game Connected List > > * Added an in-game connected users list > > Cache Busting > > * Added improved cache busting to ensure in-game radio updates are recieved faster by users > > Mic Clicks - For Local Only > > * Per-user custom mic clicks are now only heard by that user, instead of everyone on the radio > > In-Game Talk Sync > > * Talk in-game at the same time you talk in the radio > [tab] Fixed > > Vehicle Radio Blue Screen > > * Fixed an issue causing switching from the handheld to vehicle radio causing a blue radio screen for some users until turned off and back on > > In-Game Talkover > > * Fixed an issue allowing some users to talkover others while talkover protection was enabled ### 2.5.0 (Beta) - 08/16/2024 > [tab] New > > Sonoran CMS Integration > > * Added the ability to manage your radio user's joining, permissions, and kicking via Sonoran CMS ranks and Discord roles. > > Input/Output Device Selection > > * Added the ability to customize and test the input and output sources via the settings menu. > > Tone Board > > * Added a customizable toneboard allowing dispatchers to play or repeat tones on specific channels and groups. > > Server Customization UI > > * Consolidated the server customization menu into organized tabs and improved the in-game install with a step-by-step tutorial. > > Animation Download > > * Added a tutorial step in the server customization menu to install the custom radio animations. > [tab] Fixed > > New Join 403 > > * Hotfix: Fixed an issue causing newly joined members to get an error on the web and desktop versions. ### 2.4.0 (Alpha) - 08/05/2024 > [tab] New > > Channel Groups & Organization > > * Added the ability to create channel groups and easily organize via drag-and-drop > > Custom Talkover Tone > > * Added the ability to customize a community-wide talkover error SFX > > Signal Bars > > * Added visual signal bars in-game to view your tower connectivity > > SFX Volume > > * Added the ability to customize the sound effect volume in the settings menu > > Auto-Join on Link > > * Users now automatically join the Sonoran Radio community after linking in-game > > In-Game Enhanced Error Handling > > * Improved errors and ensured the resource fails to start without a proper community ID and API key > > Mobile UI improvements > > * Added multiple improvements for mobile users, including a dedicated UI for the radio panel > > Mobile PTT Button > > * Added a push to talk button to the mobile version (web, apps coming soon) to utilize the rado on mobile devices > [tab] Fixed > > Fix: Desktop Updater > > * Fixed an issue causing the desktop application auto-updater from working > > PTT In-Game & Radio > > * Fixed an issue preventing scripts from making the player talk in-game at the same time as they're talking on the radio > > \#23608 - Server Members > > * Fixed an issue limiting the number of users visible in the server members tab > > \#23542 - Tower Components > > * Fixed an issue causing pieces of a radio tower to be left after removal > > \#23758 Discord and Apple Login Window > > * Fixed an issue on the desktop app opening the radio in a second window after login via Discord or Apple ### 2.3.0 (Alpha) - 7/11/2024 > [tab] New > > Repeaters - UI Menu > > * Added an in-game repeater menu to add, edit, and remove repeaters. > > In-Game Volume > > * Added the ability to adjust the system-wide volume in-game via the settings menu. > > In-Game Per-User Volume > > * Added the ability to right click on a user in-game to adjust their volume. > > Panel - Customized Download > > * Added a new download link in the radio panel that includes a pre-configured community ID and API key. > > In-game Radio - Logout > > * Added an option to logout and unlink your radio in-game via the settings menu. > > Startup - Link IP > > * Added an automatic API call to link your server's IP address to your community ID. This will be used for an upcoming integration. > > API Key - Rotate > > * Added the ability to rotate and refresh your API key if leaked. > > Menu CMS Discovery > > * Added the CMS community discovery spotlight to the portal's community selection menu. > [tab] Fixed > > Talkover Protection In-Game > > * Fixed an issue causing talkover protection in-game to fail. > > Distortion Inconsistencies > > * Fixed an issue causing in-game distortion due to tower signal to not work consistently. > > In-Game Permission Re-Request > > * Fixed an issue causing the user to be asked for microphone permissions on every join. ### 2.2.1 (Alpha) - 07/03/2024 (In-Game Only) > [tab] Fixed > > Tower Distance > > * Fixed an issue causing tower distortion levels to "freeze" in certain cases. ### 2.2.0 (Alpha) - 07/02/2024 > [tab] New > > In-Game Tower Signal > > * Added variable audio distortion based on how close a user in-game is to a radio repeater model. > > User Display Names > > * Added the ability to customize user display names and two new permissions to set who can change their, and others', display name. > > Link UI Refresh > > * Improved the /link portal UI with automatic focusing, forward/back navigation, and submission. > > In-Game Towers > > * Added three radio repeater models for in-game signal strength. > > In-Game Resize and Move > > * Added the ability to resize and move the radio UI. > > Custom Animation Support > > * Added the ability to disable in-game animations while talking, for custom animation scripts. > > Developer Exports - PTT > > * Added developer exports when a user activates and deactivates their PTT hotkey. > [tab] Fixed > > \#23262 - Desktop Hotkey > > * Fixed an issue with updating your keybind not setting until an application restart > * ### 2.1.1 (Alpha) - 06/21/2024 > [tab] New > > Desktop Application - Hotkey Setting > > * Improved handling for detecting a wider array of hotkeys in the desktop application, including standard mouse buttons. ### 2.1.0 (Alpha) - 06/18/2024 > [tab] New > > Login Link > > * New login for in-game resource/mobile > > Community ID > > * Use community IDs in URL instead of numeric IDs > > Volume Control > > * Added per-user volume controls > > Talkover Protection > > * Added toggleable talkover protection > > Channel Change: Drag-and-drop > > * Move users by dragging and dropping > [tab] Fixes > > * Fixed connecting on another window redirecting to home (which would break the in-game resource) ### 2.0.1 (Alpha) - 06/18/2024 > [tab] Fixes > > Community ID > > * Accept community ID in place of standalone ID > > \#22925 - ESC Error > > * Fixed ESC with the radio open causing an error, preventing you from leaving the radio ### 2.0.0 (Alpha) - 06/06/2024 > [tab] New > > Initial Release # Migration Guides Source: https://docs.sonoransoftware.com/radio/roadmap/roadmap-and-changelog/migration-guides In some cases, the auto-updater requires manual steps from one version to the next. > [accordion] FiveM radio frames (local skins to Radio panel) > > If auto-updates are enabled, no manual download is needed. On its first start, the updated FiveM resource imports your existing `skins` artwork and layouts into **Customize > Overlay** in the Radio panel. No manual upload or layout changes are needed. It archives `skins` as `skins_old` only after confirming the import; keep that folder until you have checked your frames in game. If migration fails, local skins remain available and the resource retries. Check the server console and [contact support](https://support.sonoransoftware.com/) if the warning persists. > > **Permissions:** Existing folder names in `Config.frames.departments[*].allowedFrames` keep working, so no changes are required during the update. For new permissions, copy each frame's `frame:` from the [FiveM Radio Frames guide](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames#restrict-frame-access). > > Free communities can continue using imported frames, but editing them or uploading new artwork in the panel requires Pro. Imported HUD and scanner layouts still work in game; contact support if they need editing. > [accordion] 2.27.22 (Configurable PTT Animation) > > Version 2.27.22 adds a new configuration option to customize the push-to-talk animation. > > 1. Open your existing `config.lua` > 2. Add the following table to the configuration file > > The values below preserve the existing default animation used while transmitting on foot with the radio closed. > > ```lua theme={null} > Config.pttAnimation = { > dictionary = 'random@arrests', -- Animation dictionary used while transmitting with the radio closed > name = 'generic_radio_chatter' -- Animation name used while transmitting with the radio closed > } > ``` > [accordion] 2.26.0 (Display Name Sync) > > Version 2.26.0 adds a new configuration option to set user's radio display names to match their in-game name. > > 1. Open your existing `config.lua` > 2. Add the new properties to the configuration file > > If set to `true` the radio display name will be set to the QBCore, QBox, ESX, or vanilla in-game name. > > ```lua theme={null} > Config.syncPlayerNameToRadio = false -- Sync the player's in-game character name to their Sonoran Radio display name > ``` > [accordion] 2.25.6 (Water Degredation) > > Version 2.25.6 adds a new configuration option to degrade signal strength when the user is underwater. > > 1. Open your existing `config.lua` > 2. Add the new properties to the configuration file > > ```lua theme={null} > Config.heavySignalDegradeInWater = { -- Heavily degrade radio signal while the player is in water to mimic an IP67-rated handheld > enabled = true, -- Set to true to enable heavy signal degrade in water > pedInWaterDegredation = 0.6, -- Signal strength multiplier when the player is simply in water (e.g. 0.6 would reduce signal strength to 60% of normal) > pedUnderWaterDegredation = 0.3 -- Signal strength multiplier when the player is underwater (e.g. 0.3 would reduce signal strength to 30% of normal) > } > ``` > [accordion] 2.24.0 (Geo Channels, Auto Notifications, Display Name Function, Auto On-Scene Status AI) > > Version 2.24.0 adds a new configuration options to: > > * Create Geo-based channel switching > > * Use new notification frameworks > > * A custom function for guest user display names > > * Allowing the upcoming AI to automatically change your status when you are en-route and arrive on-scene at a GPS routed location. > > 1. Open your existing `config.lua` > 2. Add the new properties to the configuration file > > **Geo Channels** > > ```lua theme={null} > -- Geo-Channel Settings -- > Config.geoChannels = { > enabled = true, > command = 'sonradgeoswitch', -- command to toggle geo-channel switching | e.g. /sonradgeoswitch > friendlyCommand = 'geoswitch', -- friendly subcommand of the /radio command to toggle geo-channel switching | e.g. / radio geoswitch > acePermission = '', -- ACE permission required to use disable geo-channel switching | Leave blank to allow all users > showNotifications = true -- Show notifications when geo-channel switching is enabled/disabled > } > > ``` > > **Auto Notifications** > > ```lua theme={null} > -- Change the type from 'native' to the new 'auto' option > > -- OLD: > Config.notifications = { > type = 'native', -- Available options: native, pNotify, okokNotify, ox_lib, chat, or custom > notificationTitle = 'SonoranRadio', -- Notification Title for methods that support it > > -- NEW: > Config.notifications = { > type = 'auto', -- Available options: auto, native, pNotify, ox_lib, okokNotify, chat, or custom > notificationTitle = 'SonoranRadio', -- Notification Title for methods that support it > ``` > > **Guest Display Name** > > ```lua theme={null} > -- Customize Radio Guest Display Names > Config.getGuestDisplayName = function(source) > -- return ('Guest %s'):format(source) > return nil > end > ``` > > **AI GPS Auto-Status** > > ```lua theme={null} > Config.autoOnSceneStatus = { > enabled = true, -- Enable automatic ON_SCENE status when arriving at a waypoint created by SonoranRadio AI > distance = 30.0, -- Distance in meters from the waypoint to trigger ON_SCENE status > statusEnum = 4, -- Status enum for "ON_SCENE" -- See https://docs.sonoransoftware.com/cad/api-integration/api-endpoints-v2/emergency/units/set-unit-status#unit_status for more information > timeout = 300000 -- Time in milliseconds to timeout the auto ON_SCENE status after arriving at the waypoint > } > ``` > [accordion] 2.22.0 (Login as Guest) > > Version 2.22.0 adds a new configuration option to use in-game ACE permissions for a guest login, removing the need for a user account. > > 1. Open your existing `config.lua` > 2. Add the new property to the configuration file > > ```lua theme={null} > Config.acePermsForRadioGuests = false -- Restrict users joining the radio as a guest to an ace permission > ``` > > [Learn more about this new configuration line.](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions#guest-login) > [accordion] 2.21.0 (AI Postal Callouts + Signal Jammers) > > Version 2.21.0 adds a new configuration option for AI Pursuit Postal Callouts. > > 1. Open your existing `config.lua` > 2. Add the new properties (`withPostal` and `postalResource`) to your `Config.autoCallouts` object. The end result should look like: > > ```lua theme={null} > Config.autoCallouts = { > enabled = true, -- Whether or not this feature is enabled > speedUnit = 'mph', -- mph | kmh | none -- The unit of speed provided with the callout > withPostals = false, -- Whether to include postals with the automatic callouts > postalResource = 'nearest-postal', > } > ``` > > Version 2.21.0 adds a new configuration option for Signal Jammers. > > 1. Open your existing `config.lua` > 2. At the bottom of the configuration file, copy and paste the entire `Config.radioJammers` object. > > ```lua theme={null} > Config.radioJammers = { > enabled = true, -- Enable or disable radio jammers > menuCommand = 'jammers', -- Subcommand to open the jammers menu | e.g. /sonoranradio jammers > toggleRange = 3.0, -- Distance in meters required to toggle a jammer on/off > permissionMode = 'none', -- ace, qbcore, esx or none > acePermission = 'sonoranradio.jammers', -- ACE permission required to use jammers > allowedJobs = { -- Jobs that can use jammers | Requires permission mode to be set to 'qbcore' or 'esx' > ['hacker'] = { > grades = { -- Job grades that can use jammers > 1, > 2, > 3 > } > } > }, > jammers = { > -- Define jammers here > -- Example: > { > name = 'Hand Held Jammer', -- Name of the jammer > model = 'm23_2_prop_m32_hackdevice_01a', -- Model name for the jammer > offModel = 'm23_2_prop_m32_hackdevice_01a', -- Model name for the jammer when off | Optional > range = 25, -- Range of the jammer in meters > strength = 0.5, -- Strength of the jammer (0.0 to 1.0) > permission = 'sonoranradio.jammer_handheld', -- ACE permission required to use this jammer | Optional > -- If permission is not set, the jammer will be available to all players that can access the jammers menu > type = 'handheld', -- Type of jammer (handheld or static) > itemName = 'sonoran_radio_jammer_handheld', -- Item name for the jammer (if Config.enforceRadioItem is true) > poweredItemName = 'sonoran_radio_jammer_handheld_on' -- Optional item that replaces the base item while the jammer is powered on > }, > { > name = 'Suitcase Jammer', -- Name of the jammer > model = 'ch_prop_ch_mobile_jammer_01x', -- Model name for the jammer > offModel = 'ch_prop_ch_mobile_jammer_01x', -- Model name for the jammer when off | Optional > range = 100, -- Range of the jammer in meters > strength = 0.8, -- Strength of the jammer (0.0 to 1.0) > permission = '', -- ACE permission required to use this jammer | Optional > -- If permission is not set, the jammer will be available to all players that can access the jammers menu > type = 'static', -- Type of jammer (handheld or static) > itemName = 'sonoran_radio_jammer_suitcase' -- Item name for the jammer (if Config.enforceRadioItem is true) > }, > { > name = 'Case Jammer', -- Name of the jammer > model = 'h4_prop_h4_jammer_01a', -- Model name for the jammer > offModel = 'h4_prop_h4_jammer_01a', -- Model name for the jammer when off | Optional > range = 200, -- Range of the jammer in meters > strength = 1.0, -- Strength of the jammer (0.0 to 1.0) > permission = '', -- ACE permission required to use this jammer | Optional > -- If permission is not set, the jammer will be available to all players that can > type = 'static', -- Type of jammer (handheld or static) > itemName = 'sonoran_radio_jammer_case' -- Item name for the jammer (if Config.enforceRadioItem is true) > }, > { > name = 'Satelite Jammer', -- Name of the jammer > model = 'm23_2_prop_m32_jammer_01a', -- Model name for the jammer > offModel = 'm23_2_prop_m32_jammer_01a', -- Model name for the jammer when off | Optional > range = 300, -- Range of the jammer in meters > strength = 1.0, -- Strength of the jammer (0.0 to 1.0) > permission = '', -- ACE permission required to use this jammer | Optional > -- If permission is not set, the jammer will be available to all players that can > type = 'static', -- Type of jammer (handheld or static) > itemName = 'sonoran_radio_jammer_satelite' -- Item name for the jammer (if Config.enforceRadioItem is true) > } > } > } > ``` > [accordion] 2.20.0 (Default ESC Behavior) > > Version 2.20.0 adds a new feature to configure your community's default [ESC behavior setting](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#c.-esc-options). > > 1. Open your existing `config.lua` > 2. Add the new `Config.defaultEscapeMode = 'keep'` property. You can enable and configure this feature if desired. > > ![](https://docs-assets.sonoransoftware.com/sha256/18/187d91932665d138063212b28fd3ac50dec6e2991075318dd81523de257a55ba.png) > [accordion] 2.19.0 (PTT on Panic & AI Callouts) > > Version 2.19.0 adds a new feature to automatically press a user's push-to-talk button on panic. > > 1. Open your existing `config.lua` > 2. Add the three new config options: > > **A. autoPttOnPanic Config** > > ```lua theme={null} > Config.autoPttOnPanic = { > enabled = true, -- Enable automatic PTT when panic button is pressed > duration = 15 -- Duration in seconds to hold PTT when panic button is pressed > } > ``` > > ![](https://docs-assets.sonoransoftware.com/sha256/71/71bb7a81f42359dcb4c724538103eb1b12f4fc71fa51d5fcb4d5f7ed14d88275.png) > > **B. autoCallouts Config** > > ``` > -- Have the radio automatically callout pursuit locations (when toggled with the keybind) > Config.autoCallouts = { > enabled = true, -- Whether or not this feature is enabled > speedUnit = 'mph', -- mph | kmh | none -- The unit of speed provided with the callout > } > ``` > > ![](https://docs-assets.sonoransoftware.com/sha256/9b/9b1908c324978e9789b34481b7b847aba2838a51b997e604b87d1b6aef7efae3.png) > > **C. toggleAutoCallouts Keybind** > > Inside of the existing `Config.keybinds` add a new line for:\ > \``['toggleAutoCallouts'] = '',` > > ![](https://docs-assets.sonoransoftware.com/sha256/d4/d44df8bfaad179d2f4cc114d3b56c6cf4c87459cdf14a507c3cfa784d5854e3c.png) > [accordion] 2.18.0 (LB Phone, Background Noise) > > Version 2.18.0 adds a new integration for LB phone and feature to inject background noise into your transmissions. > > 1. Open your existing `config.lua` > 2. Add the new `Config.showEmergencyCallHelp = true` option. [Setting this to false hides the emergency call banner.](/radio/tutorials/usage/dispatch-panel/emergency-calls#customize-the-emergency-number-and-banner) > 3. Add the new `Config.phoneResource = 'none'` option. [Setting this to `'lb-phone'` enables the LB phone integration.](/radio/game-integrations/fivem/fivem-phone-scripts#lb-phone) > 4. Add the new `Config.enableBackgroundAudio = true` option. [Setting this to false disables the background audio injection feature.](/radio/game-integrations/fivem/in-game-radio/background-audio-injection) > > ![](https://docs-assets.sonoransoftware.com/sha256/76/7613dec4aadd05963537be703d06b92fcba0a3483de2f60e9fafd961ebeb5016.png) > [accordion] 2.15.0 (ACE Perm Sync) > > Version 2.15.0 adds a new feature to manage radio community approval and permissions via ACE perms. > > 1. Open your existing `config.lua` > 2. Add the new `Config.acePermSync = false` property. You can enable and configure this feature if desired. > > ![](https://docs-assets.sonoransoftware.com/sha256/c7/c7e3949f0856cb66f23fba1f6b93904d0c36a2ca700052fe97f1bcac880740ca.png) > [accordion] 2.14.0 Release (LVC Resource Name) > > Version 2.14.0 adds a new feature to increase radio volume when in-game sirens are on. > > 1. Open your existing `config.lua` > 2. Add the new `Config.luxartResourceName = 'lvc'` property. > > ![](https://docs-assets.sonoransoftware.com/sha256/1c/1c72c9d5c7661a40f96f38b5f30eb0b5608655412c5a2751d06ee60fbc2f0ea2.png) > [accordion] 2.11.0 Release (Earpieces JSON) > > Version 2.11.0 Migrates the earpiece configuration from the `config.lua`to `earpieces.json`. Therefore, this property is no longer needed in your `config.lua` file. > > 1. Open the new `earpieces.json` file to confirm your configuration has been migrated (after resource start). > 2. Open your existing `config.lua` > 3. Remove the `Config.chatterExclusions` property. > > ![](https://docs-assets.sonoransoftware.com/sha256/94/94f85441f42bd13f1e72ca703873f61074cc23a3511720167e2be8d208f8e7f2.png) > [accordion] 2.10.0 Release (Config Values) > > Version 2.10.0 introduces new configuration values to customize the default user keybinds and the emergency call prefix. > > Note: *This new default key mapping will only apply to new users who have not joined the server and had their keybind set yet.* > > 1. Open your existing `config.lua` > 2. Paste in the two, new default config options: > > ```lua theme={null} > Config.emergencyCallCommand = '999' -- Command suffix to start or stop an emergency call (i.e. '911' == /radio 911) > ``` > > ```lua theme={null} > -- Default radio keybinds (these can be changed in GTA settings) -- > Config.keybinds = { > ['toggle'] = '', > ['ptt'] = '\\', > ['power'] = '', > ['panic'] = '', > ['nextChannel'] = '', > ['prevChannel'] = '', > ['talkAnim'] = '' > } > ``` > > This is is also available from the auto-updater's `config.CHANGEME.lua` > [accordion] 2.8.1 Release (Mobile Repeater Default Key) > > > [!WARNING] > > > > This section applies only to older 2.8.1-era resource versions. Current versions no longer register `Config.mobileRepeaterKeybind`. Players use `/radio repeater`, and administrators manage compatible vehicle models through **Radio Repeaters** > **Mobile Repeater Vehicles** in `/radiomenu`. > > Version 2.8.1 introduces a new configuration value to customize the default user keybind to toggle mobile repeaters. > > Note: *This new default key mapping will only apply to new users who have not joined the server and had their keybind set yet.* > > 1. Open your existing `config.lua` > 2. Paste in the new default config option (`Config.mobileRepeaterKeybind`)\ > This is also available from the auto-updater's `config.CHANGEME.lua` > > ``` > -- Mobile repeater keybinds > Config.mobileRepeaterKeybind = { > mapperType = 'keyboard', -- See: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/ > map = 'g', -- See: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/ > label = 'Toggle Radio Repeater' > } > ``` > > Your `config.lua` show now look like the following: > > ![](https://docs-assets.sonoransoftware.com/sha256/e0/e0044c9492bf8740c90e432b6ceb42b1106a07b98d957e20f9b6f29c6def4c80.png) > [accordion] 2.7.0 (Speakers, Tunnels, Voice Effects, and Earpiece EUP) > > Version 2.7.0 introduces a new configuration value for EUP earpiece detection (to prevent people from hearing nearby chatter). > > 1. Open your existing `config.lua` > 2. Paste in the new default config option:\ > This is also available from the auto-updater's `config.CHANGEME.lua` > > ```lua theme={null} > -- Radio Chatter Exclusion Settings -- > Config.chatterExclusions = { > { > componentId = 2, -- Ears > drawableId = 1, -- Number in vMenu MP Ped Component list > texture = 0 -- Texture ID in vMenu MP Ped Component list > }, > { > componentId = 2, -- Ears > drawableId = 2, -- Number in vMenu MP Ped Component list > texture = 0 -- Texture ID in vMenu MP Ped Component list > }, > { > componentId = 2, -- Ears > drawableId = 2, -- Number in vMenu MP Ped Component list > texture = 0 -- Texture ID in vMenu MP Ped Component list > }, > { > componentId = 2, -- Ears > drawableId = 42, -- Number in vMenu MP Ped Component list > texture = 0 -- Texture ID in vMenu MP Ped Component list > }, > } > ``` > > 3. Your `config.lua` should now appear like the following after adding in the `Config.chatterExclusions` property: > > ![](https://docs-assets.sonoransoftware.com/sha256/c0/c0184d5da05066ef0057f97acaccbb642b824de401310ba0fc2fc59096f8af74.png) > [accordion] 2.6.0 Release (In-Game Nearby Audio & Connected Users List) > > Version 2.6.0 introduces new configuration values. > > 1. Open your existing `config.lua` > 2. Ensure the following lines are set: > 1. `Config.chatter = true` > 2. `Config.acePermsForRadioUsers = false` > 3. `Config.talkSync = true` > > Your `config.lua` should now look like the following: > > ![](https://docs-assets.sonoransoftware.com/sha256/88/8853c5136acbb796ff56277cefd9acc598353732f22b5e5b048c5917f964a97c.png) > [accordion] 2.3.0-1 Release (In-Game Configuration Menu) > > ### Configuration File > > Version 2.3.0 introduces a new configuration value. > > 1. Open your existing `config.lua` > 2. Ensure the following lines are set: > 1. `Config.radioUrl = 'https://sonoranradio.com'` > 2. `Config.apiUrl = 'https://api.sonoranradio.com/'` > > Your `config.lua` file should now look like the following: > > ![](https://docs-assets.sonoransoftware.com/sha256/d1/d1caeb125c858cfd9560b413a4ce0359b6b9284a133ab45e409d2246611a5d91.png) > > ### ACE Permissions > > Version 2.3.0 introduces a new in-game repeater configuration menu. This allows an easier way to add, edit, or remove in-game repeaters. > > Communities will need to grant the new `command.radiomenu` permission. > > Communities can remove the old spawn and remove command permissions: > > * `command.spawnradiotower` > * `command.spawnradiorack` > * `command.spawnradiocellrepeater` > * `command.removeradiorepeater` > > [See a complete example of our updated ACE permission structure.](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions) > [accordion] 2.2.0 Release (In-Game Towers) > > ### Towers File > > Version 2.2.0 introduces multiple new in-game tower options. This includes a new `towers.DEFAULT.json` file that is required. > > 1. Delete the existing `towers.json` file in your `sonoranradio` resource. > 2. Rename the new `towers.DEFAULT.json` file to `towers.json` in your `sonoranradio` resource and save. > > ### Configuration File > > Version 2.2.0 adds a new API key configuration for upcoming features. > > 1. Add the following to line to your `config.lua` file, below the `Config.comId` line: > > `Config.apiKey = 'YOUR API KEY'` > > 2. Replace `YOUR API KEY` with the [community API key](/radio/game-integrations/fivem/installing-the-in-game-resource#id-3.-configure-community-information) from the `Administration` panel. # Getting Started Source: https://docs.sonoransoftware.com/radio/tutorials/getting-started Set up your community and start using Sonoran Radio. 1. [Download Sonoran Radio](/radio/download-the-app). 2. [Register your community](/radio/tutorials/getting-started/register-a-community). 3. [Invite and manage users](/radio/tutorials/getting-started/invite-and-manage-users). 4. [Choose your game integration](/radio/tutorials/getting-started/configure-game-integration). 5. [Start using the radio](/radio/tutorials/usage). Already invited to a community? Open the app, join your community, and follow the [usage guides](/radio/tutorials/usage). # Configure a Game Integration Source: https://docs.sonoransoftware.com/radio/tutorials/getting-started/configure-game-integration Choose the setup guide for your game. Choose **FiveM**, **Emergency Response: Liberty County (ER:LC)**, **ARMA 3**, **Star Citizen**, or **Other** using the game logo cards. The selection is saved community-wide, not per user. Your selection controls the installation tools, location features, and zone map shown together under **Game Integration**. As a community administrator, open **Community Customizations → Game Integrations**. ## FiveM Open **Customize** > **Game Integration** > **FiveM**, then follow [Installing the FiveM In-Game Resource](/radio/game-integrations/fivem/installing-the-in-game-resource). ## ER:LC Open **Customize** > **Game Integration** > **ER:LC**, then follow [ER:LC Setup](/radio/game-integrations/roblox/erlc-setup) to link your private server and Roblox account. ## ARMA 3 Select **ARMA 3**. The **ARMA 3 Installation** expansion appears first with a four-step server/client walkthrough. Below it, one card groups **Enable ARMA 3 bridge**, **ARMA 3 signal integration**, and **AI can hear radio transmissions**. All three settings default to enabled, are saved for the whole community, and refresh on active radio clients within 30 seconds. Only administrators can change them. Disabling bridge use makes signal and AI-hearing controls inactive without discarding their saved values. There is no per-user Dispatch integration toggle or in-game Sonoran CBA override in the updated mod. See [Install and Connect](/radio/game-integrations/arma-3/install-and-connect). ## Star Citizen and Other Use the desktop app's **Overlay** tab for the universal overlay. Selecting Star Citizen does not add an ARMA-style in-game signal bridge. New Star Citizen registrations start with a horizontal Mobi frame and Mobi screen. Use **Other** for games without a dedicated integration. Changing game selection on an existing community does not overwrite its saved custom frames. # Invite and Manage Users Source: https://docs.sonoransoftware.com/radio/tutorials/getting-started/invite-and-manage-users Learn how to invite and manage users in your Sonoran Radio community! [Video tutorial](https://www.youtube-nocookie.com/embed/5cPJCugzP4g) ## Automatic Join, Kick, Ban, and Permission Sync Sonoran CMS allows you to automatically add and manage user permissions with user applications, sync them with Discord roles, and more! > [card] [Sonoran CMS](/radio/tutorials/integrations/sonoran-cms) If you are building your own integration, Sonoran Radio also exposes API endpoints to approve members, kick members, ban members, update member display names, and set member permissions. > [card] [Radio User Endpoints](/radio/developer-documentation/developer-documentation/api-endpoints-v2/users) *** ## Discord Role Sync Choose Discord role permissions in **Customize > Discord**, or select **Set up role sync** in **Members**. > [card] [Discord](/radio/tutorials/integrations/discord-bot-integration) *** ## FiveM Management All user permission management, including inviting and approving members, can be automated with FiveM ACE permissions. > [card] [Configuring ACE Permissions](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions) ## Manual User Management ### Inviting Members Users will need the `Community ID` located in the `Administrator` panel.\ Communities can also [customize this community ID](/radio/tutorials/usage/dispatch-panel/custom-domain-vanity-url#vanity-urls). ![](https://docs-assets.sonoransoftware.com/sha256/e3/e32cc090d9c8f71b9a810bda77b6ee1895f146e8b86d67ff62b8e98312487b7a.png) *Sonoran Radio: Community ID* When logged into Sonoran Radio, they can select the `+` button in the portal to paste in the `Community ID`. ![](https://docs-assets.sonoransoftware.com/sha256/63/63fd4b6db1c4a79956d72931236b1428c5999d0eb279148ec74dc984084a8e13.png) *Sonoran Radio: Join Community* ### Approving Members When a member joins your community with an invite code, they will be pending until approved. Users with the `Approve Pending Members` permission can approve in the `Members` tab ![](https://docs-assets.sonoransoftware.com/sha256/d3/d3def2acc4a629fdd4df3efc624c1856b15e086b9b1a340129f77172ec98de22.png) *Sonoran Radio - Approve Members* ### Manage User Permissions User permissions can be manually set by clicking the shield icon on a user in the `Members` tab ![](https://docs-assets.sonoransoftware.com/sha256/81/81aef0a71783fb1f77fa4a2c2341fa19666537ffe0f9746f33fc2cccfc5c6739.png) *** ## Next Steps Installing the In-Game Resource > [card] [Installing the FiveM In-Game Resource](/radio/game-integrations/fivem/installing-the-in-game-resource) # Register a Community Source: https://docs.sonoransoftware.com/radio/tutorials/getting-started/register-a-community Create your own FREE community on Sonoran Radio! [Video tutorial](https://www.youtube-nocookie.com/embed/5cPJCugzP4g) ## Creating a Community 1. Sign in at [SonoranRadio.com](https://sonoranradio.com). 2. From the Portal, choose the option to create a community. 3. Select your game using the logo cards: **FiveM**, **ER:LC**, **ARMA 3**, **Star Citizen**, or **Other**. 4. Enter the community nickname and any other requested community details. 5. Select **Create Community** once and wait for registration to finish. The game selection is required and saved on the community. Administrators can change it later under **Community Customizations → Game Integrations**, using the same game cards. ### Initial frames and screen themes New ARMA 3 communities receive the BLUFOR/OPFOR frames and inventory-item mappings with the text-style screen. New Star Citizen communities receive the horizontal Mobi frame with the Mobi screen. Other games use their applicable default setup. These defaults are chosen during registration. Changing an existing community's game does not replace its customized frames; edit them under **Customize > Overlay**. The older video above may show a previous registration layout; follow these steps for the current form. *** ## Next Steps Now it's time to invite your community members! > [card] [Invite and Manage Users](/radio/tutorials/getting-started/invite-and-manage-users) # Transfer or Delete a Community Source: https://docs.sonoransoftware.com/radio/tutorials/getting-started/transfer-or-delete-a-community View more information on transferring or removing your Sonoran Radio community. ## Transferring a Community ### Select the New Owner To transfer the community ownership to another user, navigate to the `Administration` > `Transfer Community` In the popup, select the user you wish to transfer the community to and enter the community name in the confirmation box. ![](https://docs-assets.sonoransoftware.com/sha256/70/70343a947704799d710f63307b5d9d6169625f2f76f6597771dab6b7e3807ffb.png) *Sonooran Radio: Transfer Community* ![](https://docs-assets.sonoransoftware.com/sha256/a1/a1375d4d8200a69de82dd9eaf613f3e6fed2db4015cbebad01c8a89365b3600e.png) *Sonoran Radio: Transfer Community* ### Email Confirmation After selecting the new owner, a confirmation email will be sent. Check your inbox to complete the transfer. ![](https://docs-assets.sonoransoftware.com/sha256/66/6668834ac24171a7e41e16b58e921e69c036630cc2bb98b42dac4947fe4bdf5f.png) *Sonoran Radio: Confirm Transfer* ## Delete Community To permanently delete a Sonoran Radio community, navigate to `Administration` > `Delete Community` *Note: Only the community owner can delete the community.* After confirming deletion, a **Deleting community…** loading state appears. Wait for completion rather than repeatedly submitting. Successful deletion returns you to the Portal; communities using a custom domain return to the main Sonoran Radio Portal. If deletion fails, an error is shown instead. ![](https://docs-assets.sonoransoftware.com/sha256/5f/5fe399d4b6ae296339511e1679cd7c6ebe9099263655d414154fc0af387e3e88.png) *Sonoran Radio: Delete Community* # Other Integrations Source: https://docs.sonoransoftware.com/radio/tutorials/integrations Connect Sonoran Radio to your other tools. * [Stream Deck Plugin](/radio/tutorials/integrations/stream-deck-plugin) * [Radio Hardware](/radio/hardware) — external PTT accessory setup and protocols. * [Sonoran CAD](/radio/tutorials/integrations/sonoran-cad-integration) * [Sonoran CMS](/radio/tutorials/integrations/sonoran-cms) For voice channel controls, timers, and CAD commands, see [Dispatch AI](/radio/tutorials/usage/dispatch-ai). # Discord Source: https://docs.sonoransoftware.com/radio/tutorials/integrations/discord-bot-integration Connect Discord to manage Radio permissions and private channel access. Connect your Discord server once, then choose the Radio permissions each role gives members. ## Connect your server You need **Manage Server** in Discord to invite and set up the bot. 1. [Invite Sonoran Bot](https://sonoranbot.com/invite) and choose your Discord server. 2. In Radio, open **Administration** and copy your **Community ID** and **Community API Key**. 3. In Discord, run `/settings`. Choose a logging channel, select **Discord Only**, and enter your Radio community ID and API key. Leave CAD blank if you do not use it. 4. Return to Radio, open **Customize > Discord**, and select **Refresh Discord roles**. **Already using the bot?** Open `/settings` and use **Change Radio Setup** in the API settings to connect this Radio community, then refresh in Radio. **Using CMS?** Manage [Radio permissions in CMS](/cms/integration-capabilities/sonoran-radio-sync). Radio role mapping is disabled for communities managed by CMS. ## Set up role sync > [card] [Role sync](/radio/tutorials/integrations/discord-bot-integration/role-sync) For other bot features, see the [Sonoran Bot guides](/bot/tutorials/getting-started). # Role sync Source: https://docs.sonoransoftware.com/radio/tutorials/integrations/discord-bot-integration/role-sync Choose the Radio permissions and private channels each Discord role gives your members. Give members Radio permissions through their Discord roles. ## Connect Discord Follow [Connect your server](/radio/tutorials/integrations/discord-bot-integration), then open **Customize > Discord**. You can also select **Set up role sync** in **Members**. ![Radio Members banner with a Set up role sync button](https://docs-assets.sonoransoftware.com/sha256/12/129cb9d95abb29075ef9b952913bd3a111b9bab545fb0d4c3a85b07b23eca3ec.jpg) *Open role sync from the Members panel.* ![Radio Role sync panel showing Police and Dispatch mappings for Sonoran Valey Roleplay with edit and delete buttons](https://docs-assets.sonoransoftware.com/sha256/5a/5a8427d0f025cc83c1cdbf4840f0a152b463d990e84cde9c2930270232b4261e.jpg) *Each role shows its Discord server and assigned permissions.* > [!NOTE] > > If this community uses Sonoran CMS, configure [Radio permissions in CMS](/cms/integration-capabilities/sonoran-radio-sync). Radio role mapping is disabled for communities managed by CMS. ## Add a role 1. Select **Add role**. 2. If more than one Discord server is connected, choose the correct server. 3. Type a role name and select it. The dot beside its name shows its Discord role color. 4. Choose what members can do under **Permissions**. Scroll to see all permissions. 5. Under **Private channels**, choose the channels members can use. 6. Wait for **Changes saved automatically**, then select **Done**. ![Searchable Discord role menu showing colored dots beside role names](https://docs-assets.sonoransoftware.com/sha256/48/48b547bba88dcb2c8e528b69ef6221be7b1211609c2910718283d0be04b39b91.jpg) *Type to find a Discord role.* ![Radio role editor showing access and member permission toggles](https://docs-assets.sonoransoftware.com/sha256/57/57d82b46c80d49e7ccb181477c9463f6623a0b61ffbb248f5df91a6d5eaa5c1b.jpg) *Choose what members with this role can do.* **Radio access** is included with every mapping. A matching role can approve a pending member even when no extra permissions are selected. ![Radio private channel settings with Police channel access selected](https://docs-assets.sonoransoftware.com/sha256/a2/a20f8ea37cb333c66328472df0c17b56d69194b3d5abc3656543f464aa7d3121.jpg) *Give this role access to specific private channels.* ## Sync members 1. Members join your Radio community. 2. Members run `/sync` in Discord. If their account needs linking, the bot shows them how. After a mapping changes, all linked members automatically resync **5 minutes after your last edit**. Finishing the sync may take a little longer. Once a member is linked, adding or removing their Discord roles automatically updates their Radio permissions. They do not need to run `/sync` after each role change. The five-minute delay applies to mapping edits. Members receive the combined permissions and private channel access from all their mapped roles across connected Discord servers. Sync replaces manually assigned Radio permissions and private channel grants. The community owner keeps full access. ## Edit or remove a mapping 1. Select **Edit permissions** beside a role to change its permissions or private channels. Changes save automatically. 2. Select **Delete role mapping** beside a role to remove its mapping. This removes the mapping, not the Discord role. # Sonoran CAD Integration Source: https://docs.sonoransoftware.com/radio/tutorials/integrations/sonoran-cad-integration Integrate the Radio with your Sonoran CAD! Connect Sonoran Radio to CAD to sync desktop overlay panic alerts with your CAD unit. The FiveM CAD plugin also provides call information, tower blips, and display name sync for the in-game radio. ## Desktop Overlay Panic The desktop overlay uses the CAD API link configured in **Customize > Dispatch AI** for the Radio server you connect to. Configure this link even if you only want panic synchronization; **Dispatch AI Enabled** can remain off. 1. In CAD, open **Admin > Advanced > In-Game Integration > Web API** and copy the community ID and API key. 2. In CAD, open **Admin > Customization > Servers** and note the server ID. 3. In Radio, open **Customize > Dispatch AI** and select the Radio server used by your overlay. 4. Under **Link Sonoran CAD**, enter the CAD community ID, API key, and server ID. Leave each field to save it. 5. Sign in to Radio and CAD with the same Sonoran account, and go on duty in the linked CAD server. Press the overlay's **Panic** button to activate panic in Radio and CAD. Press it again to clear both. Clearing your panic through Radio also clears it in CAD. Frame controls are managed in **Customize > Overlay > Manual**. If a frame has no panic control, use **Add Button > Panic**, position it over the intended button, and select **Save changes**. Custom screens can also include a Panic element. See [Radio Overlay](/radio/tutorials/usage/desktop-overlay#create-a-custom-overlay) for frame editing. If Radio panic activates but CAD does not update, check the selected Radio server's CAD link, the CAD server ID, and that the same account has an on-duty CAD unit. The overlay displays an error when CAD synchronization fails. For voice commands using the same CAD link, follow [Dispatch AI setup](/radio/tutorials/usage/dispatch-ai#common-setup). ## FiveM Sonoran Radio CAD Plugin For the FiveM in-game radio, [enable the `sonrad` (Sonoran Radio) submodule in your CAD resource](/cad/integration-plugins/in-game-integration/available-plugins/sonoran-radio-sonrad). ## FiveM Integration Features ### Panic Toggle > [accordion] CAD Panic Toggle > > Triggering your Sonoran Radio panic (by pressing the yellow button at the top of the radio) will also toggle your panic status in Sonoran CAD. > > ![Sonoran Radio Handheld - Panic Button](https://docs-assets.sonoransoftware.com/sha256/e2/e230017ee3518b78341f6e1c88a72d1e58b02b1f06ea80e118aaaef133e55fa9.png) ### Dispatch Call Information > [accordion] Dispatch Call Information > > When attached to a Sonoran CAD dispatch call, the radio will display a red call info box and set the top status bar to red. Click the call title to expand and collapse the information. > > ![Sonoran Radio x CAD Call Information](https://docs-assets.sonoransoftware.com/sha256/97/979ed4921c7383d04b7edaca80f35dec3f905db1a88c8e5f5ba56eee1e9d4e34.png) ![Call Information - Expanded](https://docs-assets.sonoransoftware.com/sha256/03/038c573f408832979522773f493eb985997d718e3af8397e30d36f96d9269444.png) ### Live Map Blips > [accordion] Live Map Radio Tower Information > > Sonoran Radio towers will be displayed on the CAD live map. > > Select one of the blips to view it's repeater type and health. > > ![](https://docs-assets.sonoransoftware.com/sha256/9a/9a5e5c56bdf535b2d32b53dd127e30b17da81361dd534328a6c11af6168a41b8.png) ## Display Name Sync > [accordion] CAD To Radio Display Name > > Automatically set your radio's display name based on your CAD unit information. > > In the `sonorad` submodule's configuration file, set `config.syncRadioName.enabled` to true and customize the formatting in `config.syncRadioName.nameFormat`. > > ![](https://docs-assets.sonoransoftware.com/sha256/80/8007d7d7e125458b87e1ff18a139bd8d68ed4dbb30c6434ca1f2b11413041ce0.png) # Sonoran CMS Source: https://docs.sonoransoftware.com/radio/tutorials/integrations/sonoran-cms Automate Sonoran Radio permissions with Sonoran CMS! ![](https://docs-assets.sonoransoftware.com/sha256/21/210bea29eacf5f658d2b7c5151f428cf9ec9a7be647f163779ab0f62946deae4.png) *Sonoran CMS x Sonoran Radio* Sonoran CMS makes managing your community's radio easy and automatic! * Sync radio permissions and channel access via CMS ranks and Discord Roles * Sync radio display names via CMS and Discord names [Learn more about Sonoran CMS!](/cms/integration-capabilities/sonoran-radio-sync) # Stream Deck Plugin Source: https://docs.sonoransoftware.com/radio/tutorials/integrations/stream-deck-plugin Sonoran Radio's official Stream Deck plugin gives you faster, customizable control over channels, volume, presets, and more. ![](https://docs-assets.sonoransoftware.com/sha256/03/036b954fb9c821ed0735e340e16acbc743fc439ea0a810a8247f413717d71b26.png) ![](https://docs-assets.sonoransoftware.com/sha256/39/39c900c5d5ccccaddcfed71a2b6c68cca94901dc64453fdb79f3b405dbe72ab5.png) ![](https://docs-assets.sonoransoftware.com/sha256/ad/ada01ebd4aeea7ac715315c2f8f9ac9be8d5c0232e5a6e2247302459eaed544f.png) ![](https://docs-assets.sonoransoftware.com/sha256/46/4604928bc54dac34db1b08ce605a34bb62f013d609f3e9d4c40bf8bca4436c77.png) ## Introduction Sonoran Radio's MacOS and Windows desktop applications offer direct integration with [Stream Deck hardware](https://www.elgato.com/us/en/p/stream-deck). By installing our official Stream Deck plugin, users can change channels, toggle preset channel groups, change channel and system volumes, and more - faster than ever before. Don't have a physical Stream Deck? Download the [free Stream Deck Mobile app](https://www.elgato.com/us/en/s/stream-deck-mobile)! ## Installation ### Download and Install the Plugin [Download the official Sonoran Radio Stream Deck plugin from the Elgato Marketplace.](https://marketplace.elgato.com/product/sonoran-radio-6e959b5a-4cd3-40c8-b145-8eb1ea982fd5) ### Configure Actions Using the Stream Deck desktop application search for **Sonoran Radio** in the **Keys** and **Dials** sections. Drag-and-drop an action category to the Stream Deck. Select the action to update the sub-type. Ex: **Channel** key type > **Toggle XMIT Channels** > **Select Channels** ![](https://docs-assets.sonoransoftware.com/sha256/34/34e2877f1aa7b40bc07e888bf2fdf2d55d794b164c8156de15892270ca8a479e.png) ### Optional: FiveM Integration Each action can be configured to control the desktop app (default) or [FiveM in-game resource](/radio/game-integrations/fivem/in-game-radio). For clients using the in-game radio in FiveM, simply toggle each action from **Desktop** to **FiveM**. Sonoran Radio then acts as a local bridge between the Stream Deck, the desktop app, and the FiveM radio. The desktop app must be running, but does not have to have any radio community open or selected. ![](https://docs-assets.sonoransoftware.com/sha256/9f/9ffb98d4a9208e203015fc078e7b6c49313423875ef375307cb90527ba76aee1.png) 1. Stream Deck sends the action to Sonoran Radio Desktop on localhost 2. Sonoran Radio Desktop forwards the command to a localhost WebSocket 3. your FiveM client script listens to that socket and forwards the event into the radio iframe/NUI 4. the iframe/NUI sends radio state snapshots back through your FiveM client script to Sonoran Radio Desktop 5. Stream Deck reads those snapshots for channel lists, labels, and action state This means the normal setup for users is: * keep **Sonoran Radio Desktop** running * switch the Stream Deck action target to **FiveM** * run a FiveM client script that connects to the desktop socket and forwards the documented messages ![](https://docs-assets.sonoransoftware.com/sha256/4f/4f28842205e856f43e27e2caa99f331be012b296a2e91d12d8b2ec9a77e06ad7.png) ### FiveM Developer Setup If you are implementing the FiveM side yourself, use the documented developer contract here: > [card] [Stream Deck API](/radio/developer-documentation/developer-documentation/stream-deck-api) ## Capabilities ### Keys > [accordion] Channel Category Buttons > > Channel actions allow you to do somethin > > * **Next Group** > * **Previous Group** > * **Next Channel** > * **Previous Channel** > * **Toggle XMIT Channels** > * Select one or more channels > * Toggling this action will add and remove the selected channel(s) from your transmit list > * **Temporary XMIT Channel** > * Select a channel > * Pressing this action will temporarily transmit in the selected channel and return to your previous channel(s) after release > * **Toggle Scan Channels** > * Select one or more channels > * Toggling this action will add and remove the selected channel(s) from your scan list > [accordion] Toggle Category Buttons > > * **Push to Talk** > * **Toggle AI Mode** > * **Toggle Tone Board** > [accordion] Audio Category Buttons > > * **Volume Up** > * **Volume Down** > * **SFX Volume Up** > * **SFX Volume Down** > * **AI Volume Up** > * **AI Volume Down** > [accordion] Desktop Category Buttons > > * **Connected Users Overlay** > * **Focus Radio Overlay** > * **Toggle Radio Overlay** ### Dials Stream Deck hardware with dials have the following supported actions: > [accordion] Dial Options > > * **Cycle Groups (Prev/Next)** > * **Cycle Channels (Prev/Next)** > * **Adjust Volume** > * Optional Press to Mute > * **Adjust SFX Volume** > * Optional Press to Mute > * **Adjust AI Volume** > * Optional Press to Mute > * **Adjust Current Channel Volume** > * Optional Press to Mute # Using Sonoran Radio Source: https://docs.sonoransoftware.com/radio/tutorials/usage Radio controls and community settings shared across games. * [Dispatch & Admin Panel](/radio/tutorials/usage/dispatch-panel) — channels, audio, logs, and community settings. * [Radio Overlay](/radio/tutorials/usage/desktop-overlay) — radio controls and hotkeys while playing any game. * [Overlay AI](/radio/tutorials/usage/desktop-overlay/overlay-ai) — create custom radio frames and screens from photos, then refine them with chat. * [Dispatch AI](/radio/tutorials/usage/dispatch-ai) — voice channel controls, timers, and Sonoran CAD commands. * [Troubleshooting](/radio/tutorials/usage/troubleshooting) — microphone, browser, and desktop help. # Radio Overlay Source: https://docs.sonoransoftware.com/radio/tutorials/usage/desktop-overlay Create radio overlays for desktop and FiveM, and use the desktop overlay while you play. Create your community's radio frames in **Customize > Overlay**. The same editor supplies the desktop overlay and FiveM in-game radio. ## Create with Overlay AI Use the **AI** tab to create a custom screen and radio frame from a description or reference photos, then refine the design with follow-up messages. You can select **New Frame > Blank canvas** without uploading artwork first. Overlay AI and the Custom screen editor require **Pro**. See [Overlay AI](/radio/tutorials/usage/desktop-overlay/overlay-ai) for reference photos, chat examples, manual editing, and the monthly AI allowance. ## Create a custom overlay Uploading custom frame artwork requires **Pro**. 1. Open your community's **Customize > Game Integration** tab and select your game. 2. Open **Customize > Overlay** and select **New Frame**. 3. Enter a label, choose **Upload image**, and upload your radio artwork. Select **Create**. To begin without artwork, choose **Blank canvas** instead. 4. Open **Manual**, choose a **Screen Theme**, and adjust **Frame Width** as needed. The **Custom** theme adds editable screen colors, typography, icons, and decorative labels. 5. Drag the screen and buttons into place. Use **Add Button** for any missing controls, then select **Save changes**. ![New Frame dialog with a County Patrol label and Upload image button](https://docs-assets.sonoransoftware.com/sha256/8b/8b81ba400d13da3080b9e85c91b19a6b5dde0ab74b5203b36090031dd7aaa6df.jpg) *Name your frame and upload its artwork.* ![Radio Overlay editor showing a County Patrol frame, filled settings, button controls, and canvas zoom](https://docs-assets.sonoransoftware.com/sha256/72/72adf5262d855e28e907a93b305dd1bcc5690d4ecf15c2aaa42887f7ba07721d.jpg) *One editor for desktop and FiveM radio frames.* Drag a screen corner to resize it, or hold **Ctrl** while dragging a screen or button. Right-click a button to remove it. Each button action can be added once. Use **+**, **−**, and **Fit** to zoom the preview. Preview zoom does not change the radio's saved size. **Reset to game defaults** replaces the full frame set in the editor. Confirm the reset, then select **Save changes** to apply it. Select a game in **Game Integration** first if reset is disabled. For FiveM frame selection and access restrictions, see [FiveM Radio Frames](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames). To configure automatic layout changes and previous/next-frame shortcuts, see [Changing Radio Frames](/radio/tutorials/usage/desktop-overlay/changing-radio-frames), with separate setup for [FiveM](/radio/game-integrations/fivem/in-game-radio/fivem) and [ER:LC](/radio/game-integrations/roblox/erlc-1). ## Use the desktop overlay The desktop app keeps radio controls visible while playing FiveM, Arma 3, Roblox, and other games. ## Open the Overlay 1. [Download and open the desktop app](/radio/download-the-app). 2. Join your Radio community and connect to a channel. 3. Select the **Overlay** tab at the top, beside **Dispatch**. 4. Position the radio over your game window. ![Sonoran Radio top navigation with the Overlay tab immediately to the right of Dispatch](https://docs-assets.sonoransoftware.com/sha256/67/67c68bf7594dd8339210f64f06560a3f014b21f23ed7ed155ac3b2fb9f9de0bd.png) *The Overlay tab is beside Dispatch in the top navigation. Use the desktop app to open it; the website displays it disabled.* On the website, the tab is disabled; its tooltip explains that the desktop app is required. The mobile app hides the tab. To return to the main panel, use the radio's power button or **Back to Portal**. The default ARMA 3 BLUFOR and OPFOR frames use the lower-left button beneath the screen for **Back to Portal**. For a custom frame, open **Customize > Overlay > Manual > Add Button** and add **Back to Portal** for ARMA 3 or **Hide** for other games. Position it over a button, then select **Save changes**. ## Panic and Sonoran CAD Use the frame's **Panic** button or a custom screen's Panic element to activate or clear your radio panic. To also update your CAD unit, link the CAD community ID, API key, and server ID for your Radio server under **Customize > Dispatch AI > Link Sonoran CAD**. Use the same Sonoran account in Radio and CAD, with your CAD unit on duty. See [Sonoran CAD Integration](/radio/tutorials/integrations/sonoran-cad-integration#desktop-overlay-panic) for setup and troubleshooting. The CAD API link is required for synchronization; the **Dispatch AI Enabled** toggle can remain off. ## Game Signal The overlay displays signal supplied by supported game integrations. For location-based signal, configure [FiveM in-game repeaters](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters), [ER:LC virtual towers](/radio/game-integrations/roblox/erlc-signal-towers), or [Arma 3 signal towers and repeaters](/radio/game-integrations/arma-3/signal-towers-and-repeaters). ![Sonoran Radio desktop overlay with a selected channel, connected users, and signal bars](https://docs-assets.sonoransoftware.com/sha256/6c/6cc82e8087ced307f5fd6115e6a7c643ace7655221e7ed281ceaf32f73560118.jpg) *Signal bars show the coverage supplied by your game integration.* ## Overlay Controls > [accordion] Hotkeys > > 1. Open **Settings** > **Hotkeys** on the overlay. > 2. Select the button beside **Toggle Desktop Radio** and press your preferred key to hide or show the overlay. > 3. Set **Focus Desktop Radio** the same way to interact with the radio while playing in fullscreen. > > Set **PTT Hotkey** to your preferred push-to-talk key. > > Under **Change Radio Frame**, assign the previous-frame and next-frame shortcuts to cycle through your community's frames. See [Change frames with desktop hotkeys](/radio/tutorials/usage/desktop-overlay/changing-radio-frames#change-frames-with-desktop-hotkeys). > > ![Hotkeys settings showing PTT Hotkey, Focus Desktop Radio, and Toggle Desktop Radio](https://docs-assets.sonoransoftware.com/sha256/9e/9edd16b2c0daabe2f2a016e2c85eb675f166b94b971a40c140b4e345a94ab4ea.jpg) > > *Example hotkeys; choose keys that do not conflict with your game.* > [accordion] Move or resize the radio > > Drag the radio body to move it. To resize the whole overlay, drag a corner, or hold **Ctrl** while dragging the body: up enlarges and down shrinks. > > A brief resize hint appears when the overlay opens and when you hover or focus a resize corner. There is no permanent resize button, and hovering over the radio screen does not repeatedly show the hint. > [accordion] Change the radio frame > > 1. Open **Settings** > **Audio** on the overlay. > 2. Open **Radio Frame**. > 3. Select a frame provided by your community. > > ![Audio settings with the Radio Frame dropdown open](https://docs-assets.sonoransoftware.com/sha256/3e/3eb8bb4238281c7a7b0b62adab69364fcd52292cab2ab411800cdbc46ec1cd1b.jpg) > > *Select a community frame from the Radio Frame dropdown.* > > Arma 3 can select a frame based on your inventory radio. See [Radio Items and Team Frames](/radio/game-integrations/arma-3/radio-items-and-team-frames). > > ER:LC can use its visible ELS controller to switch the selected frame between On-foot and Vehicle layouts. See [ER:LC Frame Changes](/radio/game-integrations/roblox/erlc-1) for detection setup and macOS screen permissions. # Changing Radio Frames Source: https://docs.sonoransoftware.com/radio/tutorials/usage/desktop-overlay/changing-radio-frames Configure radio layouts and switch between community frames in FiveM and ER:LC. A **frame** is a selectable radio design, such as a patrol radio or a high-visibility radio. A frame can contain an **On-foot**, **Vehicle**, and, for FiveM, **Aircraft** layout. These layouts are variants of the same radio: the selected frame stays selected while its artwork, screen, and buttons change for your situation. For example, a patrol frame can show a handheld radio on foot and a dashboard radio in a vehicle. Selecting another frame changes the radio design; entering a vehicle changes the layout within that design. ## Configure frames and variants Community administrators manage frames in the Sonoran Radio panel: 1. Open your community and go to **Customize** > **Game Integration**. Confirm that **FiveM** or **ER:LC** is selected. 2. Open **Customize** > **Overlay**. 3. Select an existing frame, or select **New Frame** to create one. Start with uploaded artwork or a blank canvas, as described in [Create a custom overlay](/radio/tutorials/usage/desktop-overlay#create-a-custom-overlay). 4. Open **Manual**, select **On-foot**, and position the screen and button areas on the preview. Set the frame width and screen theme as needed. 5. Select **Vehicle** and add or select its layout. Follow the [FiveM vehicle-class setup](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames#set-a-layout-for-vehicle-classes) for multiple layouts and their matching order. For ER:LC, use **Add this variant** if the Vehicle layout is missing. 6. Use **Change image** to upload the vehicle artwork, then adjust its screen, buttons, width, and theme independently. [Overlay AI](/radio/tutorials/usage/desktop-overlay/overlay-ai) can also help create or refine the design. 7. For FiveM, use **Aircraft** to configure aircraft layouts. ER:LC communities have **On-foot** and **Vehicle** modes. 8. Select **Save changes** to publish the configuration to your community. Uploading custom frame artwork requires a **Pro** subscription. See [View and Compare Plans](/radio/pricing/pricing-faq/standalone-pricing). Players select one of the available frames in their radio settings. Automatic layout changes use the variants belonging to that selected frame. If no matching variant exists, the radio uses its on-foot layout. ## Change frames with desktop hotkeys In the [desktop overlay](/radio/tutorials/usage/desktop-overlay): 1. Open **Radio Settings** > **Hotkeys**. 2. Find **Change Radio Frame**. 3. Assign the previous-frame and next-frame shortcuts using the left and right arrow controls. 4. Close settings and press either shortcut to cycle through the community's frames. Cycling wraps around at either end of the list. These shortcuts select a different frame. ER:LC detection then displays that frame's vehicle variant when the ELS controller is visible. Configure the shortcuts on each computer where you use the desktop app. For the FiveM in-game radio, choose a frame from its radio settings. Desktop frame shortcuts control the desktop overlay. ## Game-specific setup > [card] [FiveM Frame Changes](/radio/game-integrations/fivem/in-game-radio/fivem) > [card] [ER:LC Frame Changes](/radio/game-integrations/roblox/erlc-1) # Overlay AI Source: https://docs.sonoransoftware.com/radio/tutorials/usage/desktop-overlay/overlay-ai Attach reference images and a prompt to create custom radio frame artwork and screen UI, then refine the design with chat. Attach reference images and describe the radio frame and screen UI you want in **Customize > Overlay**. Overlay AI generates both the **outer radio frame artwork** and the **editable screen**, including its colors, icons, labels, and control layout. Recreate a radio from photos or describe your own design for the desktop overlay and FiveM radio. ![Sonoran Radio Overlay AI showing reference-photo chat beside a custom radio frame and screen](https://docs-assets.sonoransoftware.com/sha256/3f/3f5d844c86ee1d8b71b199779778e7182ef85f7c952cf3cb37e3d403ebc1d9e0.webp) *Create with photos. Refine with chat.* Overlay AI and the **Custom** screen editor require a **Pro** community subscription. See [View and Compare Plans](/radio/pricing/pricing-faq/standalone-pricing#overlay-ai). ## Create your first design 1. Open your community's **Customize > Overlay** page. 2. Select an existing frame, or select **New Frame**, enter a name, choose **Blank canvas**, and select **Create**. 3. Use the **AI** tab, which opens by default. Select **Add photos** to attach reference images, then describe the frame and screen you want in the message box. You can also start with a prompt alone or select a suggested prompt. 4. Select **Send**. The generated design appears on the canvas. 5. Review the result and send follow-up instructions. Switch to **Manual** for direct adjustments. 6. Select **Save changes** to apply the design to your community. AI results update the editor draft. They are not saved to your community until you select **Save changes**. ## Use reference photos Attach up to **four PNG, JPEG, or WebP images**, each **2 MB or smaller**. Select **Add photos**, or drop images into the message area. You can add photos with the first request and with follow-up messages. Clear, front-facing photos help the AI match the radio body and display. Include a close view of the display when its colors, icons, or labels are important. Photos remain attached and are sent with each message until you remove them. ### Example: turn a radio photo into a frame and screen Attach photos of the radio you want to recreate, then send a prompt such as: > Create a replica frame and screen based on these Motorola Ion photos. Match the radio body, display colors, and icons. The example below shows an attached reference photo and prompt in the AI chat, with the generated frame and screen on the canvas. You can request a different body shape or screen style in the same way. ![Overlay AI editor showing an attached Motorola Ion reference photo and a prompt beside the generated radio frame and editable screen](https://docs-assets.sonoransoftware.com/sha256/ac/acf2c223623e1ef670e02c4471125d29d0b565d903160d4139885f2f68f176e4.webp) *Attach images and a prompt to generate the radio body and screen UI together.* ## Refine with chat Describe which parts should change and which should stay the same. You can request changes to the frame, screen colors and typography, icons, labels, and control positions. | Goal | Example message | | - | - | | Recreate a radio | “Create a replica screen and frame based on these Motorola Ion photos.” | | Change the display | “Use the gray display background and dark text in the reference. Keep the frame unchanged.” | | Adjust the layout | “Move the volume control to the top right and enlarge the channel name.” | | Edit the body | “Keep this radio's shape, but make the outer case black.” | | Add decoration | “Add a small GPS symbol and a County Patrol label that do nothing when clicked.” | The standard radio controls retain their radio actions. Extra text and icons are decorative: they do not create new radio functions. ## Make manual adjustments Open **Manual** to choose a **Screen Theme**. The **Custom** theme exposes these controls: * **Colors and type** — brand text, screen and state colors, font family, and button corners. * **Items** — select a screen item to change its visibility, size, weight, or decorative text and symbol. * **Icon images** — choose built-in symbols or upload custom icons. * **Share design** — export and import the custom design as JSON. Click an item on the canvas to select it, drag it to move it, or drag its corner to resize it. Use **Editing controls** to hide selection borders and resize handles while reviewing the design. **+**, **−**, and **Fit** change the preview zoom without changing the saved radio size. ![Manual tab showing colors and type, items, and icon image controls beside the radio frame and screen created with Overlay AI](https://docs-assets.sonoransoftware.com/sha256/14/14ef9c827588ff0b575a880a9a976a9d2006e85e83b3e213db3ac63bf311eb2a.webp) *The generated screen stays editable: adjust its colors, icons, text, and layout in Manual.* See [Radio Overlay](/radio/tutorials/usage/desktop-overlay#create-a-custom-overlay) for frame controls and [FiveM Radio Frames](/radio/game-integrations/fivem/in-game-radio/customizing-radio-frames) for in-game selection and access restrictions. ## Monthly AI allowance Pro includes a monthly allowance for Overlay AI. The panel shows the percentage remaining and the next reset date. Usage depends on the work requested; generating new frame artwork uses more of the allowance than a simple screen edit. The allowance resets on the **first of each month in UTC**. Further generation is unavailable when the remaining allowance cannot cover the next request. You can continue using the manual editor and save your existing draft. # Dispatch AI Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-ai Use voice commands to control your radio, set timers, and work with Sonoran CAD across games. Dispatch AI helps you control Sonoran Radio and work with Sonoran CAD by voice. Change channels, manage scanned channels, set timers, review your current CAD call, and more while playing. ![Sonoran Radio Dispatch AI](https://docs-assets.sonoransoftware.com/sha256/cf/cf6ed1bcb6fdccfe0270c7c90ad4f6742d657b3b629929a228493745d9b47ef4.webp) > [!WARNING] > > Dispatch AI is in public beta. Usage limits depend on your community's [subscription](/radio/pricing/pricing-faq/standalone-pricing#dispatch-ai); a free tier is available. ## Common Setup Complete this setup once for each Radio server using Dispatch AI. **The current setup requires a linked Sonoran CAD community, including for radio commands.** 1. In Sonoran CAD, open **Admin** > **Advanced** > **In-Game Integration** > **Web API**. Copy the community ID and API key. 2. In CAD, open **Admin** > **Customization** > **Servers** and note the server ID. The default is `1`. 3. In Radio's admin panel, open **Customization** > **Dispatch AI**. Select a Radio server or use **+** to create one. 4. Under **Link Sonoran CAD**, enter the CAD community ID, API key, and server ID. Fields save automatically when you leave them. 5. Toggle **Dispatch AI Enabled** on. 6. Sign in to Radio with your Sonoran account, join that Radio server, and connect to a channel. Use the same account in CAD for actions involving your unit. This CAD API link is also required for [desktop overlay panic synchronization](/radio/tutorials/integrations/sonoran-cad-integration#desktop-overlay-panic). Configure it for the Radio server used by your overlay. Panic synchronization works even when **Dispatch AI Enabled** is off. ![Dispatch AI configuration showing enable controls, timer settings, and the Sonoran CAD link](https://docs-assets.sonoransoftware.com/sha256/31/319a68757bf6ad5cb5fbef824e77d3f7730469bd3085da7285ac3120081c286a.jpg) *Configure Dispatch AI for the selected Radio server.* ## Using the AI Hold push-to-talk and start your request with **Dispatch**, the default wake word. For example: “Dispatch, switch me to TAC 1.” Wait for the AI's response before making another request. When the first user connects, allow a few seconds for the “Dispatch Online” announcement. > [accordion] Wake words and hotkeys > > 1. Open **Settings** > **AI** to configure your wake word. Use the microphone button to record a custom wake word. > 2. For a manual trigger in the web or desktop app, open **Settings** > **Hotkeys** and set **AI Toggle**. > 3. Hold push-to-talk, activate the AI, and speak your request. > > Listen for the activation beep. Say the wake word near the start of your transmission. > > ![Dispatch AI wake word settings](https://docs-assets.sonoransoftware.com/sha256/86/8696ef95183ed9afbe869f4290f6a90069b89040960c9f253464dce15be89c70.png) > > FiveM players can also use the [in-game AI keybind](/radio/game-integrations/fivem/fivem#setup). ## Radio Commands These commands work across games, including **FiveM, ER:LC, and Arma 3**. Use the channel names configured by your community. | Action | Example | | - | - | | Change your primary transmit channel | “Dispatch, switch me to TAC 1.” | | Move another connected user | “Dispatch, move A-12 to Dispatch.” | | Add a scanned channel | “Dispatch, add Fire to my scanned channels.” | | Remove a scanned channel | “Dispatch, remove Fire from my scanned channels.” | | Hear your current channels | “Dispatch, what channel am I on?” | Channel changes respect community access permissions. Moving another user requires permission to move clients. Include the group name when several channels have the same name, or answer the AI's clarification. ## Timers Ask for a timer by duration and, optionally, a purpose. Dispatch AI tells you when it expires. | Action | Example | | - | - | | Start a timer | “Dispatch, set a timer for five minutes.” | | Start a named timer | “Dispatch, start a two-minute PIT timer.” | | Cancel your timer | “Dispatch, cancel my timer.” | You can have one active timer in the Radio server. Starting another replaces it. Timers must be at least 10 seconds and no longer than the community's configured maximum, up to 30 minutes. > [accordion] Configure community timer limits > > 1. Open **Customization** > **Dispatch AI** and select the Radio server. > 2. Under **Dispatch Timers**, turn **Enable dispatch timers** on or off. > 3. Set **Maximum timer duration (minutes)** from `1` to `30`. Leave the field to save. > > The default maximum is 30 minutes. See the [setup screenshot](#common-setup) for these controls. ## Sonoran CAD Commands CAD actions use the community and server linked in [Common Setup](#common-setup). Be on duty with the appropriate unit selected in CAD when asking about your status or current call. > [accordion] Review your current call > > Ask the AI to repeat the details of the CAD dispatch call you are attached to. > > “Dispatch, repeat my current call.” > > You can also ask about the latest call or give a short correction to a recent request, such as “Dispatch, actually, the plate is ABC124.” Be specific if several calls or units could match. > [accordion] Status, lookups, and panic > > | Action | Example | > | - | - | > | Update your status | “Dispatch, A-10, mark me available.” | > | Update another unit's status | “Dispatch, set B-11 to 10-8.” | > | Run a plate lookup | “Dispatch, run the plate ABC123.” | > | Run a name lookup | “Dispatch, check John Doe.” | > | Toggle panic | “Dispatch, toggle my panic status.” | > > Use your community's configured status codes. Lookup results are sent to CAD with a brief radio response. > [accordion] Create and manage calls > > | Action | Example | > | - | - | > | Create a call | “Dispatch, show me out on traffic with a blue sedan, plate ABC123.” | > | Attach to a call | “Dispatch, attach me to the robbery in progress.” | > | Attach another unit | “Dispatch, attach B-11 to my call.” | > | Add a note | “Dispatch, add a note to my call: the vehicle is white.” | > | Detach yourself | “Dispatch, clear my call.” | > | Close the call | “Dispatch, close my call.” | > > New calls use your unit's location when available unless you specify another location. Including a plate in a new call also runs a plate lookup. > [accordion] Unit groups > > “Dispatch, add me and B-11 to group Ladder 12.” > > “Dispatch, clear my unit group.” > > Use the unit number or name to identify other units. ## Game-Specific Features The shared commands above apply across games. Choose your game for additional setup and integrations. > [card] [FiveM](/radio/game-integrations/fivem/fivem) > > Emergency call readouts, GPS routing, and automatic arrival status. > [card] [ER:LC](/radio/game-integrations/roblox/erlc) > > Read emergency calls over the channels assigned to each map zone. > [card] [Arma 3](/radio/game-integrations/arma-3/arma-3) > > Use shared radio commands and timers from the desktop overlay. ## Customization > [accordion] Community phrases and human dispatchers > > Open **Customization** > **Dispatch AI** and select the Radio server. > > * Expand an action under **Example prompts** to add short examples of your community's radio phrases. > * Use the human-dispatcher button to choose whether AI stays active or pauses when a dispatcher is active in CAD. > > Keep example phrases short and specific. > [accordion] Language, transcripts, and phrase corrections > > Open **Settings** > **AI** to choose the AI language, review **Recent Transcripts**, or add **Phrase Overrides** for commonly misheard words. The AI uses the app's language by default. > > ![Recent transcripts and phrase override controls](https://docs-assets.sonoransoftware.com/sha256/ee/eee896a7a4531da2ccde8d6e8ec57cef662ceaa6c38b84ae0e840aec1c11403a.png) > [accordion] AI volume and replies > > Adjust **AI Volume** under **Settings** > **Audio**. In the AI settings, choose whether to hear replies to other users or only replies directed to you. > > ![Settings for hearing Dispatch AI replies](https://docs-assets.sonoransoftware.com/sha256/07/075077af99587d672c3800c75bb6144bdddba952d0e2036c8d0fb1f6119f12da.png) ## Token Usage View your community's usage under **Settings** > **AI** > **Token Usage**, or in the admin **Dispatch AI** panel. Limits reset on the first of each month. Once the limit is reached, further AI requests are unavailable until the reset or a subscription upgrade. See [Dispatch AI usage limits](/radio/pricing/pricing-faq/standalone-pricing#dispatch-ai). # Dispatch & Admin Panel Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel Manage channels, audio, and your Radio community. Use these guides for shared Radio settings and dispatch controls: * [Using the Dispatch Panel](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel) * [Configure Channels](/radio/tutorials/usage/dispatch-panel/configure-channels) * [Custom Voice Effects](/radio/tutorials/usage/dispatch-panel/custom-voice-effects), [SFX](/radio/tutorials/usage/dispatch-panel/custom-sfx), and [Tone Board](/radio/tutorials/usage/dispatch-panel/custom-tone-board) * [Emergency Calls](/radio/tutorials/usage/dispatch-panel/emergency-calls) * [Transmission Logs](/radio/tutorials/usage/dispatch-panel/transmission-logs) * [Default User Settings](/radio/tutorials/usage/dispatch-panel/default-user-settings) * [Multi-Server](/radio/tutorials/usage/dispatch-panel/multi-server) * [Custom Domain / Vanity URL](/radio/tutorials/usage/dispatch-panel/custom-domain-vanity-url) * [Logging](/radio/tutorials/usage/dispatch-panel/logging) # Configure Channels Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/configure-channels Learn more about creating and managing radio channels! [Video tutorial](https://www.youtube-nocookie.com/embed/Mm-sdHeZoHk) ## Creating Channel Groups ![](https://docs-assets.sonoransoftware.com/sha256/80/802bf40ec7c8a3f4760569ea06faafc04bf97b32db7a275d140f4c5d5c63b7c9.png) Channel groups allow communities to organize channels in separated categories. Channel groups are configured in the `Customization` > `Channels & Groups` tab. ### Add a Group To add a new channel group, select the green `+` icon to the right of the group bar. Enter in a new group name, and select `Ok`. ![](https://docs-assets.sonoransoftware.com/sha256/8c/8cee74a3ba940278d87d4180ef99689ee7be883ae132bb4994869aba2a56a35c.png) *Sonoran Radio - Add Channel Group* ### Edit or Delete a Group Select the gear icon on the group to rename it. Select the trash icon on the group to remove it. Re-order the channel groups via drag-and-drop. ### Shared Channels Shared channels let you create a single channel that exists across multiple groups. #### Setup In this example, there are three radio groups — `City`, `Highway`, and `County`. Each group has its own `Interops` channel, but these channels are linked together so that any transmission on one `Interops` channel is heard across all three groups. This setup allows seamless communication between departments while maintaining their individual group structures. 1. **Determine the "Primary" Channel** * One channel must be chosen as the "Primary" channel that the other channels link to. In this example, we will select the `City` group's `Interops`. 2. **Link the First Channel to Primary** * In the `Highway` group, edit the `Highway Interops` channel. Toggle the channel mode to `Shared` and select the `City Interops` channel (our "primary" channel). 3. **Link the Second Channel to Primary** * In the `County` group, edit the `County Interops` channel. Toggle the channel mode to `Shared` and select the `City Interops` channel (our "primary" channel). Now, any user in the City, Highway, or County Interops channel will appear in all three and any transmissions in one will be heard in all three. ![](https://docs-assets.sonoransoftware.com/sha256/58/587379ecb533ab526471a3b23c221cf8a4a99e355a4829b2b48539e3e698cc34.png) ![](https://docs-assets.sonoransoftware.com/sha256/64/64d814ffb35b59a763b33666f165936f363aadc7cacb04bef9ff63efd31848c2.png) ## Channels Channels are inside of groups and are what users connect to in order to communicate. You can create a channel in the `Customization` > `Channels & Groups` tab, or right inside of the `Dispatch` panel. * Select the gear icon on the channel to rename it. * Select the plus icon in the server settings or dispatch panel to add a new channel. * Select the gear icon > trash icon to delete the channel. ![](https://docs-assets.sonoransoftware.com/sha256/1f/1f126eb83cf829ca0a5a32548a7d5c033f9ef7fb8f96da4609af1f62dce4da3c.png) ![](https://docs-assets.sonoransoftware.com/sha256/9d/9d0852e1dbf69260d97c432457de746da131bd3b9d358173b137b4d44a1d65a5.png) *Sonoran Radio - Dispatch Panel Configure Channels* When creating a channel, you only need to provide a name. ## Channel Options > [accordion] Preview the AI Text-To-Speech > > In the admin `Customize` tab, hovering over green the channel audio icon will play the text-to-speech audio stating the channel name. > > A red icon indicates that the AI text-to-speech failed to generate. Simply re-save the channel to regenerate the audio file. > > Users can enable or disable the channel text-to-speech playing when switching channels in their settings menu. > > ![](https://docs-assets.sonoransoftware.com/sha256/cd/cd1dc88586b589aea9be954d346ea36580eb892543360430eddb8df888f94c1b.png) ![](https://docs-assets.sonoransoftware.com/sha256/84/84395bfd55538ae31842e1a7d4be7a5180fc7ed8fc107a1c5b3a6094e3a90287.png) > [accordion] Customize the AI Pronunciation > > By toggling on the `Advanced` mode, you can manually adjust how the AI pronounces the channel name, which can be helpful for abbreviations and other non-common words.' > > ![](https://docs-assets.sonoransoftware.com/sha256/cd/cd31e18e1d854629c6c524ab10b6618a1ed0a91b0d27a7163fc0546c86c14c95.png) > [accordion] Setting the Voice Effect > > Use the `Voice Effect` dropdown to set the [custom voice effect style](/radio/tutorials/usage/dispatch-panel/custom-voice-effects) for the channel. > > ![](https://docs-assets.sonoransoftware.com/sha256/5d/5de72f01c03c9b62a103e09c0d4358805d36bcaa737b515814a96b88a3d6e139.png) > [accordion] Toggle Talkover Protection > > Toggle the `Talkover` prevention button to allow or prevent multiple users from talking at once. > > With talkover prevented, the [talkover error sound](/radio/tutorials/usage/dispatch-panel/custom-sfx) will play and prevent the user from activating their mic. > > ![](https://docs-assets.sonoransoftware.com/sha256/9a/9a3ba65f4a587ffec2804e0758c68d5685e756d0a23223fb09bcc6562795dc89.png) > [accordion] Restrict Channel Visibility > > Switch the channel's visibility to `Public` (everyone can see and connect) or `Private` to restrict which users can connect and transmit. > > Private channels will appear in the [community member permissions tab](/radio/tutorials/getting-started/invite-and-manage-users), or be [automatically managed with Sonoran CMS](/radio/tutorials/integrations/sonoran-cms). > > ![](https://docs-assets.sonoransoftware.com/sha256/e3/e3c9bca68ae2f7dfe125ca5d954f22cf35e0f9c7eeb867756c7d29affdaa6d41.png) > [accordion] Customize Channel Frequency > > With `Advanced` mode toggled, you can also customize the recieve and transmit frequency numbers for more realism. > > ![](https://docs-assets.sonoransoftware.com/sha256/80/800e57a0ae70215c56df657f0de05f866487c78c3555501092aa24c5d6440f90.png) # Custom Domain / Vanity URL Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/custom-domain-vanity-url Have Sonoran Radio on your own custom domain! ![](https://docs-assets.sonoransoftware.com/sha256/37/3739f5f1066ff1255f959a7afbee54e910feb2045e5fd9cfb4e8bcf2a9035edf.png) ## Vanity URLs Each community gets their own free vanity URL, visible in the `Custom Domain` section of your community's customization tab If your community is Plus or Pro, your vanity URL will match your community's custom ID ![](https://docs-assets.sonoransoftware.com/sha256/5a/5aef7544b00f124d97cc01f5c4ed0ada3d65ff632106c654036f905b409a77dc.png) ### Customizing Your Community ID > [!WARNING] > > Custom Community IDs require a **plus** subscription or higher.\ > [Learn more about our paid plans!](/radio/pricing/pricing-faq/standalone-pricing) To customize your community ID, navigate to `Customize` > `Info` > `Community ID`.\ Enter in a new, custom community ID. ![](https://docs-assets.sonoransoftware.com/sha256/c5/c5a76b881cb2175ec4ab4ea6c4bc455f114d087c1a6f02d24c109bf40b6c7c4d.png) ## Custom Domain > [!WARNING] > > Custom Domain requires a **pro** subscription.\ > [Learn more about our paid plans!](/radio/pricing/pricing-faq/standalone-pricing) ### Enter your Custom Domain Enter the domain you want Sonoran Radio on, this can be either a root domain (like `sonoranroleplay.com`) or a subdomain (like `radio.sonoranroleplay.com`) ![](https://docs-assets.sonoransoftware.com/sha256/c1/c1bdd0e9891f56f45451ff0b0f3e0a441d82ae8a19f34d524e3ab70b9a3bb91a.png) ### Configure DNS Records for you Domain ![](https://docs-assets.sonoransoftware.com/sha256/5c/5c0bb025dcce1d03301648c2917a6be45e3e0b9ca26cb5cc93f4bc125906ac40.png) Add the shown DNS records shown to you in your domain's administrative panel. If you are using Cloudflare, be sure to **disable** the proxy! Having trouble? Contact your domain name provider. ### Save the Custom Domain Press `Save Custom Domain` in the panel to save your new custom domain. If successful, your new custom domain will be visible above your vanity URL ![](https://docs-assets.sonoransoftware.com/sha256/8f/8fd737b4f679123a54781cacefaaefe44bdf206c99e72ae44b25ed3954155b8c.png) # Custom SFX Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/custom-sfx Learn how to customize your microphone SFX! ![](https://docs-assets.sonoransoftware.com/sha256/8d/8d41770af30c09e970ca65be05be7fe622dc4e46edaf02c23151bcb98ecbe039.png) *Sonoran Radio: Customizable Sound Effects* ## Community-Wide SFX Community-wide sound effects can be customized in the `Customize` > `SFX Customization` menu. ![](https://docs-assets.sonoransoftware.com/sha256/74/74dbe41e8b5eeebdea90aa2df4ddc9148586f8991eff521d9b07f0af9da1cda2.png) *Sonoran Radio: Community Sound Effect Customization* > [!WARNING] > > Community SFX customization requires the **plus** version or higher. > > For more information, view our [pricing FAQ](/radio/pricing/pricing-faq/standalone-pricing). ### Key Up/Down When a user presses or releases their push-to-talk key, the `Key Up SFX` and `Key Down SFX` audio will play. Individual users can also customize in their settings menu whether or not to hear their own key up/down SFX and other user's key up/down SFX. Users can also [customize the key up/down SFX that they hear locally](/radio/tutorials/usage/dispatch-panel/custom-sfx#key-up-down-1). ### Talkover Error and Override When a channel has [talkover protection enabled](/radio/tutorials/usage/dispatch-panel/configure-channels#toggle-talkover-protection) and a user is already transmitting, a second user attempting to talk at the same time will hear the `Talkover SFX` audio. If a user has talkover override permissions, double-pressing the push-to-talk key and holding will play the `Talkover Override Success SFX` once they are able to transmit. ### Emergency Call When a [user places an emergency call](/radio/tutorials/usage/dispatch-panel/emergency-calls), dispatchers will hear the `Emergency Call SFX` audio to alert them of an incoming call. ### Panic Button When a [user toggles their panic state](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#panic), dispatchers will hear the `Panic Button SFX` audio. ### Volume Up/Down (Hotkey) SFX When a user changes their volume in the [dispatch panel](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#hotkeys-keybinds) or [in-game](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio/fivem-keybinds-and-commands#volume-up-down) via hotkey, they will hear the `Volume Up/Down (Hotkey) SFX` audio. ## [Background Audio Injection](/radio/game-integrations/fivem/in-game-radio/background-audio-injection) Background audio injection blends in-game sounds—like sirens, helicopter rotors, boat engines, and gunshots—into your microphone output. If you're responding with sirens active, others on the radio will hear them in the background of your voice transmissions. ### In-Game Siren When the user is inside of or near a vehicle with a siren activated, this sound effect will be played in the background of their transmissions. ### In-Game Boat Engine When the user is inside of a boat, this engine and water noise sound effect will be played in the background of their transmissions. ### In-Game Pistol & Rifle (Silenced) When the user shooting or near someone shooting, this sound effect will be played in the background of their transmissions. *** ## Per-User SFX > [!WARNING] > > Per-User SFX customization requires the **pro** version or higher. > > For more information, view our [pricing FAQ](/radio/pricing/pricing-faq/standalone-pricing). ### Key Up/Down Individual users can customize their key-up and key-down SFX in their user settings dialog in their radio or dispatch portal. Once configured, the user will override any default or community-wide SFX. *Note: SFX uploads are only available on the web, desktop, or mobile apps and can not be done from in-game.* ![](https://docs-assets.sonoransoftware.com/sha256/60/60d8094eb8c378d6d0ec161fa61e3cbaad64cabdbc0c2625783b7fb044dd4629.png) # Custom Tone Board Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/custom-tone-board Customize dispatch tones to broadcast to your units! ![](https://docs-assets.sonoransoftware.com/sha256/f4/f46d99aa873d5b0eadfc1e3c30e1c69610b55a2b3ad3aeed9a2ad7b214e19da1.png) *Sonoran Radio: Tone Board* ## Configuring the Tone Board Under the `Customization` tab, select `Tone Board`. Here, you can customize the name, icon, and color of existing tones or use the trash icon to remove a tone. Tones are sorted alphabetically. Or, use the bottom section to upload and configure a new tone. ### Uploading a Tone File Select the upload icon to attach an audio file. ![](https://docs-assets.sonoransoftware.com/sha256/56/5633264f5f14065285bfcd9664e542d67c363df0f67ff3e919a08f9948147ab9.png) ### AI Text-To-Speech The tone board also allows you to customize AI generated text-to-speech tones. Additionally, you can [generate temporary AI TTS tones directly inside of the tone board](/radio/tutorials/usage/dispatch-panel/custom-tone-board#ai-tts). #### Toggle AI Tone Mode On the right of the new tone configurator, select the **AI Mode** button to change from file uploads to AI text-to-speech. #### Customize And Generate via AI Add the tone label, specify the text for the voice, and [customize any other visual options](/radio/tutorials/usage/dispatch-panel/custom-tone-board#visual-customizatio). ![](https://docs-assets.sonoransoftware.com/sha256/cb/cbb73b0c80c3cdf9dfe88e4878afdacb1c0ffea236e8bf60be1c692fa8c87f0a.png) ### Visual Customization Select the music icon on the left to customize the icon, background color, and text color. ![](https://docs-assets.sonoransoftware.com/sha256/ef/efb0318fb6b4ebfcd7a11b21843c9bf8cd969baf22fd0b3417b6cdecbfa39526.png) *Sonoran Radio: Tone Visual Options* ## Using the Tone Board ### Tone Board Hotkey To quickly toggle the tone board, you may configure a custom hotkey in the settings menu. ![](https://docs-assets.sonoransoftware.com/sha256/ba/baad1a31bc7325f1a4b7a8a49f48a95be976889dd74fd45db82b95f2c1de32d2.png) *Sonoran Radio - Tone Board Hotkey* ### Playing a Tone After opening the tone board via hotkey or the music note icon, you will see the following UI. * Search: Type-to-filter for available tone names * Saved Stacks: Saved, pre-created tone stacks * [Broadcast To](/radio/tutorials/usage/dispatch-panel/custom-tone-board#tone-broadcast-to-options): Type-to-filter and multi-select the desired channels or channel groups * [Stack](/radio/tutorials/usage/dispatch-panel/custom-tone-board#stacked-tones): Optionally toggle tone stacking to play multiple tones in order * [Repeat](/radio/tutorials/usage/dispatch-panel/custom-tone-board#repeating-tones): Optionally toggle on a tone repeat with a total play number and a delay between plays * [Microphone](/radio/tutorials/usage/dispatch-panel/custom-tone-board#recording-tones): Record a temporary live audio tone from your microphone * [AI TTS](/radio/tutorials/usage/dispatch-panel/custom-tone-board#ai-tts): Generate a temporary AI-powered text-to-speech tone ![](https://docs-assets.sonoransoftware.com/sha256/4d/4d0cafec7c899f7fe7fc82f5e1184ad95979eac3004d7f61d8596abb1257c14f.png) #### Tone Broadcast To Options Tones can be played to a channel, channel group, or an [in-game speaker](/radio/game-integrations/fivem/in-game-radio/in-game-speakers). ![](https://docs-assets.sonoransoftware.com/sha256/fe/fe9f9e4af1082031f393e3911a99e8f931200bbe80dfb4146a891161f91cb15f.png) *Sonoran Radio - Tone Board Broadcast Options* #### Repeating Tones For repeated tones, you can hover over the active tone (or tone stack) to see what channels and groups it's playing to. Additionally, the UI will reflect the remaining play count and show a progress bar for the delay until the next play. ![](https://docs-assets.sonoransoftware.com/sha256/a7/a7b90f3171413202927d6b4ee02b911c20098594c44223cbb625149961e73bdb.png) *Tone Board - Repeated Tones* #### Stacked Tones Stacked tones allow you to align multiple tones together and play them in order. Toggle on the `Stack` icon and click on tones in order. You can also drag-and-drop the stack at the bottom left to reorder tones prior to pressing `Play`. ![](https://docs-assets.sonoransoftware.com/sha256/37/37343381ba7c6c336d2398bb55b2d3c623735f0721a6dba44a30423c53d9fff8.png) *Tone Board - Stacked Tones* #### Saved Stacks Tone stacks can be saved for faster re-use. After creating a stack press the **Save** icon. This will prompt you to enter in a stack name. Saved stacks will display on the **Saved Stacks** tab. Saved stacks can be "loaded" into the editor, played directly to your current **Broadcast To** channels, or deleted. **Shortcuts:** * Clicking a saved tone stack once will load the stack. * Double-clicking a saved tone stack will play it. ![](https://docs-assets.sonoransoftware.com/sha256/7c/7c4912b9bb1f7975d1f4d908577610da43122c67e7a6eca2c18f3e847c2515ee.png) #### Recording Tones The microphone icon allows you to record local microphone audio to be played as a tone to radios or [in-game speakers](/radio/game-integrations/fivem/in-game-radio/in-game-speakers). Click the **Audio Recording** to start and stop recording. After the recording is completed, a small recording tone button will appear next to it. Click to add it to a stack or play as a single tone. ![](https://docs-assets.sonoransoftware.com/sha256/20/2075f447a0fcfec84998be35774623877bf2c3d7cbfba1a91207e41e72be4449.png) #### AI TTS Similar to [pre-configured AI speech tones](/radio/tutorials/usage/dispatch-panel/custom-tone-board#ai-text-to-speech), the AI wand icon allows you to enter in and generate a temporary text-to-speech AI tone to be played as a tone to radios or [in-game speakers](/radio/game-integrations/fivem/in-game-radio/in-game-speakers). Enter text into the **AI Text-To-Speech** input or use the **Microphone** icon to enter text via voice recording. Press **Enter** to generate and send the text-to-speech tone to the broadcast or tone stack. ![](https://docs-assets.sonoransoftware.com/sha256/bf/bf2ded9c8476ef215a6ecdaaa5e36f8e2fe6a412e90a49a98a38b856a1a30fb6.png) ## Tone Board Voice Effects By default, tones played over the radio have the channel's, or local, voice effects applied to them. This can be disabled in the settings menu, or by the [community's default settings](/radio/tutorials/usage/dispatch-panel/default-user-settings). ![](https://docs-assets.sonoransoftware.com/sha256/26/26ad84cd16b4b3859d2473e262773d6b1e51377e31e617f6c47d221081bb253e.png) # Custom Voice Effects Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/custom-voice-effects Customize transmission voice effects for your community, or local user! ![](https://docs-assets.sonoransoftware.com/sha256/d6/d6f06bdc8f48483e36098114b08b44023daf5b343a93b721e88ece3d7884c95f.png) *Sonoran Radio: Voice Effect Customization* ## Available Voice Effects Sonoran Radio lets you create custom voice effect profiles for transmissions. These effects can be independently assigned to specific radio channels and emergency calls. Or, users can also customize their own voice effect preferences! By clicking the **headphone** icon and using the signal strength sliders, you can hear how the effect will sound when users are talking. ### Vocoder > [!NOTE] > > The **vocoder** effect remains consistent and does not fluctuate based on [in-game signal strength](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters) > [accordion] Vocoder > > The Vocoder voice effect encodes and decodes audio before broadcast to create a digital radio sound. In **Customization > Voice Customization**, expand **Vocoder**, enable the effect, and choose a **Mode**: > > * **Server AMBE — Pro only:** Server-sided AMBE vocoding for community voice effects. Requires a [Sonoran Radio Pro subscription](/radio/pricing/pricing-faq/standalone-pricing#server-ambe-vocoder). Server-sided processing adds a small network delay. This mode is not available for local listener effects. > * **Codec2 — All plans:** Client-side vocoding with bitrates of `3200`, `2400`, `1600`, `1400`, `1300`, `1200`, `700` and `450` bit/s. The suggested bitrate is `2400`; higher bitrates produce less effect, while lower bitrates produce more effect. Codec2 is also available for local listener effects. > > **It is recommended to use the** [**clipping voice effect**](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#clipping) **in addition to the vocoder to have in-game signal strength impact the transmission quality.** ### Clipping > [accordion] Clipping > > The clipping voice effect mutes or "clips" audio intermittently based on in-game signal strength. As the signal weakens, more audio is cut, making transmissions increasingly difficult to understand. ### Digital > [accordion] Digital > > The digital voice effect applies bitrate compression to the audio, causing it to sound increasingly robotic and harder to understand as signal quality decreases. ### Analog > [accordion] Analog > > The analog voice effect adds static and scratchiness to the audio, making it sound progressively fuzzier and less clear as signal quality deteriorates. ### Equalizer (Pre & Post-Effects) > [!NOTE] > > This **EQ** effect remains consistent and does not fluctuate based on [in-game signal strength](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters) > [accordion] Equalizer > > The equalizer effect allows you to boost or reduce frequencies throughout the audio range.\ > \&#xNAN;***Tip:** For a "tin can" effect, increase the mid frequencies while reducing the low and high ranges.* > > **Pre-Effect EQ** > > The pre-effect EQ is a profile applied directly to the mic input before any effects (vocoder, digital, analogue, etc.) are applied. This can help improve clarity with the vocoder, grant a tin-can style effect, and more. > > **Post-Effect EQ** > > The post-effect EQ is a profile applied to the audio after all effects have been processed. This can help improve clarity and improve the finalized effects. ## Applying the Voice Effect ### On the User-Side Voice effects can be customized by the individual listener, based on their preferences. Users can open their **Settings** menu and select the **Voice FX** tab to customize. Toggle **Community FX** to **Local FX** mode to [bypass the community set channel effects](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#to-radio-channels). > [!WARNING] > > Enabling the Codec2 vocoder locally forces your client to encode and decode all incoming transmissions, which can impact performance at higher user counts. Server AMBE is available only for community voice effects with Pro. > > For better performance, [enable the vocoder at the channel level](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#to-radio-channels) so users pre-process transmissions on their end. > > When a [channel has vocoder FX enabled](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#to-radio-channels), it cannot be bypassed client-side—all transmissions are already vocoded before playback. ![](https://docs-assets.sonoransoftware.com/sha256/6d/6d113b0e710b3b2d91e12e4335a2ffd102a6b218aa92b0340360eaf675a78001.png) ### To Radio Channels In the [channel editor, you can select the desired voice effect](/radio/tutorials/usage/dispatch-panel/configure-channels#setting-the-voice-effect). This voice effect will apply to anyone talking in that channel. [User-side voice FX can bypass channel effects](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#on-the-user-side), but enabling Vocoder FX forces all transmissions through the vocoder, ensuring it still applies to all custom FX. ![](https://docs-assets.sonoransoftware.com/sha256/51/511dfc068b3404e7c60eec264f64aa833f1ee6e3dfbc29e16777e0d2af702c6c.png) *Sonoran Radio: Channel Voice Effect* ### To Emergency Calls To apply a custom voice effect for [emergency phone calls](/radio/tutorials/usage/dispatch-panel/emergency-calls), toggle the phone icon in the voice effect tab. **Note:** If no custom voice effect is selected for emergency calls, a default "tin can" EQ effect will be applied. ![](https://docs-assets.sonoransoftware.com/sha256/12/128a9727e9f421f8273bc2092ed3b6ab0afb170ace6891fd209976942f33dae8.png) *Sonoran Radio: Emergency Call Voice Effect Selection* ## Import and Export Effects You can import and export voice effect profiles to share with other communities. See some of our [public effect examples](/radio/tutorials/usage/dispatch-panel/custom-voice-effects#voice-profile-examples) to import. To Export: * Click the Import/Export Button. * Click `Download` to save the current voice effect to a JSON file. To Import: * Click the Import/Export Button. * Click the file icon to import a JSON file directly. * Or, paste the JSON contents into the `Import` box and press `Import`. ![](https://docs-assets.sonoransoftware.com/sha256/80/809a4c808df427bfc097265141d3f5a4000faab32a5f25006289907a15d038f5.png) ## Voice Profile Examples We've pre-configured voice effects for popular use. Copy the JSON code below to import into your voice effects panel. ### Vocoder Example These voice effects combines the vocoder with pre and post-effect EQ customizations for the best possible clarity. #### #1 Vocoder [Click to listen to this example.](https://sonoransoftware.com/assets/files/sonoranradio/voice_effects/vocoder_example_1.mp3) ```json theme={null} {"id":11,"label":"Vocoder Example #1","vocoder":{"mode":"3200","enabled":true},"equalizer":[{"q":1,"freq":31,"gain":-20,"type":"lowshelf","freqlabel":"<31","bandwidthLabel":"2.5"},{"q":1,"freq":62,"gain":-20,"type":"peaking","freqlabel":"63","bandwidthLabel":"1.8"},{"q":1,"freq":125,"gain":-4,"type":"peaking","freqlabel":"125","bandwidthLabel":"1.2"},{"q":1,"freq":250,"gain":0,"type":"peaking","freqlabel":"250","bandwidthLabel":"0.6"},{"q":1,"freq":500,"gain":0,"type":"peaking","freqlabel":"500","bandwidthLabel":"0.0"},{"q":1,"freq":1000,"gain":-3.5,"type":"peaking","freqlabel":"1k","bandwidthLabel":"0.0"},{"q":1,"freq":2000,"gain":0.5,"type":"peaking","freqlabel":"2k","bandwidthLabel":"1.2"},{"q":1,"freq":4000,"gain":1.5,"type":"peaking","freqlabel":"4k","bandwidthLabel":"1.8"},{"q":1,"freq":8000,"gain":4.5,"type":"peaking","freqlabel":"8k","bandwidthLabel":"2.5"},{"q":1,"freq":16000,"gain":13.5,"type":"highshelf","freqlabel":">16k","bandwidthLabel":"2.5"}],"equalizerGain":{"low":0,"mid":0,"high":0},"postEqualizer":[{"q":1,"freq":31,"gain":-20,"type":"lowshelf","freqlabel":"<31","bandwidthLabel":"2.5"},{"q":1,"freq":62,"gain":-16.5,"type":"peaking","freqlabel":"63","bandwidthLabel":"1.8"},{"q":1,"freq":125,"gain":-12.5,"type":"peaking","freqlabel":"125","bandwidthLabel":"1.2"},{"q":1,"freq":250,"gain":-2,"type":"peaking","freqlabel":"250","bandwidthLabel":"0.6"},{"q":1,"freq":500,"gain":2.5,"type":"peaking","freqlabel":"500","bandwidthLabel":"0.0"},{"q":1,"freq":1000,"gain":3,"type":"peaking","freqlabel":"1k","bandwidthLabel":"0.0"},{"q":1,"freq":2000,"gain":5.5,"type":"peaking","freqlabel":"2k","bandwidthLabel":"1.2"},{"q":1,"freq":4000,"gain":1.5,"type":"peaking","freqlabel":"4k","bandwidthLabel":"1.8"},{"q":1,"freq":8000,"gain":-4,"type":"peaking","freqlabel":"8k","bandwidthLabel":"2.5"},{"q":1,"freq":16000,"gain":-1,"type":"highshelf","freqlabel":">16k","bandwidthLabel":"2.5"}],"clipDistortion":{"max":0.09,"min":0,"enabled":true,"aggressiveness":0.05},"analogDistortion":{"max":2,"min":0,"enabled":false,"aggressiveness":0.05,"constantStatic":0},"digitalDistortion":{"max":0,"min":0,"enabled":false,"aggressiveness":0,"constantStatic":0}} ``` #### #2 - Vocoder with Additional Bass [Click to listen to this example.](https://sonoransoftware.com/assets/files/sonoranradio/voice_effects/vocoder_example_2.mp3) ```json theme={null} {"id":9,"label":"Vocoder Example #2 (More Bass)","vocoder":{"mode":"3200","enabled":true},"equalizer":[{"q":1,"freq":31,"gain":-20,"type":"lowshelf","freqlabel":"<31","bandwidthLabel":"2.5"},{"q":1,"freq":62,"gain":-11.5,"type":"peaking","freqlabel":"63","bandwidthLabel":"1.8"},{"q":1,"freq":125,"gain":-4,"type":"peaking","freqlabel":"125","bandwidthLabel":"1.2"},{"q":1,"freq":250,"gain":-10,"type":"peaking","freqlabel":"250","bandwidthLabel":"0.6"},{"q":1,"freq":500,"gain":-3,"type":"peaking","freqlabel":"500","bandwidthLabel":"0.0"},{"q":1,"freq":1000,"gain":4.5,"type":"peaking","freqlabel":"1k","bandwidthLabel":"0.0"},{"q":1,"freq":2000,"gain":-3.5,"type":"peaking","freqlabel":"2k","bandwidthLabel":"1.2"},{"q":1,"freq":4000,"gain":-4.5,"type":"peaking","freqlabel":"4k","bandwidthLabel":"1.8"},{"q":1,"freq":8000,"gain":-14,"type":"peaking","freqlabel":"8k","bandwidthLabel":"2.5"},{"q":1,"freq":16000,"gain":-18,"type":"highshelf","freqlabel":">16k","bandwidthLabel":"2.5"}],"equalizerGain":{"low":0,"mid":0,"high":0},"postEqualizer":[{"q":1,"freq":31,"gain":3,"type":"lowshelf","freqlabel":"<31","bandwidthLabel":"2.5"},{"q":1,"freq":62,"gain":3,"type":"peaking","freqlabel":"63","bandwidthLabel":"1.8"},{"q":1,"freq":125,"gain":3,"type":"peaking","freqlabel":"125","bandwidthLabel":"1.2"},{"q":1,"freq":250,"gain":3,"type":"peaking","freqlabel":"250","bandwidthLabel":"0.6"},{"q":1,"freq":500,"gain":3,"type":"peaking","freqlabel":"500","bandwidthLabel":"0.0"},{"q":1,"freq":1000,"gain":3,"type":"peaking","freqlabel":"1k","bandwidthLabel":"0.0"},{"q":1,"freq":2000,"gain":3,"type":"peaking","freqlabel":"2k","bandwidthLabel":"1.2"},{"q":1,"freq":4000,"gain":3,"type":"peaking","freqlabel":"4k","bandwidthLabel":"1.8"},{"q":1,"freq":8000,"gain":3,"type":"peaking","freqlabel":"8k","bandwidthLabel":"2.5"},{"q":1,"freq":16000,"gain":3,"type":"highshelf","freqlabel":">16k","bandwidthLabel":"2.5"}],"clipDistortion":{"max":0,"min":0,"enabled":false,"aggressiveness":0},"analogDistortion":{"max":0,"min":0,"enabled":false,"aggressiveness":0,"constantStatic":0},"digitalDistortion":{"max":0,"min":0,"enabled":false,"aggressiveness":0,"constantStatic":0}} ``` #### Emergency Call Example This voice effect utilizes EQ customizations for the best possible phone call effect. [Click to listen to this example.](https://sonoransoftware.com/assets/files/sonoranradio/voice_effects/emergency_example_1.mp3) ```json theme={null} {"id":10,"label":"Emergency Call Example","vocoder":{"mode":"3200","enabled":false},"equalizer":[{"q":1,"freq":31,"gain":-20,"type":"lowshelf","freqlabel":"<31","bandwidthLabel":"2.5"},{"q":1,"freq":62,"gain":-20,"type":"peaking","freqlabel":"63","bandwidthLabel":"1.8"},{"q":1,"freq":125,"gain":-20,"type":"peaking","freqlabel":"125","bandwidthLabel":"1.2"},{"q":1,"freq":250,"gain":-17,"type":"peaking","freqlabel":"250","bandwidthLabel":"0.6"},{"q":1,"freq":500,"gain":-5,"type":"peaking","freqlabel":"500","bandwidthLabel":"0.0"},{"q":1,"freq":1000,"gain":8.5,"type":"peaking","freqlabel":"1k","bandwidthLabel":"0.0"},{"q":1,"freq":2000,"gain":4,"type":"peaking","freqlabel":"2k","bandwidthLabel":"1.2"},{"q":1,"freq":4000,"gain":-8,"type":"peaking","freqlabel":"4k","bandwidthLabel":"1.8"},{"q":1,"freq":8000,"gain":-13.5,"type":"peaking","freqlabel":"8k","bandwidthLabel":"2.5"},{"q":1,"freq":16000,"gain":-20,"type":"highshelf","freqlabel":">16k","bandwidthLabel":"2.5"}],"equalizerGain":{"low":0,"mid":0,"high":0},"postEqualizer":[{"q":1,"freq":31,"gain":-20,"type":"lowshelf","freqlabel":"<31","bandwidthLabel":"2.5"},{"q":1,"freq":62,"gain":-20,"type":"peaking","freqlabel":"63","bandwidthLabel":"1.8"},{"q":1,"freq":125,"gain":-16.5,"type":"peaking","freqlabel":"125","bandwidthLabel":"1.2"},{"q":1,"freq":250,"gain":-6.5,"type":"peaking","freqlabel":"250","bandwidthLabel":"0.6"},{"q":1,"freq":500,"gain":0,"type":"peaking","freqlabel":"500","bandwidthLabel":"0.0"},{"q":1,"freq":1000,"gain":6.5,"type":"peaking","freqlabel":"1k","bandwidthLabel":"0.0"},{"q":1,"freq":2000,"gain":-4.5,"type":"peaking","freqlabel":"2k","bandwidthLabel":"1.2"},{"q":1,"freq":4000,"gain":-10.5,"type":"peaking","freqlabel":"4k","bandwidthLabel":"1.8"},{"q":1,"freq":8000,"gain":-16,"type":"peaking","freqlabel":"8k","bandwidthLabel":"2.5"},{"q":1,"freq":16000,"gain":-20,"type":"highshelf","freqlabel":">16k","bandwidthLabel":"2.5"}],"clipDistortion":{"max":0.07,"min":0.02,"enabled":true,"aggressiveness":0.02},"analogDistortion":{"max":1,"min":1,"enabled":true,"aggressiveness":0,"constantStatic":0},"digitalDistortion":{"max":0,"min":0,"enabled":false,"aggressiveness":0,"constantStatic":0}} ``` # Default User Settings Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/default-user-settings Configure the default settings for your community. Users can personalize their own preferences, but these will serve as the starting defaults. ## Default User Settings The radio settings menu offers vast preference options for sound effects, text-to-speech, automatic gain control, and more. Some communities may wish to enable or disable specific settings for users by default. ### Setting Defaults In the Admin panel, select `Customization` > `Default Settings` Here you can enable, disable, and configure default settings for all users in your community. ![](https://docs-assets.sonoransoftware.com/sha256/ee/eeb5d64b2a728d24036761d16cc22c31251058f34f784d192603bce40e9d3079.png) *Sonoran Radio: Default Community Settings* ### Users: Reset to Default Users can still customize their own setting preferences by selecting the gear icon in the dispatch or radio view to override the community defaults. Under the `Advanced` tab, users can select `Reset Settings` to reset to the community defined defaults. ![](https://docs-assets.sonoransoftware.com/sha256/19/193c66e5282ea2dd72c11b025c4004d9fd7acdfa847139c424c3744af8dacf3d.png) *Sonoran Radio: Reset Settings* ## FiveM Default Settings Some FiveM specific settings can be customized in the resource configuration. ### Keybinds The server defaults for push-to-talk, AI callouts, etc. can be configured in the [config's `keybinds` property](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). ### ESC Behavior The server default for radio [escape key handling](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#c.-esc-options) can be configured in the [config's `defaultEscapeMode` property](/radio/game-integrations/fivem/installing-the-in-game-resource#updates). # Emergency Calls Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/emergency-calls Place and answer emergency calls through Sonoran Radio. ![](https://docs-assets.sonoransoftware.com/sha256/bc/bc30e0150b0f4e6c964cf80032bec65288b3b93f31af0c5d4de5f5e2de86b235.png) *Sonoran Radio - Emergency Calls* ## Creating Emergency Calls ### Via Portal/App > [accordion] Via Portal/App > > Users can place emergency calls directly from the web, desktop, or mobile apps. > > ![](https://docs-assets.sonoransoftware.com/sha256/e9/e9c44c4a38fd45adab9b74ef9ea425f2fb4abdc7ac3aac0dad7ae0edf9dedbf0.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/97/97697a7364bc1a04adbf8f8e342c79f02cf62901c3dfc08525216a23a3fa4d8f.png) > > **Permissions** > > Users can be restricted to accessing the emergency call panel and not the radio with the **Call-Only** [permission](/radio/tutorials/getting-started/invite-and-manage-users). > > ![](https://docs-assets.sonoransoftware.com/sha256/e4/e4e4c352e96ef496b7019cf3e08e290f9d0d6dff5e3c83a22c4e475473744cb1.png) ### FiveM Emergency Calling > [accordion] FiveM Emergency Calling > > Players are able to make an emergency call in FiveM with `/radio 911`. This will place them in a call on the Dispatch Panel waiting for a dispatcher. > > ![](https://docs-assets.sonoransoftware.com/sha256/52/52cdea71bb37fd1b3164c099a16ab72cffdc81a0af74c6d6d1aff9968a9f2f68.png) > > *Sonoran Radio FiveM - Emergency Call* > > #### Caller Microphone > > The emergency call will use the caller's default microphone. If the caller can not be heard, they may need to [change the input device selection](/radio/game-integrations/fivem/troubleshooting/set-mic-in-game-for-radio) with `/radio 911 mic`. > > ![](https://docs-assets.sonoransoftware.com/sha256/18/18dfd3664746f33bad83b0c610b09a9608fc1a61eee4304e3eb20e727a6e909e.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/12/12c251a24b9111be1281a3553b381551781cd69e833641fcb3166bf7aeb624e3.png) ## Answering the Emergency Call You can join and listen to an emergency call using the microphone and headphone buttons, just like any other channel in Sonoran Radio. The buttons will highlight green and red respectively when enabled > [!NOTE] > > Mic clicks are disabled in emergency channels ![](https://docs-assets.sonoransoftware.com/sha256/00/0008c3ebd26cc527bea2101d04714ff94a4fbcd8bf98c93954a659b82d431e37.png) *Sonoran Radio - Speaking in 911 Call* ## Ending the Emergency Call Dispatchers can end an emergency call with the red "End Call" button, and FiveM players can end it by using `/radio 911` again. ![](https://docs-assets.sonoransoftware.com/sha256/e5/e53b09b60123fd459c3e12c65d333a7720b44f217982333d8ed83c4283cda321.png) *Sonoran Radio - End 911 Call* ## Redial the Caller In some cases, the caller may hang up or dispatch needs to call them back for more information. Once the call has ended, a `Re-dial {user}` option will appear. Click the green call button to re-dial. ![](https://docs-assets.sonoransoftware.com/sha256/be/be6d9cadb28a4c2f1f42f55c50cf985608894a9acff71d5e8285c3f8b97c13be.png) ## Dial a Specific Number Dispatchers can also manually dial an in-game number to call someone directly. ![](https://docs-assets.sonoransoftware.com/sha256/78/7895300cfc5548f069c1904fe6407b2be0cbb97a483ad0eab8b9c9330a3e4a9e.png) ## FiveM: Customize the Emergency Number & Banner By [editing the config file](/radio/game-integrations/fivem/installing-the-in-game-resource#configuration-values) you can customize the following options: 1. Customize `911` to any other number or word by editing the `emergencyCommand` property. 2. Hide the user's emergency call banner by setting `showEmergencyCallHelp` to `false`. ## FiveM Phone Scripts Sonoran Radio also integrates with popular FiveM phone scripts like LB Phone! > [card] [FiveM Phone Scripts](/radio/game-integrations/fivem/fivem-phone-scripts) ## FiveM Developer Documentation Third-party scripts, such as a phone system, can also programmatically start and end emergency calls. > [card] [FiveM Resource API](/radio/developer-documentation/developer-documentation/resource-events) # Logging Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/logging View audit logs from user actions in Sonoran Radio. ## Community Logs Community user logs can be found in the **Administration** tab. Logs can be filtered by type, date, and text content. ![](https://docs-assets.sonoransoftware.com/sha256/e2/e2dbd5543280ab0860e6252602c7853278985dfbe7bda1a1e6d44d9fbd320a2a.png) # Multi-Server Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/multi-server Using multiple identical servers for overflow? Multi-server lets each server run independently while sharing the same channel setup, keeping communications separate and organized. ## Configuring Servers > [!WARNING] > > Multiple servers are only available with the Pro version! > > [Learn more about our paid subscription plans.](/radio/pricing/pricing-faq/standalone-pricing) Many communities run multiple game servers to handle user overflow. Sonoran Radio's multi-server support keeps players separated by server while sharing the same channel configurations and customizations across all servers. ### Configuring for FiveM The FiveM in-game resource will automatically generate a unique server each for every FiveM server it is ran on. ### Manual Configuration (Non-FiveM) Communities not using the FiveM resource can manually add and remove servers in the admin under `Customization` > `Info` > `Community Servers` . ![](https://docs-assets.sonoransoftware.com/sha256/6e/6e1de8361687eda1af8d3d8448dd02c9b6108e18446ff62ac03fca22bb738000.png) *Sonoran Radio: Multiple Servers* ## Selecting Your Server ### FiveM Server Selection The FiveM in-game resource will automatically select and connect users to the proper server. ### Non-FiveM Server Selection The dispatch portal and radios outside of FiveM will contain a drop-down menu prior to connecting. ![](https://docs-assets.sonoransoftware.com/sha256/d7/d77e92e336ee4f761b9652d581a9b6e9fd655b667dfd2c62accfe3381cc800cd.png) *Sonoran Radio: Server Selection* # Transmission Logs Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/transmission-logs Coming soon! ![](https://docs-assets.sonoransoftware.com/sha256/62/627b74999d4b820936c9b226911d1eb228f0b5078089257003bf0d351aef7037.png) *Sonoran Radio: Transmission Logs* > [!WARNING] > > Community transmission logs are only available on the pro version. > > [Learn more about our paid plans](/radio/pricing/pricing-faq/standalone-pricing). ## Accessing Transmission Logs The transmission log viewer can be accessed on the dispatch panel by clicking the list icon. Users will be able to view all logs within the last 24 hours transmitted on [channels that they have access to](/radio/tutorials/usage/dispatch-panel/configure-channels#restrict-channel-visibility). Transmission logs have the following properties: * Play/Pause Recording * Username of Transmitter * Channel of the Transmission * Download the Recording * AI Transcript ![](https://docs-assets.sonoransoftware.com/sha256/b7/b72c44219163141522a48e7277eef5a71655b2bb1350e6ecfffb1b1c89782892.png) *Sonoran Radio: Transmission Logs* ## AI Audio Transcripts Audio transcripts are automatically generated with every transmission. ## Disable User Transmission Recording Some users may wish to manually opt-out of submitting their transmissions for recording. This can be toggled in the **Settings** menu under the **Privacy** tab. ![](https://docs-assets.sonoransoftware.com/sha256/cb/cb464dfe143bc0af762df951f9b5da7a984288866997c5b75035214fc924df66.png) # Using the Dispatch Panel Source: https://docs.sonoransoftware.com/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel Learn more about using the Sonoran Radio dispatch panel. [Video tutorial](https://www.youtube-nocookie.com/embed/Mm-sdHeZoHk) ## Dispatch Portal When you first open a Sonoran Radio community with standalone enabled, you will see this page: ![](https://docs-assets.sonoransoftware.com/sha256/8b/8b97d8411d42c31202ac7ec00c129e1ad7688073265b22f8b263b496f5377a84.png) *Sonoran Radio - Connect to Radio* To join the radio, press **Connect.** After connecting, you will be greeted with a row of channels, and a list of connected users underneath them ![](https://docs-assets.sonoransoftware.com/sha256/c2/c25cddb392e133ab8b08f71a6ebee8483e421ef32b998f302ddedc893d8457f1.png) *Sonoran Radio - Radio Hub* ### Hotkeys (Keybinds) > [!WARNING] > > Push-to-talk key binds are only global in the [desktop application](/radio/download-the-app). > > On web, the browser window must be in focus. > [accordion] Dispatch Hotkeys > > Hotkeys allow for faster actions at the press of a button. These can be configured by clicking the gear icon to open the settings menu. > > ![](https://docs-assets.sonoransoftware.com/sha256/a3/a36197ccd270941370595bb0e35a4107d08102d5802ec612b821ae99f2c91420.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/32/320068178391c3324f346fbcf2777106c2b7ffa21f2dda512be5fb1b40f69c33.png) > > * [Push to Talk](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#transmitting-push-to-talk) > * [AI Mode Toggle](/radio/tutorials/usage/dispatch-ai#using-the-ai) > * [Temporary Per-Channel Push to Talk](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#transmitting-push-to-talk) > * [Tone Board](/radio/tutorials/usage/dispatch-panel/custom-tone-board) > * [Change Group Tab](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#switching-transmit-and-scanned-channels-1) > * [Change Channel](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#switching-transmit-and-scanned-channels) > * [Volume Change](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#volume-sliders) > > Right click on a hotkey button for the option to clear it. > > ![](https://docs-assets.sonoransoftware.com/sha256/fc/fcabb92a895944a7ec5634ca12f2bd91e2794a83ba4f020157106b4ffc7cafed.png) ### Transmitting (Push to Talk) > [accordion] Dispatch Push To Talk > > To transmit over Sonoran Radio, you can press the microphone button on the top-left. > > Alternatively, use the [PTT hotkey](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#hotkeys-keybinds). > > ![](https://docs-assets.sonoransoftware.com/sha256/3a/3adcb95d39c7ab74c0dfa078e3e07d04062209e776f0dbd82f720a347964794a.png) > > *Dispatch: PTT Button* > > To temporarily transmit in a single channel, and move back to your original channel afterwards, select the keyboard icon to set a per-channel XMIT hotkey. > > ![](https://docs-assets.sonoransoftware.com/sha256/49/4935ea40cdaad0ee368c7e1720557ac401f9dd9d340b09301d334d2a73e8d9a4.png) > > *Dispatch: Per-Channel XMIT Hotkey* ### Switching Transmit and Scanned Channels > [accordion] Switching Transmit and Scanned Channels > > To switch to another channel, click the microphone button on the channel card. > > `CTRL` + `Click` on the microphone option to transmit on multiple channels at once. > > [You can also change channels via hotkey.](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#hotkeys-keybinds) > > ![Sonoran Radio - Switch Channel](https://docs-assets.sonoransoftware.com/sha256/89/89648bb976e149578ed7683143f6e4d9c4e4362e4eb8c04022fcac8cc384a3de.png) > > #### Scanning (Listen) To Multiple Channels > > Select the headphone icon on each channel to listen in.\ > You can listen to multiple channels at once. > > ![Sonoran Radio - Scan Channel](https://docs-assets.sonoransoftware.com/sha256/aa/aaf4d5a6c169cffaa2023f6f74c472bd2c1696c2d36ee0d4b9499d36be8bfd1f.png) ### Drag and Drop Users > [accordion] User Drag-And-Drop > > Change a user's channel ([requires permission](/radio/tutorials/getting-started/invite-and-manage-users#manage-user-permissions)) by dragging and dropping their name into the channel header. > > ![](https://docs-assets.sonoransoftware.com/sha256/7a/7afc882cb2500c0727905826d2faa17430bd0cacbb2876dcfe76c67f973d11f4.png) ### User Actions > [accordion] User Actions (Right Click) > > Right click in the user to: > > * Kick the user from the channel ([Requires Permission](/radio/tutorials/getting-started/invite-and-manage-users#manage-user-permissions)) > * Clear the [user's panic status](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#unit-panic) > * Move the user to a different channel ([Requires Permission](/radio/tutorials/getting-started/invite-and-manage-users#manage-user-permissions)) > * Adjust the user's volume ([Requires Permission](/radio/tutorials/getting-started/invite-and-manage-users#manage-user-permissions)) > * Change the user's display name ([Requires Permission](/radio/tutorials/getting-started/invite-and-manage-users#manage-user-permissions)) > * Stun the user from transmissing temporarily ([Requires Permission](/radio/tutorials/getting-started/invite-and-manage-users#manage-user-permissions)) > * Ping the user to get their attention > > ![](https://docs-assets.sonoransoftware.com/sha256/5d/5d0ff91ddda05bd1c29560f1e3a55f07d9bf9aa9c6d2cc8fa4eb4e63ca95693a.png) ### Unit Panic > [accordion] Unit Panic Status > > When a [unit toggles their panic status in-game](/radio/game-integrations/fivem/in-game-radio/using-the-in-game-radio#panic), the dispatch portal will reflect this with a red banner and a red highlight on the panicked unit. > > Dispatchers can [right-click the user to clear the panic](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#user-actions-right-click) for them. > > The [customizable panic sound effect](/radio/tutorials/usage/dispatch-panel/custom-sfx) will also alert dispatchers to an active unit panic. > > ![](https://docs-assets.sonoransoftware.com/sha256/d5/d59dcfa92756502224da5915c18c0f6b551de71ed891d146eb47b5d49728d1f7.png) ### Display Names > [accordion] Via Dispatch Portal > > To change your display name, users will need the `Change Display Name` permission. To manage others, users will need the `Manage Display Names` permission. > > **Via Radio Interface** > > Right click a user in the radio interface and select `Display Name` > > ![Sonoran Radio - Change Display Name](https://docs-assets.sonoransoftware.com/sha256/58/58aca092c5cf5cf04c94e2f1af5920cb44249167270ad8d0b1812047c4f3b3f6.png) > [accordion] Via Members Tab > > **Via Members Tab** > > In the admin panel's `Members` tab, select the drop-down and `Set Display Name` button to edit a user's display name. > > ![](https://docs-assets.sonoransoftware.com/sha256/9f/9f582e60ff0a41e2101fe291683e2fa80679aef7af0ad588462cd43789ec2f86.png) > [accordion] Via Sonoran CMS > > **Via Sonoran CMS** > > [Sonoran CMS can also automatically set and manage your Radio display names and sync them with Discord.](/radio/tutorials/integrations/sonoran-cms) > [accordion] Via Sonoran CAD Sync > > [Learn about automatically setting radio display names to match your unit information in Sonoran CAD.](/radio/tutorials/integrations/sonoran-cad-integration) > [accordion] Via Command > > Use the in-game command `/radio displayname John Doe` to update your radio display name. > > [In-game commands can also be restircted with ACE permission](/radio/game-integrations/fivem/in-game-radio/configuring-ace-permissions)s. > [accordion] Via Developer Export or Endpoint > > Programmatically [update a user's display name in FiveM](/radio/developer-documentation/developer-documentation/resource-events#set-display-name), [update a display name via API](/radio/developer-documentation/developer-documentation/api-endpoints-v2/users/set-user-display-name), or use a [custom framework function for guest users](/radio/developer-documentation/developer-documentation/resource-events#guest-display-names). ### Volume Changes > [accordion] Volume Sliders > > Adjust the overall voice and sound effect volume by [opening the settings menu](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#dispatch-hotkeys) and selecting the `Audio` tab. > > In addition to the manual sliders, you can customize how much the [volume hotkeys](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#dispatch-hotkeys) adjust the volume. > > You can also [adjust volume for a specific user](/radio/tutorials/usage/dispatch-panel/using-the-dispatch-panel#user-actions-right-click). > > ![](https://docs-assets.sonoransoftware.com/sha256/12/12483a1ea4ad514a4748348b031c45ce4cb1a3f52d6a9e075a14856f2332f061.png) > [accordion] Per-User Volume > > Right-click on a user to individually increase or decrease their transmission volume. > > ![](https://docs-assets.sonoransoftware.com/sha256/4f/4f57024a4deb46c1607a11b67721c183452628d5c180e19bd890a48513ac5c89.png) > [accordion] Per-Channel Volume > > Right-click on a channel to individually increase or decrease transmission volume. > > ![](https://docs-assets.sonoransoftware.com/sha256/ac/ac6159396ff3f085550e6ad16bc957befd387bd65e03141d7c47b098c091f965.png) ### Viewing Channel IDs > [accordion] Channel IDs > > Some integrations like ACE perm sync or scanner permissions may require you to enter the internal ID number of a specific channel. > > These IDs are shown in the customization menu when configuring channels. > > ![](https://docs-assets.sonoransoftware.com/sha256/8f/8f47d121adff90b340eab6bc57b9ea5ba9a7f18f52d538dd745483234f543b19.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/fa/fa86c3ec7c5e69171a6d493fedff47c567721d203d7d872058a5acb53b24ac41.png) > > Select the `#` symbol on the last channel in the dispatch panel to toggle ID visibility. > > ![](https://docs-assets.sonoransoftware.com/sha256/dc/dc343e95cf43d4ba0e7851c4f3e01723ca98d18728d0d313b76ee1d98a057085.png) # Troubleshooting Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting Find help with radio audio, browsers, and the desktop app. * [Browser microphone permissions](/radio/tutorials/usage/troubleshooting/browser-microphone-permissions) * [Device in use](/radio/tutorials/usage/troubleshooting/device-in-use) * [Windows app volume](/radio/tutorials/usage/troubleshooting/windows-app-volume) * [System microphone volume changing](/radio/tutorials/usage/troubleshooting/system-microphone-volume-changing) * [Mac keybinds](/radio/tutorials/usage/troubleshooting/mac-keybinds) * [Read and write permissions](/radio/tutorials/usage/troubleshooting/read-and-write-permissions) * [Error codes](/radio/tutorials/usage/troubleshooting/error-codes) * [Client debug mode](/radio/tutorials/usage/troubleshooting/client-debug-mode) For game-specific issues, see [FiveM](/radio/game-integrations/fivem/troubleshooting), [ER:LC](/radio/game-integrations/roblox/erlc-signal-towers), or [Arma 3](/radio/game-integrations/arma-3/troubleshooting). # Browser Microphone Permissions Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/browser-microphone-permissions Microphone permissions are required to use the radio. ## Error Code If you see the following error message displayed, the Sonoran Radio website has not gotten microphone access from your browser. This prevents you from connecting to the radio. ![](https://docs-assets.sonoransoftware.com/sha256/f1/f1913c8d4945b1da5667691f9091fce6fd8590353782a45de6f7c5ba5dae2a1c.png) ## Granting Microphone Permissions ### Via Quick Menu Select the icon to the left of the URL bar and ensure `Microphone` access is enabled. ![](https://docs-assets.sonoransoftware.com/sha256/bc/bc64c0efde7ea2d361891d688e480cfeea3bfb618fa900b27d69e7db398911a7.png) ### Via Chrome Settings In Chrome, paste the following into the URL bar and hit enter: `chrome://settings/content/microphone` Ensure that sites are allowed to ask for microphone access, and that `sonoranradio.com` is not blacklisted from microphone access. ![](https://docs-assets.sonoransoftware.com/sha256/52/5245d33fcbb71cd1b9ec52892ab1411cae501c782755a8536d79594cb9ba2954.png) # Client Debug Mode Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/client-debug-mode Learn more about enabling the client-sided debug mode. ## FiveM Client Debug logs At times, our support team may request debug logs from your local radio. This contains important information from the radio webpage (running inside the in-game radio in an iframe). ### Toggle Debug Mode On 1. Select the settings gear and click on the header of the settings panel **seven** times. 2. At the bottom, a red section labeled `Debug Mode` will appear, indicating that it has been correctly enabled. 3. Restart the radio (power on/off) to start capturing fresh logs. Once you have re-created the issue, continue on with sending the logs as described below. ![](https://docs-assets.sonoransoftware.com/sha256/bc/bce4946de0aa00d4a5abdb5b0b4fd350db703e039eeeca81778957b3ebf2f448.png) *Sonoran Radio: Debug Mode* ### Flagging Timestamps In some cases, you may be asked to add a timestamp flag when an issue occurs. Once the particular issue occurs press the `Flag Timestamp` button in the debug menu, enter in a brief description, and press `Ok`. This will manually add a debug log to help our developers narrow down the time window. ![](https://docs-assets.sonoransoftware.com/sha256/1d/1d8210401d3506cd935e2fe43ca21cb18031145b8f777a2fb2a0945aac7d04c9.png) *Flag Timestamp* ### Sending Client Debug logs 1. Open your in-game console by pressing `F8` 2. Select `Open Log` 3. Send the latest file located at `C:\Users\USER\AppData\Local\FiveM\FiveM.app\logs` ![](https://docs-assets.sonoransoftware.com/sha256/7b/7b8f9425e534644bf2985bd61367a2125363a4112476656e4830f971f584447f.png) *FiveM: Open Client Log* ![](https://docs-assets.sonoransoftware.com/sha256/44/44b7c127f59f251ff404f450221b0047e5e6f9cb877d9b5ad0770ba928034268.png) *FiveM: Client Log* # Device In Use Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/device-in-use Resolve the radio error when connecting "Device In Use". ## Device In Use Error ![](https://docs-assets.sonoransoftware.com/sha256/3e/3e3adffb44240f27b35451da75f02dcabcde67865dd94b7fe7ec0b05360083df.png) *Sonoran Radio: Device In Use* When connecting to the radio, your microphone may be locked in "exclusive mode" by another program. ### Access the Sound Tab * Open the `Control Panel` and select `Hardware and Sound` * Select `Manage Audio Devices` ![](https://docs-assets.sonoransoftware.com/sha256/44/44bea3324a6c34bb26814aec417b574ca81182e7286c8030ba95923393cbf07a.png) ![](https://docs-assets.sonoransoftware.com/sha256/ae/aeb95c59698988a0582958406e88bc02647cf5e1f9baba2eba0ced7e6640eeae.png) ### Disable Exclusive Mode Select the microphone > `Properties` > `Advanced` > Disable (un-check) `Allow applications to take exclusive control of this device`. ![](https://docs-assets.sonoransoftware.com/sha256/e5/e55a9220d0cb6897a7ac91da644ea3f3e5331c9a11f9561bde3c163879181dbf.png) *Sonoran Radio: Disable Exclusive Mic Mode* # Error Codes Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/error-codes Learn more about specific in-game error and warning codes. This page documents the structured error and warning codes emitted by the Sonoran Radio FiveM resource. Direct links can target any code on this page using fragments such as `#err-121`. Structured logs also include a short link such as `https://sonoranradio.com/error/ERR-121`. ## Current Resource Codes ### Errors #### ERR-101 **Internal Key:** `ERR_OX_LIB_NOT_STARTED` **Meaning:** ox\_lib must be started before Sonoran Radio when that dependency path is used. **First Troubleshooting Step:** Start `ox_lib` before Sonoran Radio and restart the resource. #### ERR-102 **Internal Key:** `ERR_OX_LIB_INIT_LOAD_FAILED` **Meaning:** Sonoran Radio could not load `@ox_lib/init.lua`. **First Troubleshooting Step:** Verify that `ox_lib` is installed correctly and that `init.lua` exists. #### ERR-103 **Internal Key:** `ERR_OX_LIB_NOTIFY_UNAVAILABLE` **Meaning:** `ox_lib` notifications were selected, but `lib.notify` was unavailable. **First Troubleshooting Step:** Confirm `ox_lib` is running and initialized without errors. #### ERR-104 **Internal Key:** `ERR_RADIO_ITEM_INVENTORY_MISSING` **Meaning:** `enforceRadioItem` is enabled, but no supported inventory resource was detected. **First Troubleshooting Step:** Start `qb-inventory` or `ox_inventory`, or disable `Config.enforceRadioItem`. #### ERR-105 **Internal Key:** `ERR_RADIO_ITEM_FRAMEWORK_MISSING` **Meaning:** `enforceRadioItem` is enabled, but no supported framework resource was detected. **First Troubleshooting Step:** Start `qb-core` or `qbx_core`, or disable `Config.enforceRadioItem`. #### ERR-106 **Internal Key:** `ERR_API_CREDENTIALS_MISSING` **Meaning:** The API key or community ID is missing from configuration. **First Troubleshooting Step:** Set `apiKey` and `comId` correctly in your config and restart the resource. #### ERR-107 **Internal Key:** `ERR_API_FATAL_DISABLED` **Meaning:** A fatal API error disabled radio API functionality until the issue is corrected. **First Troubleshooting Step:** Fix the reported API or community configuration issue, then restart the resource. #### ERR-108 **Internal Key:** `ERR_API_CRITICAL_ABORTED` **Meaning:** A request was aborted because the resource is already in a critical API error state. **First Troubleshooting Step:** Resolve the earlier fatal API error before retrying requests. #### ERR-109 **Internal Key:** `ERR_FRAMES_DEPARTMENTS_MISSING` **Meaning:** `Config.frames.departments` is missing for the selected frame permission mode. **First Troubleshooting Step:** Add the required departments list under `Config.frames.departments`. #### ERR-110 **Internal Key:** `ERR_JAMMERS_PERMISSION_MODE_INVALID` **Meaning:** The configured permission mode for radio jammers is invalid. **First Troubleshooting Step:** Review the jammer permission mode in config and change it to a supported option. #### ERR-111 **Internal Key:** `ERR_RADIO_ITEM_CONFIG_MISSING` **Meaning:** Radio item enforcement is enabled, but `Config.RadioItem` is missing. **First Troubleshooting Step:** Define `Config.RadioItem` or disable radio item enforcement. #### ERR-112 **Internal Key:** `ERR_SCANNER_ITEM_CONFIG_MISSING` **Meaning:** Scanner item enforcement is enabled, but `Config.ScannerItem` is missing. **First Troubleshooting Step:** Define `Config.ScannerItem` or disable scanner item enforcement. #### ERR-113 **Internal Key:** `ERR_QBOX_OX_RADIO_ITEM_MISSING` **Meaning:** The configured radio item does not exist in Ox Inventory on Qbox. **First Troubleshooting Step:** Add the radio item to `/ox_inventory/data/items.lua` or correct the configured item name. #### ERR-114 **Internal Key:** `ERR_QBOX_OX_SCANNER_ITEM_MISSING` **Meaning:** The configured scanner item does not exist in Ox Inventory on Qbox. **First Troubleshooting Step:** Add the scanner item to `/ox_inventory/data/items.lua` or correct the configured item name. #### ERR-115 **Internal Key:** `ERR_COMMUNITY_CHANNELS_FETCH_FAILED` **Meaning:** Community channels could not be fetched from the radio service. **First Troubleshooting Step:** Check the HTTP status in the server log and verify API connectivity. #### ERR-116 **Internal Key:** `ERR_SKIN_SAVE_FAILED` **Meaning:** A radio skin configuration file could not be saved. **First Troubleshooting Step:** Verify that the target file path is writable by the server process. #### ERR-117 **Internal Key:** `ERR_CONFIG_SAVE_FAILED` **Meaning:** A JSON configuration file could not be saved. **First Troubleshooting Step:** Check file permissions and confirm the resource directory is writable. #### ERR-118 **Internal Key:** `ERR_SERVER_IP_SET_FAILED` **Meaning:** Sonoran Radio could not register or update the server IP with the radio service. **First Troubleshooting Step:** Verify `apiKey`, `comId`, and outbound API connectivity. #### ERR-119 **Internal Key:** `ERR_SERVER_IP_INVALID_ROOM` **Meaning:** The radio service returned an invalid `roomId` while setting the server IP. **First Troubleshooting Step:** Check the API response and confirm the configured community is valid for radio. #### ERR-120 **Internal Key:** `ERR_FRAMES_CONFIG_MISSING` **Meaning:** `Config.frames` is missing. **First Troubleshooting Step:** Add the `Config.frames` block to your configuration. #### ERR-121 **Internal Key:** `ERR_SERVER_SPEAKERS_SET_FAILED` **Meaning:** Sonoran Radio could not synchronize in-game speaker locations with the radio service. **First Troubleshooting Step:** Check the API response and confirm speaker configuration is valid. #### ERR-122 **Internal Key:** `ERR_SERVER_NAME_SET_FAILED` **Meaning:** Sonoran Radio could not update a user display name in the radio service. **First Troubleshooting Step:** Verify API connectivity and confirm the target user exists in the linked community. #### ERR-123 **Internal Key:** `ERR_INVALID_COMMUNITY_ID` **Meaning:** The configured community ID is invalid or not enabled for the API. **First Troubleshooting Step:** Confirm the configured community ID belongs to a community with radio API access. ### Warnings #### WRN-201 **Internal Key:** `WRN_LB_PHONE_NOT_STARTED` **Meaning:** lb-phone integration is waiting for the `lb-phone` resource to start. **First Troubleshooting Step:** Start `lb-phone` if phone integration is expected. #### WRN-202 **Internal Key:** `WRN_LUXART_RESOURCE_DEFAULTED` **Meaning:** `Config.luxartResourceName` was empty, so the default `lvc` resource name was applied. **First Troubleshooting Step:** Set `Config.luxartResourceName` explicitly if your Luxart resource uses a different name. #### WRN-203 **Internal Key:** `WRN_API_REQUEST_FAILED` **Meaning:** A Sonoran Radio API request failed. **First Troubleshooting Step:** Inspect the logged request type and reason, then verify API connectivity. #### WRN-204 **Internal Key:** `WRN_API_ENDPOINT_UNREGISTERED` **Meaning:** An API request was attempted for an endpoint type that is not registered. **First Troubleshooting Step:** Register the endpoint type before making that request. #### WRN-205 **Internal Key:** `WRN_GEO_ZONE_SYNC_FAILED` **Meaning:** Geo and degrade zones could not be synchronized with the radio service. **First Troubleshooting Step:** Check the earlier API response details for the zone sync request. #### WRN-206 **Internal Key:** `WRN_COMMUNITY_CHANNELS_FETCH_FAILED` **Meaning:** Community channels could not be fetched for a player request. **First Troubleshooting Step:** Check the HTTP status in the warning and verify the player has valid access to radio data. #### WRN-207 **Internal Key:** `WRN_SKIN_SAVE_DEBUG_BLOCKED` **Meaning:** A client attempted to save a radio skin while debug mode was disabled. **First Troubleshooting Step:** Verify the caller is expected and only enable this workflow while debugging. #### WRN-208 **Internal Key:** `WRN_CONFIG_RENAME_FAILED` **Meaning:** A default configuration file could not be renamed to its writable target path. **First Troubleshooting Step:** Check whether the destination file already exists or is locked. #### WRN-209 **Internal Key:** `WRN_CONFIG_SAVE_FALLBACK` **Meaning:** Saving a configuration file failed, so Sonoran Radio fell back to writing the default file. **First Troubleshooting Step:** Check write permissions on the preferred config file path. #### WRN-210 **Internal Key:** `WRN_SERVER_IP_USING_EXISTING_ROOM` **Meaning:** The server IP update failed, but an existing `roomId` was reused while retrying in the background. **First Troubleshooting Step:** Confirm the existing `roomId` is still valid and investigate the API failure. #### WRN-211 **Internal Key:** `WRN_SERVER_IP_RETRYING` **Meaning:** The server IP update failed and will be retried. **First Troubleshooting Step:** Check API availability and confirm the configured credentials are correct. #### WRN-212 **Internal Key:** `WRN_SERVER_ID_CONFIG_WRITE_FAILED` **Meaning:** The resolved `serverId` could not be written back to `config.lua`. **First Troubleshooting Step:** Check whether `config.lua` is read-only or locked by the OS. #### WRN-213 **Internal Key:** `WRN_APIKEY_CONVAR_UNINITIALIZED` **Meaning:** The `apiKey` convar was not initialized from `sonoranradio.cfg`. **First Troubleshooting Step:** Ensure `sonoranradio.cfg` is executed before the resource starts. #### WRN-214 **Internal Key:** `WRN_CHATTER_EXCLUSIONS_OVERWRITE_DEPRECATED` **Meaning:** `Config.chatterExclusions` overwrote `earpieces.json` even though that config path is deprecated. **First Troubleshooting Step:** Remove `Config.chatterExclusions` from config and migrate to `earpieces.json`. #### WRN-215 **Internal Key:** `WRN_CHATTER_EXCLUSIONS_DEPRECATED` **Meaning:** `Config.chatterExclusions` is deprecated. **First Troubleshooting Step:** Move chatter exclusion management to `earpieces.json` or the in-game menu. #### WRN-216 **Internal Key:** `WRN_MOBILE_REPEATERS_CONFIG_MIGRATED` **Meaning:** Legacy `Config.repeaterVehicleSpawncodes` entries were imported into `mobileRepeaters.json`. **First Troubleshooting Step:** Remove the deprecated `Config.repeaterVehicleSpawncodes` block and use `/radiomenu` for future changes. #### WRN-217 **Internal Key:** `WRN_LISTENER_PRO_REQUIRED` **Meaning:** Nearby radio chatter and scanners were disabled because the community does not have a Pro subscription. **First Troubleshooting Step:** Upgrade the Radio community to Pro, or set `Config.chatter` to `false`. ## Support Diagnostic Uploads When staff select **Request Radio Debug** on your ticket, run `sonoranradio support ` in the **server console** using the supplied ticket number. This requires a resource version that includes the support command. The ticket must have debug uploads enabled by staff. The diagnostic attachment includes the effective core configuration, separately stored configuration files with credential fields redacted, dependency states and versions, resource uptime, player count, retained error/warning counts, and recent console/debug output. The ticket also displays a compact runtime snapshot before the deduplicated error/warning summary. Files are labeled as loaded, default-only, missing, invalid JSON, unreadable, or omitted because of size. Disk snapshots may differ from settings already loaded into memory; diagnostics do not execute or rewrite any configuration. Large logs keep the newest console output and explicitly report omitted bytes, entries, or files so the upload can stay below 1 MB. Counts cover the retained buffer rather than all events since startup. Debug mode is left unchanged. Radio snapshots include `earpieces.json`, `jammers.json`, `scanners.json`, `speakers.json`, `towers.json`, and `mobileRepeaters.json`, with their default-file fallbacks labeled. The runtime section also includes initialized/API-error state, subscription level, active geo/degrade zones, and tower/rack/cell-repeater counts. Console logs can contain third-party output; only upload to your own support ticket. #### ERR-124 **Internal Key:** `ERR_SUPPORT_INVALID_ID` **Meaning:** The support ticket ID is invalid. **First Troubleshooting Step:** Run the support command with the positive ticket number provided by staff. #### ERR-125 **Internal Key:** `ERR_SUPPORT_COLLECT_FAILED` **Meaning:** Support diagnostics could not be collected. **First Troubleshooting Step:** Check the resource configuration and restart it, then retry the command. #### ERR-126 **Internal Key:** `ERR_SUPPORT_TOO_LARGE` **Meaning:** Support diagnostics still exceed the 1 MB upload limit after automatic size handling. Large console logs are normally clipped automatically. **First Troubleshooting Step:** Ask support for another way to send the log. #### ERR-127 **Internal Key:** `ERR_SUPPORT_UPLOAD_FAILED` **Meaning:** Support diagnostics could not be uploaded. **First Troubleshooting Step:** Verify the ticket ID, ask staff to enable debug uploads, and check outbound HTTPS connectivity to api.sonoransoftware.com. A timeout or non-success response does not confirm delivery. ## Legacy Troubleshooting Codes The entries below are older support references that may still appear in existing guides, logs, or support replies. ### ERR 101: Unable to get a valid pushUrl Sonoran Radio uses your CFX Nucleus Proxy URL to send push events from the radio to your game server. For example, this allows playing a tone on the radio to an in-game speaker. In the event that Sonoran Radio cannot obtain or verify your CFX Proxy URL, it tries to use your server's public IP address as a backup for push events. On some hosts, that fallback may also fail. If you receive this error, try setting `Config.overridePushUrl` to `http://ip:port/sonoranradio/events`, where `ip:port` is the IP and port of your FiveM server. The default FiveM port is `30120`. If this does not resolve the issue, contact your host provider. They are likely blocking inbound traffic to your server. ### ERR 102: No push event URL set Sonoran Radio uses your CFX Nucleus Proxy URL to send push events from the radio to your game server. 1. Check your server console for `ERR 101`. That error indicates a problem setting or validating the push URL. 2. If you are using a non-FiveM server but still utilizing push events, ensure the `pushUrl` property is sent with a full HTTP(S) address with the [set-server-ip API endpoint](/radio/developer-documentation/developer-documentation/api-endpoints-v2/community-server/set-server-ip). # Mac Keybinds Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/mac-keybinds Resolve issues with desktop keybinds on Mac OSX. Due to Apple's permission restrictions, and limited support on newer Apple Silicon processors - Sonoran Radio takes a couple of extra steps to setup global keybinds. ## Modify File Permission Sonoran Radio must adjust a file permission in order to listen to keybinds while the application is running. You will be prompted to enter your computer's password: ![](https://docs-assets.sonoransoftware.com/sha256/e4/e41fa41b25c16c1ce647eaddc0dc31ab0fe8fde8472a1edadbafeb39026e3246.png) ## Grant Accessibility Access When first setting a keybind, you will be prompted to add the `Accessibility` permission for keyboard and mouse input detection. Click the `Open System Preferences` button, and toggle the permission on for `Sonoran Radio`. *If you do not see the `Sonoran Radio` application as an option, click the `+` button in the bottom right and select the program from your `Applications` folder.*\ ![](https://docs-assets.sonoransoftware.com/sha256/09/091460cdb04484e5d4b688c9236a0abb7b0eefb467c11fd8cc46b91abea6427a.png) ![](https://docs-assets.sonoransoftware.com/sha256/e7/e798a3cb01e9ea606cb1c48698ea57ccb174ccc365aab50fa763c8c720d0a3c6.png) > [!NOTE] > > You can also manually open this menu via `System Settings` > `Privacy and Security` > `Accessibility` \ After toggling access on, you will be prompted to restart the application. # Read and Write Permissions Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/read-and-write-permissions How to fix SonoranRadio issues caused by read-only file permissions on Windows and Linux servers. ## SonoranRadio – Fix “Config File Is Read-Only” Error *** ### Step 1: Open Your Game Panel Log into the game panel where your FiveM server is hosted\ (e.g. **ZAP-Hosting, txAdmin, Pterodactyl, Gamepanel, VPS**). *** ### Step 2: Locate the Config File Navigate to: ``` resources/sonoranradio/config.lua ``` *** ## 🪟 WINDOWS HOSTS #### Step 1: Locate the file ``` resources\sonoranradio\config.lua ``` *** #### Step 2: Open file properties 1. Right-click `config.lua` 2. Click **Properties** *** #### Step 3: Allow Read & Write access 1. Under the **General** tab: * ❌ Uncheck **Read-only** 2. Click **Apply** 3. Click **OK** This allows the file to be both **read and written** by the server. *** #### If it keeps reverting to Read-Only Apply the change to the entire folder: 1. Right-click the **`sonoranradio`** folder 2. Click **Properties** 3. Uncheck **Read-only** 4. Click **Apply** 5. Select **Apply changes to this folder, subfolders, and files** 6. Click **OK** *** ## 🐧 LINUX HOSTS (ZAP-Hosting, Gamepanel, Pterodactyl, VPS) #### Step 1: Open your game panel or file manager Log into the panel where your FiveM server is hosted. *** #### Step 2: Locate the config file ``` resources/sonoranradio/config.lua ``` *** #### Step 3: Fix file permissions Set the file permissions so the server can write to it: * **Recommended:** `766` * **If that fails:** `666` If your panel supports it: 1. Right-click `config.lua` 2. Select **Permissions** 3. Apply the change ⚠️ If your panel does **not** allow permission changes, contact your hosting provider and ask them to make the file writable. *** ### Linux File Permissions – Quick Reference Each permission digit is the sum of: * **4** = Read (r) * **2** = Write (w) * **1** = Execute (x) #### Common Permission Values * `0` = --- (No access) * `4` = r-- (Read only) * `6` = rw- (Read + Write) * `7` = rwx (Read + Write + Execute) #### Permission Structure ``` OWNER | GROUP | OTHERS X | Y | Z ``` Example: * `766` → Owner has full access, group/others can read & write * `666` → Read & write for everyone (no execute) *** ### Final Step: Restart SonoranRadio After making changes, restart the resource or server: ``` restart sonoranradio ``` # System Microphone Volume Changing Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/system-microphone-volume-changing Automatic gain control may impact your microphone input volume for other apps, not just Sonoran Radio. Sonoran Radio enables Automatic Gain Control by default. This feature automatically adjusts your microphone input level to keep voice volume consistent across all users. For some users, this may interfere with other applications because it can also affect the microphone input level configured in Windows. To resolve this, open the **Settings** menu > **AGC** > Disable. ![](https://docs-assets.sonoransoftware.com/sha256/8b/8b63f02bc0835bd117cdd13031cde49507b1fb89558a6748eba8ef6861cf1317.png) # Windows App Volume Source: https://docs.sonoransoftware.com/radio/tutorials/usage/troubleshooting/windows-app-volume When a default output device is selected Windows may automatically lower the volume of other desktop apps. If Sonoran Radio lowers the volume of FiveM or other apps on Windows while connected, the most common fix is to change Sonoran Radio’s output from **Default** to your specific headset or speaker device. Windows can treat the default communications device differently and may duck other app audio while the radio is active, even if nobody is talking. In the **Settings** panel, change your output device from **Default** to a specific input device. ![](https://docs-assets.sonoransoftware.com/sha256/a7/a7f14bcc29d5f576b9d963f392fda77878a3e51af618a274fb0e818165f2c4de.png) ![](https://docs-assets.sonoransoftware.com/sha256/b6/b69ba41d6d40f81e87f7b7b55c7327ea755f361ef800eef61b10f21e374250cb.png) # 🏠 Home Source: https://docs.sonoransoftware.com/store Documentation and Information on Sonoran Store Products We're dedicated to providing the highest quality, most advanced, and most feature rich assets to the FiveM community. With industry leading software in [Sonoran CAD](/cad), [Sonoran CMS](/cms) and [Sonoran Radio](/radio) you can rest assured our [7 day/week customer support](https://support.sonoransoftware.com/) has your community's back. ## SonoranM for FiveM™️ Get the entire Sonoran store for just \$19.99/mo! Purchase at [SonoranM.com](https://sonoranm.com)! ![](https://docs-assets.sonoransoftware.com/sha256/dc/dc9403192c8aa449efc520fd4389667e1f705f4bdba4c90ad53daae3cd286aa3.png) *SonoranM Promotional Image* ## Connect with us! [Join Our Discord](https://discord.sonoransoftware.com) [Visit our Website](https://support.sonoransoftware.com) # ATM Robbery Source: https://docs.sonoransoftware.com/store/atm-robbery Steal and break into the ATM ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/58/58c162a32322d3015940e15e6da5fd35c6c0c4cce5b59276328679c570c8806d.png) [Video tutorial](https://www.youtube-nocookie.com/embed/2Z6FepWQM2E) ATM Robbery Promotional Video ## ATM Robbery ### Features ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/ce/ce0bb4dac91536dd0624527d1d7b7d83631ac5a21dd864ec1188ee21595d655b.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/c6/c6a82e57b9a5a62c17b8c980ae2d44d547657ca6ca6d0514eb9f7df59f169090.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/e4/e47ed1392754673ae2c4f7126b7ce2b472f31d059dadd9aff7ba0fc86a1a0437.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/68/685102e9a3f2e6f074d75a0ac9a4838039ec987303f7d56a499b340850db6f8a.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/14/14f9555374b9df67ac605e54391341bb8483fabd3c30b890b0e1f8c13b6f1440.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/73/73c69dfdde9577cb75581aa7efecc9013959f2deb47575b65bce813d858b0e77.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/66/6695a4b50b728aec36ff1b61d6a49007b2ec0807f12c58f43a7cf4233c3533d4.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/06/065aff9bb7c85f9e0bdd47be4aa68add51eb74bd23086d6eb0cf6cfeb175bebb.png) ![Sonoran Software - ATM Robbery Promotional Iamge](https://docs-assets.sonoransoftware.com/sha256/72/725d8ad93dd7d2f71e1f5ac383471d3709d7e6fd21a41f3596cc3bb1edbeb6f2.png) ### Changelog #### v1.0.4 * `fix: Fixed permission check for QB Core to check on character login` #### v1.0.2 **Features** * `feat: Add Ox_Inventory & Quasar Inventory support` #### v1.0.1 **Hotfix** * `fix: Typo in config.lua` #### v1.0.0 * `Initial Release` # Advanced Documentation Source: https://docs.sonoransoftware.com/store/atm-robbery/advanced-docs Developer Documentation and other advanced configuration options of the ATM Robbery system. ## Custom Permission Systems If you view your `config.lua` you will find a function to be defined with your permissions check. The same function is called to check for permission to receive notifications and to check if they are allowed to place new ATMs. The requests are differentiated through the type argument. It will be equal to `0` if the permissions check is to see if they can place a ATM, `1` to check if they can currently receive notifications, or `2` to check if they are allowed to initiate the stealing of an ATM, The permission check will be called on every attempted placement, every notification sent, and every attempted robbery. ```lua theme={null} Config.custom = { check_perms_server_side = true, -- If true the permission event will be sent out to the server side resource, this is recommended permissionCheck = function(source, type) -- This function will always be called server side. if type == 0 then -- Check for admin return true or false -- Return true if they have admin, return false if they don't elseif type == 1 then -- Check for notification perms return true or false -- Return true if they have permissions, return false if they don't elseif type == 2 then -- Check for perms to steal the ATM return true or false -- Return true if they have permissions, return false if they don't end end } ``` If you need assistance setting this up you can hire a dev by going [here](https://support.sonoransoftware.com/#/) and selecting "Hire a Developer". ## Developer Documentation When an ATM is being drilled initially, the `sonoran-atmrobbery::ATM::Drilling_s` event will fire to the `server`. The data table can be seen below. Upon completion of the final drilling, if `Config.permissionMode` is set to `ace`, the event `Sonoran::ATM::Payout` will be fired to the `server`. The data table can be seen below. Example event handlers can also be found below. #### Event List * `Sonoran::ATM::Payout` * `sonoran-atmrobbery::ATM::Drilling_s` #### Data Table Structure For `Sonoran::ATM::Payout` | Index | Description | Example | | - | - | - | | `money` | This will be the payout amount recieved from drilling into the ATM | `14546` | | `type` | This will be the type of money from the `Config.framework.reward.rewardType` | `cash` | | `items` | This will contain the items the ATM gives out after drilling. Configurable in the `Config.framework.reward.Items` | `steel` | #### Data Table Structure For `sonoran-atmrobbery::ATM::Drilling_s` | Index | Description | Example | | - | - | - | | `street` | This will be the street name the robbery is taking place on | `Mirror Park Blvd` | | `postal` | This will be the postal where the robbery is happening | `7054` | | `location` | This will be the vector3 coordinates of where the ATM is being stolen | `"x":124, "y": 453, "z":30` | | `atm` | This will be the hash of the ATM that is being stolen | `-156843` | #### Example Handler ```lua theme={null} AddEventHandler("Sonoran::ATM::Payout", function(data) print("Player 1 recieved $" .. data["money"] .. " in " .. data["type"] .. " along with " .. data["items"].amount .. " " .. data["items"].item) end) ``` ```lua theme={null} AddEventHandler("sonoran-atmrobbery::ATM::Drilling_s", function(data) print("An ATM with the hash " .. data["atm"] .. " is currently being stolen on " .. data["street" .. " (" .. data["postal"] .. "). Exact coordinates: ".. data["location"]) end) ``` # Getting Started Source: https://docs.sonoransoftware.com/store/atm-robbery/getting-started This page will walk you through getting and installing the ATM Robbery script. ## Acquire the Script After purchasing the script through the sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/e1/e1990cefe8b6f2140c97d312ff467363478f92c8fb44f0d4516211c9a6d55703.png) *Sonoran Software - ATM Robbery - Folders* 2. In the `sonoran-atmrobbery/config` folder there will be a file called `config.CHANGEME.lua` you should rename that to be `config.lua` and configure the settings inside as you would like them to be configured based on the configuration documentation below. In that same folder will also be a file called `atms.CHANGEME.json` which is a storage file for all ATMs placed using the placement gun. Change the name to `atms.json`. You can also edit the `discord.CHANGEME.lua` file to add discord webhook updates for when the state of the ATM changes. Change the name to `discord.lua`. > [!WARNING] > > Only ever change the name of the `atms.json` **ON INSTALL**, not on subsequent updates! ![Sonoran Software - ATM Robbery - Config folder](https://docs-assets.sonoransoftware.com/sha256/15/15e6e40e69bc12974b0e6222e2ade0b8c5e41bf90e02adf42addad0dc134dcf5.png) > [!WARNING] > > **QBCore** Specific - Please follow `Step 3` to ensure inventory items have correct photos! 3. Drag the `jackhammer.png` and `rope.png` from `\sonoran-atmrobbery\config` into the following folder: `\resources\[qb]\qb-inventory\html\images` > [!WARNING] > > **ESX Specific** Specific - Please follow `Step 4` to ensure inventory items work! 4. a.) Import the `ESX Installme.sql` file into your ESX database ***If NOT using\*\*\*\***\*\* ****`ox_inventory`**\*\* ****\*\*\*\*continue to step 5*** b.) Add the following code to the `/ox_inventory/data/items.lua` file ```lua theme={null} ['sonoran_jackhammer'] = { label = 'Jackhammer', weight = 1, stack = true, close = true, description = nil }, ['sonoran_rope'] = { label = 'Rope', weight = 1, stack = true, close = true, description = nil, }, ``` 5. Finally, in your `server.cfg` add the following: > [!WARNING] > > **NEVER** add `ensure sonoran-atmrobbery_helper` or `ensure [sonoranscripts]` to your server.cfg as this will lead to crashing under specific conditions. ``` ensure sonoran-atmrobbery add_ace resource.sonoran-atmrobbery command allow add_ace resource.sonoran-atmrobbery_helper command allow ``` ## Configuring the Script > [!WARNING] > > This script utilizes two separate Lua configs. This is for security reasons. Having a separate config for your Discord Configuration keeps them server side only and safer from malicious clients. > [accordion] Default config.lua > > ```lua theme={null} > Config = {} > -- General Configuration Section -- > Config.configuration_version = 1.1 > Config.debug_mode = false -- Only useful for developers and if support asks you to enable it > Config.permissionMode = "ace" -- Available Options: ace, framework, custom > Config.auto_config = false > > -- Ace Permissions Section -- > Config.acePerms = { > aceObjectPlace = "sonoran.atms", -- Select the ace for placing new ATM's and using admin repair > aceObjectNotifications = "sonoran.police", -- Select the ace for receiving in-game notifications > aceObjectCanSteal = "sonoran.theif", -- Select the ace for being allowed to steal ATM's > } > > -- Framework Related Settings -- > Config.framework = { > frameworkType = "qb-core", -- This setting controls which framework is in use options are esx or qb-core > policeJobNames = {"police"}, -- An array of job names that should receive notifications > inventoryType = "normal", -- Which inventory you would like to use normal, quasar, ox_inventory (OX Will only work for ESX Legacy as of now) > allowedToPlaceGroups = {"admin"}, -- The permission group that should be allowed to place new systems > theifJobNames = {"unemployed"}, -- An array of job names that should receive notification_message > useTheifJobListAsBlacklist = false, -- This will treat the theif job list as a blacklist rather than a whitelist > reward = { > amountRange = {10000, 20000}, -- The range of money they can recieve > rewardType = "cash", -- The type of money they will recieve > rewardItems = false, > Items = { > {item= "ITEM_NAME", amount = 3}, > } > }, > } > > -- Configuration For Custom Permissions Handling -- > Config.custom = { > checkPermsServerSide = true, -- If true the permission event will be sent out to the server side resource, this is recommended > permissionCheck = function(_, type) -- This function will always be called server side. > if type == 0 then -- Check for admin > return true or false -- Return true if they have admin, return false if they don't > elseif type == 1 then -- Check for notification perms > return true or false -- Return true if they have permissions, return false if they don't > elseif type == 2 then -- Check for hacker perms > return true or false -- Return true if they have permissions, return false if they don't > elseif type == 3 then -- Check for repair perms > return true or false -- Return true if they have permissions, return false if they don't > end > end > } > > Config.atmModels = { > ['old'] = -870868698, > ['blue'] = -1126237515, > ['red'] = -1364697528, > ['green'] = 506770882 > } > > -- Choose Custom Command Names -- > Config.commands = { > placementGun = 'spawnnewatm', -- Command used to start the placement gun > -- addWinch = 'addwinch', -- IN DEVELOPMENT > -- removeWinch = 'removewinch', -- IN DEVELOPMENT > withRope = 'attachrope', -- Command used to steal ATMs with rope > drillATM = 'drillatm', -- Command used to initiate the final drilling into an atm > } > > -- Feature Settings That Don't Require Other Resources -- > Config.standaloneFeatures = { > showNotificationBlipsForPolice = true, -- Should police see a blip when a car is pinged? > blipsExpireAfterSeconds = 90, -- Number of seconds before the blip type above is removed > enable_auto_update = true, -- Should the script automatically update itself, it will check for updates regardless > delayForNotifyingStealing = 10000, -- Time in miliseconds between a successful hack and notification going out, set to 0 to disable delay > distToDrill = 10, -- The distance a player must be from the inital location of the ATM robbery to begin drilling into the atm > } > > --[[ > Placeholder list: > {{POSTAL}} = Postal > {{EVENT_TYPE}} = Event Type > {{ATM_NAME}} = ATM Name > ]] > > > -- Settings For Integrations With Other Resources -- > Config.integration = { > SonoranCAD_integration = { > use = true, -- Should any of the options below be used? Integration with this script requires at least a Plus subscription. > addLiveMapBlips = true, -- Should blips for the power systems be added to the live map? This requires the Pro SonoranCAD plan > enable911Calls = true, -- Should 911 calls be generated in the CAD when a BOLO vehicle or speeder is detected? > ["911_caller"] = "Automated ATM Alerts", -- Who should the 911 call appear to be from? > ["911_message"] = "{{EVENT_TYPE}} Alert at ATM with name {{ATM_NAME}}", -- Configurable 911 call description > nearestPostalPlugin = "nearest-postal", -- If you want to use postals, what is the exact name of your postals script? > disableInGameWithDispatch = false, -- If true disables in-game notifications when dispatch is online in CAD > disableCadWithoutDispatch = false -- If true disables CAD notifications when dispatch is offline in CAD > } > } > > -- Notification Settings -- > Config.notifications = { > type = "native", -- Available options: native, pNotify, okokNotify, or cadonly > notificationTitle = "{{EVENT_TYPE}}", -- Notification Title for methods that support it > -- Uncomment line below and comment line 105 if you plan to use pNotify > -- notificationMessage = "{{EVENT_TYPE}} Alert
Alert at ATM with name {{ATM_NAME}}" > notificationMessage = "{{EVENT_TYPE}} Alert\nAlert at ATM with name {{ATM_NAME}}", -- The text of the notification > } > > -- Vehicle Settings -- > Config.vehicles = { > ['DLOADER'] = { > trunk = true, > pull = true, > }, > ['OPENWHEEL2'] = { > trunk = false, > pull = false, > } > } > > -- Translation Settings -- > Config.lang = { > general = { > drillAtm = 'Press ~g~E ~w~to begin stealing the ATM', > tooHot = 'The drill got too ~r~hot~w~ and broke!\nATM robbery ~r~failed~w~!', > robCanceled = 'The ATM robbery was ~r~canceled~w~.', > drillSuccess = 'The ATM has been successfully drilled into.\nReady for winch', > inVeh = 'You get out of the vehicle to do this!', > -- alrWinch = 'This vehicle already has a winch', > -- winchAttach = 'The winch has been attached to this vehicle!', > -- winchDetached = 'The winch has been detached from this vehicle!', > -- noWinchDetected = 'This vehicle does not have a winch!', > noVehNearby = 'There is no vehicle nearby!', > noAtmNearby = 'There is no ATM nearby!', > noAttachedAtm = 'There is no ATM attached!', > loadAtm = 'Press ~g~H ~w~to load the ATM into your vehicle', > unloadAtm = 'Press ~g~H ~w~to unload the ATM from your vehicle' > }, > commands = { > alrSpawning = '[Err] You are already spawning an ATM. Please cancel current spawn first!', > atmPlaced = 'ATM Placed!', > spawnNew = 'Spawn a new ATM and save it to the config based on pointing a gun', > labelText = 'The label you want to apply to the shot spotter', > atmTypes = 'The type of ATM model to spawn. (old, blue, red, green)', > -- addWinch = 'Add a winch to your nearby vehicle', -- IN DEVELOPMENT > -- removeWinch = 'Remove a winch to your nearby vehicle', -- IN DEVELOPMENT > withRope = 'Use a rope to steal the ATM', > drillATM = 'Initiate the final drilling into the ATM' > > }, > cadCall = { > callDesc = 'This is an automated call from an ATM alarm', > callerName = 'Automated ATM Alarm' > } > } > > ``` > [accordion] Default discord.lua > > ```lua theme={null} > DiscordConfig = { > enabled = false, -- Should discord webhooks be used? > webhook_url = '', -- See https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks > webhook_title = '{{EVENT_TYPE}} Alert', -- The title of the webhook embed > webhook_message = 'An ATM on {{STREET}} ({{POSTAL}}) is currently being stolen' -- The message that the webhook displays > } > ``` ## Setting Up Permissions (Ace Permissions Only) To use this script you must assign the permissions object to the groups which you would like to have permissions. You can find the objects needed in the config under `Config.ace_perms` section in the config. To assign these perms you must add the lines to your `server.cfg` or where ever you setup permissions on your server. You can learn more about Ace Permissions [here](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917). Example: ```lua theme={null} add_ace group.admin sonoran.atms allow add_ace group.leo sonoran.police allow add_ace group.hacker sonoran.theif allow ``` ## ATM Location Config You have two options for placing new ATMs: 1. You can use the command `/spawnnewatm [model] [label]` to initiate spawning a new ATM and generate the relevant config data * After running this command you must pull out, aim, and shoot with a gun to confirm placement. * You may need to modify some of the rotation values manually to get that perfect placement you are looking for. * [Click here for more information.](/store/general/gun-placement) 2. You can manually copy and paste an existing config and then modify the values to meet your needs for the new ATM ### `atms.json` Property Explanation | Property Name | Example | Notes | | - | - | - | | `ID` | 2 | `ID` must be unique. No other ATM can share this ID | | `Type` | `green` | Valid values are `old` and `blue`, `green`, `red` | | `Position` | | This is a table that contains the x, y, and z coords of the ATM | | `Rotation` | | This is a table that contains the x, y, and z rotation of the ATM | | `Label` | `Test 1` | This is a human readable label for the ATM, can have spaces | These are the default names of commands, they may have been modified by the server owner. ### Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/spawnnewatm [model] [label]` | This command will allow an admin to spawn a new ATM using a gun placement system where the name argument is the label for the new ATM and the prop argument is the text name of the model to use | Admin or as configured | | `/attachrope` | This command is used to attach the rope between the ATM and your vehicle | Everyone or as configured | | `/drillatm` | This command will initiate the final drilling into the ATM | Everyone or as configured | # Bandanas Source: https://docs.sonoransoftware.com/store/bandanas Pocket bandanas with real movement — built to flow naturally with every step. ## Small detail. Big improvement to your outfits. > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/bandanas/installation#texture-customization) Give your characters a more complete, lived-in look with the Sonoran Bandanas EUP accessory pack. These pocket bandanas are designed to move naturally with the player, adding personality and realism for gang clothing, civilian outfits, and custom EUP loadouts. ![](https://docs-assets.sonoransoftware.com/sha256/ca/cadc36dc9b31da698cb8e764ba0a4bba8ecd49708960a93c42bfdd04abda0e03.png) ## Made to move Static accessories can make an outfit feel flat. These bandanas include physics-enabled movement so they hang from the pocket and flow naturally as your character walks, runs, turns, and moves through the world. ![](https://docs-assets.sonoransoftware.com/sha256/2f/2f1fbff4d246f39a17f96233234bd29048238efe877e58771d98fdfdc0f6f805.gif) ## What’s included | Feature | Details | | - | - | | Positions | 8 unisex pocket positions | | Variations | 26 texture options | | Movement | Physics-enabled, natural movement | | Performance | Optimized for FiveM | | Model | Scratch-made original model | | Asset policy | No premade models or ripped assets | | Geometry | 2,169 polygons | | Distribution | Escrowed for secure distribution | ## Built for roleplay The Bandanas pack works across a wide range of server styles: * Gang and streetwear outfits * Civilian clothing and casual outfits * Custom EUP collections * Character-specific or faction-specific looks ## In-game location Finding the accessory is quick: 1. Open **vMenu**. 2. Open the **EUP / Player Appearance** clothing menu. 3. Select **Neck and Scarves**. 4. Scroll to the end of the category. 5. Choose a Bandana from slots **200–208**. ## Installation Installation is simple: download the ZIP from the Cfx.re Portal, unzip it, place the `sonoran-bandanas` folder in your server's `resources` directory, and add the resource to `server.cfg`. ```cfg theme={null} ensure sonoran-bandanas ``` For the full installation guide, EUP streamed-asset troubleshooting, Element Club checks, and server configuration steps, see: > [card] [Installation](/store/bandanas/installation) # Installation Source: https://docs.sonoransoftware.com/store/bandanas/installation Install Sonoran's pocket bandanas with real movement — built to flow naturally with every step. This guide covers downloading, installing, and locating the Sonoran Bandanas EUP accessory pack. > [!NOTE] > > The resource must be named `sonoran-bandanas` and the resource must be started with `ensure sonoran-bandanas`. > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/bandanas/installation#texture-customization) ## Download the Resource 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Open the purchased assets or packages area for the account that owns the Bandanas pack. 3. Download the Bandanas `.zip` file to your computer. ![](https://docs-assets.sonoransoftware.com/sha256/f2/f296ad08e24b12b9b16a988a9861a2cb60ed66bfec467d7a6b6993a71bb11fa9.png) *CFX Portal - Download* ![](https://docs-assets.sonoransoftware.com/sha256/cc/cc3e12b41f5ef07e5eda997c43e52a14b3a2186dfba24c7c55f6ea4e6d49d7b5.png) *Windows - Downloaded ZIP File* ## Install the Resource 1. Extract or unzip the downloaded file. ![](https://docs-assets.sonoransoftware.com/sha256/fa/fa282b9bec2d73ba2eba0b8bab49a392cfb5dc1869619c83b1ecc3d48fd67532.png) *Windows - Extract Zip File* ![](https://docs-assets.sonoransoftware.com/sha256/47/479b6eab864a7d3ebe0ddf58722b12a130d78dd1d53b24b4c1cf342064b2be65.png) *Windows - Choose Extract Location* 2. Open the extracted package and locate the resource folder. The folder should be named exactly: ``` sonoran-bandanas ``` ![](https://docs-assets.sonoransoftware.com/sha256/f3/f3b153c1da1d72861a7d32282b4de7848bded319dcb2ad2a22993538d55fc917.png) 3. Copy the complete `sonoran-bandanas` folder into your server's `resources` directory. A typical layout is: ``` server-data/ └── resources/ └── sonoran-bandanas/ ``` Do not put the folder inside an additional nested folder. The resource manifest should be directly inside `resources/sonoran-bandanas/`. ![](https://docs-assets.sonoransoftware.com/sha256/8c/8c4bd4e48b25c5b59a2dd3060421f27cce0ab7f0f5a9448a6bd714562f967b28.png) *Pterodactyl - Uploaded FIle* ![](https://docs-assets.sonoransoftware.com/sha256/f1/f1d69ab0812d6156b7c957f67314268850044303e0e541854136bb08b49033e9.png) *Pterodactyl - sonoran-bandanas folder* 4. Open your `server.cfg` and add the following line: ```cfg theme={null} ensure sonoran-bandanas ``` Place it with the other resources that are started when the server boots. ![](https://docs-assets.sonoransoftware.com/sha256/bb/bb543c77cb35d6bcb66e5f378becae6cfc4a54b5b0009d09753dab4d27b5eff6.png) 5. Save `server.cfg` and fully restart the FiveM server. ![](https://docs-assets.sonoransoftware.com/sha256/9f/9fde24b6af7b75e354d5ad3bd9ace9d259472af9cb3db15bbb291551e0be9d05.png) 6. Check the server console during startup. You should not see a missing resource, manifest, or file error for `sonoran-bandanas`. ![](https://docs-assets.sonoransoftware.com/sha256/2f/2fc106f3f7c274f76331f27ff4bf38c822e44fad7b6138401027f85b45c5b8cd.png) ## Locate the Bandanas In-Game The Bandanas pack is available as an EUP accessory through vMenu. 1. Join the server with a character that can access vMenu's clothing options. 2. Open **vMenu**. 3. Go to the **EUP / Player Appearance** clothing menu. 4. Open the **Neck and Scarves** category. 5. Scroll to the end of the category. The Bandanas are located in slots **200–208** on vMenu. 6. Select a slot to preview and equip the bandana. Use the texture/variation controls to cycle through the available designs. > [!NOTE] > > The exact appearance of the menu can vary slightly depending on your vMenu version and other EUP resources installed on the server. The Bandanas should still be at the end of **Neck and Scarves**, in slots **200–208**. ## EUP Streamed-Asset Troubleshooting If the resource starts but the Bandanas do not appear, appear invisible, or cause players to disconnect or crash when selecting them, the issue is usually related to FiveM streamed EUP asset limits rather than the `ensure` line. ### Confirm the resource is installed correctly * Confirm the folder is named `sonoran-bandanas`. * Confirm it is directly inside the server's `resources` folder. * Confirm `server.cfg` contains `ensure sonoran-bandanas`. * Confirm the server was fully restarted after the resource was added. * Confirm the server console does not report a missing manifest or failed file load. ![](https://docs-assets.sonoransoftware.com/sha256/22/2236f46b890e54ffffe9fae7fe2a990ac8645850ba84a8bc719826a9e6917de1.png) ### Check your Cfx.re Element Club subscription Some EUP streamed assets require an active Cfx.re **Element Club** subscription. If the resource is installed correctly but streamed clothing assets are not loading, verify that the server owner account has the required Element Club subscription for the EUP assets being used. 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Check the server owner's Element Club subscription status. 3. Confirm the subscription is active on the account associated with the server's Cfx.re license/key. 4. Restart the server after the subscription or account association is corrected. ![](https://docs-assets.sonoransoftware.com/sha256/c4/c45ff61da9b19ac0715f2245a202bcd1bcd66d7dd79ab80bfdbf0e3399b13584.png) > [!WARNING] > > Do not post private license keys, account information, or payment details in support channels or screenshots. ### Set the server to a maximum of 10 players If EUP assets still fail to stream, temporarily set the server's maximum player count to 10. Add or update this line in `server.cfg`: ```cfg theme={null} sv_maxclients 10 ``` Then fully restart the server and test the Bandanas again. ![](https://docs-assets.sonoransoftware.com/sha256/60/608347a104f88489f153ffc6c5796274d587f137b9de3ffe052b65a37387f7de.png) *TxAdmin - Setting Max Players to 10* ![](https://docs-assets.sonoransoftware.com/sha256/14/14e5b91b0eb0f2ac000f795ee729d962e83284cc7229e879f53fbbec0c3cc868.png) *RocketNode Panel - Setting Max Players to 10* > [!NOTE] > > Use the 10-player limit as a troubleshooting step while testing streamed EUP assets. Once the assets are working, you can test a higher player count again if your server setup and Cfx.re requirements support it. ### Clear client cache and test again After changing streamed assets or server settings: 1. Stop FiveM. 2. Clear the FiveM client cache using your normal FiveM cache-cleaning procedure. Do not delete your entire FiveM installation. 3. Restart FiveM and reconnect to the server. 4. Open vMenu and check **Neck and Scarves**, slots **200–208**, again. ### Test for resource conflicts Temporarily test with other recently added EUP or clothing resources disabled. If the Bandanas appear after another resource is disabled, re-enable resources one at a time to identify the conflict. ### Review the client and server logs Look for errors mentioning: * `sonoran-bandanas` * streamed assets * EUP clothing components * asset or archetype limits * texture or drawable loading When requesting support, include the relevant error text, your FiveM build, vMenu version, and a list of other EUP resources. Remove license keys and personal account information first. ## Quick Verification Checklist Use this checklist after installation: * [ ] The folder is named `sonoran-bandanas`. * [ ] The folder is directly inside the server's `resources` directory. * [ ] `server.cfg` contains `ensure sonoran-bandanas`. * [ ] The server was fully restarted. * [ ] The resource has no startup errors. * [ ] vMenu opens successfully. * [ ] **Neck and Scarves** is available in the EUP menu. * [ ] The Bandanas are visible in slots **200–208**. * [ ] If assets do not stream, Element Club status was checked and `sv_maxclients 10` was tested. ## Escrow Protection Sonoran’s Bandana EUP is protected through Tebex and Cfx.re Asset Escrow. This helps prevent unauthorized redistribution, leaks, and resale. #### Runs as a Separate Resource Because the asset is escrow-protected, the Bandana EUP must run as its own separate resource and cannot be merged into an existing clothing pack. The resource is heavily optimized for smooth performance, and textures can still be customized. #### Texture Customization This EUP cannot be edited through Durty Cloth Tool due to Asset Escrow restrictions. Textures can still be modified by opening the included `.ytd` file in OpenIV. # Bodycam Source: https://docs.sonoransoftware.com/store/bodycam Preserve incidents from an officer's body-worn perspective and manage the resulting evidence. Bodycam gives public-safety personnel a body-worn evidence workflow inside FiveM. It preserves activity before and after an incident, supports manual and automatic recording triggers, and lets authorized staff review the event later from the recorded wearer's perspective. ![Bodycam evidence terminal with a selected use-of-force recording](https://docs-assets.sonoransoftware.com/sha256/4a/4a3009bd873865c6ccf58c258dfd9cba554e19a165388e74204cbd7ae3c85ede.webp) *Record, search, review, and manage body-worn evidence from one in-game terminal.* > [!NOTE] > > **Bodycam is a paid DLC for the free Events Core package.** Install Events Core once to provide the shared recording, replay, storage, and event logic required by Bodycam and other Events products. Events Core does not add a separate gameplay interface by itself. ## Preserve the wearer's perspective Each eligible wearer receives one server-authorized camera attached to the configured ped bone. The rolling pre-event buffer helps preserve what led up to an incident instead of starting only after the record button was pressed. A recording can begin from: * A manual recording or saved buffer * The wearer's weapon discharge * Configured wearer damage or officer-down thresholds * A panic activation * A configured dispatch or integration trigger If another trigger occurs during an active recording, Bodycam adds an evidence marker to the same timeline instead of creating a duplicate recording. ## Review historic evidence Bodycam reconstructs the recorded incident inside FiveM from the saved gameplay state. Reviewers can play, pause, seek, skip, step through the timeline, change replay speed, and return to the single recorded bodycam perspective after the original wearer and scene are gone. The standard replay is not a conventional video file. Optional video generation, external storage, CAD, or Discord workflows require a separately configured Events Core integration. ## Control access and custody ACE permissions and optional framework job grades control who can wear and record with a bodycam, review their own or departmental evidence, add notes, classify records, lock or archive evidence, change retention, and delete unprotected records. Wearer eligibility can use permission/job access by itself, accept any enabled permission, inventory, or EUP check, or require every enabled check. EUP and inventory eligibility are evaluated on the server through editable integration adapters. ## How it works 1. An eligible, authorized player joins or changes into an approved duty state. 2. Bodycam binds one camera to the server-observed player ped. 3. A manual or automatic trigger starts a recording with pre-event context. 4. The finalized record appears in the Body-Worn Camera Evidence terminal. 5. An authorized reviewer searches for the record and reconstructs the incident from the recorded perspective. ## Requirements | Requirement | Details | | - | - | | Events Core | Free required package: [download Events Core](https://sonoran.store/packages/7606652-events-core) | | Events Bodycam | Paid Bodycam DLC from the [Sonoran Store](https://sonoran.store/) | | FXServer | A current FiveM server with OneSync enabled | | Permissions | ACE permissions or a supported framework job setup | | Framework | Standalone by default; ESX, QBCore, and Qbox context can be configured | | Database | No SQL database is required by the default configuration | ## Start here 1. Follow [Installation](/store/bodycam/installation) to install Events Core and Bodycam in the correct order. 2. Review [Configuration](/store/bodycam/configuration), [Wearer Setup](/store/bodycam/wearer-setup), and [Permissions](/store/bodycam/permissions). 3. Test manual and automatic [Recording](/store/bodycam/recording) with an eligible wearer. 4. Open the finalized record and test [Playback and Evidence](/store/bodycam/playback). Building an integration? See the [Developer API](/store/bodycam/developer-api) for supported exports and lifecycle events. For help, see [Troubleshooting](/store/bodycam/troubleshooting) or contact [Sonoran Software support](https://support.sonoransoftware.com/). # Configuration Source: https://docs.sonoransoftware.com/store/bodycam/configuration Configure Bodycam branding, capture settings, triggers, wearer eligibility, retention, permissions, and integrations. Bodycam ships with usable standalone defaults and requires the free Events Core package. Test configuration changes on a non-production server before using the system for evidence workflows. ## Configuration files ### Events Core | File | Purpose | | - | - | | eventsCore/config/config.lua | Framework selection, recording limits, replay speeds, processing, retention, and audit settings | | eventsCore/config/storage.lua | Local storage limits and optional allowed playback hosts | | eventsCore/config/permissions.lua | Permission behavior and trusted processing resources | | eventsCore/config/integrations.lua | Optional CAD and Discord settings | ### Bodycam | File | Purpose | | - | - | | eventsBodycam/config/config.lua | Branding, capture range, timing, triggers, keys, integrations, and request limits | | eventsBodycam/config/cameras.lua | Ped bone, camera offset, rotation offset, and field of view | | eventsBodycam/config/wearers.lua | Eligibility mode, duty requirement, inventory item, and EUP rules | | eventsBodycam/config/retention.lua | Retention days for each evidence classification | | eventsBodycam/config/permissions.lua | Bodycam ACE nodes, framework job grades, and trusted resources | | eventsBodycam/config/update.lua | Informational update-check toggle | | eventsBodycam/integrations/ | Optional dispatch, inventory, EUP, phone, voice-metadata, CAD, Discord, and clip-provider bridges | Keep API tokens, Discord webhooks, and private endpoints in server-only files. Never place credentials in client configuration or NUI files. ## Important shipped defaults | Setting | Default | | - | - | | Capture radius | 85 metres around the wearer | | Pre-event context | 60 seconds | | Automatic post-event time | 20 seconds | | Maximum manual recording | 1,800 seconds (30 minutes) | | Replay perspectives | One recorded bodycam perspective | | Bodycam bone | 24818, SKEL\_Spine3 | | Field of view | 78 degrees | | Open terminal | F6 | | Start or stop recording | F11 | | Add evidence marker | No default key; /bodycammark is available | | Trigger polling | Every 500 ms | | Manual, gunshot, damage, officer-down, and panic triggers | Enabled | | Damage threshold | 20 health points | | Officer-down threshold | 110 health or dead | | Trigger cooldown | 5 seconds | | CAD and Discord actions | Disabled | | Automatic update check | Disabled | ## Branding `Config.Brand` controls the department name, product name, accent color, timezone label, and privacy disclosure. Update the disclosure to describe your server's actual evidence and privacy policy. The default workflow stores reconstructed gameplay state and voice/radio activity metadata, not native voice audio bytes. ## Framework selection Events Core is standalone by default. Set its supported framework option to esx, qbcore, qbox, or automatic detection only when that framework is installed and available. Framework jobs can provide standard or elevated Bodycam actions using the grade tables in eventsBodycam/config/permissions.lua. ## Camera placement The shipped camera uses the upper-spine bone. Custom peds and EUP packs can place that bone differently, so verify the recorded angle with every supported uniform and ped before launch. Adjust the bone, offset, rotation, and field of view in eventsBodycam/config/cameras.lua on a test server. Server runtimes cannot always resolve exact animated bone coordinates. When that occurs, Events Core marks the recorded transform as approximate instead of presenting it as an exact bone sample. ## Recording and storage Events Core stores the incident data used for historic replay under eventsCore/data/recordings by default. Measure available disk space and establish a backup policy before raising capture limits or retention periods. Recordings can contain player, location, and incident information. ## Optional integrations CAD, Discord, dispatch, phone, inventory, EUP, voice metadata, and generated clips require separate configuration. Their shipped bridges are disabled, empty, or metadata-only until connected to compatible systems. Enable one integration at a time on a test server and keep credentials server-side. Bodycam's standard historic replay works without an encoded video file. Any separate video-generation or upload workflow requires a compatible, trusted recorder or processing setup in Events Core. # Developer API Source: https://docs.sonoransoftware.com/store/bodycam/developer-api Use the supported Events Bodycam client and server exports and integration events. Resource name: ``` eventsBodycam ``` All player requests remain subject to the server's wearer binding, trigger policy, permissions, access checks, rate limits, and payload limits. ## Client exports | Export | Returns | Description | | - | - | - | | `StartBodycamRecording(trigger)` | boolean | Submits a recording request for the local wearer. Defaults to `manual`. | | `StopBodycamRecording()` | boolean | Requests finalization of the local wearer's active recording. | | `SaveBodycamBuffer()` | boolean | Starts a manual save with the configured pre-event buffer. | | `AddBodycamMarker(label, markerType)` | boolean | Adds a marker to the active recording. Defaults to `Manual evidence marker` and `manual`. | | `IsBodycamRecording()` | boolean | Returns the local recording state. | | `GetActiveRecordingId()` | string or nil | Returns the local active recording ID. | ```lua theme={null} local accepted = exports.eventsBodycam:StartBodycamRecording('manual') if exports.eventsBodycam:IsBodycamRecording() then exports.eventsBodycam:AddBodycamMarker('Contact initiated', 'observation') end ``` An `accepted` result only means the client submitted the request. The server still checks eligibility, permissions, the server-observed ped binding, trigger configuration, cooldowns, and current recording state. Supported trigger names are `manual`, `save_buffer`, `gunshot`, `damage`, `officer_down`, `panic`, and `dispatch`. ## Server exports Server exports that act for a player require that player's server ID. They re-check access and evidence permissions. ### Read a recording ```lua theme={null} local recording, err = exports.eventsBodycam:GetBodycamRecording(recordingId, source) local canAccess = exports.eventsBodycam:CanAccessBodycamRecording(source, recordingId) ``` | Export | Returns | Description | | - | - | - | | `GetBodycamRecording(recordingId, playerSource)` | recording or nil, error or nil | Returns the recording when the player can access it. | | `CanAccessBodycamRecording(playerSource, recordingId)` | boolean | Checks whether the player can access the recording. | A server resource may omit `playerSource` only when its resource name is explicitly allowlisted in `Config.Permissions.TrustedResources` inside eventsBodycam/config/permissions.lua: ```lua theme={null} Config.Permissions.TrustedResources = { ['my-evidence-bridge'] = true } local recording, err = exports.eventsBodycam:GetBodycamRecording(recordingId) ``` Do not use the trusted form for player-initiated requests. Pass the player's source so Bodycam applies their permissions. ### Update a recording ```lua theme={null} local ok, err = exports.eventsBodycam:AttachIncidentToRecording(source, recordingId, 'INC-1042') local ok, err = exports.eventsBodycam:LockBodycamRecording(source, recordingId, 'Evidence hold') local ok, err = exports.eventsBodycam:AddBodycamEvidenceNote(source, recordingId, 'Reviewed by supervisor') ``` | Export | Returns | Description | | - | - | - | | `AttachIncidentToRecording(playerSource, recordingId, incident)` | boolean, error or nil | Sets the incident number. Maximum 128 characters. | | `LockBodycamRecording(playerSource, recordingId, reason)` | boolean, error or nil | Locks the recording. Defaults the reason to `external lock` when omitted. | | `AddBodycamEvidenceNote(playerSource, recordingId, body)` | boolean, error or nil | Adds an evidence note. Maximum 4,096 characters. | These calls fail when the recording is missing, inaccessible, locked where applicable, or the player lacks the required permission. ## Integration events ### Start from another client resource Use the local client event when an integration needs to request a supported trigger: ```lua theme={null} TriggerEvent('bodycam:integration:trigger', 'dispatch', { incident = 'INC-1042' }) ``` The server remains authoritative. Incident text is limited to 128 characters. ### Attach voice or radio metadata Bodycam accepts only the documented metadata event types: `voice_activity`, `radio_tx`, and `radio_channel`. ```lua theme={null} TriggerEvent('bodycam:client:audioEvent', 'radio_tx', { channel = 1, transmitting = true }) ``` This adds bounded event metadata to an active recording. Do not send audio bytes, media chunks, or credentials. ### Observe recording lifecycle ```lua theme={null} AddEventHandler('bodycam:client:recordingStarted', function(recordingId) -- Runs on the recording player's client. end) AddEventHandler('bodycam:client:recordingStopped', function(recordingId) -- Runs on the recording player's client. end) AddEventHandler('bodycam:server:recordingFinalized', function(recordingId, recording) -- Runs on the server after Events Core finalizes a Bodycam recording. end) ``` The server event includes a defensive recording table when it is available. Treat it as read-only. ## Security boundary No Bodycam API accepts media chunks, native audio bytes, screenshots, upload tokens, client-selected peds, file paths, or arbitrary recording URLs. Capture, reconstruction, storage, retention, and processing remain owned by Events Core. Events named `eventsBodycam:server:*` and `eventsBodycam:client:*` are internal request and synchronization routes. They are not a stable public API. Use the exports and integration events above instead. # Installation Source: https://docs.sonoransoftware.com/store/bodycam/installation Install the free Events Core dependency and paid Bodycam DLC in the correct order. Bodycam uses two separate resources: * [Events Core](https://sonoran.store/packages/7606652-events-core) is the free required package containing the shared recording, replay, storage, and event logic. * Events Bodycam is the paid DLC containing wearer eligibility, recording controls, the evidence terminal, and the body-worn replay perspective. > [!WARNING] > > Both packages are required. Events Core works behind the scenes and does not add a standalone gameplay interface. ## Before you begin You need: * A current FXServer with OneSync enabled * Access to the Cfx.re account that owns the granted assets * Access to the server's resource directory and server.cfg * Permission to add ACE rules or configure supported framework jobs * A test server or maintenance window for the first installation Both resources are protected by FiveM Asset Escrow. Edit only the included customer configuration and integration files. ## Download the resources 1. Obtain the free Events Core package from the Sonoran Store. 2. Obtain the paid Bodycam package from the Sonoran Store. 3. Sign in to the [Cfx.re Portal](https://portal.cfx.re/) using the account associated with the purchase. 4. Download and extract both granted assets. ## Verify the folders Keep the exact resource names. Each fxmanifest.lua must be directly inside its resource folder: ``` resources/ └── [sonoran]/ ├── eventsCore/ │ └── fxmanifest.lua └── eventsBodycam/ └── fxmanifest.lua ``` Do not add an extra nested folder such as eventsBodycam/eventsBodycam/fxmanifest.lua, and do not rename either resource. ## Configure the start order Add the following to server.cfg: ```cfg theme={null} set onesync on ensure eventsCore ensure eventsBodycam ``` Events Core must start first. Bodycam blocks startup if Core is missing, incompatible, or unavailable. ## Grant initial permissions For a first administrator test: ```cfg theme={null} add_ace group.bodycamadmin bodycam.use allow add_ace group.bodycamadmin bodycam.record allow add_ace group.bodycamadmin bodycam.review.all allow add_ace group.bodycamadmin bodycam.annotate allow add_ace group.bodycamadmin bodycam.classify allow add_ace group.bodycamadmin bodycam.archive allow add_ace group.bodycamadmin bodycam.lock allow add_ace group.bodycamadmin bodycam.delete allow add_ace group.bodycamadmin bodycam.admin allow ``` Assign the appropriate player identifier to group.bodycamadmin using your server's normal ACE setup. See [Permissions](/store/bodycam/permissions) before granting production access. ## Configure an eligible wearer The shipped `permission` eligibility mode accepts a wearer with bodycam.use through ACE or a configured on-duty framework job. Inventory and EUP checks are disabled by default. Review [Wearer Setup](/store/bodycam/wearer-setup) before enabling either adapter. ## First test 1. Fully restart the server and confirm eventsCore starts before eventsBodycam. 2. Join with the authorized test account. 3. Press F6 or run /bodycam to open the evidence terminal. 4. Press F11 to start a manual recording. 5. Run /bodycammark Initial test to add an evidence marker. 6. Press F11 again to finalize the recording. 7. Reopen the terminal, select the record, and open structured replay. 8. Repeat with an unauthorized account and confirm recording is denied. ## Updating 1. Stop the server and back up eventsCore/config/, eventsCore/data/, eventsBodycam/config/, and any customized eventsBodycam/integrations/ files. 2. Download the latest granted packages. 3. Replace the complete resource folders. 4. Merge your customer settings into the new configuration structure instead of copying protected files from an older version. 5. Start Events Core before Bodycam and repeat the first test. Do not run another bodycam recording resource for the same wearer while Events Bodycam is active. Backups may contain player, location, and incident information; store them securely and redact private information before sending anything to support. # Permissions Source: https://docs.sonoransoftware.com/store/bodycam/permissions Configure least-privilege access for Bodycam wearers, reviewers, supervisors, and administrators. Bodycam rechecks recording and evidence actions on the server. Grant only the actions each role needs. | ACE node | Purpose | | - | - | | bodycam.use | Qualify for permission-based wearer eligibility; action-specific permissions are still required | | bodycam.record | Start recordings and save the current buffer as an eligible wearer | | bodycam.review\.own | List and replay the user's own recordings | | bodycam.review\.department | List and replay recordings from the user's current department | | bodycam.review\.all | List and replay all accessible Bodycam recordings | | bodycam.annotate | Add notes and markers or update incident-related fields on accessible evidence | | bodycam.classify | Change an accessible recording's classification | | bodycam.archive | Archive records and change their retention | | bodycam.lock | Lock or unlock records | | bodycam.delete | Permanently delete unlocked and unpreserved records with a reason | | bodycam.admin | Use protected administrative diagnostics when available | ## Example roles ```cfg theme={null} # Wearers can record, review their own evidence, and add markers or notes. add_ace group.bodycamusers bodycam.use allow add_ace group.bodycamusers bodycam.record allow add_ace group.bodycamusers bodycam.review.own allow add_ace group.bodycamusers bodycam.annotate allow # Supervisors can review and manage evidence for their department. add_ace group.bodycamsupervisors bodycam.use allow add_ace group.bodycamsupervisors bodycam.record allow add_ace group.bodycamsupervisors bodycam.review.department allow add_ace group.bodycamsupervisors bodycam.annotate allow add_ace group.bodycamsupervisors bodycam.classify allow add_ace group.bodycamsupervisors bodycam.archive allow add_ace group.bodycamsupervisors bodycam.lock allow # Administrators can review all evidence and use protected actions. add_ace group.bodycamadmins bodycam.use allow add_ace group.bodycamadmins bodycam.record allow add_ace group.bodycamadmins bodycam.review.all allow add_ace group.bodycamadmins bodycam.annotate allow add_ace group.bodycamadmins bodycam.classify allow add_ace group.bodycamadmins bodycam.archive allow add_ace group.bodycamadmins bodycam.lock allow add_ace group.bodycamadmins bodycam.delete allow add_ace group.bodycamadmins bodycam.admin allow ``` Assign player identifiers to these groups using your server's existing ACE structure. If supervisors or administrators also need to review their own evidence through a different role layout, grant review\.own as well or configure group inheritance. ## Framework job grades When Events Core is configured for a supported framework, on-duty jobs can authorize Bodycam actions through eventsBodycam/config/permissions.lua: * JobGrades controls standard actions such as use, recording, own or departmental review, and annotations. * ElevatedJobGrades controls review-all, classification, archive, lock, deletion, and administrative actions. The shipped jobs are police, sheriff, ambulance, and fire. Their standard minimum grade is 0 and elevated minimum grade is 2. Change these values to match your framework's grade numbering and department policy. The wearer policy can also require an inventory item or EUP component. Passing those checks does not replace action permissions such as bodycam.record unless `EligibilityMode = 'any'` is intentionally configured for base wearer eligibility; recording and evidence actions are still authorized separately. ## Trusted integrations Leave `Config.Permissions.TrustedResources` empty unless a reviewed server integration explicitly needs the one-argument `GetBodycamRecording(recordingId)` lookup. Adding a resource grants that resource a trusted server-side evidence read path; it does not grant players additional permissions. Player-initiated requests should always use the player-scoped lookup so Bodycam can apply that player's evidence access. ## Least-privilege guidance * Give normal wearers review\.own instead of review\.all. * Give review\.department only to roles that should see coworkers' evidence. * Restrict classify, archive, lock, and delete to supervisors or evidence custodians. * Keep bodycam.delete separate from normal recording and review roles. * Treat TrustedResources as a server integration allowlist, not a convenience setting. * Test permissions with a non-administrator account before launch. # Playback and Evidence Source: https://docs.sonoransoftware.com/store/bodycam/playback Search Bodycam evidence, replay the recorded perspective, and manage notes, classifications, locks, archives, and retention. Finalized recordings appear in the Body-Worn Camera Evidence terminal for authorized reviewers. Press F6 or run /bodycamreview, then search or filter the evidence list and select a record. ## Find a recording The terminal can search the information attached to accessible evidence, including: * Recording ID * Officer name or callsign * Wearer model * Department * Incident or case number * Citation number * Arrest-report number You can also filter by classification and finalized state. The result list is permission-filtered, so users see only their own, departmental, or all Bodycam evidence according to their access. ## Recorded bodycam perspective Every Bodycam recording retains one body-worn camera definition. The shipped view is attached to the upper-spine bone with a 78-degree field of view. The recording keeps its captured perspective, so a reviewer can return after the original wearer or scene is gone. When exact animated bone coordinates were unavailable to the server during capture, the recorded transform may be marked approximate. Verify camera placement with the peds and uniforms used by your server. ## Playback controls Open **Structured Replay** from the selected record. The terminal supports: * Play and pause * Restart * Seek with the timeline * Skip backward or forward 10 seconds * Step backward or forward * Playback speeds of 0.25x, 0.5x, 1x, 2x, and 4x * Exiting replay and returning to the evidence terminal Bodycam recreates the incident inside FiveM from recorded gameplay state. A normal Bodycam replay is not an MP4 or continuous screen recording. Separate video generation or upload requires an optional compatible processing setup. ![Bodycam structured replay with timeline and playback controls](https://docs-assets.sonoransoftware.com/sha256/73/73c6f9921cd26dac655f794b9e4fc79b037c885d85acecef27d4e9e26fe355aa.webp) *Review the reconstructed timeline from the recorded bodycam perspective with markers and interactive playback controls.* ## Evidence details Depending on permissions, reviewers can: * Set the classification * Add or update incident, case, citation, and arrest-report numbers * Add operational notes * Lock or unlock the record * Archive or unarchive the record * Change retention days * Delete an unlocked, unpreserved record with a substantive reason Locked records cannot be edited or deleted until an authorized reviewer unlocks them. Preserved records cannot be deleted. Deletion is permanent and requires bodycam.delete. ![Bodycam evidence custody controls for locking, archiving, retention, and deletion](https://docs-assets.sonoransoftware.com/sha256/c2/c220e438d6aab842c09dfb8091538ebd4a2c638dddbf534bf7461cba740e837e.webp) *Authorized evidence custodians can protect, archive, retain, or delete records from the review terminal.* ## Shipped classifications and retention | Classification | Retention | | - | -: | | routine | 30 days | | traffic\_stop | 90 days | | arrest | 180 days | | use\_of\_force | 365 days | | officer\_involved\_shooting | No automatic expiry | | complaint | 365 days | | training | 30 days | | indefinite | No automatic expiry | Changing a record's classification applies that classification's configured retention policy. A retention value of 0 means the record has no automatic expiry. Bodycam accepts configured and manual values from 0 through the camera policy maximum of 3,650 days. Review your local evidence policy and available storage before changing retention. Record data is stored under eventsCore/data/recordings by default; back it up securely before updates or storage changes. # Recording Source: https://docs.sonoransoftware.com/store/bodycam/recording Start manual recordings, save pre-event context, and configure automatic Bodycam triggers. Bodycam maintains pre-event context around each eligible wearer so an incident can include what happened before the trigger. The shipped setup keeps 60 seconds of pre-event activity, captures within 85 metres of the wearer, and allows a manual recording to run for up to 30 minutes. ## Controls and commands | Action | Default key | Command | | - | - | - | | Open Body-Worn Camera Evidence | F6 | /bodycam | | Start or stop recording | F11 | /bodycamrecord | | Add a marker | None | /bodycammark \[label] | | Save the current buffer | - | /bodycamsave | | Activate panic recording | - | /bodycampanic | | Open evidence review | - | /bodycamreview | | Open the same terminal for administrative work | - | /bodycamadmin | Players can change registered FiveM key mappings in their FiveM settings. The server owner can change the shipped defaults in eventsBodycam/config/config.lua. Marker has no default key to reduce conflicts; set `Config.Keys.Marker` if your server wants one. Adding a manual marker requires access to the active recording and bodycam.annotate or a qualifying framework job grade. ## Manual recording 1. Join with an eligible wearer. 2. Press F11 or open the terminal and select **Start recording**. 3. Add markers when important moments occur. 4. Press F11 again or select **Stop recording** to finalize the evidence. The recording overlay displays the active recording ID, department, callsign, coordinates, and timezone label. The overlay is hidden while the full terminal is open so it does not cover the evidence interface. ![Compact Bodycam active recording overlay](https://docs-assets.sonoransoftware.com/sha256/57/57cedc8c42df0baca43a62dbc84fa951b864a8bbc9f2243508cdba9247e1322c.webp) *The compact overlay keeps recording identity, department, callsign, location, and timezone visible while the terminal is closed.* ## Save the current buffer Use **Save buffer** or /bodycamsave when something important has just happened. This starts a manual recording that includes the configured pre-event period. Stop the recording when the incident is complete; otherwise the configured maximum duration still applies. ## Automatic triggers The shipped configuration supports: * The wearer discharging a weapon * A health loss that reaches the configured damage delta * The wearer reaching the officer-down health threshold or dying * A panic activation * A trigger supplied by a configured dispatch integration Automatic recordings finalize after the configured post-event period. If a trigger occurs while a recording is already active, Bodycam adds a validated marker to that recording instead of creating a second session. ## Configure triggers Edit `Config.Triggers` in eventsBodycam/config/config.lua. Set Gunshot, Damage, OfficerDown, or Panic to false to disable that trigger. `DamageDelta` controls the minimum observed health loss, and `OfficerDownHealth` controls the down threshold. The client detects the local health or weapon event, but the server still checks the wearer binding, permissions, allowed trigger, request limits, and current session before recording or adding a marker. ## What is recorded Bodycam preserves the gameplay state needed to reconstruct relevant players, vehicles, peds, objects, projectiles, explosions, weapon events, damage events, movement, environment, and evidence markers around the wearer. The default product records voice and radio activity as event metadata only; it does not capture native voice audio. The camera follows one configured player-bone perspective. A reviewer cannot switch to vehicle-style alternate views during Bodycam replay. # Troubleshooting Source: https://docs.sonoransoftware.com/store/bodycam/troubleshooting Resolve common Bodycam installation, eligibility, recording, permission, replay, and evidence problems. Begin with the FXServer console and confirm both resources are current. Enable debug output only temporarily on a test server. ## Bodycam will not start Confirm the exact folder names and start order: ```cfg theme={null} ensure eventsCore ensure eventsBodycam ``` Each fxmanifest.lua must be directly inside its resource folder. Bodycam requires OneSync and a compatible Events Core version. Review the first eventsBodycam startup error instead of only later follow-on messages. If EUP eligibility is enabled, at least one valid rule and drawable are required. Invalid wearer, camera, retention, permission, or trigger settings also block startup. ## F6 does not open the terminal Confirm eventsBodycam is running, the configured Panel key is registered, and no other resource has taken the same key. Try /bodycam. If the command works, review the player's FiveM key bindings. ## The terminal opens but the evidence list is empty The list includes only recordings the player may review. Grant bodycam.review\.own, bodycam.review\.department, or bodycam.review\.all as appropriate, then confirm the recording has finalized. Framework users must be on duty when their job context requires it. ## Recording is denied Check all of the following: * The player has bodycam.record through ACE or the configured framework grade * The player passes the configured `permission`, `any`, or `all` wearer policy * The server can resolve a networked player ped * The framework does not report the wearer off duty when RequireOnDuty is enabled * Events Core is running and Bodycam completed startup * The trigger and request cooldowns have expired Ped changes, respawns, routing-bucket changes, and stale wearer bindings are revalidated server-side. ## EUP eligibility does not work Verify the component slot, drawable ID, and optional texture IDs against the actual ped variation. An empty texture table allows every texture for an approved drawable. If the server console reports that the EUP integration is unavailable, your runtime cannot provide the needed server variation natives. Connect eventsBodycam/integrations/eup.lua to a trusted server-side clothing resource. Do not send the component state from the client. ## Inventory eligibility does not work The shipped inventory adapter returns false until configured. Confirm the item name and implement `HasBodycamItem` in eventsBodycam/integrations/inventory.lua using your inventory's server API. Then verify that the selected eligibility mode actually uses the inventory result. ## An automatic trigger does not start Confirm the trigger is enabled in eventsBodycam/config/config.lua and the player is an eligible wearer with bodycam.record. For damage, verify the observed health loss reaches DamageDelta. For officer down, verify health reaches OfficerDownHealth or the ped dies. Panic can be tested with /bodycampanic. If a recording is already active, the trigger is added to that recording's timeline instead of creating another recording. ## A marker is not added Markers require an active recording, access to that recording, and bodycam.annotate or a qualifying framework job grade. Wait for the marker cooldown before trying again. Bodycam does not assign a marker key by default; use /bodycammark or configure `Config.Keys.Marker`. ## A user can record but cannot review Recording and review are separate permissions. Grant review\.own for personal evidence, review\.department for matching department evidence, or review\.all for broad review. Department access also requires the current framework department to match the department stored on the recording. ## Replay does not show a video file This is expected for the standard workflow. Bodycam uses structured in-game replay rather than a conventional video file. Select a recording and choose **Open Structured Replay**. Encoded video generation or upload requires a separately configured compatible processing setup. ## Replay is empty or stops Check the Events Core console for finalization, storage, reconstruction, or permission errors. Confirm eventsCore/data/recordings is writable and has available disk space. Create a new short recording with the shipped capture settings before increasing limits or testing custom integrations. ## The recorded angle is positioned incorrectly Custom peds, clothing, and EUP packs can place the configured bone differently. Adjust the bone, position offset, rotation offset, or field of view in eventsBodycam/config/cameras.lua on a test server. Verify the result with every supported ped and uniform. ## Classification or custody actions are denied Evidence access alone does not grant every action. Check bodycam.annotate, bodycam.classify, bodycam.archive, bodycam.lock, and bodycam.delete separately. Locked records cannot be edited or deleted, and preserved records cannot be deleted. ## Retention is not what you expected Changing classification applies the matching value from eventsBodycam/config/retention.lua. A value of 0 means no automatic expiry. To change retention manually, confirm the reviewer has bodycam.archive and the requested value is between 0 and the recording's maximum of 3,650 days. ## Problems after an update Replace both resources as complete packages, merge supported customer configuration into the new files, and start Events Core before Bodycam. Do not mix protected runtime files from different versions or restore old configuration without comparing its schema. ## Still need help? Collect the relevant startup and error lines, installed resource versions, reproduction steps, wearer policy and permission method, ped/uniform details when relevant, and the trigger or evidence action that failed. Remove tokens, webhooks, player identifiers, and other private information before contacting [Sonoran Software support](https://support.sonoransoftware.com/). # Wearer Setup Source: https://docs.sonoransoftware.com/store/bodycam/wearer-setup Choose who can wear a Bodycam using permissions, framework jobs, inventory, and server-observed EUP rules. A player must be an eligible, networked wearer before a recording can start. Eligibility and recording permission are separate: the wearer must pass the policy in eventsBodycam/config/wearers.lua and must also have bodycam.record through ACE or a configured framework job grade. ## Eligibility modes `Config.Wearers.EligibilityMode` supports three values: | Mode | Behavior | | - | - | | permission | Requires bodycam.use through ACE or a configured on-duty job. Inventory and EUP do not replace this check. | | any | Accepts the wearer when the permission check or any enabled inventory/EUP check passes. | | all | Requires the permission check and every enabled inventory/EUP check to pass. | The shipped mode is `permission`. `RequireOnDuty` is true, so a framework player explicitly reported as off duty is denied even if another enabled check would otherwise pass. ## Shipped configuration ```lua theme={null} Config.Wearers = { EligibilityMode = 'permission', RequireOnDuty = true, Inventory = { Enabled = false, Item = 'bodycam' }, EUP = { Enabled = false, Rules = {} } } ``` ## Permission and job eligibility The permission check accepts bodycam.use through ACE. When Events Core is configured for ESX, QBCore, or Qbox, an on-duty job listed in eventsBodycam/config/permissions.lua can also satisfy the check. The shipped job list contains police, sheriff, ambulance, and fire. Review both the wearer policy and [Permissions](/store/bodycam/permissions) before launch; bodycam.use alone does not grant bodycam.record or evidence access. ## Inventory eligibility Inventory eligibility is disabled by default, and the shipped adapter intentionally returns false until it is connected to your inventory system. To enable it: 1. Set `Config.Wearers.Inventory.Enabled` to true. 2. Set `Item` to the exact server-side inventory item name. 3. Edit eventsBodycam/integrations/inventory.lua so `HasBodycamItem` checks the trusted server inventory for the supplied player source. 4. Select `any` or `all` according to your policy. 5. Test adding, removing, and transferring the item. Do not accept a client event or client-supplied item state as proof of eligibility. ## EUP eligibility EUP rules match a component slot, one or more drawable IDs, and optional texture IDs on the server-observed player ped. An empty texture table accepts every texture for an allowed drawable. Example structure: ```lua theme={null} Config.Wearers.EUP = { Enabled = true, Rules = { { Component = 9, Drawables = { [1] = true }, Textures = {} } } } ``` Replace the example component and drawable IDs with the values used by your EUP pack. Component IDs must be between 0 and 11. At least one rule and one drawable are required when EUP eligibility is enabled. The default server adapter uses server variation natives when available. If your runtime cannot provide the variation, edit eventsBodycam/integrations/eup.lua to query your trusted clothing resource server-side. An unavailable or failing EUP adapter denies the EUP check. ## Choose a policy Common configurations include: * `permission`: trusted department members can use Bodycam regardless of uniform or inventory. * `any` with EUP enabled: a bodycam uniform component can qualify a wearer even without bodycam.use. * `all` with inventory and EUP enabled: the player needs bodycam.use, the configured inventory item, and an approved uniform component. `all` is the strictest option but depends on every enabled adapter being available. Test resource restarts and clothing/inventory failures so the policy denies access predictably. ## Test the policy After restarting Events Core and Bodycam: 1. Test an authorized on-duty wearer and start a recording. 2. Test an off-duty player when RequireOnDuty is enabled. 3. Test an unauthorized player with no inventory item or approved EUP component. 4. If inventory is enabled, add and remove the configured item. 5. If EUP is enabled, test every allowed drawable and texture plus one disallowed variation. 6. Change ped, uniform, duty state, or routing bucket and confirm Bodycam re-evaluates the binding. Eligibility loss, respawn, ped replacement, disconnect, and routing changes are reconciled server-side. Active sessions are finalized when the camera binding is removed, while completed evidence remains available according to its permissions and retention policy. # CCTV Source: https://docs.sonoransoftware.com/store/cctv Record incidents automatically and replay historic CCTV footage after the scene is clear. CCTV gives your FiveM server a persistent camera network that does more than show a live feed. Cameras record activity around motion detections and operator bookmarks so authorized staff can return later, find the incident in the archive, and replay what happened after the people and vehicles have left. ![Sonoran CCTV historic playback product overview](https://docs-assets.sonoransoftware.com/sha256/37/3788fbacd4b54e7e22fce1b037de3b9b7406dd1d8ba6c56ec8fbf12908819aba.webp) *Record incidents automatically, then return later to review the scene.* > [!NOTE] > > **CCTV is a paid DLC for the free Events Core package.** Install Events Core once to provide the shared recording, replay, storage, and event logic required by CCTV and other Events DLC. Events Core does not add a separate gameplay interface by itself. ## Replay the past CCTV preserves the activity around an incident instead of requiring an operator to watch every camera live. Motion events and manual bookmarks create archive entries with before-and-after context. Reviewers can later open a recording and control the historic playback. ![A person captured by a CCTV camera](https://docs-assets.sonoransoftware.com/sha256/16/16a59b0cde2f56fce07bb8322f95329af5f1892f564d2d3720c503bab621926e.webp) *A subject captured from a configured CCTV camera.* Historic playback includes: * Play, pause, seek, restart, and timeline navigation * Skip backward or forward and step through the recording * Adjustable playback speed * The camera angle saved when the incident occurred * Archive controls for reviewing, preserving, exporting, or sharing recordings when configured ![CCTV recording archive and historic playback controls](https://docs-assets.sonoransoftware.com/sha256/94/9441c0a0b197e98c13ac602a293654196b6369e0be22ba32840416210391ea8e.webp) *Motion detections and bookmarks remain available in the archive for later review.* ## Complete camera management * Create persistent terminals and organize cameras into permission-controlled groups * Place and reposition cameras in the world * View cameras live with zoom and optional pan or tilt * Configure field of view, capture range, event cooldowns, and retention * Enable motion-triggered recordings or create manual bookmarks * Use normal, night-vision, and configured viewing modes * Optionally discover compatible CCTV props already included in maps and MLOs * Control administrators, live viewers, reviewers, deletion, uploads, Discord sharing, and remote access with ACE permissions ![CCTV camera network operator screen](https://docs-assets.sonoransoftware.com/sha256/ac/ac5b7823504f66d54252e245930781bab63361ff5ad4c790390e4eb438d95ada.webp) *Persistent terminals and permission-filtered cameras appear in one operator interface.* ## How it works 1. An administrator creates a terminal and adds one or more cameras. 2. A camera detects configured activity, or an operator creates a bookmark. 3. Events Core preserves the incident with pre-event and post-event context. 4. The recording appears in the CCTV archive. 5. An authorized reviewer opens the recording and replays the historic scene. CCTV can also be used for live monitoring, but live viewing is not required for an incident to be recorded. ## Requirements | Requirement | Details | | - | - | | Events Core | Free required package: [download Events Core](https://sonoran.store/packages/7606652-events-core) | | Events CCTV | Paid DLC package: [download CCTV](https://sonoran.store/packages/7606654-events-cctv) | | FXServer | A current FiveM server with OneSync enabled | | Permissions | ACE permissions for administrators, operators, and reviewers | | Framework | Standalone by default; ESX, QBCore, and Qbox context can be configured | | Database | No SQL database is required by the default configuration | ## Start here 1. Follow [Installation](/store/cctv/installation) to install Events Core and CCTV in the correct order. 2. Review [Configuration](/store/cctv/configuration) and [Permissions](/store/cctv/permissions). 3. Create your first terminal and camera with [Camera Setup](/store/cctv/camera-setup). 4. Test both live viewing and [Historic Playback](/store/cctv/playback). Building an integration? See the [Developer API](/store/cctv/developer-api) for the supported remote-session exports. For help, see [Troubleshooting](/store/cctv/troubleshooting) or contact [Sonoran Software support](https://support.sonoransoftware.com/). # Camera Setup Source: https://docs.sonoransoftware.com/store/cctv/camera-setup Create CCTV terminals and cameras, place them in-world, and optionally enroll map or MLO camera props. A terminal controls which cameras an operator can see and how long recordings are retained. Cameras define the viewpoint, field of view, capture range, motion behavior, and viewing capabilities. ![CCTV terminal and camera administration](https://docs-assets.sonoransoftware.com/sha256/a8/a8104c2433286844d6180711caa6b73a00b9b773c0da428d1a55c8ee2589172e.webp) *Create, place, reposition, and manage terminals and cameras from the Settings tab.* ## Create a terminal 1. Run /cctv with cctv.admin. 2. Open **Settings**. 3. Enter a unique terminal ID and a customer-facing display name. 4. Choose a group and retention period. 5. Set the interaction distance and enable remote access only if required. 6. Select **Placement mode** to place the terminal, or enter coordinates. 7. Save the terminal. Use groups such as police, fire, or a location name to keep access narrow. Terminal access can be controlled with `cctv.terminal.` and remote groups with `cctv.remote.`. ## Create a camera 1. Select the destination terminal. 2. Enter a unique camera ID and name. 3. Configure the event cooldown, field of view, and capture range. 4. Enable recording and motion triggers as required. 5. Select **Placement mode** to position and aim the camera. 6. Save the camera. 7. Open the live view and confirm the intended area is visible. 8. Trigger a test recording and verify its historic playback. ![A physical CCTV camera placed in the game world](https://docs-assets.sonoransoftware.com/sha256/66/660d38909e9c6776592f2b26ea4177859c26d925c07112f63f0d664267a72955.webp) *A configured CCTV camera mounted in the game world.* ## Camera defaults and limits | Setting | Shipped value | | - | - | | Model | prop\_cctv\_cam\_01a | | Field of view | 60 degrees | | Zoom range | 25–90 degrees | | Capture range | 75 metres | | Motion cooldown | 10 seconds per entity | | Cameras per terminal | Up to 32 | | Maximum capture range | 250 metres | | Recording and motion | Enabled | | Zoom | Enabled | | Pan and tilt | Disabled unless supported by the camera | Moving or deleting a live camera does not change the angle saved with an already finalized recording. ## Camera models and offsets Custom map or MLO models must be added to the allowed-camera list and given a model-specific position offset, rotation offset, and field of view. CCTV models do not all point along the same local axis, so test each model in its actual interior. Always verify a manual camera's live view, historic playback perspective, routing bucket, and duplicate behavior before enabling automatic discovery. ## Automatic map and MLO cameras Automatic discovery is optional and disabled by default. When enabled, CCTV scans nearby streamed camera props and registers them as normal logical cameras. Edit eventsCctv/config/cameras.lua: ```lua theme={null} Config.AutoEnrollMapCameras.enabled = true Config.AutoEnrollMapCameras.scanOnResourceStart = true Config.AutoEnrollMapCameras.scanOnAreaChange = true Config.AutoEnrollMapCameras.scanCooldown = 10000 Config.AutoEnrollMapCameras.scanRadius = 250.0 Config.AutoEnrollMapCameras.maxAutoEnrolledCameras = 500 Config.AutoEnrollMapCameras.activateOnDiscovery = true Config.AutoEnrollMapCameras.persistDiscoveredCameras = true ``` The shipped compatible model list includes: ``` prop_cctv_cam_01a, prop_cctv_cam_01b, prop_cctv_cam_02a, prop_cctv_cam_03a, prop_cctv_cam_04a, prop_cctv_cam_04b, prop_cctv_cam_04c, prop_cctv_cam_05a, prop_cctv_cam_06a, prop_cctv_cam_07a ``` For a custom model, add it to both configured model allowlists and define its offsets: ```lua theme={null} Config.AutoEnrollCameraModelSettings['my_mlo_cctv'] = { positionOffset = { x = 0.0, y = -0.35, z = 0.15 }, rotationOffset = { x = -15.0, y = 0.0, z = 180.0 }, fov = 65.0 } ``` ## Discovery commands ``` /camerascan /cameraautoscanstatus /cameracleanauto confirm /cameracleanauto stale confirm ``` These commands require cctv.admin. Enter an MLO before scanning so its objects are streamed. Review the status repeatedly before using a cleanup command; cleanup does not remove manually configured cameras. ![CCTV camera network showing terminals and camera feeds](https://docs-assets.sonoransoftware.com/sha256/ac/ac5b7823504f66d54252e245930781bab63361ff5ad4c790390e4eb438d95ada.webp) *Configured and automatically enrolled cameras use the same operator network.* # Configuration Source: https://docs.sonoransoftware.com/store/cctv/configuration Configure CCTV interaction, cameras, recordings, retention, permissions, and optional integrations. CCTV ships with conservative defaults and does not require a roleplay framework. It still requires the free Events Core package. Test configuration changes before using the system for production evidence workflows. ![CCTV terminal and camera settings screen](https://docs-assets.sonoransoftware.com/sha256/44/443c85b466b1c913472882dc7e859a7964f798427f297b374d4465349eb87494.webp) *Administrators can manage terminals, cameras, capture settings, and placement from the CCTV interface.* ## Configuration files ### Events Core | File | Purpose | | - | - | | eventsCore/config/config.lua | Framework context, recording limits, pre-event and post-event timing, replay limits, and retention | | eventsCore/config/storage.lua | Local storage limits and optional allowed playback hosts | | eventsCore/config/permissions.lua | Permission behavior and trusted helper resources | | eventsCore/config/integrations.lua | Optional Discord settings | ### CCTV | File | Purpose | | - | - | | eventsCctv/config/config.lua | Interaction, live view, remote access, motion detection, overlays, and persistence | | eventsCctv/config/cameras.lua | Camera defaults, models, presets, and optional map-camera discovery | | eventsCctv/config/permissions.lua | CCTV ACE nodes and terminal access prefixes | | eventsCctv/config/remote.lua | Server-only allowlist for trusted remote integrations | | eventsCctv/config/update.lua | Informational update-check toggle | Keep API tokens, Discord webhooks, and private endpoints in server-only files. Never place credentials in client configuration or NUI files. ## Important shipped defaults | Setting | Default | | - | - | | Interaction mode | Text interaction with supported target-system options | | Terminal model | prop\_monitor\_01c | | Interaction distance | 2 metres | | Camera model | prop\_cctv\_cam\_01a | | Camera field of view | 60 degrees | | Camera capture range | 75 metres | | Motion polling | Every 500 ms | | Motion cooldown | 10 seconds per entity | | Minimum motion | 0.75 metres | | Pre-event / post-event context | 15 seconds each | | Recording retention | 7 days by default | | Maximum configured retention | 90 days | | Maximum live viewers | 8 per camera | | Remote-view session | 300 seconds | | Persistence | Enabled at eventsCctv/data/cctv.json | | Night vision | Enabled | | Thermal mode | Disabled | ## Framework selection Events Core is standalone by default. Set its supported framework option to esx, qbcore, qbox, or automatic detection only when that framework is available on the server. ACE remains the default permission source. ## Recording and retention Events Core stores the incident data used for historic playback under eventsCore/data/recordings by default. CCTV stores terminal and camera configuration in eventsCctv/data/cctv.json. Measure available disk space and establish a backup policy before increasing retention. Recordings can contain player, vehicle, and incident information. ## Optional integrations Discord, remote viewing, external storage, and recording uploads are optional and disabled or restricted by default. Enable one integration at a time on a test server, keep credentials server-side, and grant only the required permissions. ## Map and MLO cameras Automatic discovery of compatible camera props is disabled by default. Configure and verify a manual camera first, then follow [Camera Setup](/store/cctv/camera-setup#automatic-map-and-mlo-cameras) before enabling discovery. # Developer API Source: https://docs.sonoransoftware.com/store/cctv/developer-api Use the supported Events CCTV server exports for remote viewing integrations. Resource name: ``` eventsCctv ``` CCTV currently exposes two server exports for trusted remote-view integrations. It does not expose client exports or public camera-management functions. ## Setup Remote access is disabled by default. Enable it and allowlist each calling server resource in `eventsCctv/config/remote.lua`: ```lua theme={null} Config.RemotePanel = { Enabled = true, SessionTtlSeconds = 300, TrustedResources = { ['my-cctv-web-bridge'] = true } } ``` The player must also be online and authorized for the requested terminal. The terminal must be enabled with `RemoteAccessEnabled = true`. ## Server exports ### `CreateRemoteSession(playerSource, terminalId)` Creates a short-lived session for an authorized player and terminal. ```lua theme={null} local token, err = exports.eventsCctv:CreateRemoteSession(source, 'mission-row') if not token then print(err) end ``` | Parameter | Type | Description | | - | - | - | | `playerSource` | number | Online player's server ID | | `terminalId` | string | Existing CCTV terminal ID | Returns `token, nil` on success or `nil, errorMessage` on failure. The token is a 48-character secret. Do not log it or send it to another player. ### `ValidateRemoteSession(token)` Validates a session and returns the cameras available through its terminal. ```lua theme={null} local session, err = exports.eventsCctv:ValidateRemoteSession(token) if session then print(session.terminalId, session.expiresAt, #session.cameras) end ``` The result contains: | Field | Type | Description | | - | - | - | | `terminalId` | string | Authorized terminal ID | | `cameras` | array | Enabled cameras assigned to the terminal | | `expiresAt` | number | Session expiration as a Unix timestamp | Returns `nil, errorMessage` when the token is expired, belongs to another calling resource, or access has been revoked. Validation re-checks the player, terminal, remote-access setting, and permissions each time. ## Security boundary Both exports must be called from an allowlisted server resource. A token is bound to the resource that created it and cannot be validated by a different resource. Events named `eventsCctv:server:*` and `eventsCctv:client:*` are internal request and synchronization routes. They are not a stable public API. Do not call them from integrations. # Installation Source: https://docs.sonoransoftware.com/store/cctv/installation Install the free Events Core dependency and paid CCTV DLC in the correct order. CCTV uses two separate resources: * [Events Core](https://sonoran.store/packages/7606652-events-core) is the free required package containing the shared logic used by CCTV and other Events DLC. * [Events CCTV](https://sonoran.store/packages/7606654-events-cctv) is the paid DLC containing the camera network, archive, historic playback, and operator tools. > [!WARNING] > > Both packages are required. Events Core works behind the scenes and does not add a standalone gameplay interface. ## Before you begin You need: * A current FXServer with OneSync enabled * Access to the Cfx.re account that owns the granted assets * Access to the server's resource directory and server.cfg * Permission to add ACE rules * A test server or maintenance window for the first installation Both resources are protected by FiveM Asset Escrow. Edit only the included customer configuration files. ## Download the resources 1. Obtain the free Events Core package from the Sonoran Store. 2. Obtain the paid CCTV package from the Sonoran Store. 3. Sign in to the [Cfx.re Portal](https://portal.cfx.re/) using the account associated with the purchase. 4. Download and extract both granted assets. ## Verify the folders Keep the exact resource names. Each fxmanifest.lua must be directly inside its resource folder: ``` resources/ └── [sonoran]/ ├── eventsCore/ │ └── fxmanifest.lua └── eventsCctv/ └── fxmanifest.lua ``` Do not add an extra nested folder such as eventsCctv/eventsCctv/fxmanifest.lua, and do not rename either resource. ## Configure the start order Add the following to server.cfg: ```cfg theme={null} set onesync on ensure eventsCore ensure eventsCctv ``` Events Core must start first. CCTV will not start correctly if the required Core version is missing or outdated. ## Grant initial permissions For a first administrator test: ```cfg theme={null} add_ace group.cctvadmin cctv.admin allow add_ace group.cctvadmin cctv.live.view allow add_ace group.cctvadmin cctv.recording.view allow add_ace group.cctvadmin cctv.recording.create allow ``` Assign the appropriate player identifier to group.cctvadmin using your server's normal ACE setup. See [Permissions](/store/cctv/permissions) before granting production access. ## First test 1. Fully restart the server and confirm eventsCore starts before eventsCctv. 2. Join with the test administrator account. 3. Run /cctv. 4. Create a terminal and camera in a test area. 5. Open the camera's live view. 6. Trigger motion or create a bookmark. 7. Wait for the recording to finish, then open the archive and replay it. 8. Confirm the recording can still be reviewed after the subject leaves the area. ## Updating 1. Stop the server and back up eventsCore/config/, eventsCore/data/, eventsCctv/config/, and eventsCctv/data/cctv.json. 2. Download the latest granted packages. 3. Replace the complete resource folders. 4. Merge your customer settings into the new configuration structure instead of copying protected files from an older version. 5. Start Events Core before CCTV and repeat the first test. Backups may contain player, vehicle, or incident information. Store them securely and redact sensitive information before sending anything to support. # Permissions Source: https://docs.sonoransoftware.com/store/cctv/permissions Configure least-privilege ACE access for CCTV administrators, live viewers, and recording reviewers. CCTV checks permissions on the server. Grant only the actions each role needs. | ACE node | Purpose | | - | - | | cctv.admin | Create and manage terminals, cameras, placement, and persistence | | cctv.live.view | View permitted cameras live | | cctv.recording.view | Open the archive and replay permitted recordings | | cctv.recording.create | Create manual recordings or bookmarks | | cctv.recording.delete | Delete recordings | | cctv.recording.upload | Use the configured upload workflow | | cctv.discord.send | Use the configured Discord workflow | | cctv.remote.all | Access all remotely available terminal groups | ## Example roles ```cfg theme={null} add_ace group.cctvadmin cctv.admin allow add_ace group.cctvadmin cctv.live.view allow add_ace group.cctvadmin cctv.recording.view allow add_ace group.cctvadmin cctv.recording.create allow add_ace group.cctvstaff cctv.live.view allow add_ace group.cctvstaff cctv.recording.view allow add_ace group.cctvstaff cctv.recording.create allow add_ace group.cctvsupervisor cctv.recording.delete allow add_ace group.cctvsupervisor cctv.recording.upload allow add_ace group.cctvsupervisor cctv.discord.send allow ``` Assign player identifiers to these groups using the server's existing ACE structure. ## Terminal-specific access Use the following nodes to restrict access more precisely: * `cctv.terminal.` grants access to one terminal. * `cctv.remote.` grants remote access to one terminal group. * `cctv.remote.all` grants remote access across every group. Prefer terminal or group permissions over cctv.remote.all. Automatic camera discovery, status, and cleanup require cctv.admin. ## Optional integrations Upload and Discord permissions do not enable those integrations by themselves. The server-only integration must also be configured. Do not grant upload, deletion, sharing, or broad remote access to normal viewers unless their role requires it. # Live View and Historic Playback Source: https://docs.sonoransoftware.com/store/cctv/playback Monitor CCTV cameras live and replay recorded incidents later from the archive. CCTV is built around historic review. Operators do not need to be watching a camera when an incident happens: configured motion detections and bookmarks create recordings that can be opened later from the archive. ![CCTV archive containing motion-detected recordings](https://docs-assets.sonoransoftware.com/sha256/06/067472af0d9943a72f042fc606f0a69e6a38a62480b902519f7cf1db1a48c516.webp) *The archive lists captured incidents for authorized reviewers.* ## Record an incident A recording can begin from: * A configured motion detection * An operator bookmark * Another supported, authorized event workflow Events Core preserves pre-event and post-event context so the replay is not limited to the exact instant that triggered it. Each finalized recording keeps the camera definition and angle from the time of the incident. ## Review historic footage 1. Run /cctv. 2. Open **Archive**. 3. Find the recording by event type, camera, or time. 4. Select the view or play action. 5. Use the playback controls to review the incident. Reviewers can pause, seek, skip backward or forward, step through the timeline, restart, and change playback speed. Moving or deleting the current camera does not rewrite the viewpoint saved with a completed recording. ![Historic CCTV recordings ready for replay](https://docs-assets.sonoransoftware.com/sha256/94/9441c0a0b197e98c13ac602a293654196b6369e0be22ba32840416210391ea8e.webp) *Return later and replay what happened after the scene has cleared.* ## What is preserved Events Core records the gameplay state required to recreate the incident, including relevant entities, movement, the environment, event markers, and the camera perspective. This makes later in-game replay possible without continuously streaming a live camera to an operator. When optional upload, export, or Discord workflows are configured, the archive actions and permissions control who can create or share an additional recording artifact. ## Live view Live view opens the selected camera immediately. Each camera supports up to eight viewers by default. Zoom is enabled; pan and tilt depend on the camera's configured capabilities. Live view and historic recording are separate workflows. Watching a feed does not replace motion or bookmark recording, and a recording can be captured without anyone viewing the feed. ## Night vision and overlays The shipped presentation includes timestamps, the Sonoran Security watermark, and night vision. Thermal viewing is disabled by default. ![CCTV camera using night vision](https://docs-assets.sonoransoftware.com/sha256/90/90dff67f260494eb33775b87cf2ff13f3293f3eb0c87763a81ab5b062eb802ab.webp) *Night vision can be toggled for dark locations when enabled in configuration.* ## Retention and storage The default recording retention is seven days, with a configured maximum of 90 days. Local recording data is stored under eventsCore/data/recordings; terminal and camera state is stored in eventsCctv/data/cctv.json. Use the archive's preserve and deletion controls only with the corresponding permissions. Back up evidence data securely before updates or storage changes. # Troubleshooting Source: https://docs.sonoransoftware.com/store/cctv/troubleshooting Resolve common CCTV installation, camera, permission, recording, playback, and persistence problems. Begin with the FXServer console and confirm both resources are current. Enable debug output only temporarily on a test server. ## CCTV will not start Confirm the exact folder names and start order: ```cfg theme={null} ensure eventsCore ensure eventsCctv ``` Each fxmanifest.lua must be directly inside its resource folder. CCTV requires the free Events Core package and will not initialize correctly if Core is missing, starts later, or is below the required version. ## /cctv does nothing Confirm eventsCctv is running and the player has an appropriate permission such as cctv.admin, cctv.live.view, or cctv.recording.view. Check the server console for denied permission or configuration messages. ## The interface opens but an action is denied Check: * The ACE node for the requested action * The player's ACE group membership * Terminal-specific access with `cctv.terminal.` * Remote group access with `cctv.remote.` * The resource's server-only permission configuration ## A camera is listed but cannot be viewed Verify cctv.live.view, terminal access, the camera's enabled state, routing bucket, distance rules, and the live-view viewer limit. Reopen the interface after correcting access. ## A recording does not appear Confirm: 1. Recording is enabled on the camera. 2. Motion triggers are enabled or an authorized bookmark was created. 3. The subject was inside the configured capture range and camera view. 4. The event cooldown had expired. 5. Events Core had time to finish the configured post-event period. 6. The reviewer has cctv.recording.view. ## Historic playback is empty or stops Check the server console for recording finalization or storage errors. Confirm the Events Core data directory is writable and has available disk space. Test a new recording with the default capture range and timing before increasing limits. ## Map or MLO cameras are not found Automatic discovery is disabled by default. After enabling it: 1. Enter the MLO so its objects are streamed. 2. Run /camerascan. 3. Run /cameraautoscanstatus. 4. Confirm the model is in both configured allowlists. 5. Verify the model-specific position and rotation offsets. ## An automatically discovered camera disappears after restart Enable both CCTV persistence and persistDiscoveredCameras. If discovered-camera persistence is disabled, those records are intentionally temporary. Review repeated scan status before using either cleanup command. ## Settings or cameras reset after restart Check that eventsCctv/data/cctv.json exists and can be written by the FXServer process. Restore a known-good backup only while the resource is stopped. ## Upload or Discord actions fail Confirm the server-side integration is enabled and configured, then verify cctv.recording.upload or cctv.discord.send. Keep endpoints, tokens, and webhooks out of client files and redact them from support logs. ## Problems after an update Replace both resources as complete packages, merge supported customer configuration into the new files, and start Events Core before CCTV. Do not mix protected runtime files from different versions. Restore data only after confirming it is compatible with the new release. ## Still need help? Collect the relevant startup and error lines, installed resource versions, reproduction steps, and whether the issue affects live view, recording, or playback. Remove tokens, webhooks, player identifiers, and other private information before contacting [Sonoran Software support](https://support.sonoransoftware.com/). # Dashcam Source: https://docs.sonoransoftware.com/store/dashcam Capture vehicle incidents automatically and review them later from six dashcam viewpoints. Dashcam gives emergency and fleet vehicles a complete mobile-evidence workflow. It can preserve activity before and after an incident, start from manual or automatic triggers, and let authorized staff return later to review what happened from six vehicle-mounted viewpoints. ![Events Dashcam incident replay and mobile evidence overview](https://docs-assets.sonoransoftware.com/sha256/d3/d36f61f359621943f010428409add42a204bd64ebcfe69812019484e35ae4359.webp) *Record the real vehicle perspective, then reconstruct and replay the incident later.* > [!NOTE] > > **Dashcam is a paid DLC for the free Events Core package.** Install Events Core once to provide the shared recording, replay, storage, and event logic required by Dashcam and other Events products. Events Core does not add a separate gameplay interface by itself. ## Capture the full incident The rolling pre-event buffer helps preserve what led up to an incident, not only what happened after the record button was pressed. A recording can begin manually or from configured activity such as emergency lights, a siren, a collision, a nearby gunshot, or a speed threshold. Operators can: * Start or stop a recording from the evidence terminal, a keybind, or a command * Save the current buffer with the configured pre-event context * Add labeled evidence markers while a recording is active * See recording status, department, speed, and coordinates in the in-game overlay * Search finalized evidence by recording, vehicle, plate, department, incident, case, citation, or arrest-report information ![Dashcam active recording status overlay](https://docs-assets.sonoransoftware.com/sha256/88/8891a6d197536e667f6c495b977bc766a3deef3144a78a40487d4182d5026820.webp) *The compact overlay keeps the recording ID, department, speed, location, and timezone visible while the terminal is closed.* ## Review from six viewpoints Each vehicle recording can be reviewed from front, rear, cabin, prisoner, left, and right views. Reviewers can play, pause, seek, skip, step through the timeline, change speed, and switch viewpoints without returning to the original vehicle. Dashcam replay reconstructs the recorded incident inside FiveM. It is not a conventional video file by default, so historic review does not depend on someone watching or streaming the camera live when the incident occurs. ![Dashcam Mobile Evidence terminal with an active structured replay](https://docs-assets.sonoransoftware.com/sha256/f3/f3101a9c5c470eea80add50456a5dad2da3cba52401f9827b405f2d24bbc4017.webp) *Review the recorded timeline and switch among all six vehicle-mounted viewpoints.* ## Manage evidence access ACE permissions and optional framework job grades control who can record, review their own or departmental evidence, add notes, classify records, lock or archive evidence, change retention, and delete unprotected records. The shipped retention policy includes separate periods for routine recordings, traffic stops, arrests, use-of-force incidents, training, and indefinite retention. ## How it works 1. An authorized driver enters an eligible vehicle. 2. A manual or automatic trigger starts a recording with pre-event context. 3. The recording captures the configured area around the moving vehicle. 4. The finalized record appears in the Mobile Evidence terminal. 5. An authorized reviewer searches for the record, opens it, and replays the incident from any of the six views. ## Requirements | Requirement | Details | | - | - | | Events Core | Free required package: [download Events Core](https://sonoran.store/packages/7606652-events-core) | | Events Dashcam | Paid DLC: [download Dashcam](https://sonoran.store/packages/7618996-events-dashcam) | | FXServer | A current FiveM server with OneSync enabled | | Permissions | ACE permissions or a supported framework job setup | | Framework | Standalone by default; ESX, QBCore, and Qbox context can be configured | | Database | No SQL database is required by the default configuration | ## Start here 1. Follow [Installation](/store/dashcam/installation) to install Events Core and Dashcam in the correct order. 2. Review [Configuration](/store/dashcam/configuration), [Vehicle Setup](/store/dashcam/vehicle-setup), and [Permissions](/store/dashcam/permissions). 3. Test manual and automatic [Recording](/store/dashcam/recording) in an eligible vehicle. 4. Open the finalized record and test [Playback and Evidence](/store/dashcam/playback). Building an integration? See the [Developer API](/store/dashcam/developer-api) for supported exports and lifecycle events. For help, see [Troubleshooting](/store/dashcam/troubleshooting) or contact [Sonoran Software support](https://support.sonoransoftware.com/). # Configuration Source: https://docs.sonoransoftware.com/store/dashcam/configuration Configure Dashcam branding, capture settings, triggers, vehicles, retention, permissions, and optional integrations. Dashcam ships with usable defaults and can run without a roleplay framework. It still requires the free Events Core package. Test changes on a non-production server before using the system for evidence workflows. ## Configuration files ### Events Core | File | Purpose | | - | - | | eventsCore/config/config.lua | Framework selection, recording limits, replay speeds, processing, retention, and audit settings | | eventsCore/config/storage.lua | Local storage limits and optional allowed playback hosts | | eventsCore/config/permissions.lua | Permission behavior and trusted processing resources | | eventsCore/config/integrations.lua | Optional CAD and Discord settings | ### Dashcam | File | Purpose | | - | - | | eventsDashcam/config/config.lua | Branding, capture range, timing, triggers, keys, integrations, and request limits | | eventsDashcam/config/cameras.lua | The six replay viewpoints, offsets, rotations, and fields of view | | eventsDashcam/config/vehicles.lua | Eligible vehicle classes, models, plates, jobs, fleets, and inventory item | | eventsDashcam/config/retention.lua | Retention days for each evidence classification | | eventsDashcam/config/permissions.lua | Dashcam ACE nodes and framework job-grade rules | | eventsDashcam/config/update.lua | Informational update-check toggle | | eventsDashcam/integrations/ | Optional dispatch, inventory, phone, voice-metadata, CAD, Discord, and clip-provider bridges | Keep API tokens, Discord webhooks, and private endpoints in server-only files. Never place credentials in client configuration or NUI files. ## Important shipped defaults | Setting | Default | | - | - | | Capture radius | 85 metres around the vehicle | | Pre-event context | 60 seconds | | Automatic post-event time | 20 seconds | | Maximum manual recording | 1,800 seconds (30 minutes) | | Replay views | Front, rear, cabin, prisoner, left, and right | | Open terminal | F7 | | Start or stop recording | F9 | | Add evidence marker | F10 | | Trigger polling | Every 500 ms | | Emergency lights, siren, and gunshot triggers | Enabled | | Collision threshold | 35 points of vehicle body-health loss | | Speed threshold | 44.7 m/s, approximately 100 mph or 161 km/h | | Speed-trigger cooldown | 30 seconds | | CAD and Discord actions | Disabled | | Automatic update check | Disabled | ## Branding and units Config.Brand controls the department name, product name, accent color, speed unit, timezone label, and privacy disclosure. SpeedUnit supports the shipped mph behavior or km/h presentation. The trigger threshold in Config.Triggers.SpeedMps is always configured in metres per second. ## Framework selection Events Core is standalone by default. Set its supported framework option to esx, qbcore, qbox, or automatic detection only when that framework is installed and available. Framework jobs can provide standard or elevated Dashcam actions using the grade tables in eventsDashcam/config/permissions.lua. ## Recording and storage Events Core stores the incident data used for historic replay under eventsCore/data/recordings by default. Measure available disk space and establish a backup policy before raising capture limits or retention periods. Recordings can contain player, vehicle, location, and incident information. ## Optional integrations CAD, Discord, dispatch, phone, inventory, voice metadata, and generated clips require separate configuration. Their shipped bridges are disabled, empty, or metadata-only until you connect a compatible system. Enable one integration at a time on a test server and keep credentials server-side. Dashcam's standard historic replay works without an encoded video file. Any separate video-generation or upload workflow requires a compatible, trusted recorder or processing setup in Events Core. ![Dashcam Mobile Evidence terminal showing recordings, search, filters, and evidence details](https://docs-assets.sonoransoftware.com/sha256/0d/0d0298ebf8b485136d8c26bf8da7a027525de55f8d08de3b12ffb7e4c9a20243.webp) *The Mobile Evidence terminal keeps recording controls, searchable evidence, replay, and record details in one interface.* # Developer API Source: https://docs.sonoransoftware.com/store/dashcam/developer-api Use the supported Events Dashcam client and server exports and integration events. Resource name: ``` eventsDashcam ``` ## Client exports | Export | Returns | Description | | - | - | - | | `StartDashcamRecording(trigger)` | boolean | Submits a recording request for the local driver. Defaults to `manual`. | | `StopDashcamRecording()` | boolean | Requests finalization of the local driver's active recording. | | `SaveDashcamBuffer()` | boolean | Starts a manual save with the configured pre-event buffer. | | `AddDashcamMarker(label, markerType)` | boolean | Adds a marker to the active recording. Defaults to `Manual evidence marker` and `manual`. | | `IsDashcamRecording()` | boolean | Returns the local recording state. | | `GetActiveRecordingId()` | string or nil | Returns the local active recording ID. | ```lua theme={null} local accepted = exports.eventsDashcam:StartDashcamRecording('manual') if exports.eventsDashcam:IsDashcamRecording() then exports.eventsDashcam:AddDashcamMarker('Suspect vehicle located', 'observation') end ``` An `accepted` result only means the client submitted the request. The server still checks the player's permissions, vehicle, trigger configuration, rate limits, and current recording state. Supported trigger names are `manual`, `save_buffer`, `emergency_lights`, `siren`, `collision`, `speed`, `gunshot`, `dispatch`, and `marker`. ## Server exports Server exports that act for a player require that player's server ID. They re-check access and evidence permissions. ### Read a recording ```lua theme={null} local recording, err = exports.eventsDashcam:GetDashcamRecording(recordingId, source) local canAccess = exports.eventsDashcam:CanAccessDashcamRecording(source, recordingId) ``` | Export | Returns | Description | | - | - | - | | `GetDashcamRecording(recordingId, playerSource)` | recording or nil, error or nil | Returns the recording when the player can access it. | | `CanAccessDashcamRecording(playerSource, recordingId)` | boolean | Checks whether the player can access the recording. | A server resource may omit `playerSource` only when its resource name is explicitly allowlisted in `Config.Permissions.TrustedResources` inside `eventsDashcam/config/permissions.lua`: ```lua theme={null} Config.Permissions.TrustedResources = { ['my-evidence-bridge'] = true } local recording, err = exports.eventsDashcam:GetDashcamRecording(recordingId) ``` Do not use the trusted form for player-initiated requests. Pass the player's source so Dashcam applies their permissions. ### Update a recording ```lua theme={null} local ok, err = exports.eventsDashcam:AttachIncidentToRecording(source, recordingId, 'INC-1042') local ok, err = exports.eventsDashcam:LockDashcamRecording(source, recordingId, 'Evidence hold') local ok, err = exports.eventsDashcam:AddDashcamEvidenceNote(source, recordingId, 'Reviewed by supervisor') ``` | Export | Returns | Description | | - | - | - | | `AttachIncidentToRecording(playerSource, recordingId, incident)` | boolean, error or nil | Sets the incident number. Maximum 128 characters. | | `LockDashcamRecording(playerSource, recordingId, reason)` | boolean, error or nil | Locks the recording. Defaults the reason to `external lock` when omitted. | | `AddDashcamEvidenceNote(playerSource, recordingId, body)` | boolean, error or nil | Adds an evidence note. Maximum 4,096 characters. | These calls fail when the recording is missing, inaccessible, locked where applicable, or the player lacks the required permission. ## Integration events ### Start from another client resource Use the local client event when an integration needs to request a configured trigger: ```lua theme={null} TriggerEvent('dashcam:integration:trigger', 'dispatch', { incident = 'INC-1042' }) ``` The server remains authoritative. Incident text is limited to 128 characters. ### Observe recording lifecycle ```lua theme={null} AddEventHandler('dashcam:client:recordingStarted', function(recordingId) -- Runs on the recording player's client. end) AddEventHandler('dashcam:client:recordingStopped', function(recordingId) -- Runs on the recording player's client. end) AddEventHandler('dashcam:server:recordingFinalized', function(recordingId, recording) -- Runs on the server after Events Core finalizes a Dashcam recording. end) ``` The server event includes a defensive recording table when it is available. Treat it as read-only. ## Internal routes Events named `eventsDashcam:server:*` and `eventsDashcam:client:*` are internal request and synchronization routes. They are not a stable public API. Use the exports and integration events above instead. # Installation Source: https://docs.sonoransoftware.com/store/dashcam/installation Install the free Events Core dependency and paid Dashcam DLC in the correct order. Dashcam uses two separate resources: * [Events Core](https://sonoran.store/packages/7606652-events-core) is the free required package containing the shared recording, replay, storage, and event logic. * [Events Dashcam](https://sonoran.store/packages/7618996-events-dashcam) is the paid DLC containing vehicle eligibility, recording controls, the Mobile Evidence terminal, and the six dashcam replay views. > [!WARNING] > > Both packages are required. Events Core works behind the scenes and does not add a standalone gameplay interface. ## Before you begin You need: * A current FXServer with OneSync enabled * Access to the Cfx.re account that owns the granted assets * Access to the server's resource directory and server.cfg * Permission to add ACE rules or configure supported framework jobs * A test server or maintenance window for the first installation Both resources are protected by FiveM Asset Escrow. Edit only the included customer configuration and integration files. ## Download the resources 1. Obtain the free Events Core package from the Sonoran Store. 2. Obtain the paid [Dashcam package](https://sonoran.store/packages/7618996-events-dashcam) from the Sonoran Store. 3. Sign in to the [Cfx.re Portal](https://portal.cfx.re/) using the account associated with the purchase. 4. Download and extract both granted assets. ## Verify the folders Keep the exact resource names. Each fxmanifest.lua must be directly inside its resource folder: ``` resources/ └── [sonoran]/ ├── eventsCore/ │ └── fxmanifest.lua └── eventsDashcam/ └── fxmanifest.lua ``` Do not add an extra nested folder such as eventsDashcam/eventsDashcam/fxmanifest.lua, and do not rename either resource. ## Configure the start order Add the following to server.cfg: ```cfg theme={null} set onesync on ensure eventsCore ensure eventsDashcam ``` Events Core must start first. Dashcam will block startup if Core is missing, outdated, or unavailable. ## Grant initial permissions For a first administrator test: ```cfg theme={null} add_ace group.dashcamadmin dashcam.use allow add_ace group.dashcamadmin dashcam.record allow add_ace group.dashcamadmin dashcam.review.all allow add_ace group.dashcamadmin dashcam.annotate allow add_ace group.dashcamadmin dashcam.classify allow add_ace group.dashcamadmin dashcam.archive allow add_ace group.dashcamadmin dashcam.lock allow add_ace group.dashcamadmin dashcam.delete allow add_ace group.dashcamadmin dashcam.admin allow ``` Assign the appropriate player identifier to group.dashcamadmin using your server's normal ACE setup. See [Permissions](/store/dashcam/permissions) before granting production access. ## Configure an eligible vehicle The shipped setup recognizes emergency-class vehicles, the model police, and the configured police, sheriff, ambulance, and fire jobs. Review [Vehicle Setup](/store/dashcam/vehicle-setup) before testing a custom fleet. ## First test 1. Fully restart the server and confirm eventsCore starts before eventsDashcam. 2. Join with the test account and enter an eligible vehicle as the driver. 3. Press F7 to open the Mobile Evidence terminal. 4. Press F9 to start a manual recording. 5. Press F10 to add an evidence marker. 6. Press F9 again to finalize the recording. 7. Reopen the terminal, select the record, and test all six replay views. 8. Repeat with an unauthorized account or ineligible vehicle and confirm recording is denied. ## Updating 1. Stop the server and back up eventsCore/config/, eventsCore/data/, eventsDashcam/config/, and any customized eventsDashcam/integrations/ files. 2. Download the latest granted packages. 3. Replace the complete resource folders. 4. Merge your customer settings into the new configuration structure instead of copying protected files from an older version. 5. Start Events Core before Dashcam and repeat the first test. Do not run another Dashcam recording resource for the same vehicle while Events Dashcam is active. Backups may contain player, vehicle, or incident information; store them securely and redact private information before sending anything to support. # Permissions Source: https://docs.sonoransoftware.com/store/dashcam/permissions Configure least-privilege access for Dashcam drivers, reviewers, supervisors, and administrators. Dashcam rechecks recording and evidence actions on the server. Grant only the actions each role needs. | ACE node | Purpose | | - | - | | dashcam.use | Configured base access node; action-specific permissions are still required | | dashcam.record | Start recordings and save the current buffer in an eligible vehicle | | dashcam.review\.own | List and replay the user's own recordings | | dashcam.review\.department | List and replay recordings from the user's department | | dashcam.review\.all | List and replay all accessible Dashcam recordings | | dashcam.annotate | Add notes and markers or update incident-related fields on accessible evidence | | dashcam.classify | Change an accessible recording's classification | | dashcam.archive | Archive records and change their retention | | dashcam.lock | Lock or unlock records | | dashcam.delete | Permanently delete unlocked and unpreserved records with a reason | | dashcam.admin | Use protected administrative diagnostics when available | ## Example roles ```cfg theme={null} # Drivers can record, review their own evidence, and add markers or notes. add_ace group.dashcamusers dashcam.use allow add_ace group.dashcamusers dashcam.record allow add_ace group.dashcamusers dashcam.review.own allow add_ace group.dashcamusers dashcam.annotate allow # Supervisors can review and manage evidence for their department. add_ace group.dashcamsupervisors dashcam.use allow add_ace group.dashcamsupervisors dashcam.record allow add_ace group.dashcamsupervisors dashcam.review.department allow add_ace group.dashcamsupervisors dashcam.annotate allow add_ace group.dashcamsupervisors dashcam.classify allow add_ace group.dashcamsupervisors dashcam.archive allow add_ace group.dashcamsupervisors dashcam.lock allow # Administrators can review all evidence and use protected actions. add_ace group.dashcamadmins dashcam.use allow add_ace group.dashcamadmins dashcam.record allow add_ace group.dashcamadmins dashcam.review.all allow add_ace group.dashcamadmins dashcam.annotate allow add_ace group.dashcamadmins dashcam.classify allow add_ace group.dashcamadmins dashcam.archive allow add_ace group.dashcamadmins dashcam.lock allow add_ace group.dashcamadmins dashcam.delete allow add_ace group.dashcamadmins dashcam.admin allow ``` Assign player identifiers to these groups using your server's existing ACE structure. If supervisors or administrators also need to review their own evidence through a different role layout, grant review\.own as well or configure group inheritance. ## Framework job grades When Events Core is configured for a supported framework, on-duty jobs can authorize Dashcam actions through eventsDashcam/config/permissions.lua: * JobGrades controls standard actions such as recording, own or departmental review, and annotations. * ElevatedJobGrades controls review-all, classification, archive, lock, deletion, and administrative actions. The shipped jobs are police, sheriff, ambulance, and fire. Their standard minimum grade is 0 and elevated minimum grade is 2. Change these values to match your framework's grade numbering and department policy. ## Trusted integrations Leave Config.Permissions.TrustedResources empty unless a reviewed integration's installation instructions explicitly require access. Adding a resource to this list grants it a trusted server-side evidence lookup path; it does not grant players additional permissions. ## Least-privilege guidance * Give normal drivers review\.own instead of review\.all. * Give review\.department only to roles that should see coworkers' evidence. * Restrict classify, archive, lock, and delete to supervisors or evidence custodians. * Keep dashcam.delete separate from normal recording and review roles. * Test permissions with a non-administrator account before launch. # Playback and Evidence Source: https://docs.sonoransoftware.com/store/dashcam/playback Search Dashcam evidence, replay incidents from six views, and manage notes, classifications, locks, archives, and retention. Finalized recordings appear in the Mobile Evidence terminal for authorized reviewers. Press F7 or run /dashcamreview, then search or filter the evidence list and select a record. ## Find a recording The terminal can search the information attached to accessible evidence, including: * Recording ID * Vehicle or plate * Department * Incident or case number * Citation number * Arrest-report number You can also filter by classification and finalized state. The result list is permission-filtered, so users only see their own, departmental, or all evidence according to their access. ## Six replay views Every Dashcam recording includes these vehicle-mounted viewpoints: | View | Shipped field of view | | - | -: | | Front | 72 degrees | | Rear | 70 degrees | | Cabin | 85 degrees | | Prisoner | 90 degrees | | Left | 68 degrees | | Right | 68 degrees | The saved recording keeps its vehicle-camera definition, so a reviewer can return after the original vehicle or scene is gone. ## Playback controls Open **Structured Replay** from the selected record. The terminal supports: * Play and pause * Restart * Seek with the timeline * Skip backward or forward 10 seconds * Step backward or forward * Playback speeds of 0.25x, 0.5x, 1x, 2x, and 4x * Switching among all six views * Exiting replay and returning to the evidence terminal Dashcam recreates the incident inside FiveM from recorded gameplay state. A normal Dashcam replay is not an MP4 or continuous screen recording. Separate video generation or upload requires an optional compatible processing setup. ## Evidence details Depending on permissions, reviewers can: * Set the classification * Add or update incident, case, citation, and arrest-report numbers * Add operational notes * Lock or unlock the record * Archive or unarchive the record * Change retention days * Delete an unlocked, unpreserved record with a substantive reason Locked records cannot be edited or deleted until an authorized reviewer unlocks them. Deletion is permanent and requires dashcam.delete. ## Shipped classifications and retention | Classification | Retention | | - | -: | | routine | 7 days | | traffic\_stop | 30 days | | arrest | 90 days | | use\_of\_force | 365 days | | training | 30 days | | indefinite | No automatic expiry | Changing a record's classification applies that classification's configured retention policy. A retention value of 0 means the record has no automatic expiry. Review your local policy and available storage before extending retention. Record metadata is stored under eventsCore/data/recordings by default. Back up evidence securely before updates or storage changes. ![Dashcam evidence custody controls for lock, archive, retention, and deletion](https://docs-assets.sonoransoftware.com/sha256/dc/dc1abf4214ae194485bab9fa0048b100a026a1759489ec84f5903375f0cd1c2b.webp) *Authorized evidence custodians can protect, archive, retain, or delete records from the same review terminal.* # Recording Source: https://docs.sonoransoftware.com/store/dashcam/recording Start manual recordings, save pre-event context, and configure automatic Dashcam triggers. Dashcam maintains pre-event context around each eligible vehicle so an incident can include what happened before the trigger. The shipped setup keeps 60 seconds of pre-event activity, captures within 85 metres of the vehicle, and allows a manual recording to run for up to 30 minutes. ## Controls and commands | Action | Default key | Command | | - | - | - | | Open Mobile Evidence | F7 | /dashcam | | Start or stop recording | F9 | /dashcamrecord | | Add a marker | F10 | /dashcammark \[label] | | Save the current buffer | - | /dashcamsave | | Open evidence review | - | /dashcamreview | | Open the same terminal for administrative work | - | /dashcamadmin | Players can change registered FiveM key mappings in their FiveM settings. The server owner can change the shipped defaults in eventsDashcam/config/config.lua. Adding a marker requires access to the active recording and the dashcam.annotate permission or a qualifying framework job grade. ## Manual recording 1. Enter an eligible vehicle as the driver. 2. Press F9 or open the terminal and select **Start recording**. 3. Add markers when important moments occur. 4. Press F9 again or select **Stop recording** to finalize the evidence. The recording overlay displays the active recording ID, configured department, current speed, coordinates, and timezone label. The overlay is hidden while the full terminal is open so it does not cover the evidence interface. ## Save the current buffer Use **Save buffer** or /dashcamsave when something important has just happened. This starts a recording that includes the configured pre-event period. Stop the recording when the incident is complete; otherwise the configured maximum duration still applies. ## Automatic triggers The shipped configuration supports: * Emergency lights changing state * Siren changing state * A collision that exceeds the configured body-damage threshold * Crossing the configured speed threshold * A gunshot within the configured radius * A trigger supplied by a configured dispatch or other integration Automatic recordings finalize after the configured post-event period. If another trigger occurs while a recording is already active, Dashcam adds it to the current timeline instead of creating a duplicate recording. ## Configure triggers Edit Config.Triggers in eventsDashcam/config/config.lua. Set EmergencyLights, Siren, or Gunshot to false to disable those triggers. Set CollisionDamageDelta to 0 to prevent collision-based starts, or adjust SpeedMps and SpeedCooldownSeconds for your server's driving balance. The speed threshold uses metres per second regardless of the speed unit displayed in the overlay. Common conversions: | Target speed | SpeedMps value | | - | -: | | 80 mph / 129 km/h | 35.8 | | 100 mph / 161 km/h | 44.7 | | 120 mph / 193 km/h | 53.6 | ## What is recorded Dashcam preserves the gameplay state needed to reconstruct relevant players, vehicles, peds, objects, projectiles, explosions, weapon events, damage events, movement, environment, and evidence markers around the vehicle. The default product records voice and radio activity as event metadata only; it does not capture native voice audio. ![Dashcam replay timeline with event markers and six view controls](https://docs-assets.sonoransoftware.com/sha256/0b/0b54bb9eacb96a675ccd1d877fc83c69adfd56798293bf90ffd23507ee7cd098.webp) *Event markers remain visible on the replay timeline alongside playback and viewpoint controls.* # Troubleshooting Source: https://docs.sonoransoftware.com/store/dashcam/troubleshooting Resolve common Dashcam installation, eligibility, recording, permission, replay, and evidence problems. Begin with the FXServer console and confirm both resources are current. Enable debug output only temporarily on a test server. ## Dashcam will not start Confirm the exact folder names and start order: ```cfg theme={null} ensure eventsCore ensure eventsDashcam ``` Each fxmanifest.lua must be directly inside its resource folder. Dashcam requires OneSync and a compatible Events Core version. Review the first eventsDashcam startup error instead of only the later follow-on messages. ## F7 does not open the terminal Confirm eventsDashcam is running, the configured Panel key is registered, and no other resource has taken the same key. Try /dashcam. If the command works, review the player's FiveM key bindings. ## The terminal opens but the evidence list is empty The list only includes recordings the player may review. Grant the appropriate dashcam.review\.own, dashcam.review\.department, or dashcam.review\.all permission, then confirm the recording has finalized. Framework users must also be on duty when their job context requires it. ## Recording is denied Check all of the following: * The driver has dashcam.record through ACE or the configured framework grade * The player is in the driver's seat * The vehicle is networked and eligible by class, model, plate, job, fleet, or inventory policy * Events Core is running and Dashcam completed startup * The trigger and request cooldowns have expired Passenger requests and stale vehicle bindings are intentionally denied. ## An automatic trigger does not start Confirm the trigger is enabled in eventsDashcam/config/config.lua and the driver is in an eligible vehicle. For collisions, verify the damage change exceeds CollisionDamageDelta. For speeding, remember SpeedMps uses metres per second. For gunshots, verify the event occurred within GunshotRadius. If a recording is already active, the trigger is added to that recording's timeline instead of creating another recording. ## F10 does not add a marker Markers require an active recording, access to that recording, and dashcam.annotate or a qualifying framework job grade. Wait for the marker cooldown before trying again. ## A user can record but cannot review Recording and review are separate permissions. Grant review\.own for personal evidence, review\.department for matching department evidence, or review\.all for broad review. Department access also requires the current framework department to match the department stored on the recording. ## Replay does not show a video file This is expected for the standard workflow. Dashcam uses structured in-game replay rather than a conventional video file. Select a recording and choose **Open Structured Replay**. Encoded video generation or upload requires a separately configured compatible processing setup. ## Replay is empty or stops Check the Events Core console for finalization, storage, reconstruction, or permission errors. Confirm eventsCore/data/recordings is writable and has available disk space. Create a new short recording with the shipped capture settings before increasing limits or testing custom integrations. ## A replay view is positioned incorrectly Vehicle layouts and bone positions can vary between custom models. Adjust the matching view in eventsDashcam/config/cameras.lua on a test server, then verify every view on every supported vehicle model. Keep all six unique view IDs. ## Classification or custody actions are denied Evidence access alone does not grant every action. Check dashcam.annotate, dashcam.classify, dashcam.archive, dashcam.lock, and dashcam.delete separately. Locked records cannot be edited or deleted, and protected records cannot be deleted. ## Retention is not what you expected Changing classification applies the matching value from eventsDashcam/config/retention.lua. A value of 0 means no automatic expiry. To change retention manually, confirm the reviewer has dashcam.archive and the requested value is between 0 and 3,650 days. ## Problems after an update Replace both resources as complete packages, merge supported customer configuration into the new files, and start Events Core before Dashcam. Do not mix protected runtime files from different versions or restore old configuration without comparing its schema. ## Still need help? Collect the relevant startup and error lines, installed resource versions, reproduction steps, vehicle model and plate, permission method, and the trigger or evidence action that failed. Remove tokens, webhooks, player identifiers, and other private information before contacting [Sonoran Software support](https://support.sonoransoftware.com/). # Vehicle Setup Source: https://docs.sonoransoftware.com/store/dashcam/vehicle-setup Choose which emergency, department, fleet, and inventory-equipped vehicles can use Dashcam. A player must be the driver of an eligible, networked vehicle before a recording can start. Vehicle eligibility and recording permissions are separate: the vehicle must pass this policy, and the driver must also have dashcam.record through ACE or a configured framework job grade. ## Shipped eligibility The default vehicle policy accepts a vehicle when at least one configured condition matches: * The vehicle is in FiveM emergency class 18 and allowEmergencyClass is enabled * Its model appears in models; police is included by default * Its plate appears in plates * Its model appears in civilianFleetModels * Its plate appears in fleetPlates * The driver's framework job appears in jobs; police, sheriff, ambulance, and fire are included by default * A configured inventory bridge confirms the driver has the dashcam item The plate and civilian-fleet lists are empty by default. The inventory item name is configured, but the shipped inventory bridge does not grant eligibility until it is connected to your inventory system. ## Configure your fleet Edit eventsDashcam/config/vehicles.lua. The shipped structure is: ```lua theme={null} Config.Vehicles = { allowEmergencyClass = true, models = { 'police' }, plates = {}, jobs = { police = true, sheriff = true, ambulance = true, fire = true }, civilianFleetModels = {}, fleetPlates = {}, inventoryItem = 'dashcam' } ``` Use vehicle spawn names in the model lists. Plate matching ignores leading and trailing spaces and is not case-sensitive. Keep plate entries specific enough that they do not unintentionally authorize unrelated vehicles. ## Example custom fleet ```lua theme={null} Config.Vehicles.allowEmergencyClass = false Config.Vehicles.models = { 'police', 'police2', 'ambulance' } Config.Vehicles.plates = { 'LSPD101', 'EMS12' } Config.Vehicles.jobs = { police = true, sheriff = true, ambulance = true } Config.Vehicles.civilianFleetModels = { 'speedo' } Config.Vehicles.fleetPlates = { 'MOBILE1' } ``` This example requires an explicit model, plate, fleet entry, or configured job instead of accepting every emergency-class vehicle. ## Framework jobs Job eligibility requires Events Core to be configured for ESX, QBCore, Qbox, or supported automatic detection. The player must be on duty when the framework reports duty state. Job action grades are configured separately in eventsDashcam/config/permissions.lua. ## Test the policy After restarting both resources: 1. Enter an allowed vehicle as the driver and start a recording. 2. Enter the same vehicle as a passenger and confirm recording is denied. 3. Test an unlisted non-emergency vehicle and confirm it is denied. 4. Test every custom job, model, or plate entry you added. 5. Change vehicles while recording and confirm the new vehicle must pass eligibility again. # Evidence Camera Source: https://docs.sonoransoftware.com/store/evidence-camera Easily take photos and upload them to CAD/ Discord ![Sonoran Software - Evidence Camera Promotional Image](https://docs-assets.sonoransoftware.com/sha256/29/29a91a02cadb4a05a72b91927a5d9c02a17a05fb768fdbd5a6c44fb8832ab152.png) [Video tutorial](https://www.youtube-nocookie.com/embed/jxTvYyDmJAE) Sonoran Software - Evidence Camera Promotional Video ## Evidence Camera ### Features * Ability to operate standalone * Support for ESX, QBCore, and Sonoran CAD ![](https://docs-assets.sonoransoftware.com/sha256/a8/a862a73fa63fd68964ad7f4fd3aa27f9941ccf114daabff2c7531d821c102680.png) *Sonoran Software - Evidence Camera Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/37/37df264dd214cb12649e599c23ef5851fa5d7a9256ea57402334fee8b0b3b81e.png) *Sonoran Software - Evidence Camera Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/b6/b6ba963604d6f4f22b7dff3e5604b0b9b1ecd55d519d4db91e974c53149997ab.png) *Sonoran Software - Evidence Camera Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/2f/2f629e72612a47971059413eba837f33efcd21ac1cb1e636d4e15ab6092c226a.png) *Sonoran Software - Evidence Camera Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/88/88fc27c3a5aa2856c4bb8d51a8d474b675bc2d4ce3758ef48281626831f207e4.png) *Sonoran Software - Evidence Camera Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/0b/0b1a290f53fcc5553d099c21bd47a96e9c61dd483f72bd86644ef85451c47aaa.png) *Sonoran Software - Evidence Camera Promotional Image* ### Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/ecam` | Toggle the evidence camera | None | ### Changelog #### v.1.2.6 **Feature Request** * `Add config for capture button` * `Move all English text to translation config in config.lua` #### v1.2.5 **Hotfix** * `Change event handler to register CAD endpoints correctly` **Feature Request** * `Add the ability for Fire and EMS to also use and upload photos to CAD` #### v1.2.4 **Security Update** * `Move Discord webhook configuration to strictly server sided file to prevent client dumps` #### v1.2.3 **Hotfix** * `Fix Ox_Inventory support with latest update` #### v1.2.2 **Feature** * `Added Quasar Inventory support` #### v1.2.0 **Bugfixes** * `Fixed numerous ESX bugs` **Features** * `Added support for Ox Inventory` * `Added support for custom inventories` #### v1.1.3 * `Standalone object duplication hot fix` #### v1.1.2 * `Fix QBCore bug on newer servers` #### v1.1.1 * `Fix QBCore object registration bug` #### v1.1.0 * `Fix QBCore Camera` * `Add photo object to inventory` * `Misc bug fixes` #### v1.0.1 * `Fix NUI bug (Please ensure resource name is sonoran-evidencecam)` #### v1.0.0 * `Inital Release` # Advanced Documentation Source: https://docs.sonoransoftware.com/store/evidence-camera/advanced-docs Developer Documentation and other Advanced Configuration Topics for the Evidence Camera ## Custom Inventory Integration If you wish to use a custom inventory please first ensure that `use_custom_inventory` is set to `true` in your `config.lua` For all the handling of photo items please see the `/server/inventory.lua` file. In this file it is recommended that do the following: #### Define your framework. Ex. Below ```lua theme={null} local QBCore = nil if config.frameworks.use_qbcore then QBCore = exports["qb-core"]:GetCoreObject() end ``` #### Begin your handling (All examples will be shown using QBCore) First we will register our item with the framework. Ex. Below ```lua theme={null} exports["qb-core"]:AddItem("sonoran_evidence_photo", { name = "sonoran_evidence_photo", label = "Photo", weight = 0, type = "item", image = "evidence.png", unique = true, useable = true, shouldClose = false, combinable = nil, description = "A sweet polaroid photo" }) QBCore.Functions.CreateUseableItem("sonoran_evidence_photo", function(source, item) TriggerClientEvent("sonoran:lookphoto:qbcore", source, item) end) ``` Next we will make the item usable. Example below: ```lua theme={null} QBCore.Functions.CreateUseableItem("sonoran_evidence_photo", function(source, item) TriggerClientEvent("sonoran:lookphoto:qbcore", source, item) end) ``` Now that our item is registered and usable we will begin the handling. The following event will be triggered when the photo is first put away. You will want to use this to cache the images link. `Sononran:PutAway:Custom:First`. The example handling will be used in the form of QBCore. See below for example. ```lua theme={null} RegisterNetEvent("Sononran:PutAway:Custom:First", function(image) local Player = QBCore.Functions.GetPlayer(source) if not Player then return end local info = {} info.image_link = image Player.Functions.AddItem("sonoran_evidence_photo", 1, nil, info) end) ``` ### Passed Parameters To `Sononran:PutAway:Custom:First` | Parameter Name | Parameter Description | | - | - | | `image` | The direct image link | # Getting Started Source: https://docs.sonoransoftware.com/store/evidence-camera/getting-started This page will walk you through getting and installing the script. ## Acquire the Script After purchasing the script through the sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]`. Note the brackets `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/12/12fb26a9bd9f08f7335dfa379d29c3aa86d1c59b9fb4c6ffa0db3d3f3e77d8ee.png) *Sonoran Software - Evidence Camera - Folders* 2. In the `evidence-cam/config` folder there will be a file called `config.CHANGEME.lua` you should rename that to be `config.lua` and configure the settings inside as you would like them to be configured based on the configuration documentation below. In that same folder will also be a file called `photos.CHANGEME.json` which is a storage file for all photos that are take and "printed". Change the name to `photos.json`. You will also find a file called `discord.CHANGEME.lua`, this will contain your needed Discord Webhook configuration, but will protect it from any client side dumps. Change this file name to `discord.lua`. > [!WARNING] > > Only ever change the name of the `photos.json` **ON INSTALL**, not on subsequent updates! ![Sonoran Software - Evidence Camera - Config folder](https://docs-assets.sonoransoftware.com/sha256/15/15e6e40e69bc12974b0e6222e2ade0b8c5e41bf90e02adf42addad0dc134dcf5.png) > [!WARNING] > > **QBCore** Specific - Please follow `Step 3` to ensure inventory items have correct photos! 3. Drag the `cam.png` from `\sonoran-evidececam\config` into the following folder: `\resources\[qb]\qb-inventory\html\images` > [!WARNING] > > **ESX Specific** Specific - Please follow `Step 4` to ensure inventory items work! 4. a.) Import the `ESX Installme.sql` file into your ESX database ***If NOT using\*\*\*\***\*\* ****`ox_inventory`**\*\* ****\*\*\*\*continue to step 5*** b.) Add the following code to the `/ox_inventory/data/items.lua` file ```lua theme={null} ['sonoran_evidence_camera'] = { label = 'evidence camera', weight = 1, stack = true, close = true, description = nil }, ['sonoran_evidence_photo'] = { label = 'Evidence Photo', weight = 1, stack = true, close = true, description = 'A sweet polaroid', image_link = nil, server = { export = 'sonoran-evidencecam.sonoran_evidence_photo' } }, ``` 5. Finally, in your `server.cfg` add the following: > [!WARNING] > > **NEVER** add `ensure evidence-cam_helper` or `ensure [sonoranscripts]` to your server.cfg as this will lead to crashing under specific conditions. ``` ensure screenshot-basic ensure evidence-cam add_ace resource.evidence-cam command allow add_ace resource.evidence-cam_helper command allow ``` > [!TIP] > > Congrats! You have successfully installed Sonoran Evidence Camera. See the next section for configuration options. ## Configuration ### General | Config Option | Option Description | Possible Values | | - | - | - | | `command` | The command to toggle the camera | `string` | | `use_prop` | Use the camera prop | `true` or `false` | | `use_flash` | Make the camera prop flash | `true` or `false` | ### Discord | Config Option | Option Description | Possible Values | | - | - | - | | `use_discord` | Send webhooks to Discord | `true` or `false` | | `internal_log_url` | Webhook URL to send internal logs to | `url` | | `public_log_url` | Webhook URL to send public logs to | `url` | ### Frameworks | Config Option | Option Description | Possible Values | | - | - | - | | `use_esx` | Use the ESX framework | `true` or `false` | | `use_esx_ox_inventory` | Utilize OX Inventory for ESX | `true` or `false` | | `use_custom_inventory` | Use your own custom inventory handling (See dev docs for more) | `true` or `false` | | `use_qbcore` | Use the QBCore framework | `true` or `false` | ### CAD | Config Option | Option Description | Possible Values | | - | - | - | | `use_cad` | Link with Sonoran CAD to send photos | `true` or `false` | ### Objects | Framework | Object | Object Name | | - | - | - | | `QB Core` | Camera | `sonoran_evidencecam` | | `QB Core` | Photo | `sonoran_evidence_photo` | | `ESX` | Camera | `sonoran_evidence_cam` | | `ESX` | Photo | `sonoran_evidence_photo` | # Five Bundle Source: https://docs.sonoransoftware.com/store/five-bundle Learn more about the Five Bundle partnership! ![](https://docs-assets.sonoransoftware.com/sha256/bd/bdeb3d42e6374b82349300cfaa35087ce0c94a36e60a6837ab2a829032984e7a.png) *Five Bundle: Promotional Banner* Five Bundle is the ultimate content pack for your FiveM™ community — powered by top creators and unmatched in value. Get more content, pay less. Everything your community needs, all in one place. [Learn More about Five Bundle!](https://fivebundle.com) # Last Call For New Subscribers Source: https://docs.sonoransoftware.com/store/five-bundle/last-call-for-new-subscribers Important notice about Five Bundle subscriptions and pending changes. ## New Subscriptions ENDING 11/15/2024 **Last Chance to Subscribe to the Five Bundle Package!** New subscriptions for the Five Bundle package will close on **November 15, 2024**. After this date, the bundle will no longer be available for new subscriptions. This is your final opportunity to access the complete collection from Sonoran Store, Redneck Modifications, and London Studios. Please note that content updates will continue through November 15, but no further updates will be provided after that date. Don’t miss out—subscribe before the deadline to secure your access! ## I am an existing subscriber, what happens to me? **All current Five Bundle subscribers will retain full access to their existing content indefinitely**, as long as they maintain an active subscription. **Content for existing subscribers will not change nor be removed**. However, no new content from Sonoran Store, Redneck Modifications, or London Studios will be added to this existing bundle beyond the 15th of November. For new subscribers past the 15th of November, a refreshed Five Bundle offering will be announced in the coming weeks. Stay tuned for more details! ## What happens to the Five Bundle? We’re thrilled to announce an upcoming refresh of the Five Bundle partnership, featuring a NEW bundle with new content creators and even more value for your community! Stay tuned for exciting updates on the all-new Five Bundle release—big things are coming! # Gun Placement System Guide Source: https://docs.sonoransoftware.com/store/general/gun-placement **Traffic Camera is used as an example in this guide** 1. You can find the command to use the system for your script in the commands section of that script's documentation. > [accordion] Links to Commands > > * [Shot Spotter](/store/shot-spotter#commands) > * [Traffic Cameras](/store/speed-camera#commands) 2. You will need the relevant placement permissions in the server you are trying to place it in. You can refer to the documentation of your script to determine what that needed permission is. 3. You can now load into the server and run the command which you located earlier. You should be met with a message similar to the following. ![](https://docs-assets.sonoransoftware.com/sha256/c5/c56ea8e5d974a403fe46eb925284559f1979c9d1e612a7db1ca16a8171864aae.png) *Sonoran Gun Placement - In Game Prompt* 4. Now pull out your gun and aim, you will notice a red line protruding from your gun. The end of that line is where the model will spawn. ![](https://docs-assets.sonoransoftware.com/sha256/cb/cba3fb20946243caf4ec5938644fc6ef64b4f986535c565ae43e2123c8faea5a.png) *Sonoran Gun Placement - Usage* 5. When you left click to fire the model will appear at the end of the red line. The direction it's facing may vary from model to model depending on what was deemed to be easiest to use by the developer. You may have to experiment to get everything to your liking. ![](https://docs-assets.sonoransoftware.com/sha256/55/559af91eea4887235c5ebb080e17a4bd7fcc9ff1a87a056d11bc43eb58c237b5.png) *Sonoran Gun Placement - Spawning Model* # Information Source: https://docs.sonoransoftware.com/store/general/information Learn more about the Sonoran Store! ## Our Company Learn more about Sonoran Software, who we are, and what we do. [Visit our Website!](https://sonoransoftware.com) ### SonoranM for FiveM™️ ![](https://docs-assets.sonoransoftware.com/sha256/dc/dc9403192c8aa449efc520fd4389667e1f705f4bdba4c90ad53daae3cd286aa3.png) *SonoranM Promotional Image* Get the entire Sonoran store for just \$19.99/mo! Purchase at [SonoranM.com](https://sonoranm.com)! ## Customer Support Our support team has dedicated live chat hours 7 days/week! For assistance, reach out to [support.sonoransoftware.com](https://support.sonoransoftware.com). ## Discord Server Join our [Discord server](https://discord.sonoransoftware.com) for news, updates, customer interaction, and more! ### Discord Customer Role Gain access to our `#customer-lobby` channel when you purchase an item from the Sonoran Store! #### Copy your CFX Username When you purchase an item from the Sonoran Store, a CFX (FiveM) login is required. You'll need to copy your CFX username. This can be found by logging into the [CFX forums](https://forum.cfx.re/). ![](https://docs-assets.sonoransoftware.com/sha256/af/af18a3d6ad8e54d6fc9ed0cd5c492989caaa1e1bae5c1b47665787799cc89685.png) #### Copy your Discord Username Left-click on your Discord username to copy it. ![](https://docs-assets.sonoransoftware.com/sha256/35/351360483d3e901b29cbd58fda276a8c21834a879052196e1f5ea566a0d19990.png) *Copy Discord Username* #### Claim your Role On support.sonoransoftware.com select `Discord Role` > `Store Customer` and enter in your credentials. ![](https://docs-assets.sonoransoftware.com/sha256/76/7600983c7b7913403580a09fcafab56842e811e2dfac6929a25b4da1e0596f35.png) *Discord Role Request* # Accessing Tebex Assets Source: https://docs.sonoransoftware.com/store/general/tebex-assets Download your new files after purchasing an asset from the Sonoran Store. All Sonoran Store FiveM assets are processed via Tebex and are available for download on the CFX portal. ### Purchase Confirmation Page > [accordion] Purchase Confirmation Page > > After completing the purchase on Tebex, you will be redirected to a Sonoran Store confirmation screen. > > This screen provides helpful links for documentation, customer support, and file downloads. > > ![](https://docs-assets.sonoransoftware.com/sha256/45/4559dabfc1cd79c0ea267a30c36571590f557921da43692a8ba56c964cc4a98a.png) ### Initial Purchase Receipt Email > [accordion] Email Receipt > > After completing your purchase you should receive an email similar to the following. > > Select **Open Cfx.re Asset Manager** to open the portal. > > ![](https://docs-assets.sonoransoftware.com/sha256/ff/ff37768f8b2626940f98398e31b8c3346f807fed0c0aaa120580c8afe35ab3da.png) ### Download from the CFX Portal Click the link in the email or open up [portal.cfx.re](https://portal.cfx.rehttps/portal.cfx.re/) to login to your CFX account. Once logged in navigate to **Assets** > **Granted Assets** > **Search** and **Download** the new asset for your FiveM server. ![](https://docs-assets.sonoransoftware.com/sha256/2c/2cd69a33b75d8310b7e17a12879c4fed7510ff9eed558066684cdcc478228437.png) # Mobile Command Center Source: https://docs.sonoransoftware.com/store/mcc Take command on scene like never before. ![](https://docs-assets.sonoransoftware.com/sha256/5e/5e15472c0d679f88e89dee73a75beea6e08b654316488be0bb8053ebe901ebbc.png) *Sonoran Software - MCC Promotional Image* [Video tutorial](https://www.youtube-nocookie.com/embed/lli0z3V--TI) Sonoran Software - MCC Promotional Video ## Mobile Command Center * Ability to operate standalone ![](https://docs-assets.sonoransoftware.com/sha256/e2/e239244edc3123c1ba8512e357e730556d1f26a59024f8fccf2f22e6b11b4a96.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/90/90640a7c4d5bc807d9e09669c8366107fad8d6b6ac04c60affd9dc460d3f6ba5.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/bc/bceb988d6ed5ab475a5ad65efdae3d5a80a04eb6961470d6fb404509433e1ddf.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/1a/1a707aa6edf4b6b37751bdd5c3ff4ecebae200c5669da825efbf1820ef45f025.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/7b/7b9b6bcac2a5cc7753c1dc51d5d68deeee8513eca8dcd50662d269b84b3e0f83.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/db/dbcad60d6af1c1f8740efd90d72da1d17d2e8015af69ca72780d175e156f463b.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/72/725d8ad93dd7d2f71e1f5ac383471d3709d7e6fd21a41f3596cc3bb1edbeb6f2.png) *Sonoran Software - MCC Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/4f/4f0f34f001805771554828517b286205477c5f865368cc7f98d736a538233a4b.png) *Sonoran Software - MCC Promotional Image* ### Metrics #### File Sizes | File Name | File Size | | - | - | | `sonomcc.ytd` | 5,685 KB | | `sonomcc.yft` | 4,800 KB | | `sonomcc_hi.yft` | 5,273 KB | | `sonomcc+hi.yft` | 702KB | #### LODs This model does include LODs. Counts are as follows, in polygons: | LOD | Count | | - | - | | `L0` | 169,896 | | `L1` | 100,962 | | `L2` | 47,662 | | `L3` | 22,761 | | `L4` | 272 | ### Changelog #### v1.0.2 **Bug Fixes** * `chore: remove JQuery from HTML files` #### v1.0.1 **Bug Fixes** * `fix: config variable capitalization` * `fix: updater overriding meta files` #### v1.0.0 - Public Release **Features** * `feat: include lighting template in resource root` * `feat: config toggles for radio repeater and repeater range` * `feat: notification when toggling interior lights` * `feat: add sonorancad ALPR integration` **Bug Fixes** * `fix: texture issues with rear door` #### v0.9.6 **Features** * `Added ALPR` **Bug Fixes** * `Fixed more menu bugs` #### v0.9.5 **Features** * `Added camera zoom` * `Added error message when trying to use cams w/ antenna down` * `Added emergency brake` * `Added new liveries` **Bug Fixes** * `Fixed menu bugs` * `Fixed livery scale bugs` #### v0.9.1 **Bug Fixes** * `Fix auto-updater bugs` #### v0.9.0 - Beta Release * `Initial Beta Release` # Advanced Documentation Source: https://docs.sonoransoftware.com/store/mcc/advanced-docs Developer Documentation and other Advanced Configuration Topics for the Mobile Command Center. ## Sonoran Radio Integration The Sonoran `Mobile Command Center` automatically links its "Radio Repeaters" with Sonoran Radio. You must ensure that the Sonoran Radio resource is called `sonoranradio` **EXACTLY** or this integration **WILL NOT** work. ## Third Party Integration #### Here is some useful information for potential third party integrations: * Interior light is `Extra 4` How to toggle menu: ```lua theme={null} WarMenu.OpenMenu('sonoranMccController') ``` ### ALPR Documentation #### Plate Read When a plate is new **read** the event `Sonoran::mcc::plateRead` is fired to the **server**. | Parameter Name | Parameter Description | | - | - | | `plate` | The plate currently read by the plate reader (`STRING`) | Example Usage Of Event: ```lua theme={null} RegisterNetEvent('Sonoran::mcc::plateRead', function(plate) print(plate) end) ``` #### Plate Locked When a plate is **locked** the event `Sonoran::mcc::plateLocked` is fired to the **server**. | Parameter Name | Parameter Description | | - | - | | `plate` | The plate currently locked by the plate reader (`STRING`) | Example Usage Of Event: ```lua theme={null} RegisterNetEvent('Sonoran::mcc::plateLocked', function(plate) print(plate) end) ``` # Getting Started Source: https://docs.sonoransoftware.com/store/mcc/getting-started This page will walk you through getting and installing the script. ## Acquire the Script After purchasing the script through the Sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/e1/e1b55002005009037dcd1de13f2942bc8c3370d5ccdc1f179ebd1ff84d4c2b0b.png) *Sonoran Software - MCC - Folders* 2. In the `sonoran-mcc` folder there will be a folder called `config`, once inside that folder you should see a file called `config.CHANGEME.lua` you should rename that to be `config.lua` and configure the settings inside as you would like them to be configured based on the configuration documentation below. 3. In the `sonoran-mcc` folder there is the file `sonomcc.ytd`, move that file into the `sonoran-mcc/stream/` folder. This allows our updater to not override any custom YTD edits like custom liveries. 4. In the `sonoran-mcc/data/` folder there are 4 `.meta` files rename each file so that you remove`.CHANGEME` from the name. You should be left with the following 4 file names: * carcols.meta * carvariations.meta * vehiclelayouts.meta * vehicles.meta 5. Finally, in your `server.cfg` add the following: ``` ensure sonoran-mcc add_ace resource.sonoran-mcc command allow add_ace resource.sonoran-mcc_helper command allow ``` ## Configuring The Script > [accordion] Default config.lua > > ```lua theme={null} > config = {} > config.configuration_version = 1.3 -- Do NOT change unless updating whole config file. Used by updater to tell you when new config file options are available. > config.auto_update = true -- Toggle Auto Updater, requires ace permissions to function. See Install Docs: https://docs.sonoran.store > config.debug_mode = false > config.eBrakeWithSliders = true -- Should the vehicle activate the "E-BRAKE" when the sliders are out > config.speedType = 'mph' -- Which way should the alpr speed display? Options: 'mph' or 'kph' > config.keys = { > -- Use https://docs.fivem.net/docs/game-references/controls/#controls to find the name... > -- and use https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/ to find index parameters for the key options below... > cameraToggle = {cmd = 'mcccamera', name = 'INPUT_PICKUP', indexParam = 'e', lang = 'Access MCC Cameras'}, -- Key to access cameras > interiorLightToggle = {cmd = 'mccintlights', name = 'INPUT_REPLAY_CYCLEMARKERRIGHT', indexParam = 'RBRACKET', lang = 'Toggle MCC Interior Lights'}, -- Key to toggle rear interior lighting > radioRepeaterToggle = {cmd = 'mccradio', name = 'INPUT_REPLAY_CYCLEMARKERLEFT', indexParam = 'LBRACKET', lang = 'Toggle MCC Radio Repeater'}, -- Key to toggle Sonoran Radio repeater > alprLockPlate = {cmd = 'mccplatelock', name = 'INPUT_FRONTEND_ENDSCREEN_ACCEPT', indexParam = 'RETURN', lang = 'Lock the current plate in the MCC ALPR'}, > menuToggle = {name = 'INPUT_SCRIPTED_FLY_ZUP', indexParam = 'PAGEUP'} -- Keybind to open the door control menu, can be changed in FiveM settings > } > > -- Optional Menu/Commands/Keybinds controls for doors > config.doorControl = { > method = 4, -- What method to use to control the doors | INTEGER | Options: 1 = commands, 2 = menu, 3 = none, 4 = commands & menu > commands = { > baseCmd = {cmd = 'mcctoggle', lang = 'Base MCC Toggle Command'}, -- Base command, see below for options > antenna = {cmd = 'antenna', lang = 'Toggle MCC Antenna'}, -- toggle the antenna > sliders = {cmd = 'sliders', lang = 'Toggle MCC Slide Out Sections'}, -- toggle the sliders > rearDoor = {cmd = 'reardoor', lang = 'Toggle MCC Rear Door'}, -- toggle the read door > frontLeft = {cmd = 'frontleft', lang = "Toggle MCC Driver's Door"}, -- toggle the front left door > frontRight = {cmd = 'frontright', lang = "Toggle Passenger's Door"}, -- toggle the front right door > allDoors = {cmd = 'all', lang = 'Toggle ALL MCC Doors'}, -- toggle all doors > menuToggle = {cmd = 'togglem', lang = 'Toggle MCC Control Menu'} -- command to open the door control menu > } > } > > -- Translate the resource by customizing the messages below... > config.language = { > mccHelpMessage = 'Press \n~' .. config.keys.cameraToggle.name .. '~ to access cameras \n~' .. config.keys.interiorLightToggle.name .. '~ to toggle interior lights', > mccRadioHelpMessage = '\n~' .. config.keys.radioRepeaterToggle.name .. '~ to toggle mobile radio repeater', > mccMenuHelpMessage = '\n~' .. config.keys.menuToggle.name .. '~ for more controls', > radioRepeaterOn = 'MCC Radio repeater has been toggled on', > radioRepeaterOff = 'MCC Radio repeater has been toggled off', > notInMCC = 'You must be in the MCC to use this!', > noValidArgument = 'You must provide a valid argument!', > subCommand = 'Subcommand', > subCommandOptions = 'Available options: ', > missingSonoranRadio = 'Sonoran Radio not running, feature unavailable...', > antennaNotUp = 'You must raise the antenna first!\n Use "/mcctoggle antenna" do to so', > slidersOut = 'The MCC sliders are moving out... E brake will now engage.', > slidersIn = 'The MCC sliders are now in... E brake will now disengange', > intLightOn = 'The interior light has been toggled on!', > intLightOff = 'The interior light has been toggled off!', > alprLockPlate = 'Lock Plate' > } > > config.alpr = { > enabled = true, -- Enable Autmatic License Plate Reader on MCC Cameras > enableSonoranCad = true, -- Enable sonorancad integration to alert on bolo/warrant/flag and be able to lock to force a CAD license plate lookup > scanAi = false -- Allow passive lookups of AI plates, will be lots of spam if you enable notifying on "no registration" in sonorancad wraithv2 plugin > } > > config.radio = { > enabled = true, -- Enable MCC Mobile Repeater (requires sonoranradio resource and name must remain to be "sonoranradio") > range = 750 --MCC Mobile repeater > } > ``` > [!NOTE] > > There is no permission configuration required for this resource. ## Sonoran CAD Integration ### Functionality The mobile command center is equipped with surveillance cameras on top of the radio antenna. While looking at a vehicle, the license plate will be displayed on-screen. Additionally, with [Sonoran CAD's Wraith integration](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2), a pNotify pop-up will display the vehicle's registration information from Sonoran CAD. Press `ENTER` to "lock" the plate and return a full search in your Sonoran CAD screen. ![](https://docs-assets.sonoransoftware.com/sha256/08/082e16960878b73b61f1030e41b716b95350de1218ad49bf95a03389c48aaf08.png) *Sonoran Software - MCC - ALPR* ![](https://docs-assets.sonoransoftware.com/sha256/35/35b74777819b11ad28448a01d429e2be01c2bf2ef17822abf27bc044895e30c9.png) *Sonoran Software - MCC - ALRP Locked* ### Configuration The Sonoran CAD integration can be turned either on or off in the [`config.alpr`](/store/mcc/getting-started#config.alpr-breakdown) section. In order for Sonoran CAD integration to work properly you **MUST** have the [Wraith Radar](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2) CAD plugin installed. This plugin is part of [Sonoran CAD's integration framework](/cad/integration-plugins/in-game-integration). > [!WARNING] > > Without the [Wraith Radar](/cad/integration-plugins/in-game-integration/available-plugins/wraithv2) plugin properly installed the ALPR **WILL NOT** work. ## Sonoran Radio Integration ### Functionality The mobile command center is equipped with an extendable Sonoran Radio repeater. When extended, the mobile command center will function as a [Sonoran Radio tower](/radio/game-integrations/fivem/in-game-radio/in-game-repeaters#mobile-command-center-repeater) to increase reception in the area. ### Configuration The Sonoran Radio integration is both automatic and seamless. In order for this to work you **MUST** have the [Sonoran Radio FiveM Script](/radio/game-integrations/fivem/installing-the-in-game-resource) properly installed and configured. > [!WARNING] > > Sonoran Radio's resource must remain named `sonoranradio` or integration **WILL NOT** work. > [!WARNING] > > Without the [Sonoran Radio FiveM Script](/radio/game-integrations/fivem/installing-the-in-game-resource) properly installed the Sonoran Radio integration **WILL NOT** work. ## Config Breakdown | Config Option | Option Description | Possible Values | | - | - | - | | `configuration_version` | This is used by the auto updater - simply don't touch it | `Integer` | | `auto_update` | Would you like the script to automatically update to the newest version? | `True` or `False` | | `debug_mode` | Would you like to enable debug prints? | `True` or `False` | | `eBrakeWithSliders` | Would you like to enable/ disable the MCC's emergency brake when sliders are opened/ closed | `True` or `False` | | `speedType` | How would you like to display the speed on the ALPR? | `'mph'` or `'kph'` | ### `config.keys` Breakdown | Config Option | Option Description | Possible Values | | - | - | - | | `cmd` | The command that will be triggered | `String` | | `name` | The key that will be displayed in the help menu upon entering the MCC | `String` [See Here for options](https://docs.fivem.net/docs/game-references/controls/#controls) | | `indexParam` | The default key that will be used to trigger said command | `Key` [See Here for options](https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/) | | `lang` | The description of what the key will do | `String` | ### `config.doorControl` Breakdown | Config Option | Option Description | Possible Values | | - | - | - | | `method` | How would you like to control the MCC doors? | `1` = commands - `2` = menu `3` = none `4` = commands & menu | | `cmd` | The command that will be triggered | `String` | | `lang` | The description of what the command will do | `String` | ### `config.language` Breakdown Here you can imput your own translations or change the wording of all text prompts and popups. ### `config.alpr` Breakdown | Config Option | Option Description | Possible Values | | - | - | - | | `enabled` | Would you like to enable the MCC ALPR system? | `true` or `false` | | `enableSonoranCad` | Would you like the ALPR to run plates through Sonoran CAD? | `true` or `false` | | `scanAi` | Would you like the ALPR system to scan AI plates? | `true` or `false` | ### `config.radio` Breakdown | Config Option | Option Description | Possible Values | | - | - | - | | `enabled` | Would you like to enable the MCC Radio Repeater system? | `true` or `false` | | `range` | Would you like more or less mobile radio repeater range? | int defualt: `750` | ## Commands These are the default names of commands, they may have been modified by the server owner. | Command Name | Command Description | | - | - | | `/mcctoggle [door]` | This is the base command that. (See [`Available Doors`](/store/mcc/getting-started#available-doors) for all the possible doors) | | `/togglem` | Toggle the MCC control menu | | `/mcccamera` | Access the MCC camera system | | `/mccintlights` | Toggle the MCC interior lights | | `/mccradio` | Toggle the MCC radio repeater | | `/mccplatelock` | Lock the current/ last plate from the ALPR | ## Available Doors | Name | Command | | - | - | | Antenna | `antenna` | | Sliders | `sliders` | | Rear Door | `reardoor` | | Driver's Door | `frontleft` | | Passenger's Door | `frontright` | | All Doors | `all` | ## Troubleshooting ### Crashing when spawning or enterning the MCC 1. Ensure you have removed the `CHANGEME` from the configuration files. 2. Ensure you have removed the `CHANGEME` from all four of the `.meta` files in `/sonoran-mcc/data/` 3. Ensure you are **NOT** ensuring/starting the `sonoran-mcc_helper` resource and are only ensuring the `sonoran-mcc` resource. 4. Ensure you are not restarting the MCC resource live on the server. It should only be ran on server startup from your `server.cfg` file. 5. Clear your FiveM `server-data/cache` folder. 6. Some users have reported crashing when spawning the vehicle via TxAdmin, try only using the vMenu. # Terms and Policies Source: https://docs.sonoransoftware.com/store/other/policy Frequently Asked Questions, Terms of Service, Privacy Policy, Refund and Purchase Policy for Sonoran Store and Five Bundle ## Terms of Service Both Sonoran Store and Five Bundle are hosted on and use the abide by the Terms of Service of Tebex.io Webstore/Checkout. You may view the up to date [Terms of Service here](https://www.fivebundle.com/terms/checkout). ## Privacy Policy Both Sonoran Store and Five Bundle are hosted on and use the Privacy Policy of Tebex.io Webstore/Checkout. You may view the up to date [Privacy Policy here](https://www.fivebundle.com/terms/privacy). ## Refund and Purchase Policy Sonoran Store and Five Bundle share the same great Refund and Purchase Policy with Sonoran Software hosted software products, backed by our 48-hour money back guarantee. You can view the [full policy here](https://sonoransoftware.com/assets/files/internal/purchase_policy.pdf) ## FAQ ### Cancelations and Refunds #### Where can I cancel my subscription? Customers may cancel their Five Bundle or SonoranM subscription at anytime via [Tebex.io's System](https://checkout.tebex.io/payment-history/) or via cancellation link included in the original purchase and subscription renewal emails. All assets will remain available until the end of the current subscription term. #### If I cancel my subscription my purchase do I keep the content? All items in the Five Bundle and SonoranM subscriptions are protected via Tebex and CFX's asset escrow encryption system. All assets will remain available until the end of the current subscription term. #### Where can I request a refund? [Refunds are offered within 48 hours of any purchase or renewal](https://sonoransoftware.com/assets/files/internal/purchase_policy.pdf). Refunds must be requested on the support.sonoransoftware.com portal. Requesting a refund will revoke access to all Five Bundle content immediately. ### Customer Support #### Sonoran Store / SonoranM All support requests for purchases and items from Sonoran Store may be directed to: [support.sonoransoftware.com](https://support.sonoransoftware.com) #### Five Bundle Five Bundle customers may receive customer support via the following methods: **Payment questions/issues/refunds:** [support.sonoransoftware.com](https://support.sonoransoftware.com) **Sonoran Store Items:** [support.sonoransoftware.com](https://support.sonoransoftware.com) **Redneck Modifications Items:** [support.redneckmods.com](https://support.redneckmods.com/) **London Studios Items:** [support.londonstudios.net](https://support.londonstudios.net/) ## Military and First Responder Discount As part of our commitment to serving the community, we deeply value the relentless effort and dedication displayed by our military and first responders, day in and day out. All U.S. military personnel, police officers, firefighters, and paramedics qualify for a 15% monthly discount. ![](https://docs-assets.sonoransoftware.com/sha256/2f/2f91ce952f529277d56d78f02fcc807178d4bc79d57a7105da249fa8b81c086e.png) *First Responder & Military Discount Promotional Image* [Click here to learn more!](https://sonoran.link/service) # Power Grid Source: https://docs.sonoransoftware.com/store/power-grid ![](https://docs-assets.sonoransoftware.com/sha256/13/131346e6cb34d5fdd0c047caa43b499c5b066c4134ca71cb41427bd933ce18b4.png) *Sonoran Software - Power Grid Promotional Image* [Video tutorial](https://www.youtube-nocookie.com/embed/3JhmcqlOWv8) Sonoran Software - Power Grid Promotional Video ## Power Grid ### Features * Ability to operate standalone * Support for AcePerms, ESX, QBCore, and custom permissions systems ![](https://docs-assets.sonoransoftware.com/sha256/74/7442a6cd89c3cc4e3241df7619fbef9d61b6fe82b2a8d05b9157b5603f2d0137.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/f3/f395062555a349178a63565c43989108d3ca95dff2d2b99893f2640a09efd556.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/2c/2cd4c759878b44b24579e76418e5fa2fa5b181f59b2d19790909559487241b6d.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/25/2525e07ac2e8d82b3959211282e3a22b201653fa9a884f0af0e10c96fd691539.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/72/725d8ad93dd7d2f71e1f5ac383471d3709d7e6fd21a41f3596cc3bb1edbeb6f2.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/22/220af366072c82d2fccab9dd9c6749eff7024e7396f68b950f9a09c528a9450f.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/e9/e912311f1e1574667e776dfb5b6ca950a7077808418f3dce25afff5d1f7b2419.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/4a/4aaef6ecfa9678a09e547cfaefedc093b070cc5a7b10a1a28ff8e4d942b337b1.png) *Sonoran Software - Power Grid Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/ff/ff4d21ec116380c0af4d40bb4b063a42eafd808bd03eac3bc75847ea03d76e15.png) *Sonoran Software - Power Grid Promotional Image* ### Commands These are the default names of commands, they may have been modified by the server owner. | Command Name | Command Description | Required Permission | | - | - | - | | `/spawnnewsystem [prop] [name]` | This command will allow an admin to spawn a new power system using a gun placement system where the name argument is the label for the new power system and the prop argument is the text name of the model to use | Admin or as configured | | `/cancelsystemplacement` | This command will cancel the current power system placement if one is currently in progress. | N/A | | `/showsystemids` | This command will draw the ID of power systems which you are close to with 3D text near the base of the power system | N/A | | `/getpositiondata [system id]` | This command will print the current positional data of the power system to the chat | Admin or as configured | | `/changesystemdata [system data] [position data type] [value]` | This command will change the value which you specify of the power system you specify, run this command without arguments for example usage. All changes made with this command will be immediately saved | Admin or as configured | | `/reloadpowersystems` | This command will completely reload the systems.json from the server's storage | Admin or as configured | | `/pslink [system id]` | This command will allow the admin to link a power system to a different system using a system similar to the gun placement system | Admin or as configured | | `/cancelpslink` | This command will cancel the current link in progress | N/A | ### Model Options The model on the left is named `prop_street_light_solar_panel` and the model is named `prop_powerbox`. ![](https://docs-assets.sonoransoftware.com/sha256/1c/1c773957a839bd1e9869a3da337db0e0e5fcf60e87bfd916dd5fd3fb0e7d015d.png) *Sonoran Software - Power Grid Promotional Image* ### Changelog #### v1.1.0 #### Hotpatch * `Fix ESX getSharedObject handling to work with latest version of ESX` #### v1.0.9 #### Hotpatch * `Add restart handling to prevent crashing` #### v1.0.7 #### Feature * `Add color indicators to hacking mini game. Green numbers mean both the number entered is correct and in the correct position. Red numbers mean the number is either incorrect or not in the correct position` #### v1.0.3 * `Includes a possible fix for higher than normal server timings on player join for certain ESX configurations` #### v1.0.1 * `Fixed: discord.CHANGEME.lua file added to escrowignore (required config file for configuring discord webhooks)` #### v1.0.0 * `Initial Release` # Advanced Documentation Source: https://docs.sonoransoftware.com/store/power-grid/advanced-documentation In this documentation you'll find information on integrating your scripts with the Power Grid system from Sonoran. > [!WARNING] > > All events listed here are server side. ### Registration Event This event will be called when a player with admin permissions runs the `/link` command to link a system to a new device. The event will include the position and entity id of the device as well as the request ID as parameters. When receiving this information you should send back the data about the object either near/at that location or with that entity ID. See examples below for details. ```lua theme={null} AddEventHandler("SonoranScripts::PowerGrid::RegisterNewDevice", function(coords, entityID, requestID) -- Get the correct system TriggerEvent("SonoranScripts::PowerGrid::NewDevice", "internal device identifier", "internal script identifier", requestID) end) ``` Below is an example of how registration is done within our [Traffic Camera](/store/speed-camera) Script: ```lua theme={null} AddEventHandler("SonoranScripts::PowerGrid::RegisterNewDevice", function(coords, entityID, requestID) for _, v in pairs(cameraDatabase) do if v.entityObject == entityID then TriggerEvent("SonoranScripts::PowerGrid::NewDevice", v.ID, "trafficcams", requestID) end end end) ``` > [!WARNING] > > The entity ID field may be nil if the player does not aim directly at the device. You may want to run a check if you have a device in a small area surrounding the target if the entity ID is nil. When a power system is disabled an event will be triggered that contains a table of internal script identifiers that map to a table of internal IDs of devices that are affected by the system that was disabled. An example from the Sonoran Traffic Camera script is available below: ```lua theme={null} RegisterNetEvent("SonoranScripts::PowerGrid::DeviceDisabled", function(affectedDevices) for _, v in pairs(affectedDevices["trafficcams"]) do cameraDatabase[tostring(v.ID)].disabled = true end TriggerClientEvent(GetCurrentResourceName() .. "::UpdateDB", -1, cameraDatabase) end) ``` > [!WARNING] > > The event above and the one below **must** use the `RegisterNetEvent` native, this is to avoid possible issues believed to be caused by resource load order in the server.cfg When a power system is repaired a similar event will be triggered an example from the same script is below: ```lua theme={null} RegisterNetEvent("SonoranScripts::PowerGrid::DeviceRepaired", function(affectedDevices) for _, v in pairs(affectedDevices["trafficcams"]) do cameraDatabase[tostring(v.ID)].disabled = false end TriggerClientEvent(GetCurrentResourceName() .. "::UpdateDB", -1, cameraDatabase) end) ``` # Getting Started Source: https://docs.sonoransoftware.com/store/power-grid/getting-started ## Acquire the Script After purchasing the script through the sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/13/13101301b4660ed2f09674669753ae66652e373a52d14e08b8f2e034386371e5.png) *Sonoran Software - Power Grid - Folders* 2. In the `sonoran-powergrid` folder are three files you must change and configure: 1. `config.CHANGEME.lua` needs to be renamed to `config.lua` 2. `discord.CHANGEME.lua` renamed to `discord.lua` 3. And finally `systems.CHANGEME.json` renamed to `systems.json`. ![](https://docs-assets.sonoransoftware.com/sha256/b9/b9e459e19491dc60d626873af8f5201b1d28a4d06135d706d02bdd778d392930.png) *Sonoran Software - Power Grid - Remove .CHANGEMEs* 3. You can open and edit the `config.lua` file to change the settings for the power grid script. You can also edit the `discord.lua` file to add discord webhook updates for when the state of the power grid changes. For more advanced users, you can add custom power grid stations in the `systems.json` file by following the template 4. Finally, in your `server.cfg` add the following: ``` ensure sonoran-powergrid add_ace resource.sonoran-powergrid command allow add_ace resource.sonoran-powergrid_helper command allow ``` ## Configuring the Script > [!WARNING] > > This script utilizes two separate Lua configs. This is for security reasons. Having a separate config for your Discord Configuration keeps them server side only and safer from malicious clients. > [accordion] Default config.lua > > ```lua theme={null} > Config = {} > > -- General Configuration Section -- > Config.configuration_version = 1.0 > Config.debug_mode = false -- Only useful for developers and if support asks you to enable it > Config.permission_mode = "ace" -- Available Options: ace, framework, custom > > -- Ace Permissions Section -- > Config.ace_perms = { > ace_object_place = "sonoran.powersystems", -- Select the ace for placing new power systems and using admin repair > ace_object_notification = "sonoran.police", -- Select the ace for receiving in-game notifications > ace_object_can_hack = "sonoran.hacker", -- Select the ace for being allowed to hack power systems > ace_object_can_repair = "sonoran.repairman" -- Select the ace for being allowed to repair power systems > } > > -- Framework Related Settings -- > Config.framework = { > framework_type = "qb-core", -- This setting controls which framework is in use options are esx or qb-core > police_job_names = {"police"}, -- An array of job names that should receive notifications > allowed_to_place_groups = {"admin"}, -- The permission group that should be allowed to place new systems > hacker_job_names = {"unemployed", "banker", "it"}, -- An array of job names that should receive notification_message > repairman_job_names = {"repairman"}, -- An array of job names that should receive notifications > use_hacker_job_list_as_blacklist = false -- This will treat the hacker job list as a blacklist rather than a whitelist > } > > -- Configuration For Custom Permissions Handling -- > Config.custom = { > check_perms_server_side = true, -- If true the permission event will be sent out to the server side resource, this is recommended > permissionCheck = function(source, type) -- This function will always be called server side. > if type == 0 then -- Check for admin > return true or false -- Return true if they have admin, return false if they don't > elseif type == 1 then -- Check for notification perms > return true or false -- Return true if they have permissions, return false if they don't > elseif type == 2 then -- Check for hacker perms > return true or false -- Return true if they have permissions, return false if they don't > elseif type == 3 then -- Check for repair perms > return true or false -- Return true if they have permissions, return false if they don't > end > end > } > > -- Choose Custom Command Names -- > Config.command_names = { > spawn_new_system = "spawnnewsystem", > cancel_new_spawn = "cancelsystemplacement", > position_debug_display = "showdebugposition", > upload_client_log = "uploadpowerclientlogs", > upload_server_log = "uploadpowerserverlogs", > show_system_id = "showsystemids", > get_position_data = "getsystemposdata", > change_position_data = "changesystemdata", > reload_systems = "reloadpowersystems", > cancel_new_link = "cancelpslink", > start_new_link = "pslink" > } > > Config.power_system_settings = { > show_system_blips_for_police = false > } > > -- Feature Settings That Don't Require Other Resources -- > Config.standalone_features = { > show_notification_blips_for_police = true, -- Should police see a blip when a car is pinged? > blips_expire_after_seconds = 90, -- Number of seconds before the blip type above is removed > enable_auto_update = true, -- Should the script automatically update itself, it will check for updates regardless > notify_on_failed_disable = true, -- Should the script notify police when someone attempts and fails to disable a power system > use_minigame_for_disable = true, -- Set to false to not require a minigame and enable instant hacking > notify_on_hack_success = true, -- Set to false to disable notification about successful power system hacks > delay_for_notifying_successful_hack = 10 -- Time in seconds between a successful hack and notification going out, set to 0 to disable delay > } > > --[[ > Placeholder list: > {{POSTAL}} > {{EVENT_TYPE}} > {{SYSTEM_NAME}} > ]] > > -- Settings For Integrations With Other Resources -- > Config.integration = { > SonoranCAD_integration = { > use = true, -- Should any of the options below be used? Integration with this script requires at least a Plus subscription. > add_live_map_blips = true, -- Should blips for the power systems be added to the live map? This requires the Pro SonoranCAD plan > enable_911_calls = true, -- Should 911 calls be generated in the CAD when a BOLO vehicle or speeder is detected? > ["911_caller"] = "Automated Powergrid Alerts", -- Who should the 911 call appear to be from? > ["911_message"] = "{{EVENT_TYPE}} Alert at power system with name {{SYSTEM_NAME}}", -- Configurable 911 call description > nearest_postal_plugin = "nearest-postal", -- If you want to use postals, what is the exact name of your postals script? > disable_in_game_with_dispatch = true, -- If true disables in-game notifications when dispatch is online in CAD > disable_cad_without_dispatch = true -- If true disables CAD notifications when dispatch is offline in CAD > } > } > > -- Notification Settings -- > Config.notifications = { > type = "native", -- Available options: native, pNotify, okokNotify, or cadonly > notification_title = "{{EVENT_TYPE}}", -- Notification Title for methods that support it > -- Uncomment line below and comment line 105 if you plan to use pNotify > -- notification_message = "{{EVENT_TYPE}} Alert
Power System Name: {{SYSTEM_NAME}}" > notification_message = "{{EVENT_TYPE}} Alert\nPower System Name: {{SYSTEM_NAME}}", -- The text of the notification > notification_repaired_title = "Power System Repaired", > notification_repaired_message = "Power System repaired successfully: {{SYSTEM_NAME}}" > } > ``` > [accordion] Default discord.lua > > ```lua theme={null} > DiscordConfig = { > enabled = false, -- Should discord webhooks be used? > webhook_url = "", -- See https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks > webhook_title = "{{EVENT_TYPE}} Alert", -- The title of the webhook embed > webhook_message = "Power System Name: {{SYSTEM_NAME}}" -- The message that the webhook displays > } > ``` ## Setting Up Permissions (Ace Permissions Only) To use this script you must assign the permissions object to the groups which you would like to have permissions. You can find the objects needed in the config under `Config.ace_perms` section in the config. To assign these perms you must add the lines to your `server.cfg` or where ever you setup permissions on your server. You can learn more about Ace Permissions [here](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917). Example: ```lua theme={null} add_ace group.admin sonoran.powersystems allow add_ace group.leo sonoran.police allow add_ace group.hacker sonoran.hacker allow add_ace group.moderator sonoran.repairman allow ``` ## System Location Config You have two options for placing new systems: 1. You can use the command `/spawnnewsystem [prop] [name]` to initiate spawning a new system and generate the relevant config data * After running this command you must pull out, aim, and shoot with a gun to confirm placement. * You may need to modify some of the rotation values manually to get that perfect placement you are looking for. * [Click here for more information.](/store/general/gun-placement) 2. You can manually copy and paste an existing config and then modify the values to meet your needs for the new system ### `systems.json` Property Explanation | Property Name | Example | Notes | | - | - | - | | `ID` | 2 | `ID` must be unique. No other power system can share this ID | | `Prop` | `prop_powerbox` | Valid values are `prop_powerbox` and `prop_street_light_solar_panel` | | `Position` | | This is a table that contains the x, y, and z coords of the power system | | `Rotation` | | This is a table that contains the x, y, and z rotation of the power system | | `Label` | `Test 1` | This is a human readable label for the power system, can have spaces | | `Devices` | | This is an table of devices attached to the power grid | ## Commands These are the default names of commands, they may have been modified by the server owner. | Command Name | Command Description | Required Permission | | - | - | - | | `/spawnnewsystem [prop] [name]` | This command will allow an admin to spawn a new power system using a gun placement system where the name argument is the label for the new power system and the prop argument is the text name of the model to use | Admin or as configured | | `/cancelsystemplacement` | This command will cancel the current power system placement if one is currently in progress. | N/A | | `/showsystemids` | This command will draw the ID of power systems which you are close to with 3D text near the base of the power system | N/A | | `/getpositiondata [system id]` | This command will print the current positional data of the power system to the chat | Admin or as configured | | `/changesystemdata [system data] [position data type] [value]` | This command will change the value which you specify of the power system you specify, run this command without arguments for example usage. All changes made with this command will be immediately saved | Admin or as configured | | `/reloadpowersystems` | This command will completely reload the systems.json from the server's storage | Admin or as configured | | `/pslink [system id]` | This command will allow the admin to link a power system to a different system using a system similar to the gun placement system | Admin or as configured | | `/cancelpslink` | This command will cancel the current link in progress | N/A | # Radar Detector / Jammer Source: https://docs.sonoransoftware.com/store/radar-detector Detect and Jam Police Radar For A Smooth Getaway ![](https://docs-assets.sonoransoftware.com/sha256/67/6795a6e863d59c2c9f6934390b7d4e64d07e0315bfe7d17701774847ab5f28ee.png) *Sonoran Software - Radar Detector Promotional Image* [Video tutorial](https://www.youtube-nocookie.com/embed/E3263PAPmfc) Sonoran Software - Radar Detector Promotional Video ## Radar Detector / Jammer ### Features * Ability to operate standalone * Mouse placement editor with Move arrows, Rotate rings, and optional snapping ![](https://docs-assets.sonoransoftware.com/sha256/9d/9d750aeb1df6f6631f8e3427db5ffd7fdb4bf779e410a444844016bd8d7d27c8.png) *Sonoran Software - Radar Detector Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/20/203a6f3612083dfe98549567fcfd63ba2d935eaad2013cb8fe92e86324e7eac8.png) *Sonoran Software - Radar Detector Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/9c/9c146b739b0a263524e65ec1213c0e909ab2b3f59edec0cbfe646aaec841138d.png) *Sonoran Software - Radar Detector Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/c8/c83d27b8aff213eed523bccbac0984e96d2bac648d5e8052c63e900516ee12e3.png) *Sonoran Software - Radar Detector Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/72/725d8ad93dd7d2f71e1f5ac383471d3709d7e6fd21a41f3596cc3bb1edbeb6f2.png) *Sonoran Software - Radar Detector Promotional Image* ### Changelog **v1.0.3** * `feat: Framework garage persistence` * Vehicles equipped with radar detectors will now retain their exact detector placement when stored and retrieved from your garage in QBCore or QBox. Simply park the vehicle, store it, and when you take it back out, your radar detector will be restored exactly as you configured it—ready to hit the road instantly. **v.1.0.2** * `fix: jQuery script source leading to some users encountering a Mixed Sources error in their client console` **v1.0.1** * `feat: Add in Luxart Pro Laser 4 Integration` [**Luxart Pro Laser 4**](https://forum.cfx.re/t/luxart-pro-laser-4-lidar-resource/5081806) **v1.0.0** * `Initial Release` # Getting Started Source: https://docs.sonoransoftware.com/store/radar-detector/getting-started This page will walk you through getting, installing and using the Radar Detector script. ## Acquire the Script After purchasing the script through the Sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install Prerequisite > [!WARNING] > > You must use the Sonoran Fork of WK\_Wars2x found [here](https://github.com/Sonoran-Software/wk_wars2x/releases/latest). > > Minimum version required: `v1.3.4-sonoran` > [!NOTE] > > If you are using the Sonoran CAD FiveM Integration, **DO NOT** install a second copy of WK\_Wars2x, it is included and updated with the `sonorancad` resource. WK\_Wars2x Radar script is required for this resource to function fully. Please ensure you are using the **Sonoran Fork** of WK\_Wars2x. This is included with the [Sonoran CAD FiveM Integration](/cad/integration-plugins/in-game-integration/fivem-installation) by default. You can also download the latest release of the resource [here](https://github.com/Sonoran-Software/wk_wars2x/releases/latest). ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/10/1092172ab2d151341d52b43ce154018506814be68dca92742f7a8bbce4da1d46.png) *Sonoran Software - Radar Detector - Folders* 2. In the `sonoran-radarddetector/config` folder there will be a file called `config.CHANGEME.lua` you should rename that to be `config.lua` and configure the settings inside as you would like them to be configured based on the configuration documentation below. > [!WARNING] > > **QBCore** Specific - Please follow `Step 3` to ensure inventory items have correct photos! 3. Drag the `radar_detector.png` from `/sonoran-radardetector/` into the following folder: `/resources/[qb]/qb-inventory/html/images` > [!WARNING] > > **ESX Specific** Specific - Please follow `Step 4` to ensure inventory items work! 4. a.) Import the `ESX Installme.sql` file into your ESX database ***If NOT using\*\*\*\***\*\* ****`ox_inventory`**\*\* ****\*\*\*\*continue to step 5*** b.) Add the following code to the `/ox_inventory/data/items.lua` file ```lua theme={null} ['sonoran_radar_detector'] = { label = 'Radar Detector/Jammer', weight = 1, stack = true, close = true, description = nil }, ``` 5. Finally, in your `server.cfg` add the following: ``` ensure sonoran-radardetector add_ace resource.sonoran-radardetector command allow add_ace resource.sonoran-radardetector_helper command allow ``` > [!WARNING] > > **NEVER** add `ensure sonoran-radardetector_helper` or `ensure [sonoranscripts]` to your server.cfg as this will lead to crashing under specific conditions. ## Configuring the Script > [accordion] Default config.lua > > ```lua theme={null} > Config = {} > > Config.debug_mode = false -- Enable debug mode > Config.configuration_version = 1.0 > Config.auto_update = true -- Enable auto updates > > Config.lang = { > addNewRadarHelp = 'Open the menu to begin spawning a new radar detector model', > vehNotCompatible = 'This vehicle is not compatible with the radar detector placement system!', > vehAlrRadar = 'This vehicle already has a valid radar!', > noItem = 'You do not have a radar detector in your inventory!', > radarMenuHeader = 'Radar Detector', > creditsPanel = 'Made by', > spawningSubMenu = 'Radar Detector Spawning', > attachingSubMenu = 'Attaching', > deletionSubMenu = 'Are you sure?', > radarRemoteSubMenu = 'Radar Remote Menu', > radarRemoteMenuButton = "Radar Detector Remote", > radarAttachMenuButton = 'Attach Radar Detector', > deleteMenuButton = 'Delete Current Radar Detector', > spawnMenuButton = 'Spawn Radar Detector', > deletionConfirmationButton = 'Yes, I want to permanatly delete this radar detector', > deletionCancelButton = 'No, I want to keep this radar detector', > deletionCancelled = 'Radar detector deletion cancelled', > noDetectorFound = 'No Radar Detector is in this vehicle!', > toggleDetectionMode = 'Toggle Detection Mode', > detectionModeEnabled = 'Radar Detection Mode ~g~enabled~w~!', > detectionModeDisabled = 'Radar Detection Mode ~r~disabled~w~!', > toggleJammingMode = 'Toggle Jamming Mode', > jammingModeEnabled = 'Radar Jamming ~g~enabled~w~!', > jammingModeDisabled = 'Radar Jamming ~r~disabled~w~!', > toggleRadarPower = 'Toggle Radar Detector Power', > detectorPoweringUp = 'Radar Detector is powering ~g~up~w~!', > detectorPoweringDown = 'Radar Detector is powering ~r~down~w~!', > modelComboBox = 'Model:', > vehAlrRadarNoti = '~r~This vehicle already has a radar detector of this type', > notInVeh = '~r~You must be in a vehicle!', > objectName = 'Sonoran Laser/Radar Detector', > vehicleBone = 'Radar - Vehicle Bone', > radarNotInInv = '~r~You do not have a radar detector in your inventory!', > object = "Object:", > vehicleBoneComboBox = 'Vehicle Bone', > attachButton = 'Attach', > detachButton = 'Detach', > confirmPlacementButton = 'Confirm Placement', > cannotGoFaster = '~r~You cannot go any faster!', > cannotGoSlower = '~r~You cannot go any slower!', > } > > Config.commands = { > radarDetectorMenu = 'detectormenu', > restricted = false -- should the detector menu be restricted? > } > > Config.permissionMode = "ace" -- Available Options: ace, framework, custom > > -- Ace Permissions Section -- > Config.acePerms = { > aceObjectUseMenu = "sonoran.radardetector", -- Select the ace for placing new ATM's and using admin repair > } > > -- Framework Related Settings -- > Config.framework = { > frameworkType = "qb-core", -- This setting controls which framework is in use options are esx or qb-core > inventoryType = "normal", -- Which inventory you would like to use normal, quasar, ox_inventory (OX Will only work for ESX Legacy as of now) > civilianJobNames = {"unemployed"}, -- An array of job names that should be allowed to use the radar menu > useCivilianJobListAsBlacklist = false, -- This will treat the civilian job list as a blacklist rather than a whitelist > } > > -- Configuration For Custom Permissions Handling -- > Config.custom = { > checkPermsServerSide = true, -- If true the permission event will be sent out to the server side resource, this is recommended > permissionCheck = function(_, type) -- This function will always be called server side. > if type == 0 then -- Check permission to use the menu > return true or false -- Return true if they have admin, return false if they don't > end > end > } > > Config.general = { > playRandomSounds = true, -- Should random sounds be played when the radar is powered on? > randomSounds = {"x_band", "k_band", "ka_band", "laser", "gps_connected"}, -- An array of sounds that should be played randomly when the radar is powered on > randomSoundInterval = 5, -- How often in minutes should a random sound be played if a radar is on? > detectDistance = 250.0, -- How far away should the player be able to detect a radar? > notificationType = "native", -- Available options: native, pNotify, okokNotify > } > > Config.blacklistedCars = { > "FIRETRUK", > "LGUARD", > "PBUS", > "POLMAV", > "POLICET", > "PRANGER", > "PREDATOR", > "RIOT", > "RIOT2", > "AMBULAN" > } > ``` ### Configuration Breakdown | Config Option | Option Description | Default Value | Type | | - | - | - | - | | `debug_mode` | Enable enhanced logging - typically for diagnosing issues | `false` | Boolean | | `configuration_version` | The version your config file is currently set to. **DO NOT EDIT** | `1.0` | Int | | `auto_update` | Enabled auto updates with our Sonoran Updater | `true` | Boolean | | `lang` | Here you will find our easy translations, simply edit if you would like to update the language used in the script | English | String | | `radarDetectorMenu` | Command to open the radar detector menu | `detectormenu` | String | | `restricted` | Specifies if the detector menu should be restricted | `false` | Boolean | | `permissionMode` | Permission mode for the radar detector | `ace` | String | | `aceObjectUseMenu` | Select the ace premission allowed to use the radar detector menu | `sonoran.radardetector` | String | | `frameworkType` | This setting controls which framework is in use options are esx or qb-core | `qb-core` | String | | `inventoryType` | Which inventory you would like to use normal, quasar, ox\_inventory (OX Will only work for ESX Legacy as of now) | `normal` | String | | `civilianJobNames` | An array of job names that should be allowed to use the radar menu | `{"unemployed"}` | Table | | `useCivilianJobListAsBlacklist` | This will treat the civilian job list as a blacklist rather than a whitelist | `false` | Boolean | | `playRandomSounds` | Should random sounds be played when the radar is powered on? | `true` | Boolean | | `randomSounds` | An array of sounds that should be played randomly when the radar is powered on | `{"x_band", "k_band", "ka_band", "laser", "gps_connected"}` | Table | | `randomSoundInterval` | How often in minutes should a random sound be played if a radar is on? | `5` | Number | | `detectDistance` | How far away should the player be able to detect a radar? | `250.0` | Number | | `notificationType` | Available options: native, pNotify, okokNotify | `native` | String | | `blacklistedCars` | Vehicles that are not allowed to have a radar detector put in them | `Table` | Table | ## Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/detectormenu` | This command will open the radar detector/jammer menu and allow you to configure and spawn your radar detector/jammer | Everyone or as configured | ## Usage ### Place a detector 1. Sit in a compatible vehicle and bring it to a complete stop. Close any tablet or other open interface. 2. Run `/detectormenu` to open the detector menu. Your server may use a different command if configured. 3. Select **Spawn Radar Detector**, then select **Spawn Radar Detector** in the submenu to open the mouse placement editor. 4. Use **Move** and **Rotate** to position the detector inside the vehicle. 5. Select **Apply to this vehicle** to install the detector at the chosen position. > [!NOTE] > > In framework mode, you need a Radar Detector/Jammer item in your inventory. The item is used when the installation is accepted. Selecting **Cancel** before applying leaves the item in your inventory. ### Move Select **Move**, then left-click and drag a colored arrow to move along one axis. Drag a colored square to move along two axes at once. > Screenshot placeholder — Move controls: In-game cabin view with the detector selected, **Move** active, colored arrows and squares visible, and the toolbar and **Apply to this vehicle** button in frame. ### Rotate Select **Rotate**, then left-click and drag a colored ring to turn the detector around that axis. The outer gray ring rotates it around your viewing direction. > Screenshot placeholder — Rotate rings: In-game cabin view with the detector selected, **Rotate** active, colored rotation rings and the outer gray ring visible, and the toolbar and **Apply to this vehicle** button in frame. ### Placement controls | Control | What it does | | - | - | | **Local axes / World axes** | Switch between axes aligned with the detector and axes aligned with the game world. | | **Snap: off** | Enable movement in 1 cm steps and rotation in 5° steps. Select it again to turn snapping off. | | Right mouse drag | Look around from the cabin camera. Enable **Orbit detector** to rotate the camera around the detector instead. | | Middle mouse drag | Lean the camera slightly to adjust your view. | | Mouse wheel | Zoom the view in or out. | | **Look at detector** | Aim the camera at the detector from your current viewpoint. | | **Cabin view** | Restore the starting camera view. | | **Reset** | Restore the detector's position and rotation from when you opened the editor. | | **Cancel** | Close the editor and discard the placement changes. | Keep the vehicle stationary while placing the detector. Placement cancels if the vehicle moves or you leave it. ### Reposition a detector Run `/detectormenu` in the stopped vehicle, select **Attach Radar Detector**, then **Position radar detector with mouse**. Use the same Move and Rotate controls, then select **Apply to this vehicle** to keep the new placement. **Cancel** keeps the previous placement. ### Use the detector and jammer After applying the placement, reopen `/detectormenu` and select **Radar Remote Menu**. Use **Toggle Radar Detector Power** to turn it on, then use **Toggle Detection Mode** and **Toggle Jamming Mode** as needed. ### Placement troubleshooting * If the editor will not open, stop the vehicle, close other interfaces, and check that the vehicle is compatible and you have menu access. In framework mode, also check that you have the detector item. * If you lose sight of the detector, select **Look at detector** or **Cabin view**. * If repositioning reports that you do not control the detector, retry once you have control of it. # Radar Display Source: https://docs.sonoransoftware.com/store/radar-display Run Radar Like Never Before ![](https://docs-assets.sonoransoftware.com/sha256/d4/d41dbb5b1e0f85940f560102daa5f422f65bc95db2416794200e8b422eea5b3a.png) *Sonoran Software - Radar Display Promotional Image* [Video tutorial](https://www.youtube-nocookie.com/embed/mZqMl9oNQcQ) Sonoran Software - Radar Display Promotional Video ## Radar Display ### Features * Ability to operate standalone * Mouse placement editor with movement arrows, rotation rings, and snapping (release candidate). [Move, rotate, and save a radar](/store/radar-display/getting-started#place-and-edit-a-radar). ![](https://docs-assets.sonoransoftware.com/sha256/4a/4aaf5284a4fb7a256949093d06fe0a0f4d43cbadfe8149d4f834972a40d705c8.png) *Sonoran Software - Radar Display Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/71/71e0c543dd55a63d2a2bbc78ea7ffa3e653184c8e6fed0fcecdd0c5360771c19.png) *Sonoran Software - Radar Display Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/54/5470cdc4169ca023c64cf918a9fbd5ec134355ea139cce46a2c556763e2a66b7.png) *Sonoran Software - Radar Display Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/66/66837bfe878c0f32791cc2144dadf7988892bb716da4093364cf96366d1f2e2a.png) *Sonoran Software - Radar Display Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/58/5809224436bf3cf7bb4dc4aa78c38dfad5284d125a99082debfeca08c8807670.png) *Sonoran Software - Radar Display Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/72/725d8ad93dd7d2f71e1f5ac383471d3709d7e6fd21a41f3596cc3bb1edbeb6f2.png) *Sonoran Software - Radar Display Promotional Image* ### Changelog #### v1.0.4 **Feature** * `Add additional radar models` #### v1.0.3 #### Feature * `Add ability to delete currently spawned radars from vehicle and radar database` #### v1.0.2 **Hotfix** * `fix: "attempt to call a nil value (field 'SpawnItem')"` #### v1.0.1 **Hotfix** * `fix: Escrow ignore config files` #### v1.0.0 * `Initial Release` # Getting Started Source: https://docs.sonoransoftware.com/store/radar-display/getting-started This page will walk you through getting and installing the Radar Display script. ## Acquire the Script After purchasing the script through the Sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install Prerequisite > [!WARNING] > > You must use the Sonoran Fork of WK\_Wars2x found [here](https://github.com/Sonoran-Software/wk_wars2x/releases/latest). > > Minimum version required: `v1.3.3-sonoran` > [!NOTE] > > If you are using the Sonoran CAD FiveM Integration, **DO NOT** install a second copy of WK\_Wars2x, it is included and updated with the `sonorancad` resource. WK\_Wars2x Radar script is required for this resource to function fully. Please ensure you are using the **Sonoran Fork** of WK\_Wars2x. This is included with the [Sonoran CAD FiveM Integration](/cad/integration-plugins/in-game-integration/fivem-installation) by default. You can also download the latest release of the resource [here](https://github.com/Sonoran-Software/wk_wars2x/releases/latest). ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/32/32ac7705c7efd837b91d22c5b30f588ee852e2eaaa2f5aefbef57e40e6cdf218.png) *Sonoran Software - Radar Display - Folders* 2. In the `sonoran-radar/config` folder, rename `config.CHANGEME.lua` to `config.lua` and configure the settings below. Rename `radars.CHANGEME.json` to `radars.json` in the same folder. Use the [in-game placement editor](#place-and-edit-a-radar) to move, rotate, and save radars, or edit the saved placements manually. 3. Finally, in your `server.cfg` add the following: ``` ensure sonoran-radar add_ace resource.sonoran-radar command allow add_ace resource.sonoran-radar_helper command allow ``` ## Configuring the Script > [accordion] Default config.lua > > ```lua theme={null} > Config = { > debug_mode = true, > cars = { > addonCars = { > ['19tahoec3'] = { > active = false, > name = '19tahoec3', > redneckCar = true > } > }, > blacklistedCars = { > "FIRETRUK", > "LGUARD", > "PBUS", > "POLMAV", > "POLICET", > "PRANGER", > "PREDATOR", > "RIOT", > "RIOT2", > "AMBULAN" > }, > bones = {'chassis'} > }, > update_speeds = { > patrol_speed = 100, -- Time in MS between each update for the patrol speed > target_speed = 250, -- Time in MS between each update for the target speed > lock_speed = 250 -- Time in MS between each update for the lock speed > }, > stalker = { > default_ant = 'front' -- The default antenna to pull data from | Options: 'front' or 'back' > }, > commands = { > addNewRadar = 'addnewradar', -- The command to add a new radar > restricted = true, -- restrict this command - you want this > allowedToPlace = 'radar.admin' -- Ace group allowed to place the radar > }, > lang = { > addNewRadarHelp = 'Open the menu to begin spawning a new radar model', > notInEmergency = 'You must be in a Emergency vehicle to use this!', > vehNotCompatible = 'This vehicle is not compatible with the radar placement system!' > } > } > ``` ## Radar Location Config ### Place and edit a radar > [!NOTE] > > The mouse placement editor described below is currently available in the release-candidate build. 1. Sit in a compatible emergency vehicle and stop the vehicle. 2. Run `/addnewradar`, or your server's configured placement command. 3. Select **Place radar**, choose a **Radar model** and **Vehicle bone**, then select **Place radar** to open the editor. If the vehicle already has a radar, select **Edit radar placement** instead. 4. Use **Move** and **Rotate** to adjust the radar, then choose an apply or save option below. Keep the vehicle stopped and remain inside it while editing. Moving or leaving the vehicle cancels placement. ### Move the radar Select **Move** and left-drag a colored arrow to move the radar along one axis. Drag a colored square to move it along two axes at once. * **Local axes** follows the radar's orientation. Select it to switch to **World axes**, which follows the world's directions. * **Snap** switches between free movement and 1 cm movement increments. It also enables 5-degree rotation increments. ![Radar Display in Move mode inside a stopped vehicle, with colored movement arrows and squares around the radar](https://docs-assets.sonoransoftware.com/sha256/c2/c2f75876ba579b88215ec1a6dfbec94861ef1ee0a3fa8be2a23f3bbb96abc32c.png) *Drag the arrows or squares to move the radar.* ### Rotate the radar Select **Rotate** and left-drag a colored ring to turn the radar around that axis. Use **Local axes** or **World axes** to choose the rotation directions, and enable **Snap** for 5-degree increments. ![Radar Display in Rotate mode inside a stopped vehicle, with colored rotation rings around the radar](https://docs-assets.sonoransoftware.com/sha256/53/53c03b4292d4de768b3e20f376c38b41068e12493481628b8eacd5bfe60a614d.png) *Drag a ring to rotate the radar.* ### Adjust your view * Right-drag to look around. Enable **Orbit radar** to circle the radar with right-drag instead. * Middle-drag to lean the camera, and scroll the mouse wheel to zoom. * **Look at radar** points the camera toward the radar. * **Cabin view** restores the starting camera view. * **Reset** restores the radar's position and rotation from when the editor opened. ### Apply, save, or cancel | Action | Result | | - | - | | **Apply to this vehicle** | Applies the placement to the current vehicle without saving it for other vehicles or future spawns. | | **Save for this vehicle model** | Saves the placement in `radars.json` for all vehicles of that model, including after a resource restart. Wait for the save confirmation. | | **Cancel** | Keeps an existing radar's placement unchanged, or removes a new, unsaved radar. | Existing saved placements work with the new editor without conversion. To remove a saved placement, reopen `/addnewradar`, select **Delete saved radar**, then confirm with **Delete radar for this vehicle model**. This removes the saved placement for that model, rather than only the current vehicle. For a radar applied only to the current vehicle, use **Remove radar from this vehicle**. ### Edit saved placements manually You can also copy an existing entry in `sonoran-radar/config/radars.json` and adjust its vehicle, attachment, position, and rotation values using the properties below. Give each entry a unique `ID`. ### `radars.json` Property Explanation | Property Name | Example | Notes | | - | - | - | | `ID` | `2` | `ID` must be unique. No other radar can share this ID | | `Position` | | This is a table that contains the x, y, and z coords of the radar | | `Rotation` | | This is a table that contains the x, y, and z rotation of the radar | | `Vehicle` | `FBI` | This is the vehicles spawn code | | `Bone` | `-1` | This is the index of the bone you would like to attach the radar to | | `type` | `1` | Enum:`1` Radar model with front and rear antennas`2` Radar model with only front antenna`3` Radar model with no antennas | ## Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/addnewradar` | Opens the menu to place, edit, or remove a radar | Everyone when `commands.restricted` is `false`; otherwise requires the ACE permission set in `commands.allowedToPlace` (default: `radar.admin`) | ## Default Vehicles | Vehicle Spawncode | Adds Radar by Default | | - | - | | `FBI` | `yes` | | `FBI2` | `yes` | | `POLICE` | `yes` | | `POLICE2` | `yes` | | `POLICE3` | `BUGGED`(Investigating fix) | | `POLICE4` | `yes` | | `POLICEOLD1` | `no` | | `POLICEOLD2` | `no` | | `SHERIFF` | `yes` | | `SHERIFF2` | `yes` | # Safety Vests Source: https://docs.sonoransoftware.com/store/safety-vests FREE: Physics-enabled safety vests for more realistic FiveM EUP outfits. ## Add visibility and movement to your EUP outfits > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/safety-vests/installation#texture-customization) Give your characters a more practical, polished look with Sonoran Safety Vests. These EUP accessories are designed to fit naturally into public-safety, roadside, construction, event, and civilian roleplay outfits while moving with the player in-game. ![](https://docs-assets.sonoransoftware.com/sha256/5a/5aeaa1ae85886a2c2fe09a7e13bcf25d6b188fe1bb31868b3fcc05666345c507.png) ## Built to move The Safety Vests use physics-enabled movement so the vest responds naturally as the player walks, runs, turns, and moves through the world. This adds a more convincing finishing detail to uniforms and high-visibility outfits. ## Designed for roleplay Safety Vests are a natural fit for: * Police, sheriff, and other public-safety uniforms * Fire, EMS, and roadside-response outfits * Construction and utility workers * Event staff and security personnel * Civilian and high-visibility clothing * Custom EUP collections and department loadouts ![](https://docs-assets.sonoransoftware.com/sha256/9e/9ea7ecd938c6aa3b32a758287d6c1f9e5feb7a1d1b3133698d1e9182a097de0e.png) ## Product details | Feature | Details | | - | - | | Item type | EUP safety vest accessory | | Movement | Moves naturally with your character | | Compatibility | Optimized for FiveM EUP / vMenu clothing workflows | | Variants | 2 Colors, 4 Textures (clean and dirty) | | Positions | 1 Position | | Textures | 4 textures | | Polygons | 1,740 polygons | | Performance | Optimized for FiveM | ![](https://docs-assets.sonoransoftware.com/sha256/6b/6b1bdfe37de37b8bfcaaac08e6e82ab87e4238142254ec9bf8b67392dd90d68d.png) ## In-game location The Safety Vests are accessed through vMenu's EUP clothing options. 1. Open **vMenu**. 2. Open the **EUP / Player Appearance** clothing menu. 3. Open **Shirt and Accessory**. 4. Scroll all the way to the end of the category and select slot **217**. 5. Select a vest and use the texture/variation controls to preview the available options. ## Simple installation Download the ZIP from the Cfx.re Portal, unzip it, place the `sonoran-safetyvest` folder in your server's `resources` directory, and add it to `server.cfg`: ```cfg theme={null} ensure sonoran-safetyvest ``` For the complete installation process, screenshot placeholders, and EUP streamed-asset troubleshooting, see: > [card] [Installation](/store/safety-vests/installation) # Installation Source: https://docs.sonoransoftware.com/store/safety-vests/installation This guide covers downloading, installing, and locating the Sonoran Safety Vests EUP items. > [!NOTE] > > The resource folder should be named `sonoran-safetyvest` and started with `ensure sonoran-safetyvest`. > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/safety-vests/installation#texture-customization) ## Before You Begin You will need: * Access to the Cfx.re Portal account that purchased the Safety Vests. * Access to your FiveM server's `resources` folder. * Access to your server's `server.cfg` file. * A way to fully restart the server after installation. ## Download the Resource 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Open the purchased assets or packages area for the account that owns the Safety Vests. 3. Download the Safety Vests `.zip` file. ![](https://docs-assets.sonoransoftware.com/sha256/5d/5d3812faedd562ddaaa07f1f24d35cac12ec2d7fb5b3441a10aaaa3096001710.png) *CFX Portal - Download* ![](https://docs-assets.sonoransoftware.com/sha256/1e/1ea719d38924988faa681efa7241b56df6fc7e7b9e5653910abf82900a9ba5ae.png) *Windows - Downloaded ZIP File* ## Install the Resource 1. Extract or unzip the downloaded file. ![](https://docs-assets.sonoransoftware.com/sha256/2f/2f53beb33ce809f7163a5bc3aa3088e3317ab97e58abf255e92fb035324788f6.png) *Windows - Extract Zip File* ![](https://docs-assets.sonoransoftware.com/sha256/5d/5debcf574e0680e3f92cf96a1fc2100e378cb4c9e142d8ea5a8fdbb61c131d5a.png) 1. Locate the extracted resource folder. It should be named exactly: ``` sonoran-safetyvest ``` ![](https://docs-assets.sonoransoftware.com/sha256/89/8982bb990b3b01b3236d095d5506f3d1067e45b8cd9ab440ede80d3b2787c4e4.png) 2. Copy the complete folder directly into your server's `resources` directory: ``` server-data/ └── resources/ └── sonoran-safetyvest/ ``` Do not create an extra nested folder such as `sonoran-safetyvest/sonoran-safetyvest/`. The resource manifest should be directly inside the resource folder. ![](https://docs-assets.sonoransoftware.com/sha256/17/17a1d354b599b92b5c7b111e2e923bf13e78f6c5f227eda39eeecbc395874c66.png) *Pterodactyl - Uploaded FIle* ![](https://docs-assets.sonoransoftware.com/sha256/45/45dad83474168c671e4c57abef8ac1605d1e69d2e5f518893a5ca687dd9e9a24.png) *Pterodactly - sonoran-safetyvest folder* 1. Open `server.cfg` and add: ```cfg theme={null} ensure sonoran-safetyvest ``` ![](https://docs-assets.sonoransoftware.com/sha256/ac/ac034624d5beb51a46503585080e95a99963af4e5085c46fd115165dee60ee9f.png) 2. Save the file and fully restart the FiveM server. ![](https://docs-assets.sonoransoftware.com/sha256/cb/cb9e92b04fe0aef5d5e7ce4d726f709dea6cdf3106e740ba260bbf7468cc6846.png) 3. Check the startup console for resource errors. ![](https://docs-assets.sonoransoftware.com/sha256/79/79e91130b511c17dee342c56b798e08fab917072b7a29b84b16962f2e2294a3f.png) ## Locate the Safety Vests In-Game The Safety Vests are accessed as EUP clothing through vMenu. 1. Join the server with a character that can access vMenu's clothing options. 2. Open **vMenu**. 3. Open **EUP / Player Appearance**. 4. Open **Shirt and Accessory**. 5. Scroll all the way to the end of the category and select slot **217**. 6. Use the texture/variation controls to preview the available options. ## EUP Streamed-Asset Troubleshooting If the resource starts but the Safety Vests do not appear, appear invisible, or cause players to disconnect or crash when selected, the issue may be related to FiveM streamed EUP assets or server limits. ### Confirm the resource installation * Confirm the folder is named `sonoran-safetyvest`. * Confirm it is directly inside the server's `resources` folder. * Confirm `server.cfg` contains `ensure sonoran-safetyvest`. * Confirm the server was fully restarted after installation. * Confirm the startup console does not report a missing manifest or failed file load. ### Check the Cfx.re Element Club subscription Some EUP streamed assets require an active Cfx.re **Element Club** subscription. If the Safety Vests are installed correctly but the streamed clothing assets do not load, verify that the server owner's Element Club subscription is active and associated with the account used for the server's Cfx.re license/key. 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Check the server owner's Element Club subscription status. 3. Confirm the subscription is active for the account associated with the server license/key. 4. Restart the server after correcting the subscription or account association. ![](https://docs-assets.sonoransoftware.com/sha256/62/6263732f62a1b91ff9017265dcb1594be699fcc3570877688d09d188b975a36d.png) > [!WARNING] > > Never post private license keys, account information, or payment details in support screenshots. ### Temporarily set the maximum players to 10 If the EUP assets still do not stream, temporarily set the server's maximum player count to 10. Add or update this line in `server.cfg`: ```cfg theme={null} sv_maxclients 10 ``` Fully restart the server and test the Safety Vests again. ![](https://docs-assets.sonoransoftware.com/sha256/d6/d69fc4965532a1bab9eb401fb9b632069abae833562ce6c081ae4481f958eaca.png) *TxAdmin - Setting Max Players to 10* ![](https://docs-assets.sonoransoftware.com/sha256/8b/8ba511634a990cd0a47163ce0306b4e7a47abad3cf4b493c9c241ba2bb90013a.png) *RocketNode Panel - Setting Max Players to 10* > [!NOTE] > > Use the 10-player limit as a troubleshooting step. After the streamed assets work correctly, test a higher player count again if your server setup and Cfx.re requirements support it. ### Clear client cache and reconnect After changing streamed assets or server settings: 1. Stop FiveM. 2. Clear the FiveM client cache using your normal cache-cleaning procedure. Do not delete the entire FiveM installation. 3. Restart FiveM and reconnect to the server. 4. Open vMenu and check **Player Appearance → Shirt and Accessory**, slot **217**, again. ### Test for EUP resource conflicts Temporarily disable other recently added EUP or clothing resources and restart the server. If the Safety Vests appear, re-enable the other resources one at a time to identify the conflict. ### Review client and server logs Look for errors mentioning: * `sonoran-safetyvest` * streamed assets * EUP clothing components * asset or archetype limits * texture or drawable loading When requesting support, include the relevant error text, your FiveM build, vMenu version, and a list of other EUP resources. Redact license keys and personal account information first. ## Quick Verification Checklist * [ ] The folder is named `sonoran-safetyvest`. * [ ] The folder is directly inside the server's `resources` directory. * [ ] `server.cfg` contains `ensure sonoran-safetyvest`. * [ ] The server was fully restarted. * [ ] The resource has no startup errors. * [ ] vMenu opens successfully. * [ ] **Player Appearance → Shirt and Accessory** is available. * [ ] The Safety Vest is visible at slot **217**, at the end of the category. * [ ] If assets do not stream, Element Club status was checked and `sv_maxclients 10` was tested. ## Escrow Protection Sonoran’s Safety Vest EUP is protected through Tebex and Cfx.re Asset Escrow. This helps prevent unauthorized redistribution, leaks, and resale. #### Runs as a Separate Resource Because the asset is escrow-protected, the Safety Vest EUP must run as its own separate resource and cannot be merged into an existing clothing pack. The resource is heavily optimized for smooth performance, and textures can still be customized. #### Texture Customization This EUP cannot be edited through Durty Cloth Tool due to Asset Escrow restrictions. Textures can still be modified by opening the included `.ytd` file in OpenIV. # Scarf Source: https://docs.sonoransoftware.com/store/scarf A lightweight, physics-enabled scarf with 26 textures for male and female FiveM characters. ## A finishing layer that moves naturally > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/scarf/installation#texture-customization) Finish any outfit with the Sonoran Scarf, a lightweight FiveM clothing accessory built to add natural fabric movement to civilian, formal, seasonal, and custom EUP looks. It supports both male and female characters and includes 26 textures for flexible styling. ![Sonoran Scarf promotional image showing the scarf on a female FiveM character](https://docs-assets.sonoransoftware.com/sha256/31/3165528f1db7f5b15689f6f7bce6be66ebdf79497cfea3cab9807410fb9e0688.webp) *Sonoran Scarf with dynamic cloth physics* ## Made to move Dynamic cloth physics let the scarf respond as the character walks, runs, turns, and rides. The long fabric panels move with the player instead of remaining rigid, giving outfits a more convincing finishing detail. ## Product details | Feature | Details | | - | - | | Style | Long neck scarf | | Movement | Dynamic cloth physics | | Compatibility | Male and female FiveM EUP / vMenu workflows | | Textures | 26 textures | | Polygons | 1,182 polygons | | Performance | Optimized for FiveM | ![Twenty supplied Sonoran Scarf color previews from the collection of 26 textures](https://docs-assets.sonoransoftware.com/sha256/a5/a5f84aefacd169cebbcec4286706335e06af380080f69bb3fcc6105f88f29689.webp) *26 included textures, with 20 supplied color previews shown* ## Built for character customization The Scarf is a flexible addition to: * Civilian and streetwear outfits * Business and formal looks * Winter and seasonal clothing * Gang, crew, and color-coordinated outfits * Custom male and female EUP collections ![Sonoran Scarf performance details showing 1,182 polygons, 26 textures, and male and female compatibility](https://docs-assets.sonoransoftware.com/sha256/85/858d59999fe9a5a0ca0c9f4883b63fa0864c925c61841aeaec96cb4f976ef869.webp) *Lightweight geometry with physics-enabled movement* ## In-game location 1. Open **vMenu**. 2. Open **Player Appearance**. 3. Select the clothing category for **Neck and Scarves** or accessories. 4. Scroll to the end of the category. 5. Select the Sonoran Scarf. 6. Use the texture/variation controls to preview all 26 textures. > [!NOTE] > > The exact category label can vary with the vMenu version and other installed EUP resources. The Scarf is streamed in the neck/accessory clothing component and appears at the end of that component's available items. ## Simple installation Download the ZIP from the Cfx.re Portal, unzip the inner package if necessary, place `sonoran-scarf` in the server's `resources` directory, and add the resource to `server.cfg`. ```cfg theme={null} ensure sonoran-scarf ``` For the complete installation process, EUP streamed-asset troubleshooting, and texture-customization notes, see: > [card] [Installation](/store/scarf/installation) # Installation Source: https://docs.sonoransoftware.com/store/scarf/installation This guide covers downloading, installing, and locating the Sonoran Scarf EUP item for male and female FiveM characters. > [!NOTE] > > The resource folder must be named `sonoran-scarf` and started with `ensure sonoran-scarf`. > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/scarf/installation#texture-customization) ## Before you begin You will need: * Access to the Cfx.re Portal account that owns the Scarf package. * Access to the FiveM server's `resources` directory. * Access to the server's `server.cfg`. * A way to fully restart the server after installation. ## Download the resource 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Open the purchased assets or packages area for the account that owns the Scarf. 3. Download the Scarf ZIP file. > [!WARNING] > > The downloaded archive can contain another `sonoran-scarf.zip`. Continue extracting until you can see the `sonoran-scarf` resource folder and its `fxmanifest.lua`. ## Install the resource 1. Extract the downloaded ZIP. 2. If it contains another `sonoran-scarf.zip`, extract that archive too. 3. Locate the complete `sonoran-scarf` resource folder. 4. Copy it directly into the server's `resources` directory: ``` server-data/ └── resources/ └── sonoran-scarf/ ├── fxmanifest.lua ├── mp_f_freemode_01_sonoran_scarf.meta ├── mp_m_freemode_01_sonoran_scarf.meta └── stream/ ``` Do not create an extra nested folder such as `sonoran-scarf/sonoran-scarf/`. 5. Open `server.cfg` and add: ```cfg theme={null} ensure sonoran-scarf ``` 6. Save the file and fully restart the FiveM server. 7. Check the startup console for missing resource, manifest, or streamed-file errors. ## Locate the Scarf in-game The Scarf supports both male and female freemode characters. 1. Join the server with a male or female freemode character. 2. Open **vMenu**. 3. Open **Player Appearance**. 4. Open **Neck and Scarves** or the equivalent accessories category. 5. Scroll to the end of the category and select the Sonoran Scarf. 6. Use the texture/variation controls to preview all 26 textures. > [!NOTE] > > The exact category label and item number can vary with the vMenu version and other installed EUP resources. The Scarf appears at the end of the neck/accessory clothing component. ## EUP streamed-asset troubleshooting If the resource starts but the Scarf is missing, invisible, or causes a client error when selected, check the following. ### Confirm the resource installation * Confirm the folder is named `sonoran-scarf`. * Confirm `fxmanifest.lua` is directly inside that folder. * Confirm `server.cfg` contains `ensure sonoran-scarf`. * Confirm the server was fully restarted. * Review the startup console for resource or streamed-file errors. ### Check the Cfx.re Element Club subscription Some streamed EUP assets require an active Cfx.re **Element Club** subscription. Verify that the server owner's subscription is active and associated with the account used for the server's Cfx.re license/key. > [!WARNING] > > Never share license keys, account information, or payment details in support screenshots. ### Temporarily set the maximum players to 10 As a streamed-asset troubleshooting step, temporarily add or update: ```cfg theme={null} sv_maxclients 10 ``` Fully restart the server and test the Scarf again. After the asset works, restore the intended player count and verify that the server's Cfx.re plan supports it. ### Clear the client cache and reconnect After changing streamed assets or server settings: 1. Close FiveM. 2. Clear the FiveM client cache using the normal cache-cleaning procedure. 3. Restart FiveM and reconnect. 4. Check the neck/accessory clothing category again. ### Test for EUP resource conflicts Temporarily disable other recently added EUP or clothing resources and restart the server. If the Scarf appears, re-enable those resources one at a time to identify the conflict. ### Review client and server logs Look for errors mentioning: * `sonoran-scarf` * Streamed assets * EUP clothing components * Asset or archetype limits * Texture or drawable loading When requesting support, include the relevant error text, the FiveM build, the vMenu version, and a list of other EUP resources. Redact private information. ## Quick verification checklist * [ ] The resource folder is named `sonoran-scarf`. * [ ] `fxmanifest.lua` is directly inside the resource folder. * [ ] The resource is directly inside the server's `resources` directory. * [ ] `server.cfg` contains `ensure sonoran-scarf`. * [ ] The server was fully restarted without resource errors. * [ ] The Scarf is visible for both male and female freemode characters. * [ ] All 26 textures can be previewed. * [ ] If the asset does not stream, Element Club status and streamed-asset limits were checked. ## Escrow protection The Sonoran Scarf EUP is protected through Tebex and Cfx.re Asset Escrow. This helps prevent unauthorized redistribution, leaks, and resale. ### Runs as a separate resource Because the asset is escrow protected, it must run as the separate `sonoran-scarf` resource and cannot be merged into another clothing pack. ### Texture customization The escrow-protected model cannot be edited through Durty Cloth Tool. The included texture dictionary (`.ytd`) files can still be customized with OpenIV. # Short Slip Dress Source: https://docs.sonoransoftware.com/store/short-slip-dress A physics-enabled short slip dress for female FiveM EUP outfits. ## A simple silhouette with natural movement > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/safety-vests/installation#texture-customization) Add an elegant, lightweight outfit option to your female character wardrobe with the Sonoran Short Slip Dress. This camisole-style short dress is designed to move naturally with the player, making it a polished choice for civilian characters, nightlife outfits, resort looks, and custom EUP collections. ![](https://docs-assets.sonoransoftware.com/sha256/18/18e54e1b990bef72d6a7810a9e10a3a2c271ea53fb80ae7f2ec4381ad84fd0fb.png) ## Made to move The dress uses physics-enabled movement so it responds naturally as your character walks, runs, turns, and moves through the world. The result is a more believable garment with movement that complements the outfit instead of looking static. ![](https://docs-assets.sonoransoftware.com/sha256/20/203667418429357cbf39e9dd25a351caff82fd060598816929ab6b868baedb16.gif) ## Product details | Feature | Details | | - | - | | Style | Short slip dress / camisole-style dress | | Movement | Moves naturally with your character | | Compatibility | Female FiveM EUP / vMenu clothing workflows | | Textures | 22 textures | | Polygons | 8,196 polygons | | Performance | Optimized for FiveM | ## Built for character customization The Short Slip Dress is a flexible addition to: * Civilian and casual outfits * Nightlife and social roleplay * Resort, hotel, and vacation characters * Date-night and formal-casual looks * Custom female EUP collections ![](https://docs-assets.sonoransoftware.com/sha256/8e/8eb5cc58f25502846e21d790f101c5391326fe17f8625de487c6a200034bef09.png) ![](https://docs-assets.sonoransoftware.com/sha256/d3/d3a32fa45d297e83de2521ba0dd95a28bc2da2723337d3c16b83dfc0e5b0d597.png) ## In-game location Finding the dress in vMenu is quick: 1. Open **vMenu**. 2. Open **Player Appearance**. 3. Select **Shirt overlay / Jackets**. 4. Scroll to the end of the category. 5. Select item **633**. 6. Use the texture/variation controls to preview the 22 textures. ## Simple installation Download the ZIP from the Cfx.re Portal, unzip it, place the resource folder in your server's `resources` directory, and add the resource to `server.cfg`. ```cfg theme={null} ensure sonoran-shortdress ``` > [!WARNING] > > The guide assumes the resource folder is named `sonoran-shortdress`. If the downloaded package uses a different folder name, use that exact folder name in both the `resources` directory and the `ensure` line. For the complete installation process and EUP streamed-asset troubleshooting, see: > [card] [Installation](/store/short-slip-dress/installation) # Installation Source: https://docs.sonoransoftware.com/store/short-slip-dress/installation This guide covers downloading, installing, and locating the Sonoran Short Slip Dress EUP item. > [!NOTE] > > The resource folder should be named `sonoran-shortdress` and started with `ensure sonoran-shortdress`. If the downloaded ZIP uses a different folder name, use that exact name instead. > [!NOTE] > > This EUP asset is escrow protected by Tebex. [Learn more about what this means.](/store/short-slip-dress/installation#texture-customization) ## Before You Begin You will need: * Access to the Cfx.re Portal account that purchased the Short Slip Dress. * Access to your FiveM server's `resources` folder. * Access to your server's `server.cfg` file. * A way to fully restart the server after installation. ## Download the Resource 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Open the purchased assets or packages area for the account that owns the Short Slip Dress. 3. Download the Short Slip Dress `.zip` file. ![](https://docs-assets.sonoransoftware.com/sha256/e2/e2129bd6ea4cc0a199a87a6098bd9ab5b77e2196be8411a2819411f1226b0fcd.png) ![](https://docs-assets.sonoransoftware.com/sha256/5c/5c467323dcbed9ccafe0f390bec152f5b59167043311312bc1987483e3bcc10f.png) ## Install the Resource 1. Extract or unzip the downloaded file. ![](https://docs-assets.sonoransoftware.com/sha256/a3/a30ff8e423e0c4e85a965255dda59a8ee9b8c228d70be66c794015860aca8481.png) ![](https://docs-assets.sonoransoftware.com/sha256/ad/adf140f911bb7c5a471caf6e9f4be874194e85d8116835fc1dc1cf777565d3ba.png) 2. Locate the extracted resource folder. It should be named: ``` sonoran-shortdress ``` If the package uses a different folder name, keep that exact name and use it in the `ensure` line below. ![](https://docs-assets.sonoransoftware.com/sha256/94/94cf2abeb4310f6d12376968c49449af153404ab51edbd4e94ac6b526594f8d1.png) 3. Copy the complete resource folder directly into your server's `resources` directory: ``` server-data/ └── resources/ └── sonoran-shortdress/ ``` Do not create an extra nested folder such as `sonoran-shortdress/sonoran-shortdress/`. The resource manifest should be directly inside the resource folder. ![](https://docs-assets.sonoransoftware.com/sha256/51/51fe34e3d477252e7f0847c7836cdc9063a3dd8d545259911aa7ded644f27bd1.png) 4. Open `server.cfg` and add: ```cfg theme={null} ensure sonoran-shortdress ``` ![](https://docs-assets.sonoransoftware.com/sha256/69/69fd3500238e2f15258fa3495c312063c9a8531a24b61c676a8243fa400ff1af.png) 5. Save the file and fully restart the FiveM server. ![](https://docs-assets.sonoransoftware.com/sha256/40/40f977c827e270d01d2dca53e06c5f6b10297d3cb3ea7c293647e267eb57d9af.png) 6. Check the startup console for resource errors. ![](https://docs-assets.sonoransoftware.com/sha256/9a/9a7168f7700d3bff836d175f58e229f1548a3aa19762f27d4eac4aa405b3fd2f.png) ## Locate the Short Slip Dress In-Game The Short Slip Dress is accessed as female EUP clothing through vMenu. 1. Join the server with a female character that can access vMenu's clothing options. 2. Open **vMenu**. 3. Open **Player Appearance**. 4. Select **Shirt overlay / Jackets**. 5. Scroll all the way to the end of the category. 6. Select item **633**. 7. Use the texture/variation controls to preview the 22 available textures. ## EUP Streamed-Asset Troubleshooting If the resource starts but the Short Slip Dress does not appear, appears invisible, or causes players to disconnect or crash when selected, the issue may be related to FiveM streamed EUP assets or server limits. ### Confirm the resource installation * Confirm the resource folder name matches the name used in `server.cfg`. * Confirm the resource is directly inside the server's `resources` folder. * Confirm `server.cfg` contains the correct `ensure` line. * Confirm the server was fully restarted after installation. * Confirm the startup console does not report a missing manifest or failed file load. ### Check the Cfx.re Element Club subscription Some EUP streamed assets require an active Cfx.re **Element Club** subscription. If the dress is installed correctly but the streamed clothing asset does not load, verify that the server owner's Element Club subscription is active and associated with the account used for the server's Cfx.re license/key. 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/). 2. Check the server owner's Element Club subscription status. 3. Confirm the subscription is active for the account associated with the server license/key. 4. Restart the server after correcting the subscription or account association. ![](https://docs-assets.sonoransoftware.com/sha256/62/6263732f62a1b91ff9017265dcb1594be699fcc3570877688d09d188b975a36d.png) > [!WARNING] > > Never post private license keys, account information, or payment details in support screenshots. ### Temporarily set the maximum players to 10 If the EUP asset still does not stream, temporarily set the server's maximum player count to 10. Add or update this line in `server.cfg`: ```cfg theme={null} sv_maxclients 10 ``` Fully restart the server and test the Short Slip Dress again. ![](https://docs-assets.sonoransoftware.com/sha256/d6/d69fc4965532a1bab9eb401fb9b632069abae833562ce6c081ae4481f958eaca.png) *TxAdmin - Setting Max Players to 10* ![](https://docs-assets.sonoransoftware.com/sha256/8b/8ba511634a990cd0a47163ce0306b4e7a47abad3cf4b493c9c241ba2bb90013a.png) *RocketNode Panel - Setting Max Players to 10* > [!NOTE] > > Use the 10-player limit as a troubleshooting step. After the streamed asset works correctly, test a higher player count again if your server setup and Cfx.re requirements support it. ### Clear client cache and reconnect After changing streamed assets or server settings: 1. Stop FiveM. 2. Clear the FiveM client cache using your normal cache-cleaning procedure. Do not delete the entire FiveM installation. 3. Restart FiveM and reconnect to the server. 4. Open vMenu and check **Player Appearance → Shirt overlay / Jackets**, item **633**, again. ### Test for EUP resource conflicts Temporarily disable other recently added EUP or clothing resources and restart the server. If the dress appears, re-enable the other resources one at a time to identify the conflict. ### Review client and server logs Look for errors mentioning: * The dress resource name * Streamed assets * EUP clothing components * Asset or archetype limits * Texture or drawable loading When requesting support, include the relevant error text, your FiveM build, vMenu version, and a list of other EUP resources. Redact license keys and personal account information first. ## Quick Verification Checklist * [ ] The resource folder name matches the `ensure` line. * [ ] The resource is directly inside the server's `resources` directory. * [ ] The server was fully restarted. * [ ] The resource has no startup errors. * [ ] vMenu opens successfully. * [ ] **Player Appearance → Shirt overlay / Jackets** is available. * [ ] The Short Slip Dress is visible at item **633**, at the end of the category. * [ ] The 22 textures can be previewed. * [ ] If the asset does not stream, Element Club status was checked and `sv_maxclients 10` was tested. ## Escrow Protection Sonoran’s short slip dress EUP is protected through Tebex and Cfx.re Asset Escrow. This helps prevent unauthorized redistribution, leaks, and resale. #### Runs as a Separate Resource Because the asset is escrow-protected, the EUP must run as its own separate resource and cannot be merged into an existing clothing pack. The resource is heavily optimized for smooth performance, and textures can still be customized. #### Texture Customization This EUP cannot be edited through Durty Cloth Tool due to Asset Escrow restrictions. Textures can still be modified by opening the included `.ytd` file in OpenIV. # Shot Spotter Source: https://docs.sonoransoftware.com/store/shot-spotter Quickly be alerted when gunshots are detected around San Andreas ![Sonoran Software - Shot Spotter Promotional Image](https://docs-assets.sonoransoftware.com/sha256/5e/5ec289c6545b4cdcfb15c5c01f65e3b00a40d953ec0cbd8e3e4b3cd7d6f1939d.png) [Video tutorial](https://www.youtube-nocookie.com/embed/ng12Pimxev0) Sonoran Software - Shot Spotter Promotional Video ## Shot Spotter ### Features * Ability to operate standalone * Support for AcePerms, ESX, QBCore, and custom permissions systems ![](https://docs-assets.sonoransoftware.com/sha256/ff/ffe1be994ab23b9218edd23d146801ec31a2397cbc403f7ab20acc25aa1dd22e.png) *Sonoran Software - Shot Spotter Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/82/82563438cdb979ccf64c1dada783c7d8e70fb56a4b70f9e169e2e6b47aa52b9b.png) *Sonoran Software - Shot Spotter Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/c3/c383047f71afda20efea6136912eb6a23ed78b74975717674deb316fa38e9ef3.png) *Sonoran Software - Shot Spotter Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/c2/c2b2f1f5e7aefeec48aa94bbc72831e1aa642b2527542d07393489623fc6ce04.png) *Sonoran Software - Shot Spotter Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/78/78d505ae1f950db341f3137a17fa8b855ec4d831ec8e92d76c28b69c983fba3c.png) *Sonoran Software - Shot Spotter Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/ed/ede1808107898ada230235bfe661c1ee329136192f88b7d6ba92ab526a7e396e.png) *Sonoran Software - Shot Spotter Promotional Image* ### Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/shotspot` | This command will toggle the user's shot spotter status, either enabling or disabling shot spotter alerts and blips | LEO or as configured | | `/showspotterid` | Show the ID above the shot spotters | Admin | | `/showspotterpos` | Show the position of the shot spotters | Admin | | `/changepositiondata` | Change the position data of the shot spotter | Admin | | `/reloadspotters` | Reload all spotters and positions | Admin | | `/spawnnewspotter` | Activate the placement gun [SEE HERE](/store/general/gun-placement) | Admin | | `/cancelspotterplacement` | Cancels the placement gun | Admin | | `togglespotter` | Toggle the spotter with the specified ID | Admin | ### Changelog #### v1.3.1 **Bug Fix** * `Fixed "TRIGGER_CLIENT_INTERNAL" bug on player joining` #### v1.3.0 **Feature** * `Add postals to shot spotter 911 calls` #### v1.2.9 **Improvements** * `Handle pole breaking and disabling of spotters` #### v1.2.8 **Hotpatch** * `Add restart handling to prevent crashing` #### v1.2.6 **Bug Fixes** * `Fixed bug creating multiple 911 calls for single shooting event` * `Fixed blips not going away when toggling off shot spotting` * `Fixed core shot spotter not sending alerts to ALL on duty officers` * `Fixed core shot spotter sending alerts to shooting source` **Refactor** * `Added discord.lua config file for security` * `Removed Discord configuration from config.lua for security` * `Update FxManifest.lua to only pass discord.lua to server side` * `Revamped config.lua file (See key changes below)` * `Move Utilities to shared scripts` * `Optimize CAD API calls` * `Remove reduntant/ unused loops and threads` **`config.lua` Changes** * `Moved network_latency, notifications, commands, check_dispatch to standalone sections` * `Changed notifications.type to be string | Available types: native, pNotify, okokNotify` * `Remove all Discord options` * `Bump version to 1.3` #### v1.2.5 **Hotpatch** * `Fixed a startup failure when the Sonoran CAD integration option was disabled` #### v1.2.4 **Hotpatch** * `Fixed QB Core & ESX permissions on "spawnnewspotter" command` * `Change deafult values for webhooks to false` #### v1.2.2 **Hotpatch** * `Fixed notifications not working on spotter alerts` #### v1.2.1 **Hotpatch** * `Fixed Livemap Icons` #### v1.2.0 **Bugfixes, Improvements & Features** * `Disabling of Shot Spotters` * `"Network Time" / "Latency"` * `QB/ ESX Admin Permissions` * `Standalone Option` * `Livemap Radius` * `Powergrid Integration` * `Dispatcher Check` * `Separate Webhook Options` * `OkOk Notify/pNotify Integration` * `Numerous Bug Fixes` #### v1.1.0 **Bugfixes and Improvements** * `Fixes CAD livemap bugs, typos & more misc. bugs` #### v1.0.0 * `Inital Release` # Shot Spotter - Advanced Documentation Source: https://docs.sonoransoftware.com/store/shot-spotter/advanced-docs Developer Documentation and other Advanced Configuration Topics for the Shot Spotter system. ## Sonoran Shot Spotter - Advanced Documentation ### Developer Documentation When a shot spotter is triggered it will fire the following event: > `Sonoran:ShotSpotter:Server` This event will pass the following data: | Index | Description | Example | | - | - | - | | `serverid` | The server ID of the player that triggered the spotter | `43` | | `street` | The name of the closest street to the spotter | `Vespucci Blvd.` | | `spotter` | The array of spotter data | See below | #### Spotter Data | Index | Description | Example | | - | - | - | | `Label` | The label (name) of the spotter | Grove St. | | `Disabled` | The state of the shot spotter | false | | `ID` | The ID of the shot spotter | `2` | | `Position.x` | The X coordinate | `326` | | `Position.y` | The Y coordinate | `1200` | | `Position.z` | The Z coordinate | `128` | | `Rotation.pitch` | The pitch value | `12` | | `Rotation.roll` | The roll value | `6` | | `Rotation.yaw` | The yaw value | `177` | ## Example Handler ```lua theme={null} AddEventHandler("Sonoran:ShotSpotter:Server", function(serverid, street, spotter) print("player: " .. serverid .. " triggered shot spotter " .. spotter.Label .. " on " .. street) end) ``` # Getting Started Source: https://docs.sonoransoftware.com/store/shot-spotter/getting-started This page will walk you through getting and installing the script. ## Acquire the Script After purchasing the script through the sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/aa/aa6041be5b573b1575c4ffdd7dda48f2288d59018df5ae555ba3b6a87fb7d044.png) *Sonoran Software - Shot Spotter - Folders* 2. In the `sonoran-shotspotter/config` folder there will be a file called `config.CHANGEME.lua` you should rename that to be config.lua and configure the settings inside as you would like them to be configured based on the configuration documentation below. In that same folder will also be a file called `spotters.CHANGEME.json` which you should rename to `spotters.json` and use to manually place cameras based on the existing template, note you can also use the gun placement system in game. You will also find a file called `discord.CHANGEME.lua`, this should be named to `discord.lua` ![](https://docs-assets.sonoransoftware.com/sha256/2f/2f508dc9e686aeaa4d406835f937e16099c18d26d4f83a6c4316a6aee7ea7605.png) *Sonoran Software - Shot Spotter - Config Folder* ![](https://docs-assets.sonoransoftware.com/sha256/18/18f23296001ee7371999aeb150ff5de3251a9c96732f85b4f85223518db2e280.png) *Sonoran Software - Shot Spotter - Remove .CHANGEMEs* 3. Finally, in your `server.cfg` add the following: ``` ensure sonoran-shotspotter add_ace resource.sonoran-shotspotter command allow add_ace resource.sonoran-shotspotter_helper command allow ``` > [!WARNING] > > **NEVER** add `ensure sonoran-shotspotter_helper` or `ensure [sonoranscripts]` to your server.cfg as this will lead to crashing under specific conditions. > [!TIP] > > Congrats! You have successfully installed Sonoran Shot Spotter. See below for configuration. ## Configuration > [tab] Permissions > > Sonoran Shot Spotter contains highly configurable permissions that have a fit for any server. In this section you will see options for standalone, QB-Core and ESX. Below will detail every option in this section, it's meaning and options. > > | Config Option | Option Description | Possible Values | > | - | - | - | > | `restricted` | Would you like to restrict the `/shotspot` command or allow anyone to use it? | `true` or `false` | > | `use_ace_perms` | Would you like to utilize FiveM Ace Permissions? | `true` or `false` | > | `ace_object` | The ace name that will be used to assign permissions. More can be read about Ace Permissions [Here](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917) | `string` | > | `use_esx` | Would you like to utilize ESX framework jobs for permissions? | `true` or `false` | > | `police_job` | What is the name of your ESX jobs that should have access to the shotspotter? | `array` | > | `admin` | Admin name for ESX | `string` | > | `use_qbcore` | Would you like to utilize QB-Core framework jobs for permissions? | `true` or `false` | > | `police_job` | What is the name of your QB-Core jobs that should have access to the shotspotter? | `array` | > | `admin` | Admin name for QBCore | `string` | > | `ace_object` | Ace permission name for admin perms | `string` | > [tab] Webhooks > > | Config Option | Option Description | Possible Values | > | - | - | - | > | `onduty_url` | URL to send OnDuty webhooks to | `string` | > | `offduty_url` | URL to send OffDuty webhooks to | `string` | > | `onshot_url` | URL to send shot webhooks to | `string` | > | `disabled` | URL to log toggled shot spotters to | `string` | > | `onduty` | Would you like to send a webhook when someone goes on duty? | `true` or `false` | > | `offduty` | Would you like to send a webhook when someone goes off duty? | `true` or `false` | > | `onshot` | Would you like to send a webhook when the shot spotter is triggered? | `true` or `false` | > [tab] General > > | Config Option | Option Description | Possible Values | > | - | - | - | > | `use_auto_detect` | Ignore spotter locations and radius | `true` or `false` | > | `auto_update` | Auto update the script | `true` or `false` | > | `use_cad` | Would you like to utilize the Sonoran Cad framework to automatically send 911 calls to Sonoran Cad? | `true` or `false` | > | `use_cad` | Would you like to utilize the Sonoran Cad livemap? | `true` or `false` | > | `check_dispatch` | Check if a dispatcher is online before sending a 911 call | `true` or `false` | > | `use_network_latency` | Add a random delay to calls | `true` or `false` | > | `network_time` | Max time to wait | `integer` | > | `notif` | Which notification system would you like to use | | > | `use_command` | Would you like to be able to toggle the shot spotter alerts in game on and off? | `true` or `false` | > | `shotspot_cmd` | The command to toggle the shot spotter alerts in game | `string` | > | `show_on_map` | Would you like to show a blip on the map when the shot spotter was triggered? | `true` or `false` | > | `radius` | How large of a radius should each shot spotter scan? | `integer` | > [tab] Spotter > > | Config Option | Option Description | Possible Values | > | - | - | - | > | `use_object` | Would you like to utilize the included shot spotter object? | `true` or `false` | > | `cooldown` | How long of a cooldown should be between shot spotter alerts? | `integer` (time in seconds) | > [tab] Whitelist > > | Config Option | Option Description | Possible Values | > | - | - | - | > | `peds` | Peds that will not trigger the shot spotter | `array` | > | `weapons` | Weapons that will not trigger the shot spotter | `array` | ### Lang The language section was created to make the script as universal as possible. Please simply edit the strings to your preferred text. #### Note: Available place holders are \{\{street}}, \{\{spotter}} and \{\{player}} > [!TIP] > > Congrats! You have successfully configured Sonoran Shot Spotter. See below for spotter locations. ## Spotter Locations > [!NOTE] > > For shot spotters mounted to a pole (such as traffic lights), if the pole is broken, the shot spotter will be disabled. These locations can be found and set in the `spotters.json` found within the `config` folder. To configure spotters follow this chart: | Config Option | Option Description | Possible Values | Notes | | - | - | - | - | | `ID` | The shot spotter ID (used internally) | `integer` | This cannot be duplicated | | `x`, `y`, `z` | The in game coordinates | `integer` | N/A | | `pitch`, `roll`, `yaw` | Rotation values | `integer` | N/A | ## Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/shotspot` | This command will toggle the user's shot spotter status, either enabling or disabling shot spotter alerts and blips | LEO or as configured | | `/showspotterid` | Show the ID above the shot spotters | Admin | | `/showspotterpos` | Show the position of the shot spotters | Admin | | `/changepositiondata` | Change the position data of the shot spotter | Admin | | `/reloadspotters` | Reload all spotters and positions | Admin | | `/spawnnewspotter` | Activate the placement gun | Admin | # Sonoran Notepad Source: https://docs.sonoransoftware.com/store/sonoran-notepad Write field notes in FiveM and synchronize them through your signed-in Sonoran CAD tablet. The in-game notepad syncs directly with Sonoran CAD, keeping your notes updated between FiveM and the CAD in real time. Highlight names, license plates, and other information to run quick lookups and view NCIC results without leaving the notepad. ![Sonoran Notepad showing a traffic-stop note, page controls, tear control, and a linked CAD result](https://docs-assets.sonoransoftware.com/sha256/7e/7ee9f74423cc6d70c3991326b1581b3d3cc896c0497fc88a1326f13a2a9c2dfb.png) *The paper interface keeps titled field notes, navigation, removal, and linked CAD results together.* ## Features * **In-Game Notepad** – Quickly open and edit notes without leaving FiveM. * **Sonoran CAD Sync** – Notes automatically stay synced with your Sonoran CAD notepad. * **Quick NCIC Lookups** – Highlight names, plates, and other information to run lookups directly from your notes. ## CAD sign-in and synchronization The notepad syncs with the [CAD's tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet) submodule. Once signed into the tablet, add the **notepad** to your custom layout. Notes will sync between the in-game tablet and the CAD. The notepad is still available for standalone use in-game, if not using Sonoran CAD and the tablet resource. > [card] [Installation](/store/sonoran-notepad/installation) > [card] [Using and Syncing Notes](/store/sonoran-notepad/usage-and-sync) # Installation Source: https://docs.sonoransoftware.com/store/sonoran-notepad/installation Install Sonoran Notepad with the required Sonoran CAD tablet dependency. ## Before you begin You need: * A current FXServer * The current [SonoranCADFiveM integration](/cad/integration-plugins/in-game-integration/fivem-installation) * Its `tablet` resource enabled and working * Access to the server's resource directory and `server.cfg` * Access to the Cfx.re account that owns the Notepad package The standard SonoranCADFiveM configuration already enables `tablet`. Complete that integration's setup before installing Sonoran Notepad. ## Download the resource 1. Sign in to the [Cfx.re Portal](https://portal.cfx.re/) with the account that owns the package. 2. Download and extract Sonoran Notepad. 3. Place both complete folders, `sonoran-notepad` and `sonoran-notepad_helper`, in the same server resources directory. The helper handles resource restarts after updates; do not add it to `server.cfg`. The resource manifest must be directly inside the folder: ``` resources/ └── [sonoran]/ ├── sonoran-notepad/ │ ├── fxmanifest.lua │ ├── config/ │ ├── client/ │ ├── server/ │ └── html/ └── sonoran-notepad_helper/ ├── fxmanifest.lua └── s.lua ``` Do not leave an extra nested folder such as `sonoran-notepad/sonoran-notepad/fxmanifest.lua`, and do not rename the resource. ## Prepare the configuration Before the first start, rename: ``` config/config.CHANGEME.lua ``` to: ``` config/config.lua ``` Then review the command, keybind, updater, and safety limits in [Configuration](/store/sonoran-notepad/installation#configuration). If the template is still present on first start, the resource attempts to rename it once, but preparing the file yourself makes the deployed configuration explicit. ## Configure the start order Keep the Sonoran CAD integration's existing start configuration, then start Notepad afterward: ```cfg theme={null} exec @sonorancad/sonorancad.cfg ensure sonoran-notepad ``` Do not add a second `ensure tablet` line when `sonorancad.cfg` already starts it. If your server manually lists individual Sonoran CAD resources instead, keep your existing list and confirm `tablet` starts before `sonoran-notepad`. ## First test 1. Fully restart the server and confirm `tablet` starts before `sonoran-notepad`. 2. Join with a player account linked to Sonoran CAD. 3. Open the in-game tablet and sign in to CAD. 4. Run `/notepad` or press `F7`. 5. Enter a title and body, move to the next page, and return to the first page. 6. Close and reopen the notepad and confirm the local note remains. 7. Confirm the CAD sync warning is not visible while the tablet is linked and signed in. 8. Sign out or test with an unlinked player and confirm the warning appears without blocking editing. > [!WARNING] > > Local-only notes use a memory cache. Restarting the resource or server clears that cache, so restore CAD synchronization before relying on local-only notes for a later session. ## Configuration Edit `sonoran-notepad/config/config.lua`, save the file, and restart the resource after making changes. ### General settings | Setting | Default | Purpose | | - | - | - | | `Config.Command` | `notepad` | Command name without a leading slash. | | `Config.DefaultKeybind` | `F7` | Default keyboard binding registered with FiveM. | | `Config.KeybindDescription` | `Open the Sonoran paper notepad` | Description shown in FiveM key binding settings. | Players can change their own binding under **Settings → Key Bindings → FiveM** after the resource has started. ### Automatic updates | Setting | Default | Purpose | | - | - | - | | `Config.AutoUpdate` | `true` | Enables periodic update checks. | | `Config.UpdateCheckIntervalMinutes` | `60` | Minutes between update checks. | | `Config.RestartUpdateWithPlayers` | `false` | Controls whether an installed update may restart the resource while players are connected. | Keep `Config.RestartUpdateWithPlayers` disabled unless you have planned for an in-session resource restart. A restart clears the memory-only FiveM note cache. ### Safety limits | Setting | Default | Purpose | | - | - | - | | `Config.MaxNotes` | `100` | Maximum notes accepted in one full-list save. | | `Config.MaxTitleCharacters` | `2000` | Maximum characters accepted in a note title. | | `Config.MaxBodyCharacters` | `20000` | Maximum characters accepted in a note body. | | `Config.MaxIdCharacters` | `128` | Maximum characters accepted in a note ID. | | `Config.MaxMetadataBytes` | `65536` | Maximum encoded metadata size for one note. | | `Config.MaxPayloadBytes` | `524288` | Maximum encoded size of a complete note-list save. | # Troubleshooting Source: https://docs.sonoransoftware.com/store/sonoran-notepad/troubleshooting Resolve installation, linking, sign-in, synchronization, and local-cache issues in Sonoran Notepad. ## The CAD sync warning stays visible The warning means Notepad is working locally but cannot confirm a linked, signed-in CAD tablet session. 1. Open the tablet and sign in to Sonoran CAD. 2. Confirm the player has linked the correct CAD community. 3. Run `/tablet checklink` to refresh the account link. 4. Close and reopen Notepad after the tablet finishes loading. 5. Confirm both `tablet` and `sonoran-notepad` are still started. The warning must remain visible when the player is unlinked, signed out, the CAD page is not responding, or the tablet resource is stopped. ## The tablet is grey, blank, or not loading Use the official [Tablet & Mini-CAD guide](/cad/integration-plugins/in-game-integration/available-plugins/tablet) and [FiveM tablet cache guide](/cad/download/fivem-clear-cache). Resolve the tablet session first; Notepad intentionally stays in local-only mode until the CAD page responds. ## A local note disappeared after a restart The FiveM fallback cache is memory-only and resets when `sonoran-notepad` or the server restarts. This behavior is expected. Restore the tablet link and CAD sign-in before depending on local-only notes across sessions. ## A CAD note or change does not appear 1. Confirm the local-only warning is not visible. 2. Leave the notepad open briefly after the tablet becomes available so pending local changes can synchronize. 3. Confirm the note stays within the configured count, title, body, metadata, and total payload limits. 4. Remember that CAD Notepad Sync uses the CAD frontend's local browser storage. A different device or browser profile can have a different note list. ## Linked results do not appear The **Linked results** section appears only for valid lookup annotations already included in the CAD note metadata. Sonoran Notepad does not start a new NCIC lookup from selected text. Malformed annotations or ranges that no longer match the note body are hidden safely. If the issue remains after checking the server and client console, contact [Sonoran Software support](https://support.sonoransoftware.com/) with the Notepad version, SonoranCADFiveM version, startup order, and relevant error messages. Remove private player or CAD information before sharing logs. # Using and Syncing Notes Source: https://docs.sonoransoftware.com/store/sonoran-notepad/usage-and-sync Write, navigate, remove, and synchronize Sonoran Notepad pages. ## Open and close the notepad Run `/notepad` or press `F7` with the default configuration. Use **Close** or press `Escape` to leave the notepad. While it is open, the player performs a writing animation with notepad and pencil props. The animation and props stop when the interface closes or the resource stops. \ ## Write and navigate Each page has a bold **Title** field and a lined **Note** area. Changes save automatically after a short pause. * Select **Previous** to move to the preceding note. * Select **Next** to move forward. * Selecting **Next** on the last completed note creates a new blank page. * Only one untouched blank page is kept at a time. * Select the scissors control in the upper-right corner to tear out the current page. The page indicator shows the current position and total number of notes. ![](https://docs-assets.sonoransoftware.com/sha256/5b/5bc31278c8125b2b3725a447d20e77f991244f98a29ee828aa1f2ee3eb42645c.png) ## CAD Sync The notepad syncs with the [CAD's tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet) submodule. Once signed into the tablet, add the **notepad** to your custom layout. Notes will sync between the in-game tablet and the CAD. The notepad is still available for standalone use in-game, if not using Sonoran CAD and the tablet resource. \ ## Name and plate searches With CAD sync available, highlight a name or license plate in the note body and right-click the selection. Choose **Search CAD as name** or **Search CAD as plate**. Name searches accept one to three name parts. The notepad synchronizes the note before requesting the search through the signed-in CAD tablet. The selected text becomes a linked lookup annotation. Hover over linked text to inspect the stored return, or select it to run or refresh the lookup. These annotations are preserved when the notes synchronize with CAD. Searches require the current tablet relay and a linked, signed-in CAD session. If a search is already pending, wait for it to finish before starting another. Editing the note during a search can cancel that search; select the current text and try again. ## Local-only mode If you are not using the [CAD's tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet) submodule or are not signed into the tablet, a compact warning appears above the notebook header. Editing, page navigation, and removal continue to work. ![Sonoran Notepad showing the CAD sync off warning while a local field note remains editable](https://docs-assets.sonoransoftware.com/sha256/5b/5bc31278c8125b2b3725a447d20e77f991244f98a29ee828aa1f2ee3eb42645c.png) *The local-only warning explains why CAD sync is off without blocking the notebook.* Local-only changes are marked for synchronization. When the tablet later reports a linked, signed-in CAD session, Notepad sends the current local list to CAD. # Sonoran Station Displays Source: https://docs.sonoransoftware.com/store/sonoran-station-displays Mount live Sonoran CAD unit, call, map, and bodycam views on televisions and monitors in FiveM. Sonoran Station Displays creates persistent, independently configured public-safety displays inside a FiveM server. A police briefing room can show law-enforcement units, a fire station can show Fire/EMS units, and a dispatch center can rotate through combined units, active calls, a live map, and bodycams. Each nearby display uses FiveM's direct-rendered browser interface (DUI). Objects and DUI instances are created and removed by distance, with a per-client pool limit to control memory and rendering cost. ![Combined Sonoran Station Displays Active Units page](https://docs-assets.sonoransoftware.com/sha256/43/438071e736fbcc542fd54a9d90b7997b8c569ebc1d20641a4d89e16d7cd35b2d.webp) *The production display renderer at its shipped 1280 by 720 resolution, using controlled sample data.* ## Features * Live on-duty units from the SonoranCADFiveM unit cache * Independent `LEO`, `FIRE_EMS`, or `BOTH` service filtering per display * Active Units, Emergency Calls, Dispatch Calls, Live Map, and Bodycams pages * Ordered pages, a saved default page, and automatic rotation from 5 to 300 seconds * Nearby viewer controls for synchronized page changes and temporary map panning * Unit grouping and natural sorting, automatic list pagination, and configurable row limits * A bundled, calibrated GTA V satellite map with unit, call, and station markers * Periodic local Sonoran bodycam imagery captured through `screenshot-basic` * GTA/FiveM in-game clock and estimated weather in the display header * In-game placement, movement, rotation, editing, preview, refresh, and deletion * Server-side ACE or custom permissions, validation, rate limiting, and JSON persistence * Optional server-only Discord-compatible administrative audit webhooks * Client and server exports for supported integrations ## Data flow The server reads the local `sonorancad` cache exports, normalizes one shared unit cache plus separate emergency and dispatch call caches, and sends sanitized full or incremental state to players. Each client filters that state for its nearby displays. SonoranCADFiveM determines whether a unit is on duty. A connected player is not automatically an active unit. The CAD `unit.data.page` value supplies the service category; agency and subdivision labels come from the cached unit. Bodycams use SonoranCADFiveM for authoritative identity and active state. Station Displays requests one compressed local image from an officer only while an eligible nearby display viewer is subscribed. It does not activate bodycams, upload evidence, retrieve hosted images, or use the previous TURN/remote-relay path. See [SonoranCADFiveM Integration](/store/sonoran-station-displays/sonorancad-integration). ## Display configuration Create a display through: ``` /stationdisplay > Mounted Displays > Place New Display ``` Every display saves its model, transform, world context, service filter, pages and page order, rotation, grouping, sorting, map behavior, bodycam layout, row limits, render distance, and interaction distance. Displays in the same building can therefore have different roles. The management and placement flow was adapted from Sonoran's `radio_fivem` menu patterns, but Station Displays ships its own code and has no radio runtime dependency. ## Requirements | Requirement | Type | Notes | | - | - | - | | Current FXServer with OneSync | Runtime | Server-side position and routing-bucket validation depends on OneSync behavior. No artifact build number is enforced. | | SonoranCADFiveM `4.0.72` or newer | Required | Supplies the unit, dispatch-call, and emergency-call cache exports. The resource must be named `sonorancad`. | | Compatible Sonoran bodycam runtime | Bodycams only | Must supply `GetBodycamRuntime()` and `SonoranCAD::bodycam::RuntimeChanged`. | | `screenshot-basic` | Bodycams only | Captures the officer's local JPEG and returns it through its built-in FXServer HTTP handler. | | FiveM Asset Escrow entitlement | Distribution | The paid resource is delivered through the CFX portal after Tebex purchase. | | Framework, SQL database, Node.js, or `radio_fivem` | Not required | The resource is standalone and ships production web files. | ## Default models | Label | Model | Rendering | | - | - | - | | Flat Screen TV | `prop_tv_flat_01` | Independent `WORLD_PLANE` surface | | Laptop Display | `prop_laptop_jimmy` | Independent `WORLD_PLANE` surface | Custom models require tested local screen geometry. GTA named render targets and texture replacement are shared at the model level and cannot guarantee independent content on identical props. See [Configuration](/store/sonoran-station-displays/configuration#display-model-registry). ## Important limitations * The DUI is 1280 by 720 (16:9). A differently proportioned model surface can stretch or crop. * The satellite map is a lightweight operational view, not the full Sonoran CAD map, a route planner, or the FiveM pause map. * `FOLLOW_UNITS` currently uses the same unit-based viewport calculation as `AUTO_FIT`. * Stale unit state affects map marker styling, but the Active Units table has no separate stale badge. * The management menu does not expose a routing-bucket field. Saved or externally provisioned bucket values are honored. * Bodycam tiles consume periodic image bandwidth and may expose sensitive roleplay information. * Model geometry and placement must be verified in the server's own interiors and map build. ## Documentation Start with [Installation](/store/sonoran-station-displays/installation), then review [Configuration](/store/sonoran-station-displays/configuration), [Permissions](/store/sonoran-station-displays/permissions), and [Display Management](/store/sonoran-station-displays/display-management). Operational details are split into [Active Units](/store/sonoran-station-displays/active-units), [Calls](/store/sonoran-station-displays/calls), [Localized Live Map](/store/sonoran-station-displays/live-map), [Bodycams](/store/sonoran-station-displays/bodycams), and [In-game Clock and Weather](/store/sonoran-station-displays/in-game-clock). Release history and implementation limitations are tracked in the [Changelog](/store/sonoran-station-displays/changelog). # Active Units Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/active-units Understand Active Units fields, service filters, statuses, grouping, sorting, pagination, and empty states. The Active Units page shows entries from the SonoranCADFiveM on-duty unit cache. Server owners do not need to define every department. ![Sonoran Station Displays Active Units page showing LEO sample units](https://docs-assets.sonoransoftware.com/sha256/99/99ac44679ec877f836a75c503af888701da59517481e6dcbd5c53e63ab75710c.webp) *The production LEO renderer using controlled sample data.* ![Sonoran Station Displays Active Units page showing Fire and EMS sample units](https://docs-assets.sonoransoftware.com/sha256/da/da85c9490b24e57867d8fdfe2b8e179a03dc73748a62af1e91bc423af8de3c6c.webp) *The production Fire/EMS renderer using controlled sample data.* ## Duty and service An entry must be present in `GetUnitCache()` and must not have offline status `100`. Player connection alone is not duty status. Service comes from `unit.data.page`: * Police (`0`) → `LEO` * Fire (`1`) or EMS (`2`) → `FIRE_EMS` * Dispatch (`3`) or unknown → `OTHER` `OTHER` units are not shown on Active Units. The combined filter shows LEO and Fire/EMS, not `OTHER`. ## Displayed fields Each row renders: | Field | Fallback | | - | - | | Callsign | Cached unit number/callsign/group, then `UNIT` | | Name | Cached name, then agency, then `On Duty` | | Status | Normalized label or raw status/`UNKNOWN` | | Assignment/location | `CALL ` when assigned; otherwise location, then postal | Agency or subdivision may also appear as a group heading. The normalized cache includes rank, district, group, coordinates, player association, panic, and update data, but version 1.0.0 does not render each of those as a row field. Panic callsigns receive a visual panic class. Long callsigns, names, and locations are escaped and truncated with an ellipsis to protect the display layout. Missing values use the fallbacks above. ## Status values | CAD status code | Display label | | - | - | | `0` | `UNAVAILABLE` | | `1` | `BUSY` | | `2` | `AVAILABLE` | | `3` | `EN ROUTE` | | `4` | `ON SCENE` | | `100` | `OFFLINE` and excluded | Unknown codes show the raw cached status or `UNKNOWN`. Enable **Hide Unavailable Units** on a display to exclude status code `0`. ## Grouping | Config value | Menu label | Behavior | | - | - | - | | `SERVICE` | By Service | Law Enforcement and Fire/EMS columns where applicable | | `AGENCY` | By Agency | Cached agency; missing values use `UNASSIGNED AGENCY` | | `SUBDIVISION` | By Subdivision | Cached subdivision; missing values use `NO SUBDIVISION` | | `NONE` | Disabled | One `ON-DUTY UNITS` group | Empty groups are not created. A display with no matching units shows: ``` NO ON-DUTY UNITS The selected service has no active units ``` ![Active Units grouped by agency](https://docs-assets.sonoransoftware.com/sha256/b1/b1d708e6dfd792207976de6e333a53edbf6f121f0690002efc4c6a8c42bbe556.webp) *Agency grouping with natural callsign ordering and independent group pagination.* ![Active Units grouped by subdivision and sorted by status](https://docs-assets.sonoransoftware.com/sha256/55/555cb5751365a43ab18958e943e92950826fdaeb270a4a38bb86e54539ad241a.webp) *Subdivision grouping with status sorting in a controlled renderer capture.* ## Sorting | Config value | Field | | - | - | | `CALLSIGN` | Callsign | | `STATUS` | Display status label | | `AGENCY` | Agency | | `SUBDIVISION` | Subdivision | Sorting uses case-insensitive, numeric-aware browser ordering. Callsigns such as `1A-2` therefore sort naturally before `1A-10`. ![Active Units with grouping disabled and sorted by status](https://docs-assets.sonoransoftware.com/sha256/60/606f312f9f86f06edb3a432bb86cf6b8a11b0252484bea3f65a2523ca01881be.webp) *A single group sorted by status.* ## Pagination and maximum rows The default row budget is 12 and the allowed per-display range is 4–40. When multiple groups are present, the budget is divided evenly across the number of groups with a minimum of one row per group. Each group automatically changes its list page every 10 seconds and shows `current/total` beside the group heading. ## Assignment and location Dispatch call assignments are matched using the call cache's `idents` or `units` values. When a match is found: * The unit row shows `CALL `. * The call card lists the unit's callsign. * The map can add the call ID beneath the unit marker. If no assignment exists, cached location is preferred over postal. ## Stale and missing data An unchanged unit is marked stale internally after `Config.StaleAfterSeconds` (30 seconds by default). The Active Units table does not visually label individual stale rows; Live Map dims and outlines stale markers. If a cache call fails, the display shows the disconnected overlay. Use diagnostics and `sonorancad viewcaches` to investigate a frozen or missing unit. # Administrative Webhooks Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/administrative-webhooks Configure secure Discord-compatible auditing for Sonoran Station Displays administrative actions. Administrative webhooks provide a non-blocking external audit trail. They supplement server permissions, validation, rate limiting, and persistence; they are not a persistence or security mechanism. ## Setup Create a webhook under the Discord channel's **Integrations > Webhooks** settings, then edit the server-only `sonoran-stationdisplay/server/admin_webhook_config.lua` file: ```lua theme={null} Config.AdminWebhook = { enabled = true, url = "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN", username = "Sonoran CAD Displays", includeIdentifiers = true } ``` This is a placeholder example. The shipped URL is blank. Restart the resource after changing it. Blank, unresolved-placeholder, non-HTTPS, local, and malformed endpoints remain disabled quietly. Discord-compatible endpoints must use the secure `/api/webhooks/ID/TOKEN` shape. The URL is never loaded by a client. Internal colors, HTTP timeout, retry behavior, queue and field limits, duplicate suppression, supported schemes, event names, and sanitization rules are protected. ## What is logged Successful entries cover display creation, meaningful edits, movement, deletion, service filters, page enable/order/default changes, rotation and map settings, force refresh, full resynchronization, supported server-export page/filter/refresh actions, the explicit server integration diagnostic, and webhook tests. Current action titles are: ``` DISPLAY_CREATED DISPLAY_UPDATED DISPLAY_MOVED SERVICE_FILTER_CHANGED DISPLAY_PAGES_UPDATED BODYCAM_PAGE_CONFIG_CHANGED DISPLAY_PAGE_FORCED DISPLAY_DELETED DISPLAY_FORCE_REFRESHED FULL_DISPLAY_RESYNC ADMIN_DIAGNOSTIC_RUN ADMIN_WEBHOOK_TESTED ``` Rotation and map field changes are included in `DISPLAY_UPDATED`; they do not invent separate action titles. Denied administrative requests use `UNAUTHORIZED_ADMIN_ACTION`. Only changed normalized values are included in edit embeds. Coordinate and rotation tolerances prevent insignificant floating-point noise. An edit with no real change produces a local no-change audit but no redundant webhook. Ordinary nearby page scrolling, map panning, bodycam Page Up/Page Down navigation, and routine feed/runtime changes are not administrative and are not logged. Duplication, import/export, backup restore, migrations, persistence clearing, and runtime model/map-asset editing are not implemented, so they are not claimed as logged actions. Security alerts are visually distinct. They cover unauthorized mutations or webhook tests, spoofed display IDs, invalid proximity/routing context, prohibited models, arbitrary page or DUI URL input, coordinate/render-distance limit violations, and repeated server-event rate-limit violations. Repeated equivalent alerts are deduplicated and escalated periodically to avoid flooding. ## Identity, privacy, and audit IDs Player name and server ID are resolved server-side. With `includeIdentifiers = true`, available Sonoran, Discord, license, FiveM, and Steam identifiers are included and length-limited. The embed also includes the server hostname. Review that value and identifier collection before enabling a webhook in a channel with broad membership. The webhook never includes IP addresses, API keys, Sonoran credentials, Tebex data, authentication tokens, webhook URLs, arbitrary client embed content, or full CAD cache payloads. Every action has an ID such as `DSP-20260728-A1B2C3`. Use it to correlate the local server log, webhook, administrator notification, and a related persistence error. Webhook timestamps use real-world UTC; the mounted display clock continues to use GTA/FiveM in-game time. ## Test the webhook Grant: ```ini theme={null} add_ace group.admin sonoran.stationdisplay.webhook.test allow ``` Open **Mounted Displays > View Diagnostics > Test Admin Webhook**. The server validates the private URL, rechecks permission, applies the normal event rate limit and a stricter test cooldown, then reports delivery success or failure with an audit ID. The test does not reveal the URL to the client. ## Delivery behavior Messages are queued and processed in order with a 100-entry memory limit, a 750 ms minimum send gap, and a 15-second HTTP timeout. A delivery gets at most two retries (three total attempts). Normal retries wait 2.5 seconds; a Discord 429 uses its `retry_after` value clamped to 1-30 seconds. Timeouts, 429, and 5xx responses retry; other 4xx responses do not. Permanent failures produce concise, deduplicated server warnings. Pending queue entries exist only in memory and are discarded when the resource stops. Webhook delivery is intentionally non-blocking. A valid administrative action can succeed while Discord is unavailable, and the structured local audit still occurs. ## Protect the credential * Never publish or commit a real webhook URL. * Never share it in a support ticket without redacting the token. * Never put it in client files, screenshots, or public examples. * Regenerate it immediately if exposed. ## Troubleshooting ### Webhook messages are not arriving Check that it is enabled, the URL is configured, the channel and webhook still exist, outbound HTTPS is permitted, and the console has no response-code warning. Run the webhook test. ### Webhook returns 401, 403, or 404 Regenerate the Discord webhook and replace the configured URL. ### Webhook returns 429 Allow the internal queue to retry and investigate excessive administrative or security actions. ### Actions work but webhook logging fails This is intentional non-blocking behavior. The valid action and local audit are not rolled back by an endpoint outage. ### Duplicate webhook messages Check for duplicate resource starts, repeated event registration, or proxy retry behavior. ### No identifiers appear Check `includeIdentifiers` and whether the player has the relevant identifier connected. ### Webhook test option is unavailable Grant `sonoran.stationdisplay.webhook.test`, then reconnect or restart the resource. The explicit test has a 60-second cooldown. # Bodycams Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/bodycams Configure, secure, and troubleshoot periodic local bodycam imagery on mounted displays. The `BODYCAMS` page displays periodic live images captured locally from active, on-duty officers. It is not continuous video. Station Displays no longer uses the previous PeerJS/TURN viewer, remote image relay, or hosted bodycam URL. ![Station Displays bodycam grid showing controlled connection and off states](https://docs-assets.sonoransoftware.com/sha256/a6/a628d4c8dd47ebc639bfa5c84d32265b313b3d76c21f634991b3ed2114cd8ead.webp) *The production four-tile renderer. This controlled capture contains no officer footage.* ## Requirements * Start the core resource as `sonorancad`. * Install and start `screenshot-basic`. * Use a SonoranCADFiveM build with `GetBodycamRuntime()` and `SonoranCAD::bodycam::RuntimeChanged`. * Enable the Sonoran bodycam submodule, put the officer on duty, and activate it. * No viewing ACE is required; image delivery is limited to eligible nearby viewers. Recommended resource order: ```cfg theme={null} ensure sonorancad ensure screenshot-basic ensure sonoran-stationdisplay ``` If `screenshot-basic` is missing, the rest of Station Displays continues to operate and the bodycam page reports an unavailable capture dependency. ## How local capture works SonoranCADFiveM supplies authoritative bodycam active state, player source, and CAD unit ownership. A nearby DUI subscribes only to the feeds visible on its mounted display. The Station Displays server validates distance, routing bucket, interior, current page, service filter, on-duty ownership, and active state. For each active subscribed officer, the server requests one client-local capture: ```lua theme={null} exports["screenshot-basic"]:requestClientScreenshot(source, { encoding = "jpg", quality = 0.55 }, callback) ``` `screenshot-basic` returns the image through its built-in FXServer HTTP upload handler. Station Displays validates the JPEG and keeps only the latest frame. It uses a rate-controlled latent event to deliver that frame only to eligible subscribed viewers. The DUI replaces and revokes its previous Blob object URL. Several displays showing the same officer reuse the same capture. Display count never increases the officer's capture frequency. ## Limits and expected bandwidth * Capture interval: 4 seconds (15 frames per minute maximum). * JPEG quality: 0.55. * Maximum decoded frame: 300 KB. * Maximum simultaneous visible feeds per viewing client: 4. * Subscription heartbeat/expiry: 4/8 seconds. * Stale frame timeout: 30 seconds. The installed `screenshot-basic` API supports encoding and quality but not resize options, so capture uses the officer's native game-frame dimensions and the DUI scales it into the tile. Frames over 300 KB are rejected. At the hard limit, one feed is about 75 KB/s (0.6 Mbps), and four feeds are about 300 KB/s (2.4 Mbps) per viewer, before protocol overhead. Measure average and maximum JPEG sizes on the graphics profiles used by your community. ## Layouts | Layout | Behavior | | - | - | | `AUTO` | One feed uses single; multiple feeds use grid. | | `SINGLE` | One large feed per bodycam page. | | `GRID` | Up to four feeds in a 2-by-1 or 2-by-2 grid. | | `FOCUSED` | One large feed plus a narrow secondary rail. | Extra feeds create additional bodycam pages. These rotate independently using the saved bodycam interval (15 seconds by default). Page Down/Page Up moves between feed pages on the targeted DUI. ## Overlay and states The Station Displays overlay can show recording state, callsign, unit name, agency, status, assigned call, and capture freshness without depending on a baked-in label. | State | Meaning | | - | - | | `CONNECTING` | Active and subscribed, but no accepted frame yet. | | `LIVE` | The latest accepted frame is current. | | `DELAYED` | Capture is late; the previous frame remains visible briefly. | | `CAPTURE FAILED` | Capture, validation, or decode failed. | | `OFFLINE` | Inactive, off duty, disconnected, or past the stale timeout. | ## Security and privacy The server chooses the source officer, capture interval, JPEG settings, and recipients. It does not trust client-submitted callsigns, agency labels, active state, viewers, or frame sequence. MIME, base64 form, ownership, size, freshness, and subscriptions are validated server-side. Frames are never broadcast globally, written to `data/displays.json`, included in webhooks, logged, or returned by diagnostics. Diagnostics expose sizes, timing, sequence counters, source IDs, and subscriber counts only. Bodycam imagery can contain sensitive roleplay information. Use intentional display placement, interiors, routing buckets, and short render distances. Avoid placing a bodycam page on a publicly accessible screen. ## Troubleshooting ### No bodycams appear Check the bodycam submodule, duty/active state, service filter, enabled `BODYCAMS` page, `GetBodycamRuntime()` bridge, and viewer range. ### Capture dependency unavailable Start `screenshot-basic` before Station Displays and check the server console for `SSD-BODYCAM-001`. ### Capture failed or oversized Use diagnostics to inspect last attempt/success, upload duration, frame size, sequence, subscriber count, and malformed/oversized counters. Lower the officer's game resolution if quality-0.55 JPEGs repeatedly exceed 300 KB. ### Delayed or stale The previous frame remains briefly. Confirm the officer is initialized and not in a loading screen, pause menu, or screen fade. The frame is removed after 30 seconds. ### A viewer receives no image Confirm render range, routing bucket, interior, the mounted display's current page, service filter, and visible feed page. # Calls Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/calls Understand emergency and dispatch call sources, filtering, fields, assignments, pagination, and privacy. Sonoran Station Displays provides two call pages because SonoranCADFiveM exposes two separate caches. ## Emergency Calls Source: ```lua theme={null} exports["sonorancad"]:GetEmergencyCache() ``` Emergency entries are normalized as `EMERGENCY_CALL` while they remain in the cache. The default title is `Emergency Call` when `isEmergency` is true, otherwise `Incoming Call`. Default priority is `1` for an emergency and `0` for another incoming call. ![Sonoran Station Displays Emergency Calls page rendered with sample data](https://docs-assets.sonoransoftware.com/sha256/4b/4b6bac1f8d7ded87363554187b815324bc030534210e348760a7e438efaf7dfd.webp) *The production Emergency Calls renderer using controlled sample data.* ## Dispatch Calls Source: ```lua theme={null} exports["sonorancad"]:GetCallCache() ``` Dispatch entries are normalized as `DISPATCH_CALL`. Status `2` (`CLOSED`) is removed from the display cache. Default title is `Dispatch Call`. ![Sonoran Station Displays Dispatch Calls page rendered with sample data](https://docs-assets.sonoransoftware.com/sha256/37/3749a80f0e0c1ce8f158a1d243764c5452ba6efe052b5250577848c3cb9899f0.webp) *The production Dispatch Calls renderer using controlled sample data.* ## Normalized fields The adapter can normalize: * Call ID, kind, title, and code * Numeric priority * Status * Address/location and postal * Description * Assigned unit IDs and callsigns * Emergency caller text when enabled * World coordinates from `metaData` * Created/updated values * Service classification ## Visible call cards Version 1.0.0 renders: * Priority badge when `VisibleCallFields.priority = true` * Call code when present * Title * Address and appended postal when `VisibleCallFields.address = true` * Description when `VisibleCallFields.description = true` * Assigned callsigns or `AWAITING ASSIGNMENT` when `VisibleCallFields.assignedUnits = true` Titles and assigned-unit lines truncate with an ellipsis. Descriptions are clipped to a fixed two-line-height area. Current renderer limitations: * Status is normalized and sent but is not displayed. * `VisibleCallFields.postal` is not an independent switch; postal follows the address block. * Caller text is not rendered even if normalization is enabled. These are implementation limitations, not hidden fields elsewhere in the customer UI. Keep `VisibleCallFields.caller = false`. ## Service filtering A call is classified from its assigned normalized units. | Assignment | Call service | | - | - | | LEO only | `LEO` | | Fire/EMS only | `FIRE_EMS` | | Both | `BOTH` | | None or only unclassified units | `OTHER` | Filtering: * LEO displays show `LEO` and `BOTH`. * Fire/EMS displays show `FIRE_EMS` and `BOTH`. * Both displays show every call, including `OTHER`. * Optional fallback settings can show `OTHER` on a single-service display. The resource does not infer service from call titles or department text. ## Priorities and sorting Priority is a number and receives a `priority-` CSS class. The shipped renderer does not reorder calls. Calls retain the normalized cache iteration order; do not depend on priority or creation-time sorting. ## Pagination and maximum calls The default maximum is eight call cards and the allowed per-display range is 2–30. Large lists automatically move to the next list page every 10 seconds. ## Stale calls and removal Version 1.0.0 does not age out or visually mark individual calls by timestamp. * Dispatch calls disappear when closed or removed from `GetCallCache()`. * Emergency calls disappear when removed from `GetEmergencyCache()`. * Cache deltas remove the client entry. * A failed cache call changes the connection to disconnected. ## Calls without coordinates A call without usable X/Y values still appears on the corresponding call page. It does not receive a Live Map marker. ## Sensitive information The board is an in-world display and viewing is public. Review all configured fields before enabling a page on displays accessible to players. Recommended public-facing configuration: ```lua theme={null} Config.VisibleCallFields = { priority = true, status = true, address = true, postal = true, description = true, assignedUnits = true, caller = false } ``` Disable description or address if those values are inappropriate for the display's audience. # Changelog Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/changelog Sonoran Station Displays release history, behavioral changes, and known limitations. ## 1.0.1 - August 1, 2026 ### Fixed * Fixed false persistence failures on FXServer builds that return stale file data after a filesystem fallback write. Successful display changes are now verified directly from disk so they remain saved after restart. * Fixed mounted displays not appearing inside custom MLO interiors. ## 1.0.0 release candidate - July 28, 2026 ### Added * Persistent mounted displays with LEO, Fire/EMS, and combined filtering * Active Units, Emergency Calls, Dispatch Calls, Live Map, and Bodycams pages * Synchronized nearby page changes, temporary map panning, and rebindable controls * Ordered page rotation, unit grouping/sorting, and list/bodycam pagination * Bundled calibrated satellite map with unit, call, station, stale, bounds, and debug behavior * Subscription-scoped local JPEG bodycam capture through `screenshot-basic` * GTA/FiveM in-game clock and estimated weather header * Self-contained display management, preview, placement, movement, and diagnostics * ACE/custom permissions, server validation, event limits, and verified JSON persistence * Optional queued administrative and security webhooks * Client/server exports and documented DUI state protocol * Distance-managed rendering with a configurable active-DUI limit ### Security and privacy * Player mutations are revalidated server-side for permission, proximity, routing bucket, model, enum, range, string, page, and cooldown constraints. * CAD/display state is sanitized and synchronized for nearby display rendering. * Caller information is disabled by default and is not rendered by the current call card. * Bodycam source ownership, display eligibility, MIME/base64 form, size, cadence, and recipients are validated server-side; arbitrary stream URLs are not accepted. * Administrative webhook URLs remain server-only and mentions are disabled. ### Known limitations * Active-unit rows do not display a dedicated stale badge. * `VisibleCallFields.status`, independent postal visibility, and caller display are configured/normalized but not rendered by the current UI. * `Config.MapRefreshInterval` is not consumed by the current renderer. * `FOLLOW_UNITS` and `AUTO_FIT` can produce the same viewport for ordinary unit datasets. * Runtime pause/resume exists internally but has no supported customer command or menu control. * Named render targets and texture replacement cannot provide independent content for identical model instances. * The bodycam bridge must be present in the installed SonoranCADFiveM build; `4.0.72` is the cache minimum, not a claim that every `4.0.72` package includes that bridge. ### Documentation The July 28 final pass reconciled customer documentation against Station Displays, SonoranCADFiveM, `radio_fivem`, shared store-resource conventions, and the live renderer. Bodycam imagery now uses local periodic capture and no longer depends on the previous TURN/remote-relay viewing path. # Configuration Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/configuration Reference every customer-editable Station Displays setting, default, limit, and current implementation note. Customer settings live in `sonoran-stationdisplay/config.lua`. Physical display records are saved separately in `data/displays.json`. > [!WARNING] > > Stop the resource before editing configuration. A changed default does not overwrite an existing display's saved value. The dependency name, required base CAD version, DUI resolution/lifecycle, event rate limit, and version-check schedule are internal. Do not copy old settings for those values into a current configuration. ## General | Setting | Default | Behavior | | - | - | - | | `Config.configuration_version` | `1.0` | Customer configuration schema marker. Do not change independently. | | `Config.Debug` | `false` | Enables extra logs and the permission diagnostic command. May expose more identifiers/details. | | `Config.Locale` | `"en"` | Selects `Locales.`; English is the shipped locale. | | `Config.AdminCommand` | `"stationdisplay"` | Management command without `/`. Restart to re-register it. | ### Promotional sample data `Config.PromoMode` is a maintainer screenshot fixture: ```lua theme={null} Config.PromoMode = { enabled = false, animate = true, activityIntervalSeconds = 45 } ``` Keep it disabled on production servers. When present in a source/release-candidate build, the server console can use `stationdisplay_promodata on|off|status`. It produces fictional data and must never be presented as live CAD state. ## New-display and page defaults | Setting | Default / allowed | Behavior | | - | - | - | | `DefaultRotationInterval` | `30` seconds | Main page rotation for new displays. | | `MinimumRotationInterval` | `5` seconds | Lowest accepted saved main-page interval. | | `MaximumRotationInterval` | `300` seconds | Highest accepted saved main-page interval. | | `DefaultServiceFilter` | `"BOTH"` | `LEO`, `FIRE_EMS`, or `BOTH`. | | `DefaultGrouping` | `"SERVICE"` | `SERVICE`, `AGENCY`, `SUBDIVISION`, or `NONE`. | | `DefaultSorting` | `"CALLSIGN"` | `CALLSIGN`, `STATUS`, `AGENCY`, or `SUBDIVISION`. | | `DefaultTheme` | `"MODERN"` | `MODERN` or `RETRO`. | | `DefaultPage` | `"ACTIVE_UNITS"` | Must be in the enabled page list. | | `DefaultPages` | `{"ACTIVE_UNITS", "EMERGENCY_CALLS"}` | Ordered initial page list. Invalid IDs and duplicates are removed. | | `MaximumUnitsPerPage` | `12` | Per-display saved range `4` to `40`; divided across visible groups. | | `MaximumCallsPerPage` | `8` | Per-display saved range `2` to `30`. | Supported page IDs: ``` ACTIVE_UNITS EMERGENCY_CALLS DISPATCH_CALLS LIVE_MAP BODYCAMS ``` ## Clock and weather | Setting | Default / allowed | Behavior | | - | - | - | | `TimeFormat` | `12`; `12` or `24` | GTA/FiveM world-clock format. | | `ShowClockSeconds` | `false` | Adds seconds to the header clock. | | `Weather.enabled` | `true` | Shows the current GTA weather label and estimated temperature. | | `Weather.temperatureUnit` | `"F"`; `F` or `C` | Display unit for the estimate. | | `Weather.updateInterval` | `2000` ms | Client weather sampling interval. | See [In-game Clock and Weather](/store/sonoran-station-displays/in-game-clock). ## Cache and freshness | Setting | Default | Behavior / cost | | - | -: | - | | `UnitRefreshInterval` | `2000` ms | Shared server poll for unit state and coordinates. Lower values increase CAD export calls and client deltas. | | `CallRefreshInterval` | `3000` ms | Shared server poll for both call caches. | | `MapRefreshInterval` | `1000` ms | Retained configuration value; the current implementation does not read it. | | `StaleAfterSeconds` | `30` seconds | Marks unchanged units stale internally. Map markers reflect it; table rows have no separate badge. | Push events can request an earlier refresh. Polling is server-wide and is not multiplied by display count. ## Bodycams ```lua theme={null} Config.Bodycams = { defaultLayout = "AUTO", defaultMaximumFeeds = 4, defaultRotationInterval = 15, minimumRotationInterval = 5, maximumRotationInterval = 300, maximumFeeds = 4, refreshIntervalMs = 1000, delayedAfterSeconds = 8, unavailableAfterSeconds = 30, showInactiveUnits = false, showUnitName = true, showAgency = true, showStatus = true, showAssignedCall = true, showTimestamp = true } ``` | Setting | Behavior | | - | - | | `defaultLayout` | `AUTO`, `SINGLE`, `GRID`, or `FOCUSED` for new displays. | | `defaultMaximumFeeds` | Initial feed count per bodycam page. | | `defaultRotationInterval` | Independent bodycam-page interval, default 15 seconds. | | `minimumRotationInterval` / `maximumRotationInterval` | Accepted saved range, 5 to 300 seconds. | | `maximumFeeds` | Hard per-page ceiling; current implementation caps it at 4. | | `refreshIntervalMs` | Server bodycam-runtime polling fallback. Runtime events can update sooner. | | `delayedAfterSeconds` | A late periodic frame becomes `DELAYED`. | | `unavailableAfterSeconds` | A longer capture gap becomes `CAPTURE FAILED` or `OFFLINE`. | | `showInactiveUnits` | Includes associated inactive/off bodycams. | | `showUnitName`, `showAgency`, `showStatus`, `showAssignedCall` | Toggle tile metadata. | | `showTimestamp` | Controls capture-freshness/timestamp presentation when supplied. | These controls do not change the internal 4-second local capture interval, JPEG quality, 300 KB frame ceiling, four-feed subscription limit, or recording behavior. See [Bodycams](/store/sonoran-station-displays/bodycams). ## Distance and capacity | Setting | Default / range | Behavior | | - | - | - | | `RenderDistance` | `75.0` m; saved `5` to `250` | New-display distance for object/DUI creation. | | `InteractionDistance` | `2.5` m; saved `0.5` to `15` | Fallback targeting distance for page, map, and bodycam controls. | | `MenuNearbyDistance` | `15.0` m | Radius for **View Nearby Displays**. | | `MaximumActiveDuis` | `8` | Per-client active renderer pool limit. | | `MaximumDisplays` | `200` | Server persistence limit. | | `MaximumDisplayNameLength` | `64` | Maximum trimmed name length. | | `MaximumRenderDistance` | `250.0` m | Highest saved render distance. | | `MaximumPlacementDistance` | `15.0` m | Server proximity limit for create, move, edit, and delete. | Internally, the client creates 1280 by 720 DUIs, waits up to 10 seconds for readiness, and delays destruction for 3 seconds so a quick range transition can be cancelled. The protected server allows 25 events per player/category per 10-second window. ## Permissions ```lua theme={null} Config.PermissionMode = "ace" Config.AcePermissions = { menu = "sonoran.stationdisplay.menu", place = "sonoran.stationdisplay.place", edit = "sonoran.stationdisplay.edit", delete = "sonoran.stationdisplay.delete", diagnostics = "sonoran.stationdisplay.diagnostics", refresh = "sonoran.stationdisplay.refresh", webhookTest = "sonoran.stationdisplay.webhook.test" } ``` `PermissionMode` accepts `ace` or `custom`. Empty ACE values deny. Viewing has no ACE node; menu access, placement, editing, deletion, diagnostics, refresh, and webhook tests are independently configurable. `Config.CustomPermission(source, action)` is called only in custom mode. It must return boolean `true`; errors deny. The callback receives backend actions `menu`, `place`, `edit`, `delete`, `diagnostics`, `refresh`, and `webhookTest`. See [Permissions](/store/sonoran-station-displays/permissions). ## Call classification and fields ```lua theme={null} Config.CallClassificationFallback = { showUnclassifiedOnLeo = false, showUnclassifiedOnFireEms = false } ``` These options allow `OTHER` calls on a single-service display. Both-service displays already show them. | `VisibleCallFields` key | Default | Current rendering | | - | - | - | | `priority` | `true` | Priority badge | | `status` | `true` | Normalized but not rendered | | `address` | `true` | Address and, when present, postal | | `postal` | `true` | Not independent; postal currently follows `address` | | `description` | `true` | Two-line clipped description | | `assignedUnits` | `true` | Callsigns or awaiting-assignment label | | `caller` | `false` | Emergency caller may be normalized when enabled, but is not rendered | Keep caller disabled unless a future renderer and the display audience justify it. ## Display model registry `Config.DisplayModels` is the server allowlist. Player requests cannot spawn another model. ```lua theme={null} Config.DisplayModels = { { model = "prop_tv_flat_01", label = "Flat Screen TV", renderMethod = "WORLD_PLANE", renderTarget = "tvscreen", screen = { center = {x = 0.0, y = -0.061, z = 0.48}, width = 2.14, height = 1.20, flipX = false } }, { model = "prop_laptop_jimmy", label = "Laptop Display", renderMethod = "WORLD_PLANE", textureDictionary = "prop_laptop_jimmy", textureName = "prop_jimmy_screen", screen = { center = {x = 0.0, y = -0.205, z = 0.22}, width = 0.36, height = 0.205, flipX = false } } } ``` | Field | Purpose | | - | - | | `model`, `label` | GTA model name and menu label | | `renderMethod` | `WORLD_PLANE`, `NAMED_RENDER_TARGET`, or `TEXTURE_REPLACE` | | `renderTarget` | Named target for that method | | `textureDictionary`, `textureName` | Original texture pair for replacement | | `screen.center` | Model-local X/Y/Z surface center | | `screen.width`, `screen.height` | World dimensions; normally calibrate to 16:9 | | `screen.flipX` | Corrects a mirrored horizontal surface | Use `WORLD_PLANE` for independent display content. Named targets and texture replacement are global to identical model instances. Test custom models in-game from several angles, with two instances, and across restart/range cleanup. ## Advanced service overrides ```lua theme={null} Config.AdvancedServiceOverridesEnabled = false Config.AdvancedServiceOverrides = {} ``` When enabled, case-insensitive department, subdivision, or group text maps to `LEO`, `FIRE_EMS`, or `OTHER`. Leave this disabled unless a confirmed customized/legacy cache has incorrect `unit.data.page` classification. ## Map defaults ```lua theme={null} Config.Map = { defaultMode = "AUTO_FIT", defaultCenter = {x = 215.0, y = -810.0}, defaultZoom = 1.0, minimumSpan = 600.0, maximumSpan = 24000.0, padding = 0.12, showCalls = true, showStationMarker = true, debug = false } ``` Modes are `AUTO_FIT`, `FIXED_REGION`, and `FOLLOW_UNITS`. Saved center components accept `-20000` to `20000`; zoom accepts `0.1` to `10.0`. Minimum/maximum span and padding constrain automatic fits. Debug adds a projection overlay and should remain off in production. ## Viewer interaction ```lua theme={null} Config.PageInteraction = { enabled = true, cooldown = 500, allowPrevious = true, pauseRotationAfterInteraction = 10, maximumViewAngle = 65.0, requireLineOfSight = true, nextKey = "RIGHT", previousKey = "LEFT" } ``` Page changes are server-validated and synchronized to clients. The rotation timer holds for 10 seconds by default after an interaction. A candidate display must be within its interaction distance and camera angle, in the correct world context, and visible by line of sight when required. ```lua theme={null} Config.MapInteraction = { enabled = true, cooldown = 150, panStep = 0.20, upKey = "NUMPAD8", downKey = "NUMPAD2", leftKey = "NUMPAD4", rightKey = "NUMPAD6", resetKey = "NUMPAD5" } Config.BodycamInteraction = { enabled = true, nextKey = "PAGEDOWN", previousKey = "PAGEUP" } ``` Map pan is temporary and synchronized. Bodycam page navigation is local to the targeted DUI. All keys are registered mappings and can be rebound in FiveM settings. ## Restart and persistence notes Global configuration changes require a resource restart unless a page explicitly states otherwise. Defaults affect new displays and invalid-value fallbacks. Existing valid per-display values remain in `data/displays.json`; edit them in the management menu if they should change. # Developer API Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/developer-api Use the supported Sonoran Station Displays client/server exports and observation events. Resource name: ``` sonoran-stationdisplay ``` ## Server exports Server exports are trusted resource-to-resource calls. They do not apply player ACE checks. Never proxy untrusted client input directly into them. ### `GetDisplays()` ```lua theme={null} local displays = exports["sonoran-stationdisplay"]:GetDisplays() ``` | Property | Value | | - | - | | Side | Server | | Parameters | None | | Returns | Array of copied display tables | | Failure | Empty array when no displays exist | | Permission | None; server resource call | ### `GetDisplay(displayId)` ```lua theme={null} local display = exports["sonoran-stationdisplay"]:GetDisplay("ssd-...") ``` | Property | Value | | - | - | | Side | Server | | `displayId` | string | | Returns | Copied display table or `nil` | | Failure | `nil` for an unknown ID | | Permission | None; server resource call | ### `RefreshDisplay(displayId)` ```lua theme={null} local ok = exports["sonoran-stationdisplay"]:RefreshDisplay("ssd-...") ``` | Property | Value | | - | - | | Side | Server | | `displayId` | string | | Returns | boolean | | Failure | `false` for an unknown ID | | Behavior | Broadcasts a forced DUI state resend to authorized clients; does not refresh CAD caches | | Permission | None; server resource call | ### `SetDisplayPage(displayId, pageId)` ```lua theme={null} local ok = exports["sonoran-stationdisplay"]:SetDisplayPage( "ssd-...", "LIVE_MAP" ) ``` | Property | Value | | - | - | | Side | Server | | `displayId` | string | | `pageId` | `ACTIVE_UNITS`, `EMERGENCY_CALLS`, `DISPATCH_CALLS`, `LIVE_MAP`, or `BODYCAMS` | | Returns | boolean | | Failure | `false` for an unknown display or page ID | | Behavior | Broadcasts a runtime page request; does not persist current page | | Permission | None; server resource call | The receiving client applies the page only when it is in that display's saved `pageOrder`. ### `SetDisplayServiceFilter(displayId, serviceFilter)` ```lua theme={null} local ok = exports["sonoran-stationdisplay"]:SetDisplayServiceFilter( "ssd-...", "FIRE_EMS" ) ``` | Property | Value | | - | - | | Side | Server | | `displayId` | string | | `serviceFilter` | `LEO`, `FIRE_EMS`, or `BOTH` | | Returns | boolean | | Failure | `false` for an unknown display or filter | | Behavior | Persists the filter and broadcasts the updated display | | Permission | None; server resource call | ## Client exports Client exports act on the local client's synchronized, sanitized display/cache state. ### `GetDisplays()` ```lua theme={null} local displays = exports["sonoran-stationdisplay"]:GetDisplays() ``` Returns an array sorted by display name. Treat returned display tables as read-only. ### `GetDisplay(displayId)` ```lua theme={null} local display = exports["sonoran-stationdisplay"]:GetDisplay("ssd-...") ``` Returns the local display table or `nil`. Treat it as read-only. ### `RefreshDisplay(displayId)` ```lua theme={null} exports["sonoran-stationdisplay"]:RefreshDisplay("ssd-...") ``` Returns no value. If that display has a local active DUI, its state is resent. It does not request server or CAD data. ### `SetDisplayPage(displayId, pageId)` ```lua theme={null} local ok = exports["sonoran-stationdisplay"]:SetDisplayPage( "ssd-...", "ACTIVE_UNITS" ) ``` Returns `true` when an active local renderer exists and the page is in its saved order; otherwise `false`. The change is local and not persisted. ### `OpenDisplayMenu()` ```lua theme={null} local requested = exports["sonoran-stationdisplay"]:OpenDisplayMenu() ``` Returns `false` when placement is already active; otherwise `true` after opening the non-actionable loading state and requesting a fresh server permission snapshot. Actionable menu opening is asynchronous and still requires the configured `menu` administrative permission. ## Supported client observation events External client resources may listen to these events. Do not trigger the synchronization events to impersonate server state. ### Display configuration lifecycle ```lua theme={null} AddEventHandler("sonoranDisplays:client:displayAdded", function(display) print(("Added display %s"):format(display.id)) end) AddEventHandler("sonoranDisplays:client:displayUpdated", function(display) print(("Updated display %s"):format(display.id)) end) AddEventHandler("sonoranDisplays:client:displayRemoved", function(displayId) print(("Removed display %s"):format(displayId)) end) ``` | Event | Direction | Payload | Fires | | - | - | - | - | | `sonoranDisplays:client:displayAdded` | Server → authorized client | display table | After a persisted create | | `sonoranDisplays:client:displayUpdated` | Server → authorized client | display table | After a persisted update | | `sonoranDisplays:client:displayRemoved` | Server → authorized client | display ID string | After a persisted delete | These are safe to listen to. External resources should mutate displays through supported server exports, not trigger these client events. ### Local object lifecycle ```lua theme={null} AddEventHandler("sonoranDisplays:client:displaySpawned", function(displayId, object) -- The local object entered range. end) AddEventHandler("sonoranDisplays:client:displayDespawned", function(displayId) -- The local object and DUI were cleaned up. end) ``` | Event | Direction | Payload | Fires | | - | - | - | - | | `sonoranDisplays:client:displaySpawned` | Local client | display ID, object handle | After an in-range object is created | | `sonoranDisplays:client:displayDespawned` | Local client | display ID | After local cleanup | Object handles are client-local and can become invalid after the event. ### Open the menu ```lua theme={null} TriggerEvent("sonoranDisplays:client:openMenu") ``` This local event is safe for another client resource to trigger. It performs the same server permission handshake as the command/export. ### Runtime page broadcast ```lua theme={null} AddEventHandler("sonoranDisplays:client:setPage", function(displayId, pageId, holdMs, elapsedMs) -- Observe a server-authorized runtime page broadcast. end) ``` | Property | Value | | - | - | | Direction | Server → authorized client | | Payload | Display ID string, page ID string, hold milliseconds, elapsed milliseconds | | Fires | After the server `SetDisplayPage` export broadcasts a valid request | | Safe external use | Safe to listen to; use the server export rather than triggering this event directly | The receiving renderer still requires the page to exist in the display's saved `pageOrder`. ## Display table Persisted display fields include: ``` id, name, model, position, rotation, serviceFilter, theme, enabledPages, pageOrder, defaultPage, rotationEnabled, rotationInterval, grouping, sorting, hideUnavailable, maxUnitsPerPage, maxCallsPerPage, map, bodycams, renderDistance, interactionDistance, routingBucket, interiorId, createdBy, createdAt, updatedAt ``` ## Internal network events The resource also registers internal synchronization/request events such as: ``` sonoranDisplays:server:requestSync sonoranDisplays:server:requestMenu sonoranDisplays:server:save sonoranDisplays:server:delete sonoranDisplays:server:forceRefresh sonoranDisplays:server:requestDiagnostics sonoranDisplays:client:displayFullSync sonoranDisplays:client:cacheFullSync sonoranDisplays:client:cacheDelta sonoranDisplays:client:connection sonoranDisplays:client:permissions sonoranDisplays:client:openAuthorizedMenu sonoranDisplays:client:diagnostics sonoranDisplays:client:setPage sonoranDisplays:client:forceRefresh ``` These are implementation protocol, not a stable public API. Player requests are permission checked, proximity checked where applicable, validated, and rate limited. External resources should not trigger them. See [DUI Message Protocol](/store/sonoran-station-displays/dui-message-protocol) for the browser boundary. # Diagnostics Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/diagnostics Use Station Displays in-game, server, permission, persistence, map, and bodycam diagnostics. ## In-game diagnostics Open: ``` /stationdisplay > Mounted Displays > View Diagnostics ``` The player needs `sonoran.stationdisplay.menu` to open the menu and `sonoran.stationdisplay.diagnostics` to open diagnostics. The menu shows: * CAD detected, compatible, version, and current error * Configured and nearby display counts * Active DUI count * LEO and Fire/EMS unit counts * Emergency and dispatch call counts * Cache revision * Bodycam runtime/capture dependency detected, available, and mode * Source client, capture active, last attempt/success, and upload duration * Latest frame size/sequence, subscribed viewers, and visible feed count * Accepted, malformed, oversized, stale, failed, and rate-limited counters Use **Refresh Diagnostics** for a new snapshot. The menu does not currently show webhook status, per-cache timestamps, map clipping, or each DUI's last update. ## Server diagnostic Run in the server console: ``` stationdisplay_serverdiag ``` It prints a JSON snapshot containing the CAD object, display and cache counts, cache revision, promotional-data status, and bodycam state. A player can run the command only with diagnostics permission. Running it creates a local administrative audit entry and, when configured, a webhook diagnostic entry. ## Permission diagnostic When `Config.Debug = true`: ``` stationdisplay_permissiondiag [serverId] ``` The console can inspect any source. A player needs diagnostics permission. Output covers logical action, backend action, ACE node, current menu snapshot, server action, and persistence diagnostics. ## Persistence repair Console only: ``` stationdisplay_repair_persistence ``` Use this only after the active persistence file is unreadable. The command backs it up as `data/displays.invalid..json`, resets from the shipped default, and requires a resource restart. See [Persistence](/store/sonoran-station-displays/persistence). ## Map diagnostics `Config.Map.debug = true` adds a visual projection overlay to Live Map. It reports map bounds, asset crop, clipping, and selected viewport data. This is separate from the in-game diagnostics menu. ## Refresh options * **Force-Refresh Display** requires edit permission and refreshes one selected display. * **Full Display Resync** requires diagnostics permission and resends the server snapshot. * Restart/rejoin performs the normal initial synchronization. None of these forces SonoranCADFiveM to rebuild its own caches. Continue with [Troubleshooting](/store/sonoran-station-displays/troubleshooting) for symptom-based checks and error codes. # Display Management Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/display-management Place, configure, move, preview, refresh, and delete mounted Station Displays. ## Open the menu Run `/stationdisplay`, or the command configured by `Config.AdminCommand`. The self-contained WarMenu is adapted from Sonoran's `radio_fivem` placement patterns. It does not call radio exports or require the radio resource. While the server supplies the latest permission and display snapshots, the menu shows a non-actionable **Loading Station Displays...** state. The compact blue header, highlighted selection, descriptions, and control hints then remain consistent throughout every submenu. ## Place a display 1. Open **Mounted Displays > Place Display**. 2. Enter a name and choose an allowed model. 3. Choose `LEO`, `Fire/EMS`, or `Both`. 4. Enable at least one page, select the default, and arrange the page order. 5. Configure rotation, grouping, sorting, list limits, map/bodycam behavior, theme, render distance, and interaction distance. 6. Choose **Continue to Placement**. 7. Position and rotate the translucent preview. 8. Confirm placement. The server rechecks place permission, model, settings, player/world context, and the final position. The default maximum placement distance is 15 meters. ## Placement controls The placement overlay shows the resolved FiveM control labels for the current client. Default keyboard mappings correspond to: | Control group | Action | | - | - | | Numpad horizontal controls | Move X | | Numpad vertical controls | Move Y | | Page Up / Page Down | Move Z | | **Rotation Axis** | Select X, Y, or Z | | Numpad rotation controls | Rotate the selected axis | | Shift release | Increase step by `0.001`, up to `2.0` | | Ctrl release | Decrease step by `0.001`, down to `0.001` | | **Reset Rotation** | Zero X/Y and use the player's current heading for Z | | **Confirm Placement** | Save | | **Cancel Placement** or Back | Remove the preview and restore an existing object | The initial movement/rotation step is `0.05`. Shift and Ctrl change the step when released; they are not hold-to-modify controls. Placement starts at the first camera ray hit within 5 meters, or 2 meters in front of the player when no hit is found. The preview is translucent, frozen, and non-colliding. A saved object is frozen, invincible, and colliding. There is no automatic wall/ground snap. New displays save the current interior when applicable. The menu does not assign a routing bucket. Existing or externally provisioned bucket values are still enforced. ## View and edit nearby displays Open **Mounted Displays > Nearby Displays**. Results inside `Config.MenuNearbyDistance` (15 meters by default) are ordered by distance and filtered for the current interior/routing context. **Configure Display** can change: * Name and service * Theme * Enabled pages, default page, and order * Main rotation and interval * Unit grouping/sorting and unavailable-unit visibility * Unit/call list limits * Live Map mode, markers, center, and zoom * Bodycam layout, feed limit, and bodycam page interval * Render and interaction distances The shipped menu cannot change a display model after creation. Replace the display when a different model is needed. ## Move a display Choose **Reposition Display**. The existing object is hidden while its translucent preview is moved. Confirming persists the new transform; cancelling restores the original object. The server rechecks edit permission, proximity, and world context. ## Preview and refresh **Preview Display** keeps the local renderer active for 10 seconds, switches it to its default page, and places a temporary blue marker at the display. **Force Refresh**: * Requires the configured refresh permission (`sonoran.stationdisplay.refresh` by default) * Requests a full shared cache snapshot for the player * Tells clients rendering that display to resend its DUI state It does not force SonoranCADFiveM to rebuild its caches. ## Nearby viewer controls Target selection considers distance, view angle, and the display surface, then checks line of sight and world context. When several displays are in range, the best combined distance/angle score wins; this is not always the physically nearest object. | Page/context | Default keys | Behavior | | - | - | - | | Any multi-page display | Right / Left Arrow | Next / previous display page | | Live Map | Numpad 8/2/4/6, Numpad 5 | Temporary synchronized pan and reset | | Bodycams | Page Down / Page Up | Next / previous bodycam feed page | The default interaction distance is 2.5 meters and can be saved per display. Page changes are validated by the server, broadcast to clients, and hold automatic rotation for 10 seconds by default. They are runtime-only and do not change the saved default page. Map panning is also runtime-only and synchronized. Bodycam subpage navigation is local to the targeted DUI. FiveM key settings can rebind every registered command. The prompt is hidden when no action applies. A single-page display can still show controls when its Live Map or Bodycams page has context-specific actions. ## Delete Choose **Display Options > Delete Display** and confirm. Deletion requires delete permission, proximity, and server validation. The record is removed from persistence and authorized clients. # Display Pages and Rotation Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/display-pages Configure display pages, ordering, synchronized runtime changes, and automatic rotation. ## Page IDs | Page | ID | Source | | - | - | - | | Active Units | `ACTIVE_UNITS` | Normalized on-duty units | | Emergency Calls | `EMERGENCY_CALLS` | `GetEmergencyCache()` | | Dispatch Calls | `DISPATCH_CALLS` | Non-closed entries from `GetCallCache()` | | Live Map | `LIVE_MAP` | Unit, call, and station coordinates | | Bodycams | `BODYCAMS` | Compatible SonoranCADFiveM bodycam runtime | Emergency and dispatch calls remain separate because they come from different caches. ## Select, order, and default Open a new or existing display's **Display Pages** menu. Enable one or more pages, choose a default, and use **Reorder Display Pages** to set rotation order. The server removes invalid IDs and duplicates. At least one page is required. If the saved default is not enabled, validation selects a valid page. ## Automatic rotation Each display saves `rotationEnabled`, `rotationInterval`, ordered `pageOrder`, and `defaultPage`. The default interval is 30 seconds; the accepted range is 5 to 300 seconds. The footer shows a dot for every enabled page, highlights the current page, and animates progress. Rotation is unnecessary with one enabled page. ## Runtime synchronization The server maintains runtime page state for a display. Clients rotate locally from that state, while an eligible nearby manual page change is validated by the server and broadcast to clients. After a manual change, the default hold is 10 seconds before normal rotation resumes. | Situation | Behavior | | - | - | | Rotation enabled with multiple pages | Advances at the saved interval. | | Rotation disabled or one page | Remains on the current runtime page. | | Empty page | Shows its empty state and continues normal rotation. | | Nearby next/previous | Broadcast runtime page; hold rotation; do not persist. | | Server `SetDisplayPage` export | Broadcast runtime page; do not persist. | | DUI recreated after leaving range | Restores the current runtime snapshot. | | Resource restart | Initializes runtime state from the saved default page. | | Current page removed by settings | Selects the saved default or first valid page. | Right and Left Arrow are the default next/previous mappings. The server checks display proximity (with a small network tolerance), routing bucket, interior, page validity, and cooldown. ## Independent list and bodycam pagination Page rotation is separate from content pagination: * Active-unit groups and call lists advance every 10 seconds when their data exceeds the saved limit. * Bodycam feed pages advance at the display's bodycam interval, default 15 seconds. * Page Down/Page Up changes bodycam feed pages while the display is on `BODYCAMS`. Lowering a rotation interval does not make CAD data fresher. Cache refresh settings control data freshness. ## Pause and resume The browser implements internal `PAUSE` and `RESUME` behavior, but the current customer menu, commands, events, and public exports do not expose temporary pause/resume. Disable saved page rotation when a display should remain fixed. # DUI Message Protocol Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/dui-message-protocol Reference the implemented browser readiness, state, clock, weather, map, and bodycam DUI messages. This page documents the internal boundary between the Lua client and the bundled browser. It is useful to maintainers but is not a promise that third-party browser replacements will remain compatible across versions. The DUI URL is fixed: ``` https://cfx-nui-sonoran-stationdisplay/web/index.html?dui=1&displayId= ``` Display configuration cannot provide a browser or stream URL. ## Browser to Lua ### `duiReady` After initialization: ```json theme={null} {"displayId": "ssd-12345678-abcdef"} ``` Lua accepts it only for an existing renderer, marks the DUI ready, and forces the current state, game time, and weather. A renderer that does not become ready within the internal 10-second timeout is destroyed and retried after the internal delay. ### `bodycamFeedStatus` The bodycam viewer can report: ```json theme={null} {"displayId": "ssd-...", "unitId": "unit-id", "status": "unavailable"} ``` The client acknowledges the callback and increments its diagnostic load-failure counter for `unavailable`. It does not trust the callback to change server runtime state. ### `bodycamSubscriptions` The visible bodycam DUI sends its mounted display ID and up to four visible unit IDs. The server validates permission, range, routing bucket, current page, service filter, active state, and unit ownership. A 4-second heartbeat keeps the subscription alive; it expires after 8 seconds. ## Lua to browser ### `DISPLAY_STATE_UPDATE` This is the primary state message: ```json theme={null} { "action": "DISPLAY_STATE_UPDATE", "payload": { "displayId": "ssd-12345678-abcdef", "displayName": "Mission Row Briefing", "theme": "MODERN", "page": "ACTIVE_UNITS", "serviceFilter": "LEO", "grouping": "SERVICE", "sorting": "CALLSIGN", "units": [], "emergencyCalls": [], "dispatchCalls": [], "bodycams": [], "bodycamConfig": { "layout": "AUTO", "maximumFeeds": 4, "rotationInterval": 15 }, "bodycamIntegration": { "available": true, "enabled": true, "mode": "LOCAL_CAPTURE", "captureIntervalMs": 4000, "maximumVisibleFeeds": 4, "maximumFrameBytes": 307200 }, "bodycamPresentation": { "delayedAfterSeconds": 8, "unavailableAfterSeconds": 30, "loadFailures": 0 }, "map": { "mode": "AUTO_FIT", "center": {"x": 215, "y": -810}, "zoom": 1, "showCalls": true, "showStationMarker": true }, "mapPresentation": { "minimumSpan": 600, "maximumSpan": 24000, "padding": 0.12, "debug": false }, "station": {"x": 425, "y": -980, "z": 30}, "maximumUnitsPerPage": 12, "maximumCallsPerPage": 8, "visibleCallFields": { "priority": true, "status": true, "address": true, "postal": true, "description": true, "assignedUnits": true, "caller": false }, "rotation": { "enabled": true, "paused": false, "interval": 30, "elapsed": 0, "progress": 0, "pages": ["ACTIVE_UNITS", "EMERGENCY_CALLS"], "index": 1 }, "connected": true, "revision": 1, "staleAfterSeconds": 30, "serverTime": 1785182400 } } ``` Lua sends a changed state after readiness, cache/display/bodycam changes, explicit refresh, and runtime page changes. It also checks rotation progress at most once per second. Identical encoded state is suppressed unless forced; the browser animates progress between messages. Important unit fields include ID, callsign, name, status/status code, service, agency, subdivision, location/postal, coordinates, assigned call, panic, update time, and stale state. Important call fields include ID, kind, title/code, priority/status, address/postal, description, assigned IDs/callsigns, optional emergency caller, coordinates, timestamps, and classified service. A bodycam feed includes joined server-known unit metadata plus active/mode, activation/update values, and state sequence. It contains no peer, URL, credential, or image payload. ### `BODYCAM_FRAME` The server sends a subscribed viewer's client a validated JPEG with a rate-controlled latent event. Lua forwards it only to subscribed bodycam DUIs: ```json theme={null} { "action": "BODYCAM_FRAME", "payload": { "unitId": "unit-id", "sequence": 42, "mimeType": "image/jpeg", "image": "data:image/jpeg;base64,...", "receivedAt": 1785200000, "byteLength": 82413 } } ``` The browser converts it to a Blob object URL and revokes the previous URL. Frame contents are not included in state snapshots or diagnostics. ### `BODYCAM_STATUS` Small status messages report `CAPTURE_FAILED` or `OFFLINE` without image data. The browser retains a prior frame briefly for delayed/failure presentation and removes it at the stale timeout. ### `GAME_TIME_UPDATE` ```json theme={null} { "action": "GAME_TIME_UPDATE", "payload": { "hours": 21, "minutes": 42, "seconds": 5, "format": 12, "showSeconds": false } } ``` The client sends only when the formatted GTA/FiveM time changes, or when forced after readiness. ### `WEATHER_UPDATE` ```json theme={null} { "action": "WEATHER_UPDATE", "payload": { "weatherType": "CLEAR", "temperature": 78, "unit": "F" } } ``` Weather values describe the GTA world and an estimated temperature. ### `MAP_PAN` ```json theme={null} { "action": "MAP_PAN", "payload": {"direction": "LEFT", "step": 0.2} } ``` It is accepted only for an available local renderer currently on Live Map. The Lua side clamps the step to `0.05` through `0.5`. Reset is represented by the allowed reset direction used by the browser handler. ### `BODYCAM_NAVIGATE` ```json theme={null} { "action": "BODYCAM_NAVIGATE", "payload": {"direction": "NEXT"} } ``` It is accepted only for an available local renderer currently on Bodycams and changes that DUI's bodycam feed page. ## Versioning There is no explicit protocol-version field. Update Lua and all `web/` files together. Do not replace only `web/app.js` or copy browser files between resource releases. The web source also contains dormant administration markup/handlers. The current Lua resource does not open that NUI or register its administrative callbacks; the supported customer interface is WarMenu. # In-game Clock and Weather Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/in-game-clock Configure the GTA/FiveM clock and estimated weather shown in the display header. The header uses the local client's GTA/FiveM world clock, not the computer clock, server time, or Sonoran CAD time. ## Time ```lua theme={null} Config.TimeFormat = 12 Config.ShowClockSeconds = false ``` `TimeFormat` accepts `12` or `24`. Twelve-hour output converts midnight and noon to `12` and adds `AM` or `PM`. Twenty-four-hour output is zero-padded. `ShowClockSeconds` adds seconds when enabled. The client checks the GTA clock at 250 or 500 millisecond intervals and sends an update only when the formatted value changes. Different clients can briefly show different values if another resource changes time locally rather than synchronizing it server-wide. Administrative webhooks, persistence metadata, and audit logs use real-world UTC where documented. They do not reuse this in-game clock. ## Weather ```lua theme={null} Config.Weather = { enabled = true, temperatureUnit = "F", updateInterval = 2000 } ``` The weather label follows GTA's current weather type. Temperature is an estimate chosen for that game-weather condition; it is not real-world meteorology or a weather API. `temperatureUnit` accepts `F` or `C`. Disable `Weather.enabled` to remove the weather indicator. Lower update intervals add client polling without making the underlying GTA weather more accurate. # Installation Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/installation Install Sonoran Station Displays, SonoranCADFiveM, permissions, and a first test display. ## Before you begin You need: * A current FXServer with OneSync * SonoranCADFiveM version `4.0.72` or newer for units and calls * Access to the CFX account that owns the Tebex asset * Permission to add resources and ACE entries to the server The resource does not enforce a specific FXServer artifact number. Use a supported current artifact. No framework, SQL database, menu library, Node.js runtime, or `radio_fivem` installation is required. ## Download the resource After purchasing the resource, download it from the CFX portal account that owns the asset. See [Accessing Tebex Assets](/store/general/tebex-assets) for the established store download process. Extract the download before copying it to the server. ## Verify the folder structure The folder containing `fxmanifest.lua` must be named: ``` sonoran-stationdisplay ``` A correct installation looks like: ``` resources/ └── [sonoran]/ └── sonoran-stationdisplay/ ├── fxmanifest.lua ├── config.lua ├── client/ ├── server/ ├── data/ └── web/ ``` Do not leave an extra nested folder: ``` resources/sonoran-stationdisplay/sonoran-stationdisplay/fxmanifest.lua ``` If that occurs, move the inner `sonoran-stationdisplay` folder into the resources directory and remove the empty outer folder. ## Install or update SonoranCADFiveM Install SonoranCADFiveM according to the [SonoranCADFiveM installation guide](/cad/integration-plugins/in-game-integration/fivem-installation). The default dependency resource name is: ``` sonorancad ``` Sonoran Station Displays requires version `4.0.72` or newer and the local `GetUnitCache`, `GetCallCache`, and `GetEmergencyCache` exports. It does not require a second CAD API key. The optional Bodycams page additionally needs a package/build that exposes `GetBodycamRuntime()` and the runtime event, plus the standard `screenshot-basic` resource. The base `4.0.72` cache requirement does not guarantee that every package with that version contains the newer bodycam bridge. The dependency name is managed internally and must remain `sonorancad`. ## Configure start order Add: ```ini theme={null} ensure sonorancad ensure screenshot-basic ensure sonoran-stationdisplay ``` Start SonoranCADFiveM and `screenshot-basic` first. Sonoran Station Displays can remain started if either stops; normal boards recover with CAD, while bodycam imagery reports the missing capture dependency and recovers when it returns. The current preconfigured SonoranCADFiveM bundle may instruct you to use `exec @sonorancad/sonorancad.cfg` instead of manually ensuring its resources. In that installation, place the `exec` line before `ensure sonoran-stationdisplay`; the required core resource must still start as `sonorancad`. Do not add `ensure radio_fivem` for this product unless your server separately uses Sonoran Radio. The radio resource is not a dependency. ## Add ACE permissions For an administrator group: ```ini theme={null} add_ace group.admin sonoran.stationdisplay.menu allow add_ace group.admin sonoran.stationdisplay.place allow add_ace group.admin sonoran.stationdisplay.edit allow add_ace group.admin sonoran.stationdisplay.delete allow add_ace group.admin sonoran.stationdisplay.diagnostics allow add_ace group.admin sonoran.stationdisplay.refresh allow add_ace group.admin sonoran.stationdisplay.webhook.test allow ``` Viewing displays does not require an ACE. Grant `sonoran.stationdisplay.menu` to each group that should open the administrative menu, then grant only the required action ACEs. See [Permissions](/store/sonoran-station-displays/permissions) for least-privilege examples and custom permission mode. ## Review configuration Open `sonoran-stationdisplay/config.lua` and confirm: * `Config.PermissionMode = "ace"` * Default pages, service filter, theme, rotation, clock/weather, and distances * Live Map and bodycam defaults * The included display model registry Update checks, the dependency name/minimum version, DUI lifecycle, and security rate limits require no customer configuration. Do not place API keys, Tebex credentials, or license credentials in this file, and do not modify protected implementation files. ## Restart and verify startup Restart the server. In the server console, expect messages similar to: ``` [Sonoran Station Displays] Connected to SonoranCADFiveM 4.0.72 using supported cache exports. [Sonoran Station Displays] Loaded 0 configured display(s). ``` On first start, the resource creates: ``` sonoran-stationdisplay/data/displays.json ``` If CAD is missing, old, or incompatible, the server prints an `SSD-CAD-*` error. See [Troubleshooting](/store/sonoran-station-displays/troubleshooting). ## Place a test display 1. Join with the administrator ACE permissions. 2. Confirm at least one unit is on duty in Sonoran CAD. 3. Run `/stationdisplay`. 4. Select **Mounted Displays**. 5. Select **Place New Display**. 6. Choose a model, service filter, and one or more pages. 7. Leave the rotation interval at the default 30 seconds. 8. Select **Continue to Placement**. 9. Position the preview within 15 meters, then select **Confirm Placement**. 10. Walk within the display's render distance and confirm current state appears without the CAD unavailable overlay. If the display has no rows, confirm its service filter matches the on-duty unit's `unit.data.page` classification. ## Tebex Asset Escrow The production package is intended for FiveM Asset Escrow. Customer-editable files are excluded from encryption: * `config.lua` * `server/admin_webhook_config.lua` * `locales/*.lua` * `data/displays.DEFAULT.json` * `docs/*.md` * `README.md` Runtime display data is written to `data/displays.json`. Back it up before replacing the resource during an update. ## Source builds Customers do not build the web interface. It ships as static production files and has no Node.js dependency. Repository maintainers can validate and package a source checkout from the repository root: ```powershell theme={null} python scripts/validate.py python scripts/package.py ``` The package command creates `build/stationDisplay.zip` with one top-level `sonoran-stationdisplay` folder. # Localized Live Map Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/live-map Configure the calibrated GTA V satellite map, modes, markers, interaction, and debugging. The `LIVE_MAP` page plots cached GTA world coordinates over a bundled GTA V satellite image. It uses no external map service, API key, or runtime tile requests. ![Sonoran Station Displays live map in Auto Fit mode](https://docs-assets.sonoransoftware.com/sha256/d5/d57e638539e84b8c93612ca4f6ef14389643d11fdadbede692a1cfd41ef4712b.webp) *Auto Fit with controlled unit, call, and station markers.* ![Sonoran Station Displays full-island map view](https://docs-assets.sonoransoftware.com/sha256/3e/3e51d799cca83fdf840f71c382375e6e17f6c669edfbaf0ca86b885c273d3c2f.webp) *A sparse dataset expands to a full-island operational view.* ## Bundled asset and calibration The production asset is `web/assets/gtav-satellite-z4.webp`, derived from the MIT-licensed CreepPork GTAV-Maps project. Station Displays crops the source image to its useful play-area rectangle and projects world coordinates into that cropped rectangle before fitting it into the 16:9 map viewport. The calibrated bounds are: | Axis | Minimum | Maximum | | - | -: | -: | | GTA world X | `-4230` | `4970` | | GTA world Y | `-5170` | `8420` | World X increases east/right. World Y increases north/up; image Y is inverted during projection because browser pixels increase downward. The renderer also accounts for letterboxing so markers remain aligned with the visible image instead of the unused side bands. Calibration was checked against representative locations including LSIA, Mission Row, Del Perro, Sandy Shores, Grapeseed, Paleto Bay, Fort Zancudo, Mount Chiliad, Humane Labs, and Terminal. ## Marker sources | Marker | Source | Appearance | | - | - | - | | LEO unit | Normalized unit coordinates | Blue circle and callsign | | Fire/EMS unit | Normalized unit coordinates | Orange circle and callsign | | Call | Call `metaData` X/Y | Red diamond and call label | | Station | Saved display position | White square labeled `STATION` | The display's service filter is applied before map state is built. Calls without usable coordinates remain on their list page but have no map marker. Stale unit markers use reduced opacity and a dashed outline. ## Modes ### Auto Fit - `AUTO_FIT` Fits all valid visible unit, call, and enabled station points. The configured padding and minimum/maximum spans keep extremely tight or wide datasets usable. ### Follow Units - `FOLLOW_UNITS` Fits valid unit points and ignores calls/station when choosing the viewport. It follows the visible unit group rather than one selected officer. In the current release, a normal dataset can look identical to Auto Fit. ![Sonoran Station Displays Follow Units map mode](https://docs-assets.sonoransoftware.com/sha256/d5/d57e638539e84b8c93612ca4f6ef14389643d11fdadbede692a1cfd41ef4712b.webp) *Follow Units using the same dense controlled unit dataset as Auto Fit; the matching viewport is expected for this dataset.* ### Fixed Region - `FIXED_REGION` Uses the saved center and zoom: * Center X/Y: `-20000` to `20000` * Zoom: `0.1` to `10.0` * Default center: `215, -810` * Default zoom: `1.0` ![Sonoran Station Displays live map in Fixed Region mode](https://docs-assets.sonoransoftware.com/sha256/88/88956967d398b1121ff4d6e37cd7c1e6d5ef7c0bf4ad9194527a99ac0c9f0c3a.webp) *A saved fixed-region viewport.* ## Nearby map controls When `Config.MapInteraction.enabled` is true and the targeted display is currently on Live Map: | Default key | Action | | - | - | | Numpad 8 / 2 | Pan north / south | | Numpad 4 / 6 | Pan west / east | | Numpad 5 | Reset temporary pan | Panning is temporary and synchronized to authorized nearby viewers. It is not written to `data/displays.json`. Leaving the Live Map page or using reset restores the display's saved map mode. Target selection uses each display's interaction distance, camera angle, line of sight, routing bucket, and interior. All bindings are rebindable in FiveM settings. ## Configuration Per-display options are under: ``` Display Configuration > Map Behavior ``` Global defaults live in `Config.Map`: mode, center, zoom, minimum/maximum span, padding, call visibility, station-marker visibility, and the debug overlay. Map state follows shared cache changes. Unit polling defaults to 2 seconds and call polling to 3 seconds. `Config.MapRefreshInterval` exists for compatibility but is not read by the current renderer. ## Debug overlay Set `Config.Map.debug = true` only while calibrating or troubleshooting. The overlay reports asset and crop dimensions, configured bounds, clipping, selected viewport points, and projection values. ![Live Map projection debug overlay](https://docs-assets.sonoransoftware.com/sha256/14/1483e432a30e1ab4e796dfe404078b7f6f64a7f9363138768406b96ca30405a9.webp) *Projection diagnostics rendered over the production map.* Debug data can reveal coordinates and is visually noisy; disable it after testing. ## Limitations * Raster imagery and GTA coordinate sources have finite positional accuracy. * Dense labels can overlap even though the renderer offsets nearby labels. * Records outside the calibrated bounds are excluded from production rendering; debug mode reports clipping. * The map has no routing, navigation, external layers, or customer-selectable tile source. * `FOLLOW_UNITS` follows the visible group, not a selected unit. # Performance Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/performance Scale Sonoran Station Displays by tuning DUI lifecycle, distances, cache polling, row limits, and map usage. ## Shared data design Sonoran Station Displays does not poll SonoranCADFiveM once per television. ``` SonoranCADFiveM exports/events → one normalized server cache → full sync or shared incremental deltas → one client cache → per-display filtering → nearby DUI renderers ``` Unit and call polls are centralized. Display count does not multiply server export calls. ## DUI lifecycle Every client checks display distance twice per second. When a display enters range: 1. The object model loads. 2. A frozen display object is created. 3. One 1280×720 DUI and runtime texture are created. 4. The current filtered state is sent. 5. The surface is drawn while active. When it leaves range, the client waits three seconds, then deletes the object and DUI. The internally managed delay prevents repeated create/destroy cycles near the boundary and is canceled if the display becomes relevant again. Object and DUI cleanup also runs when the resource stops. ## Pool limit `Config.MaximumActiveDuis = 8` is a hard per-client limit. If the limit is reached, additional in-range displays cannot create a DUI until capacity becomes available. Keep no more than eight displays inside one client's render range with the default configuration. For low-end clients or large 3D interiors, use fewer. This is a resource limit, not a tested player-count claim. ## Render distance Default: ```lua theme={null} Config.RenderDistance = 75.0 ``` Per-display range: ``` 5–250 meters ``` Use the shortest distance that allows the intended viewing area. A longer distance: * Creates objects and DUIs earlier * Keeps them alive longer * Makes dense placements more likely to reach the pool limit * Increases the number of surfaces drawn each frame ## Incremental updates The server compares normalized cache records by ID. * Added, changed, and removed records become incremental client deltas. * Identical record content does not receive another delta. * The DUI receives a full display-state payload only when state changes, on explicit refresh, or on a page change. * Rotation progress state is checked at most once per second; the browser animates smoothly between messages. Coordinates use the same unit delta stream. There is no per-screen coordinate loop. ## Recommended intervals | Setting | Default | Guidance | | - | - | - | | `UnitRefreshInterval` | 2000 ms | Keep at 2 seconds unless a measured integration issue requires change. | | `CallRefreshInterval` | 3000 ms | Keep at 3 seconds for normal call volumes. | | `DefaultRotationInterval` | 30 seconds | Page presentation only; does not affect cache freshness. | | `Bodycams.refreshIntervalMs` | 1000 ms | Runtime polling fallback; bodycam events can update sooner. | Push events already request early refreshes. Lower polling intervals increase export calls and delta processing without making every upstream CAD change arrive sooner. ## Interface resolution and row limits The internally managed interface resolution is 1280×720. Customers should control resource use with render distance, active-DUI capacity, and row limits rather than editing protected resolution or lifecycle values. Higher unit/call limits increase the number of DOM rows and cards. Automatic 10-second list pagination provides a better layout than very large page limits. ## Live Map cost The map redraws its canvas when state changes and projects every visible marker. To reduce cost or clutter: * Disable call markers on displays that do not need them. * Reduce the number of displays simultaneously showing the map. * Keep the default DUI resolution. * Reduce render distance in dense stations. `MapRefreshInterval` is not active in version 1.0.0, so changing it does not affect cost. ## Bodycam cost Bodycam tiles are materially more expensive than unit/call pages because they decode periodic JPEGs. One active subscribed officer captures at most once every 4 seconds, and all eligible displays reuse that same latest frame. Frames are capped at 300 KB. At the hard limit, one feed averages about 75 KB/s and four feeds about 300 KB/s per viewer before overhead. In busy areas: * Prefer `SINGLE` or a lower per-page feed limit. * Keep bodycam displays behind short, intentional render distances. * Avoid several overlapping displays when one screen serves the audience. * Place bodycam displays only where the intended audience can approach them. * Increase bodycam pagination time rather than raising the four-feed ceiling. * Use diagnostics to measure average/max frame size and upload duration. ## Routing buckets and interiors A display with a saved routing bucket is created only when the client's local bucket matches. A display with an interior ID is created only when the player's current interior matches. These checks prevent irrelevant objects and DUIs in other world contexts. New displays automatically capture a nonzero interior ID. ## Diagnose high client usage 1. Open `/stationdisplay`. 2. Select **Mounted Displays → View Diagnostics**. 3. Check **Active DUIs** and **Nearby Displays**. 4. Compare active DUI count with `MaximumActiveDuis`. 5. Move outside render distance and verify the count drops after the destroy delay. 6. Check whether several displays overlap at high render distances. 7. Temporarily reduce render distances or call markers and retest. 8. Check the client F8 console for repeated DUI/model errors. Do not use page rotation speed as a data-refresh control. ## Release testing Before deployment, test: * One and several identical model instances with different content * Pool limit and out-of-range cleanup * Resource restart and player join * CAD present, stopped, restarted, and incompatible * Routing buckets and interiors * Long labels and maximum row counts * Auto-fit, fixed-region, and follow-units maps * Bodycam single/grid/focused layouts, activation, subscription limits, connecting/live/delayed/failed/offline states, and cleanup * One/four bodycams, two displays sharing a feed, two viewers, missing `screenshot-basic`, malformed/oversized frames, restarts, and bandwidth * The server's representative client hardware and map assets The source repository's static checks cannot verify native DUI orientation, model offsets, OneSync contexts, or client performance inside FiveM. # Permissions Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/permissions Configure ACE or custom server-side permissions for managing Station Displays. `Config.PermissionMode` supports `ace` (default) or `custom`. There is no built-in QBCore/ESX job mode. ## Logical actions | Action | Default ACE | Controls | | - | - | - | | `menu` | `sonoran.stationdisplay.menu` | Open the administrative management menu. | | `place` | `sonoran.stationdisplay.place` | Create a validated nearby display. | | `edit` | `sonoran.stationdisplay.edit` | Change settings, name, or transform. | | `delete` | `sonoran.stationdisplay.delete` | Delete a validated nearby display. | | `diagnostics` | `sonoran.stationdisplay.diagnostics` | In-game/server diagnostics and full resync. | | `forceRefresh` | `sonoran.stationdisplay.refresh` | Refresh a selected display. | | `webhookTest` | `sonoran.stationdisplay.webhook.test` | Send a rate-limited administrative webhook test. | Viewing displays does not require an ACE. Full sync, live cache updates, page scrolling, map panning, and eligible bodycam subscriptions are public and remain subject to server-side validity, distance, routing bucket, interior, cooldown, and rate-limit checks. The server supplies a permission snapshot to build the menu, then revalidates every player action. A **No permission** entry or locally altered client grants no authority. ## Administrator ```ini theme={null} add_ace group.admin sonoran.stationdisplay.menu allow add_ace group.admin sonoran.stationdisplay.place allow add_ace group.admin sonoran.stationdisplay.edit allow add_ace group.admin sonoran.stationdisplay.delete allow add_ace group.admin sonoran.stationdisplay.diagnostics allow add_ace group.admin sonoran.stationdisplay.refresh allow add_ace group.admin sonoran.stationdisplay.webhook.test allow ``` ## Menu-only group ```ini theme={null} add_ace group.stationdisplaymenu sonoran.stationdisplay.menu allow ``` This group can open the administrative menu and inspect nearby displays, but it cannot place, configure, refresh, diagnose, or delete them. No group grant is needed merely to view an in-world display. ## Dispatcher management ```ini theme={null} add_ace group.dispatchmanagement sonoran.stationdisplay.menu allow add_ace group.dispatchmanagement sonoran.stationdisplay.edit allow add_ace group.dispatchmanagement sonoran.stationdisplay.diagnostics allow add_ace group.dispatchmanagement sonoran.stationdisplay.refresh allow ``` This group can open the menu, configure, move, refresh, and diagnose displays but cannot place or delete them. ## ACE inheritance ```ini theme={null} add_principal group.admin group.dispatchmanagement add_ace group.admin sonoran.stationdisplay.place allow add_ace group.admin sonoran.stationdisplay.delete allow add_ace group.admin sonoran.stationdisplay.webhook.test allow ``` FiveM evaluates allow/deny rules and principal inheritance. Inspect inherited deny rules when an expected grant fails. ## Custom mode ```lua theme={null} Config.PermissionMode = "custom" Config.CustomPermission = function(source, action) return MyPermissionResource.CanUseStationDisplays(source, action) end ``` The callback receives backend actions: ``` menu place edit delete diagnostics refresh webhookTest ``` The `forceRefresh` logical action resolves to the `refresh` backend action. The callback runs inside `pcall`. Only boolean `true` allows; errors and other return values deny. ## Server validation Depending on the request, the server checks: * The current permission * Display existence and maximum count * Model allowlist * Name, enum, page, and numeric ranges * At least one enabled page * Player proximity * Routing bucket and interior context * Page/action validity and cooldown * Per-player event rate limits Save/delete/move operations also validate the player against the saved/final position. A client cannot authorize itself by changing local state. ## Data access Every player receives sanitized display definitions and live board data. There is no viewing ACE. Bodycam image delivery additionally requires an eligible subscription and passes distance, routing bucket, interior, feed, payload, and rate-limit validation. Caller normalization is disabled by default and caller text is not rendered. That does not make every call field suitable for a public-facing screen; review address and description settings. # Persistence Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/persistence Understand verified JSON persistence, backup, restore, and console repair. Station Displays uses JSON and has no database dependency. | File | Purpose | | - | - | | `data/displays.DEFAULT.json` | Shipped template, normally `[]` | | `data/displays.json` | Generated active runtime data | ## First start Only when `data/displays.json` is missing, the server: 1. Reads and validates the default as a JSON array. 2. Writes it to the active path. 3. Reads the active path back. 4. Verifies that it is a decodable array. An existing active file is never silently overwritten by the default. If initialization finds an invalid existing file, it leaves it in place and reports `SSD-PERSIST-INIT-005`. ## Saves The complete normalized display array is saved after create, settings/name/transform changes, delete, and the server `SetDisplayServiceFilter` export. Runtime page changes, nearby viewer controls, map pan, bodycam feed state, preview state, and `SetDisplayPage` are not persisted. Because the underlying write function does not provide a reliable success result on every runtime, the resource treats readback as authoritative. A save succeeds only after the file is non-empty, decodes as an array, and exactly matches the normalized state that was written. `SSD-PERSIST-003` reports one of these reasons: ``` ENCODE_FAILED WRITE_FAILED READBACK_FAILED READBACK_INVALID READBACK_MISMATCH ``` Client synchronization occurs after persistence. If the file was saved but a broadcast fails, the audit reports `CLIENT_BROADCAST_FAILED`; that is not a persistence failure. ## Restart behavior At startup, each decoded record is normalized and validated. Valid entries keep their opaque ID/timestamps; invalid entries are skipped with `SSD-PERSIST-002`. There is no explicit `schemaVersion` field in the persisted array and no hot-reload command. Defaults in `config.lua` do not overwrite valid saved per-display values. Current normalization provides the load-time compatibility boundary, including legacy theme fallback. ## Backup and restore 1. Stop `sonoran-stationdisplay`. 2. Copy `data/displays.json`, `config.lua`, locale changes, and server webhook configuration to a protected backup. 3. Replace/update the resource as directed. 4. Merge customer configuration into the new schema. 5. Restore `data/displays.json`. 6. Start the resource and confirm the loaded display count. Do not edit the active file while the resource is running; the next supported save can overwrite it. Manual editing is not a supported workflow because a syntactically valid change can still fail model, enum, page, range, or world-context validation. ## Console repair When the active file is unreadable and no good backup is available, run from the server console: ``` stationdisplay_repair_persistence ``` The command is console-only. It copies the invalid file to: ``` data/displays.invalid..json ``` then restores the validated default. Restart the resource afterward. The backup can contain server locations and other operational data; protect it accordingly. ## Codes | Code | Meaning | | - | - | | `SSD-PERSIST-INIT-*` | Default/active file initialization failure; `005` means an invalid existing active file was preserved. | | `SSD-PERSIST-001` | Active JSON cannot be decoded as the required array. | | `SSD-PERSIST-002` | One saved entry failed validation and was skipped. | | `SSD-PERSIST-003` | Encode, write, readback, validation, or exact-state verification failed. | Use the in-game/server [Diagnostics](/store/sonoran-station-displays/diagnostics) snapshot and local audit ID when contacting support. # SonoranCADFiveM Integration Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/sonorancad-integration Understand how Sonoran Station Displays reads and classifies SonoranCADFiveM unit and call caches. ## Supported interface | Item | Value | | - | - | | Required resource name | `sonorancad` | | Minimum version | `4.0.72` | | Authentication | Uses local exports; no additional API key | The server adapter calls: ```lua theme={null} exports["sonorancad"]:GetUnitCache() exports["sonorancad"]:GetUnitByPlayerId(source) exports["sonorancad"]:GetCallCache() exports["sonorancad"]:GetEmergencyCache() ``` `GetUnitByPlayerId` associates a cached CAD unit with a connected server player when possible. Player connection alone does not create an on-duty unit. The optional Bodycams page also calls `GetBodycamRuntime()` and observes `SonoranCAD::bodycam::RuntimeChanged`. This bridge supplies authoritative active state and player/unit ownership. Station Displays obtains imagery locally through `screenshot-basic`; the bridge does not supply a peer, TURN configuration, relay URL, or hosted image. ## Unit classification The on-duty cache is the source of truth. Status code `100` (`OFFLINE`) is excluded defensively. | `unit.data.page` | CAD service | Internal value | Display label | | - | - | - | - | | `0` | Police | `LEO` | LEO | | `1` | Fire | `FIRE_EMS` | Fire/EMS | | `2` | EMS | `FIRE_EMS` | Fire/EMS | | `3` | Dispatch | `OTHER` | Not shown on an Active Units service display | | Any other value | Unknown | `OTHER` | Not shown on an Active Units service display | Server owners normally do not configure department names. The adapter copies department/agency, subdivision, rank, district, and group labels from the cache, but service classification uses `data.page`. `Config.AdvancedServiceOverridesEnabled` and `Config.AdvancedServiceOverrides` provide a disabled-by-default fallback for legacy or customized caches with incorrect page data. Only enable this after confirming the cache classification is wrong. ## Per-display filters | User-facing filter | Config/API value | Behavior | | - | - | - | | LEO | `LEO` | Shows normalized law-enforcement units and matching calls. | | Fire/EMS | `FIRE_EMS` | Shows normalized fire and EMS units and matching calls. | | Both | `BOTH` | Shows both services and all calls, including unclassified calls. | The filter is saved on each display. A police briefing room, apparatus bay, dispatch center, and emergency operations center can all use different filters without separate department lists. ## Unit fields The adapter normalizes: * ID and associated FiveM player ID, when available * Callsign and display name * Numeric and display status * Service, agency, subdivision, rank, district, and group * Location and postal * World coordinates * Assigned dispatch call ID * Panic and dispatch flags * Update timestamp and stale flag Identifiers are included only when `Config.Debug = true`. ## Call caches The pages remain separate because SonoranCADFiveM exposes two collections: | Display page | Cache export | Normalized kind | | - | - | - | | Emergency Calls | `GetEmergencyCache()` | `EMERGENCY_CALL` | | Dispatch Calls | `GetCallCache()` | `DISPATCH_CALL` | Dispatch calls with status `2` (`CLOSED`) are omitted. Emergency entries are displayed while they remain in the emergency cache. A call's service is determined from its assigned normalized units: * Only LEO assigned → `LEO` * Only Fire/EMS assigned → `FIRE_EMS` * Both services assigned → `BOTH` * No classified assigned units → `OTHER` Unassigned calls are not guessed from title, department, or description text. `BOTH` displays show them. Single-service displays hide them by default unless the corresponding `Config.CallClassificationFallback` option is enabled. ## Coordinates * Unit markers use `unit.coordinates` or `unit.coords`. * Call markers use X/Y/Z values in call `metaData`. * The station marker uses the saved display position. A record without usable X/Y coordinates remains available on its list page but does not appear on the map. ## Update flow The adapter combines push-triggered refresh requests with centralized polling. Unit events: ``` SonoranCAD::pushevents:UnitLogin SonoranCAD::pushevents:UnitLogout SonoranCAD::pushevents:UnitUpdate SonoranCAD::pushevents:UnitStatusUpdate ``` Call/assignment events: ``` SonoranCAD::pushevents:DispatchEvent SonoranCAD::pushevents:CallCacheUpdated SonoranCAD::pushevents:EmergencyCacheUpdated SonoranCAD::pushevents:UnitAttach SonoranCAD::pushevents:UnitDetach ``` An event requests an early refresh. The server also polls units every 2 seconds and calls every 3 seconds by default to catch coordinate changes and older CAD behavior. One shared normalized cache and incremental client deltas are used regardless of display count. Bodycam runtime updates are event-driven with a 1-second polling fallback. They are not merged into either call cache. A single 4-second capture loop runs only for active feeds with eligible subscribers. ## CAD restart and unavailable cache When `sonorancad` stops, the adapter marks the connection unavailable and authorized clients show the full `CAD CONNECTION UNAVAILABLE` overlay. When it starts, the resource waits one second, redetects the exports, and requests refreshed caches. If one cache call fails, the connection state becomes disconnected and the polling loop retries. Existing client records are not immediately erased, but the disconnected overlay covers the display. Unchanged units receive an internal stale flag after `Config.StaleAfterSeconds`. Version 1.0.0 does not render a separate per-unit stale badge. Use the connection overlay, cache revision, and diagnostics when investigating data freshness. ## Radio menu relationship `radio_fivem` was a source reference for the WarMenu, preview object, fine movement, rotation, confirmation, cancellation, synchronization, and cleanup patterns. Sonoran Station Displays ships the adapted code inside its own resource. It does not: * Call a radio menu export * Require a Sonoran Radio resource name * Require radio start order * Modify a customer's radio resource # Troubleshooting Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/troubleshooting Diagnose startup, CAD, blank displays, permissions, persistence, pages, map, bodycams, models, and performance. ## Resource does not start **Likely cause:** Incorrect folder nesting, missing manifest files, Lua error, or an incomplete escrow download. **Verify:** * `fxmanifest.lua` is directly inside `resources/.../sonoran-stationdisplay/`. * The server console identifies the first file/error. * `web/index.html`, `web/style.css`, `web/app.js`, and `data/displays.DEFAULT.json` exist. **Corrective action:** Re-extract the package, remove any duplicate outer folder, and restore the complete resource. Do not combine files from different versions. **Relevant logs:** FXServer startup errors before the normal `[Sonoran Station Displays]` messages. ## SonoranCADFiveM is not detected **Likely cause:** Wrong resource name, wrong start order, version below `4.0.72`, or missing cache exports. **Verify:** ```cfg theme={null} ensure sonorancad ensure sonoran-stationdisplay ``` Run from the server console: ``` stationdisplay_serverdiag ``` **Corrective action:** Install or update SonoranCADFiveM to version `4.0.72` or newer, keep its resource name `sonorancad`, and start it before Station Displays. **Relevant logs:** | Code | Meaning | | - | - | | `SSD-CAD-001` | Configured CAD resource is not started | | `SSD-CAD-002` | Required cache exports are unavailable | | `SSD-CAD-003` | Version is below the supported minimum | ## Version checker does not run **Likely cause:** The resource is a source or development build rather than an official packaged release. **Verify:** Confirm the resource was downloaded from the official granted asset. **Corrective action:** Install the official packaged release. Development builds intentionally retain the packaging token and skip outbound version requests. ## Update check fails **Likely cause:** FXServer cannot reach the packaged version endpoint, the request timed out, or the endpoint returned malformed metadata. **Verify:** Review `SSD-UPDATE-001` or `SSD-UPDATE-002` in the server console and confirm outbound HTTPS access. **Corrective action:** Restore outbound HTTP access and retry at the next scheduled check or resource start. An update-check failure does not stop the display resource. ## SonoranCAD version is unsupported **Likely cause:** The installed `sonorancad` version is older than `4.0.72`. **Corrective action:** Update SonoranCADFiveM to version `4.0.72` or newer so the public unit, call, and emergency cache interfaces are available. ## Customer config contains removed settings **Likely cause:** An older `config.lua` was copied over the current package. **Corrective action:** Delete obsolete update-check, dependency, DUI resolution/lifecycle, and event-rate-limit entries, then merge only documented customer-facing settings into the current config. Do not modify protected implementation files; internal values always take precedence. ## Display is blank **Likely cause:** Outside render distance, DUI pool full, invalid/unloaded model, incorrect custom surface geometry, missing web files, or a client script error. **Verify:** * Walk close to the display. * Open diagnostics and check **Active DUIs**. * Compare with `Config.MaximumActiveDuis`. * Check the client F8 console. * Confirm the model exists in `Config.DisplayModels`. **Corrective action:** Use **Force-Refresh Display**, leave/re-enter range, reduce overlapping render distances, restore web files, or correct the model registry. For identical props, use `WORLD_PLANE`. **Relevant logs:** Client F8 errors for DUI creation, NUI JavaScript, model loading, or render targets. ## Display shows no units **Likely cause:** No matching on-duty cache entries, offline status, wrong service filter, or **Hide Unavailable Units**. **Verify:** ``` sonorancad viewcaches ``` Confirm the unit is in the active unit cache and inspect `data.page` and status. **Corrective action:** Put the unit on duty in CAD, select the correct LEO/Fire/EMS/Both filter, or disable **Hide Unavailable Units**. **Relevant diagnostics:** LEO Units, Fire/EMS Units, CAD Compatible, cache revision. ## LEO or Fire/EMS unit is in the wrong section **Likely cause:** Incorrect `unit.data.page` in the CAD cache. **Verify:** * `0` should be LEO. * `1` and `2` should be Fire/EMS. * `3` and unknown values become `OTHER`. **Corrective action:** Fix the upstream cache classification. Use advanced service overrides only for a confirmed custom/legacy cache. **Relevant logs:** Debug output and `sonorancad viewcaches`; no department list is normally required. ## Calls do not appear **Likely cause:** Wrong page/cache, closed dispatch call, service mismatch, unclassified call hidden on a single-service display, or unavailable call cache. **Verify:** * Emergency Calls reads `GetEmergencyCache()`. * Dispatch Calls reads `GetCallCache()`. * Check assignments and call status. * Compare emergency/dispatch counts in diagnostics. **Corrective action:** Select the correct page, keep the call active in the source cache, assign a classified unit, use a Both display, or intentionally enable the unclassified fallback. **Relevant diagnostics:** Emergency Calls, Dispatch Calls, CAD error, cache revision. ## Live Map is empty **Likely cause:** Matching units/calls have no usable X/Y coordinates, markers are filtered, or the fixed region excludes them. **Verify:** * Confirm list pages contain records. * Inspect CAD coordinate fields. * Check map mode, center, zoom, **Show Calls**, and the service filter. **Corrective action:** Restore upstream coordinates, use Auto Fit, correct the fixed center/zoom, or enable the required markers. **Relevant logs:** Temporarily enable `Config.Map.debug` to inspect calibrated bounds, asset crop, clipping, and selected viewport values. Disable it afterward. ## Live Map markers are misaligned **Likely cause:** A coordinate source uses another map convention, the record is outside the calibrated GTA V bounds, or custom browser/map files were mixed between versions. **Verify:** Restore the shipped `gtav-satellite-z4.webp` and `map-config.js`, enable the map debug overlay, and compare a known landmark. **Corrective action:** Replace the complete `web/` directory from one release and fix the upstream world coordinates. Do not tune bounds to compensate for one malformed record. ## Bodycams do not appear **Likely cause:** The installed CAD package lacks the bodycam state bridge, `screenshot-basic` is not started, the bodycam is disabled/off duty, or the display filter/page excludes it. **Verify:** Open [Diagnostics](/store/sonoran-station-displays/diagnostics) and check bodycam detected, available, mode, active sources, capture dependency, and subscription counts. **Corrective action:** Install a compatible SonoranCADFiveM bodycam package, start `screenshot-basic`, put the unit on duty, activate the bodycam, and enable the `BODYCAMS` page. ## Bodycam stays connecting or unavailable **Likely cause:** The officer is loading/paused/faded, local capture failed, the JPEG exceeded 300 KB, or the viewer subscription is out of range/ineligible. **Verify:** Review last attempt/success, upload duration, frame size, failure reason, source client, subscriber count, and malformed/oversized counters. **Corrective action:** Restore `screenshot-basic`, let the officer finish loading, reduce game resolution if frames exceed the limit, and verify range, routing bucket, interior, current bodycam page, and service filter. ## Display is visible but frozen **Likely cause:** CAD cache stopped changing, connection is unavailable, DUI state is not being resent, or the browser encountered an error. **Verify:** * Check `CAD LIVE` versus the disconnected overlay. * Refresh diagnostics and watch cache revision. * Run `stationdisplay_serverdiag`. * Check client F8. **Corrective action:** Restore SonoranCADFiveM, use **Force-Refresh Display**, then leave/re-enter range. Restart `sonoran-stationdisplay` only after preserving persistence if the client state remains unhealthy. **Relevant data:** Cache revision and the server diagnostic CAD object. The menu does not show per-DUI last-update timestamps. ## Menu does not open **Likely cause:** Missing `sonoran.stationdisplay.menu`, changed command name, placement already active, or a client error. **Verify:** * Check `Config.AdminCommand`. * Test the configured command. * Check ACE inheritance with the server's ACE tools/config. * Check client F8. **Corrective action:** Grant `sonoran.stationdisplay.menu`, finish/cancel placement, or fix the reported client error. **Relevant logs:** Permission-denied notification and F8 errors. No radio resource is required. ## Menu opens but an option reports no permission **Likely cause:** The server-provided menu snapshot is older than the player's current ACE state, the operation uses a different node, or a server recheck correctly rejected the action. **Verify:** Compare the requested action with [Permissions](/store/sonoran-station-displays/permissions), then run `stationdisplay_permissiondiag ` from the console while `Config.Debug = true`. **Corrective action:** Grant the exact node, review inherited deny rules, and reconnect or refresh the menu snapshot. Do not treat a visible item as authorization. **Relevant permission:** Menu, place, edit, refresh, delete, diagnostics, and webhook test are independent server checks. ## Cannot place or edit a display **Likely cause:** Missing `place`/`edit`, final position farther than 15 meters, invalid value, routing-bucket mismatch, or event rate limit. **Verify:** * Confirm the exact ACE. * Stay near the position. * Keep numeric values in documented ranges. * Review the on-screen rejection notification. **Corrective action:** Grant the needed ACE, move closer, restore valid settings, or wait for the 10-second rate window. **Relevant logs:** Client notification such as permission denied, invalid request, position, or bucket mismatch. ## Display saves but does not update live **Likely cause:** Persistence succeeded but the client broadcast failed, the viewer lost connectivity or world scope, or its DUI is unavailable. **Verify:** Look for `CLIENT_BROADCAST_FAILED`, compare the persistence audit ID, run `stationdisplay_serverdiag`, and inspect Active DUIs/client F8. **Corrective action:** Restore client connectivity and world scope, use **Force-Refresh Display**, or run **Full Display Resync** with diagnostics permission. Do not replace a valid persistence file for a broadcast-only failure. ## Default JSON is not initialized **Likely cause:** The shipped default is missing/invalid, the resource cannot write its data directory, or an invalid active file already exists and was intentionally preserved. **Verify:** Check `data/displays.DEFAULT.json`, `data/displays.json`, and `SSD-PERSIST-INIT-*`; `SSD-PERSIST-INIT-005` means the existing active file was not overwritten. **Corrective action:** Stop the resource, preserve the active file, restore a valid default from the package, fix filesystem access, then restart. Use the console repair command only when recovery from the active file is not possible. ## DUI readiness times out **Likely cause:** A missing/mixed `web/` directory, browser JavaScript failure, or a client DUI/runtime-texture problem prevented `duiReady` within 10 seconds. **Verify:** Inspect client F8 and confirm all production web files come from the same resource release. **Corrective action:** Restore the complete `web/` directory, leave/re-enter range, and let the internal one-second retry run. Repeated timeouts require client/runtime investigation rather than increasing an internal timeout. ## Display disappears at a distance **Likely cause:** Normal distance-based cleanup. **Verify:** Compare distance with the display's saved render distance. The object should disappear after the 3-second default destroy delay. **Corrective action:** Increase the per-display render distance only as much as needed. Maximum accepted value is 250 meters. **Relevant diagnostics:** Active DUI count should decrease after cleanup. ## Custom television stays black or shares content **Likely cause:** Invalid named render target, global texture replacement, missing model, or incorrect world-plane offsets. **Verify:** * Switch the model entry to `WORLD_PLANE`. * Test one instance and then two identical instances with different pages. * Confirm model validity and local screen geometry. **Corrective action:** Calibrate `screen.center`, `width`, `height`, and `flipX`. Do not rely on a render-target name alone. **Relevant logs:** Client model/render errors; diagnostics only reports active DUI availability, not named-target validity. ## Settings reset after restart **Likely cause:** `data/displays.json` cannot be loaded, one entry failed validation, or the resource folder was replaced without restoring runtime data. **Verify:** Check the file and startup log's loaded display count. **Corrective action:** Stop the resource, restore a valid backup, confirm write permission, and restart. **Relevant logs:** `SSD-PERSIST-001`, `SSD-PERSIST-002`, or `SSD-PERSIST-003`. ## Page rotation is not working **Likely cause:** One page enabled, rotation disabled, invalid interval reset to default, or a recent viewer interaction is inside the default 10-second hold. **Verify:** * Confirm two or more enabled pages. * Confirm **Page Rotation** is enabled. * Confirm interval is 5–300 seconds. * Watch the footer dots/progress bar. **Corrective action:** Enable multiple pages, save rotation, use a valid interval, wait for the interaction hold, and force refresh if needed. A recreated DUI restores the server runtime snapshot rather than always starting from the saved default. **Relevant logs:** No dedicated rotation log. Use the displayed footer and current page. ## Nearby page prompt does not appear **Likely cause:** No applicable action, outside the display's saved interaction distance, poor view angle, failed line of sight, wrong interior/bucket, unavailable DUI, or disabled page interaction. **Verify:** Stand within 2.5 meters by default, face the screen, and test a display with multiple pages or Live Map/Bodycams controls. **Corrective action:** Correct the display's interaction distance and world context, enable `Config.PageInteraction`, and remove geometry blocking line of sight. A one-page display intentionally hides the prompt only when its current page has no map/bodycam action. ## The wrong nearby display changes page **Likely cause:** Another display has the better combined distance/view-angle target score even if it is not the closest object. **Verify:** Face the intended screen directly and move closer while watching the prompt name. **Corrective action:** Separate overlapping displays, shorten their interaction distances, or approach the intended surface from a clearer angle. The server still checks proximity and world context before broadcasting the change. ## Rotation resumes too soon after manual interaction **Likely cause:** `PageInteraction.pauseRotationAfterInteraction` is low/zero, the configuration was not restarted, or an integration forced another runtime page. **Verify:** Confirm the default 10-second value and compare the timing with server `SetDisplayPage` calls. **Corrective action:** Restore the desired hold value and restart the resource. The manual page change itself is runtime-only and does not change the saved default. ## Live Map is clipped or letterboxed **Likely cause:** Normal aspect-ratio containment, a custom/mixed map asset, or an incorrect model surface ratio. **Verify:** The shipped map intentionally uses the actual contained image rectangle; side bands can appear on a 16:9 viewport. Enable map debug and confirm markers align inside the displayed image. **Corrective action:** Restore the shipped asset/config and calibrate the model surface to 16:9. Do not project markers across the letterboxed bands. ## Bodycam feed is delayed or fails to load **Likely cause:** Local capture or decode failed, the frame was oversized, the officer paused/loaded/disconnected, or the subscription expired. **Verify:** Watch `DELAYED` versus `CAPTURE FAILED`/`OFFLINE`, check client logs, and inspect capture timing, frame size, subscriber, malformed, oversized, and stale counters. **Corrective action:** Restore local capture readiness, reduce feed count, and re-enter render range. The last frame remains briefly and is removed after 30 seconds. ## Administrative webhook does not arrive **Likely cause:** Disabled/malformed private URL, Discord 4xx, outbound HTTPS failure, rate/test cooldown, or a queue retry in progress. **Verify:** Run the in-menu webhook test with `sonoran.stationdisplay.webhook.test`, retain its audit ID, and inspect the server response log. **Corrective action:** Regenerate invalid credentials, restore outbound HTTPS, and allow 429/5xx retries. The administrative action can still succeed because delivery is non-blocking. ## High client resource usage **Likely cause:** Too many nearby DUIs, long render distances, raised DUI resolution, high row limits, or many map markers. **Verify:** Open diagnostics and compare Nearby Displays, Active DUIs, and `MaximumActiveDuis`. **Corrective action:** Reduce render distances, nearby display count, resolution, row limits, or call markers. Keep no more than eight active DUIs with default limits. **Relevant data:** Client profiler/F8 plus menu DUI counts. ## Diagnostics See [Diagnostics](/store/sonoran-station-displays/diagnostics) for the in-game snapshot, server/permission commands, persistence repair, map overlay, full resync, and bodycam counters. ## Error and warning codes | Code | Meaning | | - | - | | `SSD-CAD-001` | Configured SonoranCADFiveM resource is not started | | `SSD-CAD-002` | Required CAD cache exports are missing | | `SSD-CAD-003` | CAD version is below the supported minimum | | `SSD-PERSIST-001` | Persistence JSON is malformed | | `SSD-PERSIST-002` | One saved display failed validation | | `SSD-PERSIST-003` | Encode/write/readback/validation/exact-state persistence verification failed | | `SSD-UPDATE-001` | Remote version request failed | | `SSD-UPDATE-002` | Remote version payload is invalid | | `SSD-UPDATE-003` | A newer resource version is available | ## Support checklist Before contacting [Sonoran Support](https://support.sonoransoftware.com/), collect: * Sonoran Station Displays version * SonoranCADFiveM version * FXServer artifact version * Relevant `config.lua` sections with secrets and identifiers removed * Server console errors and `stationdisplay_serverdiag` output * Client F8 errors * In-game diagnostic values * Display ID/name * Display model and configured render method/target * Current service filter and page * Exact reproduction steps Never post CAD API keys, Tebex credentials, license credentials, private caller data, or unredacted player identifiers. # Updating Source: https://docs.sonoransoftware.com/store/sonoran-station-displays/updating Back up, replace, verify, and roll back Sonoran Station Displays safely. Sonoran Station Displays checks the standard Sonoran packaging endpoint at startup and every six hours in official packaged builds, then logs `SSD-UPDATE-003` when a newer version is available. No customer configuration is required. Source/development builds retain the packaging token and safely skip the request. The checker is informational and does not automatically overwrite customer files. ## Before updating 1. Read the product [Changelog](/store/sonoran-station-displays/changelog). 2. Record the installed resource version from `fxmanifest.lua`. 3. Stop `sonoran-stationdisplay`. 4. Back up: ``` sonoran-stationdisplay/config.lua sonoran-stationdisplay/server/admin_webhook_config.lua sonoran-stationdisplay/locales/ sonoran-stationdisplay/data/displays.json ``` 1. Record any custom `Config.DisplayModels`, ACE object names, custom permission function, and service overrides. 2. Keep a copy of the entire previous resource for rollback. Do not share a backup containing player identifiers or private call data. ## Replace the resource For a normal Tebex/CFX update: 1. Download the current granted asset. 2. Extract it to a temporary location. 3. Verify the new package contains one `sonoran-stationdisplay` folder. 4. Replace the old resource folder with the new folder. 5. Restore `data/displays.json`. 6. Compare the new `config.lua` with your backup and reapply customer changes to the new schema. 7. Restore intentional locale customizations. Do not copy only protected Lua files into an older resource. The manifest, browser files, Lua protocol, and configuration schema must stay on the same version. > [!WARNING] > > Do not blindly overwrite a new `config.lua` with an old copy. Preserve your values while also adding any new settings from the release. Older configs may contain update-check, dependency, DUI lifecycle/resolution, or event rate-limit settings that are now managed internally. Delete those obsolete entries and merge only documented customer-facing settings. The resource ignores old copies safely, but protected implementation values always take precedence. ## Asset Escrow considerations Customer-editable config, locale, default data, packaged docs, and README are escrow ignored. Protected runtime files should be replaced from the newly downloaded granted asset. Do not decrypt, merge, or edit escrow-protected files. ## Web files Customers should replace the shipped `web/` directory from the release package. There is no Node.js install or web build step. Source repository maintainers can run: ```powershell theme={null} python scripts/validate.py python scripts/package.py ``` The CI equivalent requires a Lua 5.4 compiler: ```powershell theme={null} python scripts/validate.py --require-luac ``` ## Restart order ```cfg theme={null} ensure sonorancad ensure sonoran-stationdisplay ``` Restart the full server for an update when practical. This avoids leaving old DUI/browser state in connected clients. ## Verify after updating 1. Confirm the console connects to the expected SonoranCADFiveM version. 2. Confirm the expected number of displays loads. 3. Run `stationdisplay_serverdiag`. 4. Open in-game diagnostics. 5. Visit at least one LEO, Fire/EMS, and Both display. 6. Test Active Units, both call pages, all three Live Map modes, and configured Bodycams. 7. Verify main rotation, synchronized manual next/previous, map pan/reset, and bodycam pagination. 8. Test place, edit, move, refresh, and delete with the intended groups. 9. Confirm custom models remain aligned and independent. 10. Check server and client logs. ## Version migrations Version 1.0.0 validates saved display entries on load and has no separate migration command. Future releases may add migration notes. Always follow the target release's changelog before restoring old data. Check for: * New or renamed permission nodes * Configuration-version changes * New required fields * Model registry changes * Supported SonoranCADFiveM minimum-version changes * Bodycam runtime bridge/mode changes ## Roll back 1. Stop `sonoran-stationdisplay`. 2. Restore the complete previous resource folder. 3. Restore the matching configuration and persistence backup. 4. Start SonoranCADFiveM, then the display resource. 5. Confirm display count and inspect errors. Do not use persistence data written by a newer incompatible schema unless the rollback notes confirm compatibility. ## Maintainer release workflow The source repository uses: * `release-candidate` for validation, packaging, and QA deployment * Manual **Production Release** from `main` for semantic version synchronization and version metadata upload * The FiveM Keymaster/Tebex escrow process for the protected archive * **Updater Upload from Keymaster** for the encrypted `stationDisplay.pack.zip` The release package is `stationDisplay.zip`; its one top-level resource folder remains `sonoran-stationdisplay`. # Speed Cameras / ALPR Source: https://docs.sonoransoftware.com/store/speed-camera Automated system to detect and warn when a vehicle with an active BOLO or a speeding vehicle is spotted. ![](https://docs-assets.sonoransoftware.com/sha256/fa/fa967a316a3a75cc58bb689c6c9eec114636e4b41efd8cdca415a032188e876c.png) *Sonoran Software - Speed Cameras Promotional Image* [Video tutorial](https://www.youtube-nocookie.com/embed/qfBXvV287pc) Sonoran Software - Speed Cameras Promotional Video ## Speed Cameras / ALPR ### Features * Ability to operate standalone * Support for Ace Perms, ESX, QBCore, and custom permissions systems ![](https://docs-assets.sonoransoftware.com/sha256/f3/f395062555a349178a63565c43989108d3ca95dff2d2b99893f2640a09efd556.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/cc/cccd88cd357999870b937c9c96a4f1ba20a51686232995c0e071bec159f01aff.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/32/326f8ca70311957e53fd82e01af33e2adf96e5f2de82d2e1abfb4c3165ffabc8.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/85/85dba58bf9d06f94ebbd0f97ca9b0d230142038784b28e85830b3696efe17f8e.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/72/725d8ad93dd7d2f71e1f5ac383471d3709d7e6fd21a41f3596cc3bb1edbeb6f2.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/68/681efae5be0efb7d11b4fffbe821d73da6c857b149eb6b277e92c1cb7d9c30da.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/66/669a334e9a2f97d6f3227acfbcaa33076ec0312bf92f28a332ad305139c89033.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/5c/5c2a23e8dda23865c8bd53a6cb2d5c17fb1488bca789e105c008d04bcc112fb6.png) *Sonoran Software - Speed Cameras Promotional Image* ![](https://docs-assets.sonoransoftware.com/sha256/ff/ff4d21ec116380c0af4d40bb4b063a42eafd808bd03eac3bc75847ea03d76e15.png) *Sonoran Software - Speed Cameras Promotional Image* ### Commands These are the default names of commands, they may have been modified by the server owner. | Command Name | Command Description | Required Permission | | - | - | - | | `/spawnnewcam [prop] [name]` | This command will allow an admin to spawn a new camera using a gun placement system where the name argument is the label for the new camera and the prop argument is the text name of the model to use | Admin or as configured | | `/addplate [plate]` | This command will add a plate to the standalone BOLO system when in use. | LEO or as configured | | `/delplate [plate]` | This command will remove a plate from the standalone BOLO system when in use. | LEO or as configured | | `/listplates` | This command will list the plates currently configured in the standalone BOLO system when in use | LEO or as configured | | `/showcamid` | This command will draw the ID of cameras which you are in the radius of with 3D text near the camera | N/A | | `/getpositiondata` | This command will print the current positional data of the camera to the chat | Admin or as configured | | `/changepositiondata` | This command will change the value which you specify of the camera you specify, run this command without arguments for example usage. All changes made with this command will be immediately saved | Admin or as configured | | `/reloadcameras` | This command will completely reload the cameras.json from the server's storage | Admin or as configured | | `/disablecamera` | This command will disable the camera with the ID specified as an argument, this will prevent that camera from flagging vehicles | LEO or as configured | | `/enablecamera` | This command will enable the camera with the ID specified as an argument, this resume that camera's ability to flag vehicles | LEO or as configured | | `/cancelcamplacement` | This command will cancel the current camera placement if one is currently in progress. | N/A | ### Model Options The model on the left is named `prop_traffic_cam` and the model is named `radar01`. ![](https://docs-assets.sonoransoftware.com/sha256/a1/a1e7f29a7592f979abf3ee1aec87db58008dfa151c5882ffc4f922d60bc51895.png) *Sonoran Software - Speed Cameras Promotional Image* ### Changelog #### v2.2.5 **Bug Fixes** * `Fixed SonoranCAD bolo & warrant checks` **Feature** * `Added option to add "warrant" type plates to standalone bolo system` #### v2.1.9 **Improvements** * `Camera falls to ground and disables` #### v2.1.8 **Bug Fixes** #### v2.1.7 **Hotpatch** * `Fix issue of rotation data not being called in the initial spawning of the traffic cameras` #### v2.1.6 **Hotpatch** * `Update ESX shared object call in regards to depreciation notice` #### v2.1.5 **Hotpatch** * `Add restart handling to prevent crashing` #### v2.1.4 **Feature** * `Added support for custom scripts for speed limit display` #### v2.1.3 **Hotfix** * `Fix Ace permission issues` #### v2.1.2 **Hotfix** * `Fix ESX depreciation notice` * `Fix QBCore Auto Fines` #### v2.1.1 **Hotfix** * `Fix fxmanifest not reading discord.lua` #### v2.0.0 * `ALPR-only Mode` * `Configurable Auto Fine System` * `Integration with an Upcoming Sonoran Release` #### v1.5.4 **Bugfixes and Improvements** * `Fixes a QB-Core bug that was experienced on certain servers and led to physics crashes` #### v1.5.0 **Features** * `Added ability to list BOLO plates with the standalone system` * `Added the ability to edit and reload cameras in real time for admins` * `Added the ability to enable and disable specific cameras` * `Added a development tool to draw the IDs of cameras in the vicinity as 3D text` **Bugfixes and Improvements** * `Added a warning when both standalone and CAD BOLO systems are enabled` * `Overhauled the BOLO permissions system to allow selecting specific job grades allowed to access it for framework servers, and allowed a separate ace object to be used` # Advanced Documentation Source: https://docs.sonoransoftware.com/store/speed-camera/advanced-docs Developer Documentation and other advanced configuration options of the Speed Camera system. ## Custom Permission Systems If you view your `config.lua` you will find a function to be defined with your permissions check. The same function is called to check for permission to receive notifications and to check if they are allowed to place new cameras. The requests are differentiated through the type argument. It will be equal to `0` if the permissions check is to see if they can place a camera, `1` to check if they can currently receive notifications, `2` to check if they are allowed to modify the standalone BOLO system, or `3` to check if they can enable and disable cameras. The permission check will be called on every attempted placement and every notification sent, so you can use a custom "on-duty" system if desired. ```lua theme={null} Config.custom = { check_perms_server_side = true, -- If true the permission event will be sent out to the server side resource, this is recommended permissionCheck = function(source, type) -- This function will always be called server side. if type == 0 then -- Check for admin return true or false -- Return true if they have admin, return false if they don't elseif type == 1 then -- Check for notification perms return true or false -- Return true if they have permissions, return false if they don't elseif type == 2 then -- Check for BOLO creation/deletion/view perms return true or false -- Return true if they have permissions, return false if they don't elseif type == 3 then -- Check for permissions to enable/disable cameras return true or false -- Return true if they have permissions, return false if they don't end end } ``` If you need assistance setting this up you can hire a dev by going [here](https://support.sonoransoftware.com/#/) and selecting "Hire a Developer". ## Developer Documentation When a BOLO vehicle is caught events will be sent out. It will be sent to both the client that was caught and the server. It will contain a data argument, the table below contains the layout of this value. Events are named the same on both the client and server. #### Event List * `SonoranScripts::PlateBOLO` (Used if standalone BOLO system is used) * `SonoranScripts::SPlateBOLO` (Used if SonoranCAD BOLO system is used) * `SonoranScripts::Speeding` #### Data Table Structure | Index | Description | Example | | - | - | - | | `plate` | This will contain the license plate of the vehicle that was seen as a string | `24EDT43` | | `color` | This will contain the color of the vehicle as a string. Primary and secondary color of the vehicle are separated by a `/`. | `Util Red / Worn Red` | | `model` | This will contain the model's text name as it is set in the vehicle.meta | `Blista` | | `speed` | The vehicles speed to the nearest whole number | 25 | | `camera_name` | The name of the camera as a string | `Los Santos Freeway` | | `camera_id` | The numerical id of the camera | 4 | | `postal` | If the postal script is enabled, this will contain the nearest postal of the sighting | 413 | #### Example Handler ```lua theme={null} AddEventHandler("SonoranScripts::Speeding", function(data) print("Plate " .. data["plate"] .. " was caught going " .. data["speed"] .. ".") end) ``` # Getting Started Source: https://docs.sonoransoftware.com/store/speed-camera/getting-started This page will walk you through getting and installing the Speed Camera script. ## Acquire the Script After purchasing the script through the sonoran store you may [download the script through the keymaster account](/store/general/tebex-assets) that purchased the script. Upon downloading extract the file to a safe place. ## Install the Script 1. Inside the script package you just extracted will be two folders. Copy both to a folder in your server's resources folder called `[sonoranscripts]` note the `[]` in the name, without them it will not work. ![](https://docs-assets.sonoransoftware.com/sha256/5b/5b587d73e77ebe7fa56967bf234cc2533b2e573fa620812f77b1763b60f4b560.png) *Sonoran Software - Speed Cameras - Folders* 2. In the `sonoran-trafficcam` folder there will be a file called `config.CHANGEME.lua` you should rename that to be `config.lua` and configure the settings inside as you would like them to be configured based on the configuration documentation below. In that same folder will also be a file called `cameras.CHANGEME.json` which you should rename to `cameras.json` and use to manually place cameras based on the existing template, note you can also use the gun placement system in game. Finally there is a file called `discord.CHANGEME.lua` in the folder which should be renamed to `discord.lua`, this file contains all of your Discord webhook related settings. ![](https://docs-assets.sonoransoftware.com/sha256/4d/4dee9b7771de29862e96ba4394c6d8a9d22aca17f70623143b272b038adefa7f.png) *Sonoran Software - Speed Cameras - Remove .CHANGEMEs* 3. Finally, in your `server.cfg` add the following: ``` ensure sonoran-trafficcam add_ace resource.sonoran-trafficcam command allow add_ace resource.sonoran-trafficcam_helper command allow ``` ## Configuring the Script > [!NOTE] > > As of `v2.0.2` this script utilizes two separate Lua configs. This is for security reasons. Having a separate config for your Discord Configuration keeps them server side only and safer from malicious clients > [accordion] Default config.lua > > ```lua theme={null} > Config = {} > > -- General Configuration Section -- > Config.configuration_version = 2.2 > Config.debug_mode = false -- Only useful for developers and if support asks you to enable it > Config.permission_mode = "ace" -- Available Options: ace, framework, custom > > -- Ace Permissions Section -- > Config.ace_perms = { > ace_object_place = "sonoran.trafficcam", -- Select the ace for placing new cameras > ace_object_notification = "sonoran.police", -- Select the ace for receiving in-game notifications > ace_object_to_place_bolo = "sonoran.bolo", -- The required ace to add BOLOs when using a framework > ace_object_to_disable_cameras = "sonoran.disablecam" -- The required ace to disable cameras > } > > -- Framework Related Settings -- > Config.framework = { > framework_type = "qb-core", -- This setting controls which framework is in use options are esx or qb-core > police_job_names = {"police"}, -- An array of job names that should receive notifications > allowed_to_place_groups = {"admin"}, -- The permission group that should be allowed to place new cameras > required_grade_to_place_bolo = 4, -- The required grade to add BOLOs when using a framework > required_grade_to_disable_cameras = 6, -- The required grade to disable cameras > autofine = { -- This configures the autofine feature of the Speed Camera system > enable = false, > fine_method = "immediate", -- Options are immediate, invoice(requires the latest esx_billing for esx, invoice mode is not yet supported for QB-Core aiming for support by version 2.5.0 you can use custom mode to implement your own invoice system though), or custom(see function below) > custom_fine = function(speed, speedlimit, playerId, fineTableFine) > -- Put your code to fine here > end, > police_society_account_name = 'society_police', -- The name of the society account to pay invoices into > fine_table = { -- Follow the format of the placeholder values, the last value in this table will be use for a speed difference of anything greater than that set value > [1] = { > speed_difference = 5, > fine = 20 > }, > [2] = { > speed_difference = 10, > fine = 100 > }, > [3] = { > speed_difference = 15, > fine = 400 > }, > [4] = { > speed_difference = 20, > fine = 800 > }, > [5] = { > speed_difference = 35, > fine = 1200 > } > } > } > } > > -- Configuration For Custom Permissions Handling -- > Config.custom = { > check_perms_server_side = true, -- If true the permission event will be sent out to the server side resource, this is recommended > permissionCheck = function(source, type) -- This function will always be called server side. > if type == 0 then -- Check for admin > return true or false -- Return true if they have admin, return false if they don't > elseif type == 1 then -- Check for notification perms > return true or false -- Return true if they have permissions, return false if they don't > elseif type == 2 then -- Check for BOLO creation/deletion/view perms > return true or false -- Return true if they have permissions, return false if they don't > elseif type == 3 then -- Check for permissions to enable/disable cameras > return true or false -- Return true if they have permissions, return false if they don't > end > end > } > > -- Choose Custom Command Names -- > Config.command_names = { > add_bolo_plate = "addplate", > remove_bolo_plate = "delplate", > spawn_new_cam = "spawnnewcam", > cancel_new_spawn = "cancelcamplacement", > position_debug_display = "position", > upload_client_log = "uploadnewclientlog", > upload_server_log = "uploadnewlog", > change_position_data = "changepositiondata", > show_cam_id = "showcamid", > get_position_data = "getpositiondata", > reload_cameras = "reloadcameras", > list_bolo_plate = "listplates", > disable_camera = "disablecam", > enable_camera = "enablecam" > } > > -- Settings Related to Camera Functionality -- > Config.camera_settings = { > ignore_emergency = true, -- Sets whether emergency vehicles should be ignored by the cameras > only_ignore_on_els = true, -- If the setting above and this one are true emergency vehicles will only be ignored if their lights are on > show_camera_blips_for_police = false, -- Should the cameras show up as blips for police on the map? > unit_system = "mph", -- Speed unit options: mph and kph > time_between_flags = 1, -- This is the number of minutes before a car will ping again, if they pass a different camera it will ping again regardless of whether this time has passed > alpr_only_mode = false -- If this is true the speed detection system of this script will be disabled > } > > -- Feature Settings That Don't Require Other Resources -- > Config.standalone_features = { > show_notification_blips_for_police = true, -- Should police see a blip when a car is pinged? > blips_expire_after_seconds = 90, -- Number of seconds before the blip type above is removed > enable_standalone_bolo_system = true, -- Selects whether the built in BOLO system should be used, this must be false for the SonoranCAD BOLO integration to work > enable_camera_disable = true, > enable_auto_update = true -- Should the script automatically update itself, it will check for updates regardless > } > > --[[ > Placeholder list: > {{POSTAL}} > {{EVENT_TYPE}} > {{PLATE}} > {{SPEED}} > {{SPEED_UNIT}} > {{CAMERA_NAME}} > {{DIRECTION}} > ]] > > -- Settings For Integrations With Other Resources -- > Config.integration = { > SonoranCAD_integration = { > use = true, -- Should any of the options below be used? Integration with this script requires at least a Plus subscription. > add_live_map_blips = true, -- Should blips for the camera be added to the live map? This requires the Pro SonoranCAD plan > enable_911_calls = true, -- Should 911 calls be generated in the CAD when a BOLO vehicle or speeder is detected? > ["911_caller"] = "Automated System", -- Who should the 911 call appear to be from? > ["911_message"] = "{{EVENT_TYPE}} vehicle with license plate {{PLATE}} was seen doing {{SPEED}} {{SPEED_UNIT}} at camera {{CAMERA_NAME}}", -- Configurable 911 call description > enable_cad_bolos = true, -- Should CAD BOLO system be used? The standalone BOLO system found above must be disabled to use this system. > nearest_postal_plugin = "nearest-postal", -- If you want to use postals, what is the exact name of your postals script? > disable_in_game_with_dispatch = true, -- If true disables in-game notifications when dispatch is online in CAD > disable_cad_without_dispatch = true -- If true disables CAD notifications when dispatch is offline in CAD > }, > SpeedLimit_Display_integration = false, -- Should the speedlimit set in the SpeedLimit Display script be used? See docs.sonoran.store for more info > } > > -- Notification Settings -- > Config.notifications = { > type = "native", -- Available options: native, pNotify, okokNotify, or cadonly > notification_title = "{{EVENT_TYPE}} Alert", -- Notification Title for methods that support it > -- Uncomment line below and comment line 87 if you plan to use pNotify > -- notification_message = "{{EVENT_TYPE}}
License Plate: {{PLATE}}
Speed: {{SPEED}} {{SPEED_UNIT}}
Camera: {{CAMERA_NAME}}" > notification_message = "{{EVENT_TYPE}} Alert\nLicense Plate: {{PLATE}}\nSpeed: {{SPEED}} {{SPEED_UNIT}}\nCamera: {{CAMERA_NAME}}" -- The text of the notification > } > ``` ### Note In order for auto fines to function properly, Config.permission\_mode **MUST** be "framework" ```lua theme={null} DiscordConfig = { enabled = false, -- Should discord webhooks be used? webhook_url = "", -- See https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks webhook_title = "{{EVENT_TYPE}} Alert", -- The title of the webhook embed webhook_message = "License Plate: {{PLATE}}\nSpeed: {{SPEED}} {{SPEED_UNIT}}\nCamera: {{CAMERA_NAME}}" -- The message that the webhook displays } ``` ## Setting Up Permissions (Ace Permissions Only) To use this script you must assign the permissions object to the groups which you would like to have permissions. You can find the objects needed in the config under `Config.ace_perms` section in the config. To assign these perms you must add the lines to your `server.cfg` or where ever you setup permissions on your server. You can learn more about Ace Permissions [here](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917). Example: ```lua theme={null} add_ace group.admin sonoran.trafficcam allow add_ace group.leo sonoran.police allow add_ace group.leosupervisor sonoran.bolo allow add_ace group.moderator sonoran.disablecam allow ``` ## Camera Location Config > [!NOTE] > > When using a camera mounted to a pole (such as traffic lights), if the pole is broken, the camera will be disabled. You have two options for placing new cameras: 1. You can use the command `/spawnnewcam [prop] [name]` to initiate spawning a new camera and generate the relevant config data * After running this command you must pull out, aim, and shoot with a gun to confirm placement. * You may need to modify some of the rotation values manually to get that perfect placement you are looking for. * If you aren't using the speed limit display integration you will need to manually go into the config file to change the set speed limit. You will also need to change the view radius to be the way you want it. * [Click here for more information.](/store/general/gun-placement) 2. You can manually copy and paste an existing config and then modify the values to meet your needs for the new camera ### `camera.json` Property Explanation | Property Name | Example | Notes | | - | - | - | | `ID` | 2 | `ID` must be unique. No other camera can share this ID | | `Prop` | `radar01` | Valid values are `radar01` and `porp_traffic_cam` | | `Position` | | This is a table that contains the x, y, and z coords of the camera | | `Rotation` | | This is a table that contains the x, y, and z rotation of the camera | | `Label` | `Test 1` | This is a human readable label for the camera, can have spaces | | `SpeedLimit` | 10 | This is the speed over which this camera will trip | | `ViewRadius` | 10 | How far away this camera can see in GTA units, default is 10 | ## Commands | Command Name | Command Description | Required Permission | | - | - | - | | `/spawnnewcam [prop] [name]` | This command will allow an admin to spawn a new camera using a gun placement system where the name argument is the label for the new camera and the prop argument is the text name of the model to use | Admin or as configured | | `/addplate [type] [plate]` | This command will add a plate to the standalone BOLO system when in use. | LEO or as configured | | `/delplate [plate]` | This command will remove a plate from the standalone BOLO system when in use. | LEO or as configured | | `/listplates` | This command will list the plates currently configured in the standalone BOLO system when in use | LEO or as configured | | `/showcamid` | This command will draw the ID of cameras which you are in the radius of with 3D text near the camera | N/A | | `/getpositiondata` | This command will print the current positional data of the camera to the chat | Admin or as configured | | `/changepositiondata` | This command will change the value which you specify of the camera you specify, run this command without arguments for example usage. All changes made with this command will be immediately saved | Admin or as configured | | `/reloadcameras` | This command will completely reload the cameras.json from the server's storage | Admin or as configured | | `/disablecamera` | This command will disable the camera with the ID specified as an argument, this will prevent that camera from flagging vehicles | LEO or as configured | | `/enablecamera` | This command will enable the camera with the ID specified as an argument, this resume that camera's ability to flag vehicles | LEO or as configured | | `/cancelcamplacement` | This command will cancel the current camera placement if one is currently in progress. | N/A | ## Model Options The model on the left is named `prop_traffic_cam` and the model is named `radar01`. ![](https://docs-assets.sonoransoftware.com/sha256/a1/a1e7f29a7592f979abf3ee1aec87db58008dfa151c5882ffc4f922d60bc51895.png) *Sonoran Software - Speed Cameras Promotional Image* ## Needed Changes for Speed Display We recommend [this](https://forum.cfx.re/t/release-posted-speedlimit/180949) speed limit display script by BigYoda. Add the following code snippet to the bottom of your speed display script's client.lua: ```lua theme={null} exports("GetCurrentSpeed", function() return speedlimit end) ``` # Sonoran Street Signs Source: https://docs.sonoransoftware.com/store/street-signs Place and edit highway message signs in FiveM, with optional Sonoran CAD control. Create road closures, traffic warnings, detours, and event directions with editable highway message signs. Update text and icons in-game, or manage signs from Sonoran CAD with the optional integration. ![Street Signs promo showing a highway sign displaying Leave Space for Trucks and Drive Safe](https://docs-assets.sonoransoftware.com/sha256/d2/d234a6fc3645a184df5581acc7c9931f3ace7d7181b1dd2d2e6e405188a3bd64.webp) *Editable highway messages for your community.* ## Features * **Highway message signs** — Combine text and road icons with a live editor preview. * **Ready-to-use placements** — Includes 76 editable signs across highways, town roads, and port access routes. * **In-game management** — Use `/sign` to place, move, edit, or remove signs. Walk up to a sign's control panel to edit its message. * **Daily schedules** — Display a saved message during a chosen period using the in-game clock. * **Display controls** — Choose a color and brightness, switch the screen off, or dim it automatically at night. * **Saved signs** — Placements and messages remain after resource and server restarts. * **Sonoran CAD control** — Manage all signs from the overview, or open a specific sign from its Live Map marker. * **Optional integrations** — Connect signs to Sonoran Power Grid and log changes or blocked text to Discord. ## Gallery > [tab] Editor > > ![Street Signs editor promo showing text blocks, truck icons, layout controls, and a live sign preview](https://docs-assets.sonoransoftware.com/sha256/2c/2cb98a7d4afe34b8c03fd843370fc5301861e06524437ea454a2f8d701ac21aa.webp) > > *Edit text, road icons and layouts in-game.* > [tab] Sonoran CAD > > ![Street Signs CAD promo showing Live Map markers, an individual sign editor, and the all-signs overview](https://docs-assets.sonoransoftware.com/sha256/c3/c3eac9f227d37b62a7fffdf868419c40a2c9aa8fbae5035b37362100f020f3a9.webp) > > *Manage signs remotely with the optional Sonoran CAD integration.* > [tab] Map coverage > > ![Street Signs map promo showing sign markers across Los Santos and Blaine County](https://docs-assets.sonoransoftware.com/sha256/52/5276d17bc21bfd74cd665f71ab7fb7fc58e9c7944746a7fd9a6166f1fe9a2360.webp) > > *About 70 pre-configured signs across the map.* The current package includes the **Highway Sign Only** style. Additional sign styles, billboards, and vehicle-mounted signs are planned expansions. > [card] [Installation](/store/street-signs/getting-started) > [card] [Using Signs](/store/street-signs/commands-and-usage) > [card] [Integrations and Webhooks](/store/street-signs/integrations-and-webhooks) # Using Signs Source: https://docs.sonoransoftware.com/store/street-signs/commands-and-usage Place, edit, move, and remove Sonoran Street Signs through the in-game menu. ## Open the sign menu Run `/sign` to open Sonoran Street Signs. Select **Nearby signs** or **All signs**, then choose the sign you want to manage. Your permissions determine which actions appear. Administrators can select **Full sign controller** to browse all signs in one editor. In-game saves still require you to be within three meters of the selected sign's control panel, including in the full controller. Use [Sonoran CAD](/store/street-signs/integrations-and-webhooks#sonoran-cad) for remote message updates. > Screenshot placeholder: The `/sign` menu showing Place a new sign, Nearby signs, and All signs. ## Show or hide map blips Street Sign map blips start hidden by default. To show them, open chat and enter `/signblips`. Run the same command again to hide them. A chat suggestion helps you find the command, and a confirmation tells you whether the blips are shown or hidden. This changes only your own in-game map. Your choice stays in effect through sign edits and refreshes, then resets to the server's default when you reconnect or the resource restarts. It does not change Sonoran CAD Live Map markers. If the server disables blips for everyone, `/signblips` reports that they are disabled and its chat suggestion is hidden. Server owners can change the [map blip settings](/store/street-signs/configuration-reference#map-blips). ## Place or move a sign 1. Select **Place a new sign**. 2. Enter a unique **Sign ID** and an optional **Display label** so you can find it later. 3. Select **Start placement**. 4. Use the on-screen controls to move and rotate the preview. **Snap to ground** helps position the support. 5. Select **Save placement**, or **Cancel placement** to discard it. Check that the sign faces approaching traffic and that its support is clear of the road. The placement must stay within 30 meters of your character. To move an existing sign, select it from the menu and choose **Reposition sign**; remain near its original control panel until you save the move. > Screenshot placeholder: Placement preview beside a roadway, with movement controls and Save placement visible. ## Edit the message Walk to the control panel at the base of a sign and press `E`, or select **Open visual editor** from its menu. Remain close to the control panel while editing and saving. * Select a text block to change its message. Click an empty grid cell to add another block. * Each text block has its own message, including blocks on the same row. * Use **Add Icon** to add a road symbol, then select its icon in the item controls. * Drag blocks and their resize handles to adjust the layout. **Delete Item** removes the selected block. * **Stack Lines** rebuilds a simple text layout and removes the existing layout, including icons. * Check the preview, then select **Save sign** and wait for the save confirmation. Use short messages with letters, numbers, and supported punctuation. If a character cannot be displayed or text is blocked by the word filter, correct it before saving. Save before closing with `Escape` or switching signs. Changes in the editor do not save automatically. ![Sonoran Street Signs visual editor with text and icon blocks and a Save sign button](https://docs-assets.sonoransoftware.com/sha256/17/17992fdf6e9313d92c5b680d8bb4c1fb3aea42b551960f0d92cca61a7270be3a.jpg) *Browser preview of the editor using sample sign data.* ## Quick messages Select **Quick messages**, choose **Safety**, **Traffic**, or **Closure**, and select a message. Check the resulting preview and select **Save sign** to apply it. ![Quick messages window with the Safety category and preset roadside messages](https://docs-assets.sonoransoftware.com/sha256/71/71cc730ce74b4a52edf236f15f067e9755b20075eacd65b4a5184d8c8a703d34.jpg) *Quick messages in the browser preview.* ## Sign settings Select the gear button in the editor to adjust brightness, color theme, screen state, and **Auto-Dim**. Close the settings window and select **Save sign** to apply your changes. Brightness ranges from 5–100%. To blank the display, turn the screen off; entering zero brightness does not turn it off. **Auto-Dim** reduces brightness during in-game nighttime, from 20:00 to 06:00. Turning the screen off keeps the physical sign in place and overrides scheduled messages. The `/sign` menu also provides **Sign settings** to rename a sign and make quick settings changes. These menu changes save when selected. **Edit text lines** changes the sign's stored lines. For signs with arranged text blocks, change their text in the visual editor so the displayed layout updates. ![Sign settings showing brightness, theme, enabled state, and Auto-Dim controls](https://docs-assets.sonoransoftware.com/sha256/b1/b1f021788d4a0b32064b4627f6ef809161efe4071ff256ad224548e9a7bf6db9.jpg) *Sign settings in the browser preview.* ## Daily schedules 1. Prepare the message and layout in the editor. 2. Select **Schedules** and enter a label, start time, and end time. 3. Select **Create From Draft** to capture that message and layout. 4. Select **Back to editor**. Prepare the normal message for outside the scheduled period, then select **Save sign**. Times repeat daily using the **in-game clock**, with hours from 0–23. Overnight periods work across midnight. Equal start and end times apply all day. Outside scheduled periods, the normal message returns. Avoid overlapping periods: the first matching entry takes priority. **Disable** turns the screen off during that entry's period; it does not cancel the period or return to the normal message. Save after changing its state. In the current editor, **Edit message** loads a schedule's text into the normal draft; it does not replace the saved schedule. Existing entries have no time-change or removal control, so check the message and times before creating one. ![Sonoran Street Signs Schedules view showing daily start and end times, Create From Draft, and a sample morning message](https://docs-assets.sonoransoftware.com/sha256/db/dbe73caf4ddc031029f0fc51e6455cd2a69f7b5c61d50ba1bc632f690ee978fb.jpg) *Daily schedule controls in the browser preview.* ## Remove a sign Select the sign in `/sign`, choose **Delete sign**, then **Confirm deletion**. To keep the sign, select **Keep sign** instead. A deleted sign must be placed again if you want to restore it. # Configuration Source: https://docs.sonoransoftware.com/store/street-signs/configuration-reference Review the customer settings in the Sonoran Street Signs configuration. Edit `sonoran-streetsigns/config.lua`, save it, and restart Sonoran Street Signs after changes. The supplied configuration contains the settings most servers need. | Setting | Default | Purpose | | - | - | - | | `Config.PermissionMode` | `'ace'` | Choose ACE, standalone, QBCore, or ESX access. | | `Config.AcePermissions` | Five action permissions | Permission names used in ACE mode. | | `Config.QBJobs` / `Config.ESXJobs` | Example jobs and grades | Jobs allowed to manage signs in the selected framework. | | `Config.StandaloneAllowed` | Empty | Allowed player identifiers in standalone mode. | | `Config.Updater.EnableAutoUpdate` | `false` | Enable automatic resource updates. | | `Config.GameBlips.enabled` | `true` | Allow players to show or hide in-game map blips with `/signblips`. Set to `false` to disable blips for everyone. | | `Config.GameBlips.defaultVisible` | `false` | Start players with map blips hidden. Set to `true` to show them by default when blips are allowed. | | `Config.CAD.enabled` | `false` | Enable Sonoran CAD panels and Live Map sign controls. | | `Config.Power.enabled` | `true` | Enable Sonoran Power Grid integration. Disable if unused. | | `Config.Webhooks.enabled` | `false` | Enable Discord notifications. | | `Config.Webhooks.signChanges.url` | Empty | Discord webhook for sign changes. | | `Config.Webhooks.bannedWordAlerts.url` | Empty | Discord webhook for blocked text attempts. | | `Config.Webhooks.bannedWordAlerts.mentionRoleIds` | Empty | Optional Discord roles to mention in moderation alerts. | | `Config.Moderation.enabled` | `true` | Enable the included word filter. | | `Config.Moderation.extraWords` | Empty | Additional words or phrases matched anywhere in text. | | `Config.Moderation.extraWholeWords` | Empty | Additional terms matched as complete words. | Review the example jobs before enabling a framework permission mode. Matching jobs receive full sign-management access. Use the in-game menu or editor to change individual signs' color, brightness, messages, and placement. ## Map blips Players can use `/signblips` to show or hide Street Sign map blips for themselves. The default configuration allows the command but starts with blips hidden: ```lua theme={null} Config.GameBlips = { enabled = true, defaultVisible = false } ``` Set `enabled = false` to disable blips and the toggle for everyone. Set `defaultVisible = true` to show blips when players join; they can still hide them with `/signblips`. Save `config.lua` and restart Sonoran Street Signs after changing these settings. Older configs that omit `defaultVisible` also start with blips hidden. Add this block to an older config if you want to change the defaults. These settings affect only the in-game map, not Sonoran CAD Live Map markers. ## Updating an older configuration When updating an older installation, use the current `config.CHANGEME.lua` as the reference and keep only the supported customer settings above. Preserve `data/signs.json` so your saved signs remain in place. See [Updating](/store/street-signs/getting-started#updating). * [Installation and updating](/store/street-signs/getting-started) * [Permissions](/store/street-signs/permissions) * [Integrations and Webhooks](/store/street-signs/integrations-and-webhooks) # Troubleshooting Source: https://docs.sonoransoftware.com/store/street-signs/faq-and-troubleshooting Resolve common installation, access, display, and integration issues. ## The resource will not start Confirm OneSync is enabled, both package folders are installed, and `fxmanifest.lua` is directly inside each folder. Keep the original resource names and use the server account entitled to the asset. ## I cannot open the menu or edit a sign Run `/sign`. Check [Permissions](/store/street-signs/permissions) for your selected mode and confirm your staff group, player identifier, or job grade has access. For walk-up editing, stand near the control panel at the base of the sign and press `E`. Viewing a sign does not give editing access. The full controller requires administrator access. ## Street Sign map blips are missing Blips are hidden by default. Enter `/signblips` in chat to show them, then enter it again to hide them. After reconnecting or a resource restart, your visibility choice resets to the server's default. If the command reports that blips are disabled on the server, ask the server owner to review `Config.GameBlips.enabled` in [Configuration](/store/street-signs/configuration-reference#map-blips). The chat suggestion is also hidden when blips are disabled for everyone. ## The screen is blank or the editor does not load Check that the sign's screen is enabled. If it is linked to Power Grid, check its power supply. An active schedule with its state disabled also blanks the screen during that period. Brightness is limited to 5–100%; use the screen switch to turn the display off. Move closer to the sign and confirm Sonoran Street Signs is running. For a blank editor, check that the player can reach `https://signs.panel.sonoran.store/`, then reopen it. ## A message will not save Stay within three meters of the selected sign's control panel, including when using the administrator's full controller, and wait for any previous save to finish. Correct unsupported characters or blocked text shown by the editor. If someone else changed the same sign, reopen it and apply your changes to the latest version. For save errors, check the server console and confirm the resource can write to its `data` folder. ## A schedule or message does not look right Schedules follow the in-game clock. Check the start and end times, including overnight periods, and avoid overlapping entries because the first matching period wins. Save after creating or toggling a schedule. The normal editor preview shows your draft, which may differ from the scheduled message currently on the roadside sign. Editing the normal message does not replace a captured schedule. See [Daily schedules](/store/street-signs/commands-and-usage#daily-schedules) for the current controls and limits. If **Edit text lines** did not change an arranged text block, open the visual editor and edit that block directly. ## CAD panels or sign updates are missing Confirm: * `Config.CAD.enabled = true` * `sonorancad` starts before Sonoran Street Signs * The protected-key permission line from [CAD setup](/store/street-signs/integrations-and-webhooks) is present * Your CAD version supports the panels and your role has the relevant panel permission Check the Sonoran Street Signs server console for CAD connection errors. A CAD synchronization error can occur even when the in-game change has saved; check the sign before retrying. ## Power Grid or Discord is not responding For Power Grid, confirm the integration is enabled, the resource starts first, and the sign was linked near its base. For Discord, confirm webhooks are enabled and the URL is entered in the correct notification channel. Check the server console for delivery errors. ## Changes disappeared after a restart or update Placements and messages are saved in `sonoran-streetsigns/data/signs.json`. Keep that file when updating manually and restore your backup if it was replaced. Sonoran Street Signs does not require MySQL. Default placements are installed once; later package updates do not move existing saved signs or recreate deleted defaults. If the console reports invalid saved data, keep a backup of the affected file and contact support before replacing it. ## Automatic updates are not working Confirm automatic updates are enabled, the helper folder is installed, and the update permission lines from [Updating](/store/street-signs/getting-started#updating) are present. A pending restart waits until the server is empty. ## Still need help? Contact [Sonoran Software support](https://support.sonoransoftware.com/) with your Sonoran Street Signs version, the affected action, and relevant server or client errors. Remove webhook URLs, API keys, and private player information before sharing logs. # Installation Source: https://docs.sonoransoftware.com/store/street-signs/getting-started Install Sonoran Street Signs, configure access, and check your first sign. ## Before you begin You need: * A current FiveM server with OneSync enabled * Access to the server's resources folder and `server.cfg` * The Cfx.re account that owns the Sonoran Street Signs package Sonoran CAD, Power Grid, QBCore, and ESX are optional. Sonoran Street Signs does not require a database. ## Download and install 1. Download and extract the package from the [Cfx.re Portal](https://portal.cfx.re/). See [Accessing Tebex Assets](/store/general/tebex-assets) for help. 2. Place both complete folders, `sonoran-streetsigns` and `sonoran-streetsigns_helper`, beside each other in your server's resources directory. 3. Inside `sonoran-streetsigns`, rename `config.CHANGEME.lua` to `config.lua`. 4. Review [Permissions](/store/street-signs/permissions) and give the appropriate staff or jobs access. 5. If you do not use Sonoran Power Grid, set `Config.Power.enabled = false` in `config.lua`. CAD integration is off by default. 6. Add the following to `server.cfg`, then restart the server: ```cfg theme={null} ensure sonoran-streetsigns ``` Keep the folder names unchanged. Each folder must contain its own `fxmanifest.lua` directly inside it. The helper handles update restarts; it does not need an `ensure` line. If you use a framework permission mode or optional integration, start that resource before Sonoran Street Signs. Follow [Integrations and Webhooks](/store/street-signs/integrations-and-webhooks) for CAD and Power Grid setup. ## First use 1. Join with an account that has Sonoran Street Signs access. 2. Run `/sign` and select **Nearby signs** or **All signs**. 3. Walk within three meters of the sign's control panel at the base. Select **Open visual editor** from the menu, or press `E` at the panel. 4. Edit the message and select **Save sign**. Check the sign in-game. Default signs are added once. You can edit, move, or remove them through `/sign`; restarts and updates do not restore defaults you deleted or overwrite your saved placements with newer default positions. > Screenshot placeholder: Player at the sign's lower control panel with the `E` edit prompt visible. ## Updating Automatic updates are off by default. To enable them, set `Config.Updater.EnableAutoUpdate = true` and add: ```cfg theme={null} add_ace resource.sonoran-streetsigns command allow add_ace resource.sonoran-streetsigns_helper command allow add_unsafe_child_process_permission sonoran-streetsigns ``` The updater keeps your configuration and saved sign data. A needed restart waits until the server is empty. For a manual update, back up `config.lua` and `data/signs.json`, stop the resource, replace the package files, and keep your configuration and saved data before starting it again. Replace both resource folders when the package includes helper changes. If you are upgrading from an older configuration, compare it with the new `config.CHANGEME.lua`. Keep your access rules and integration settings in the current template. Old rendering, controller, and layout configuration options are no longer customer settings; use the sign editor for individual displays. Review [Configuration](/store/street-signs/configuration-reference) for the remaining customer settings and [Using Signs](/store/street-signs/commands-and-usage) for placement and editing. # Integrations and Webhooks Source: https://docs.sonoransoftware.com/store/street-signs/integrations-and-webhooks Connect Sonoran Street Signs to Sonoran CAD, Sonoran Power Grid, and Discord. These integrations are optional. You can place and edit signs in-game without them. ## Sonoran CAD Use a current [SonoranCADFiveM integration](/cad/integration-plugins/in-game-integration/fivem-installation) and a CAD version that supports Integration Panels and custom Live Map markers. Set `Config.CAD.enabled = true` in `config.lua`. Add the following after your Sonoran CAD configuration in `server.cfg`: ```cfg theme={null} ensure sonorancad add_convar_permission sonoran-streetsigns read sonoran_apiKey ensure sonoran-streetsigns ``` In CAD, give the appropriate roles access to both **Sonoran Street Signs** controllers: the overview and the individual Live Map editor. In-game ACE or job access does not automatically grant CAD panel access. Existing installations should keep both controller permissions (`sonoran-dot-signs` and `sonoran-dot-sign`); their technical keys are retained for compatibility. Changes synchronize between CAD and FiveM. CAD edits save immediately and can be made remotely. * Search for a sign in the overview, or click its Live Map marker to open that sign directly. * Edit the text fields arranged like the sign, with searchable road-icon pickers beside the text in both views. * Choose a quick message or adjust theme, brightness, screen state, and Auto-Dim. * The individual editor also lists existing schedules. Its schedule toggle controls whether the screen is on during that period. **Copy to base message** copies the schedule's text into the normal message; it does not remove the scheduled period. CAD's editable rows show saved base text and road icons without a separate preview. CAD does not simulate LED dots, uploaded images, or the active in-game schedule. Check the physical display when confirming a scheduled message. Use the in-game editor to rearrange blocks and create schedules, and `/sign` to place, move, or delete signs. CAD receives the overview together at startup. Individual editors and map markers then load gradually to avoid rate limits; 76 new markers take about four minutes. Each marker opens an initialized editor. Saved changes update the overview and only the affected individual editor. You can use the overview while loading continues. A failed upload leaves the in-game save intact and retries pending changes. CAD's documented limits are **300 state uploads/minute** and **30 marker creates or updates/minute per endpoint**, shared by integrations using the same API key. Street Signs spaces state uploads at least one second apart across both controllers and marker writes at least three seconds apart. CAD permits 100 individual sign instances per panel and server, including retained removed signs. See the official [panel limits](https://github.com/Sonoran-Software/SonoranCAD-Documentation/blob/master/api-integration/api-endpoints-v2/integration-panels/README.md) and [marker limits](https://github.com/Sonoran-Software/SonoranCAD-Documentation/blob/master/api-integration/api-endpoints-v2/emergency/map/create-blip.md). > Screenshot placeholder: Sonoran CAD showing aligned text fields and searchable inline icon pickers, with a Live Map marker opening its individual sign editor. ## Sonoran Power Grid Power Grid integration is on by default. If you use it: 1. Start `sonoran-powergrid` before `sonoran-streetsigns`. 2. Keep `Config.Power.enabled = true`. 3. Use the Power Grid link tool within three meters of the sign's base to link it. A power outage turns the linked sign's screen off while leaving the physical sign in place. Restoring power allows its display to return, provided the screen is enabled and the current schedule allows it. If your server does not use Power Grid, set `Config.Power.enabled = false`. > Screenshot placeholder: The same linked sign with power available and during a Power Grid outage. ## Discord notifications Set `Config.Webhooks.enabled = true`, then paste Discord webhook URLs into the channels you want to use: * `Config.Webhooks.signChanges.url` — Sign creation, changes, and deletion. * `Config.Webhooks.bannedWordAlerts.url` — Attempts to save blocked text. Leave a channel's URL empty to disable that channel. Add Discord role IDs to `Config.Webhooks.bannedWordAlerts.mentionRoleIds` if moderation alerts should mention a role. Keep webhook URLs private and restart Sonoran Street Signs after updating the configuration. # Permissions Source: https://docs.sonoransoftware.com/store/street-signs/permissions Choose who can edit messages and manage Sonoran Street Signs. Choose `ace`, `standalone`, `qb`, or `esx` in `Config.PermissionMode`. Restart Sonoran Street Signs after changing the configuration. ## ACE permissions ACE is the default mode. Grant only the actions each group needs: | Permission | Access | | - | - | | `sonoran.signs.set` | Use the visual editor, including text, icons, layout, schedules, and display settings | | `sonoran.signs.edit` | Use menu text/settings tools and reposition existing signs | | `sonoran.signs.create` | Place new signs | | `sonoran.signs.delete` | Remove signs | | `sonoran.signs.admin` | All actions, including the full controller and refresh tools | For administrators, add this to `server.cfg` using your server's existing staff group: ```cfg theme={null} add_ace group.admin sonoran.signs.admin allow ``` For a group that should use the visual editor without placing or deleting signs: ```cfg theme={null} add_ace group.dot sonoran.signs.set allow ``` These examples grant access to groups; players must already belong to the chosen group. `set` is broader than text-only access: it includes the visual editor's settings. Grant both `set` and `edit` when a group also needs the separate menu settings and repositioning tools. Administrator access does not bypass the distance requirement for in-game saves. ## QBCore or ESX Set `Config.PermissionMode = 'qb'` or `'esx'`, then review `Config.QBJobs` or `Config.ESXJobs`. * A number allows that job grade and higher: `police = 3`. * A list allows only those exact grades: `dot = { 0, 2 }`. Matching jobs receive full sign-management access, including administrator tools. Start the framework before Sonoran Street Signs. ## Standalone Set `Config.PermissionMode = 'standalone'` and add allowed player identifiers to `Config.StandaloneAllowed`: ```lua theme={null} Config.StandaloneAllowed = { ['license:REPLACE_WITH_PLAYER_LICENSE'] = true } ``` Allowed players receive full management access. A sign's original creator can also edit its content and settings. ## Sonoran CAD CAD access is assigned separately from in-game permissions. Give the appropriate CAD roles access to both **Sonoran Street Signs** controllers: the overview and individual Live Map editor. See [Integrations and Webhooks](/store/street-signs/integrations-and-webhooks). # Traffic Engine Source: https://docs.sonoransoftware.com/store/traffic-engine Traffic Engine is a customizable traffic management script that creates realistic roadway activity through traffic zones, rush-hour patterns, breakdowns, roadway debris, and emergency responses. > [!WARNING] > > Traffic Engine is **not yet available to the public** and is under private testing. > > Stay tuned for the release, coming soon! ## What is Traffic Engine? Traffic Engine is a customizable traffic management script that creates realistic roadway activity through traffic zones, rush-hour patterns, breakdowns, roadway debris, and emergency response scenarios, making servers feel more active and roleplay-driven. With Traffic Engine, you can: * Control traffic density by area * Simulate rush-hour traffic patterns * Generate disabled vehicles and breakdowns * Spawn roadway debris events * Dispatch emergency response vehicles * Create custom traffic regions and zones * Manage overall traffic and AI pedestrian behavior across the map ### Vehicle Breakdowns > [accordion] Breakdowns > > Vehicle breakdowns spawn across the map at configurable locations. When a vehicle breakdown occurs nearby traffic slows down, navigates around, and AI pedestrians simulate a breakdown scene. ### Emergency Responses > [accordion] Emergency Responses > > In addition to traffic breakdowns, configurable emergency services like fire and EMS can be dispatched to the scene for further realism. ### Road Debris > [accordion] Road Debris > > Road debris spawn across the map at configurable locations. These debris pose a hazard to surrounding traffic, slowing them down. ## Configure and Use Traffic Engine Ready to get started? View our documentation on configuration and usage: > [card] [Getting Started](/store/traffic-engine/getting-started) # Advanced Documentation Source: https://docs.sonoransoftware.com/store/traffic-engine/advanced-documentation View developer exports, events, and other integration options with Traffic Engine. Will be updated as time goes on. * Exports * Events * To change EMS vehicles for Police, Ambulance and Firetrucks are found in the config.lua to change EMS responses at breakdowns. ```lua theme={null} responseVehicles = { police = { model = 'police', pedModel = 's_m_y_cop_01', maxPeds = 2 }, ambulance = { model = 'ambulance', pedModel = 's_m_y_autopsy_01', maxPeds = 4 }, firetruk = { model = 'firetruk', pedModel = 's_m_y_fireman_01', maxPeds = 3 } ``` # Getting Started Source: https://docs.sonoransoftware.com/store/traffic-engine/getting-started Get started with configuring Traffic Engine for your community. ## Installation > [accordion] Step 1: Install the Resource > > Place the Traffic Engine resource into your server's resources folder. > > Example: > > ``` > resources/[trafficengine]/sonoran-trafficengine > > ``` > > * ![](https://docs-assets.sonoransoftware.com/sha256/20/20149d3db9e0cafd3ce4b34c2541d471d945f0f6ee04e195e96c40cd9f3c6034.png) > [accordion] Step 2: Ensure the Resource > > Ensure and start Traffic Engine to your server's `server.cfg` file. > > ``` > ensure sonoran-trafficengine > ``` > > * ![](https://docs-assets.sonoransoftware.com/sha256/8b/8b2855a911f7e40ad0ecfd76e723c4ed041617998f50852f2bb0526a9f6244b3.png) > [accordion] Step 3: Configure Permissions > > Traffic Engine uses ACE permissions for administrative access. > > Add the following permission to your server configuration: > > ``` > add_ace group.admin trafficengine.admin allow > ``` > > Example: > > ``` > add_principal identifier.fivem:123456 group.admin > add_ace group.admin trafficengine.admin allow > ``` ## Traffic Engine Menu > [accordion] Opening Traffic Engine > > Administrators can access Traffic Engine in-game using: > > ``` > /trafficengine > ``` > > This command opens the Traffic Engine administrative toolset. > > ![](https://docs-assets.sonoransoftware.com/sha256/a4/a48ec77858cdd78eebbc9685cf53a7e3a4a5f33a396e095d45520d97416fcad6.png) > > This menu allows for the creation of [regions](/store/traffic-engine/getting-started#region-creation), [zones](/store/traffic-engine/getting-started#zone-creation), [breakdowns](/store/traffic-engine/getting-started#breakdowns), and [debris](/store/traffic-engine/getting-started#debris) management. ## Region and Zone Management > [accordion] What are Regions? > > **Regions** > > A region represents a large section of the map and acts as the parent for all traffic behavior within that area. > > **Example Regions:** > > * City Region: `Los Santos` > * County Region: `Blaine County` > * Rural Region: `Paleto Bay` > [accordion] What are Zones? > > Zones are smaller areas inside a region. > > Examples: > > * Downtown Los Santos > * Interstate 1 > * Airport Access Road > * Mirror Park > > Zones allow you to override regional settings and create unique traffic behavior in specific locations. > > For example: > > | Area | Morning/Evening Rush Hour Density Value 1-3 | > | - | - | > | Los Santos Region | 3 | > | Legion Square Zone | 2 | > [accordion] Region Creation > > To create a region: > > 1. [Open the menu](/store/traffic-engine/getting-started#traffic-engine-menu) with `/trafficengine` > 2. Select **Create Category** > **Region** > 3. Configure the region's name and rush hour settings: > > Morning Rush Multiplier > > * How dense will the traffic in this region become during the morning rush hour time? > * These values can be edited as a baseline in the config.lua as a blanket while the regions in game can have their own values. > > ![](https://docs-assets.sonoransoftware.com/sha256/33/33ec3ff80c6ecdf4fe99e198ef27191abb5eb54f7b1919f0958bbaff17ced169.png) > > Evening Rush Multiplier > > * How dense will the traffic in this region become during the morning rush hour time? > * These values can be edited as a baseline in the config.lua as a blanket while the regions in game can have their own values. As seen as above. > > ![](https://docs-assets.sonoransoftware.com/sha256/8a/8ac7240a5f8b88b7ebe0d59f71d291756b881b1177d14bf3f207343d7759f7ad.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/03/03ef241764cf48d7be007e6c5e28398952e52b91480e1888d42e75138f072e97.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/02/024bcd86dd36fbfb3f9490134372c4159d931879f64898aee3737a5394f18d68.png) > > 4. Place Nodes > > * Add nodes by placing them down by pressing E to draw out your zone. Press Enter to confirm > * Regions are substantially taller and deeper than a zone. > > ![](https://docs-assets.sonoransoftware.com/sha256/d7/d74824cff38560511fe99fff9efe6049349e33e039b09621d467833ed1212c7a.png) > [accordion] Zone Creation > > To create zones inside of the region: > > 1. [Open the menu](/store/traffic-engine/getting-started#traffic-engine-menu) with `/trafficengine` > 2. Select **Create Category** > **Zone** > 3. Configure the zone's settings: > > Breakdown Allowance > > * > > ``` >
> ``` > > Debris Allowance > > * > > ``` >
> ``` > > 4. Place Spawn Zones > > * Configure spawn points for the breakdowns and debris by pressing **E**, to save press **Enter**. > * When blue nodes appear those are temporary locations, you can remove or save their location by going to a new area then press E > > ![](https://docs-assets.sonoransoftware.com/sha256/a0/a0bd62a0181c57c0f5b470b62fc2d0bc9612cae9984852022cd74c58586826fa.png) > [accordion] Region and Zone Deletion > > Delete zones or regions from the in-game menu. > > Note that any changes will be saved automatically, save a backup file if you wish to revert your changes. > > * > > ``` >
> ``` ### Debris > [accordion] Configuring Debris Spawning > > Debris will automatically spawn inside the zone depending on the maximum amount of debris allowance set when [first creating the zone](/store/traffic-engine/getting-started#zone-creation). > > Debris spawn frequency will be based on the `config.Debris` `chance` value. > > Users can also manually spawn debris at a specific location in a zone via the in-game menu. To manually spawn a debris, navigate to **Spawn Category** > **Debris**. > > ![](https://docs-assets.sonoransoftware.com/sha256/b5/b5b602f12a758ff5a3f0c818a772802c4f1d004cef16a1aa8434cdc431213296.png) > > ![](https://docs-assets.sonoransoftware.com/sha256/0e/0e42c337b81e632afbf71811cd2042665ae6fdeea31b1e7a290b6c55c3cb6dcc.png) > > The `Config.Debris` values can be tweaked for further customization. > > ![](https://docs-assets.sonoransoftware.com/sha256/3c/3cda53cd16db640aeced0dd25ed6b2bfb2d07709b63f4f87216ba4675186e67d.png) > > `tickIntervalMs` - How often the breakdown system checks whether it should try to spawn one. > > `spawnCooldownMs` - Cooldown after a successful breakdown before another normal spawn can happen. > > `guaranteedSpawnIntervalMs` - Maximum time allowed without a breakdown before the system forces a guaranteed attempt. > > `eventActiveSeconds` - How long a breakdown stays active before expiring. > > `nodeGracePeriodSeconds` - How long a used breakdown node stays locked before it can be reused. > > `minPlayerDistance` - Minimum distance a player must be from the node for a breakdown to spawn. > > `cleanupTimeMs` - Cleanup timer used to remove the breakdown scene after it expires. > > `cleanupWhenPlayersFar` - If enabled, cleans up breakdowns early when players move far enough away. > > `useRoadBlockingFallback` - If enabled, blocks road pathing around the breakdown when needed. > > `allowPedSpawnWithBreakdown` - If enabled, allows a stranded ped to spawn with the breakdown vehicle. > [accordion] Cleanup Debris > > ![](https://docs-assets.sonoransoftware.com/sha256/c2/c2b93ede11c0fb9a496d08d298082564c2365be522176cdfe4f55c2ea69d0475.png) > > Roadway debris can be cleaned up and removed by interacting and holding **E** on the debris. > > This allows law enforcement, sanitation, DOT, civilians, or anyone else to clear debris from the roadways. ### Breakdowns > [accordion] Vehicle Breakdowns > > Breakdowns will automatically spawn inside the zone depending on the maximum amount of breakdown allowance set when [first creating the zone](/store/traffic-engine/getting-started#zone-creation). > > * ![](https://docs-assets.sonoransoftware.com/sha256/46/466604d7ae3861b552c9249b0e152a14f39cc7a8a010f0068f2211bc592f70bd.png) ![](https://docs-assets.sonoransoftware.com/sha256/b7/b702b265a1a8843b56cce8c189dbd667970869bb48ae3980a602694fb1660679.png) > > Breakdown spawn frequency will be based on the `config.Breakdowns` `chance` value. > > Users can also manually spawn breakdowns at a specific location in a zone via the in-game menu. To manually spawn a breakdown, navigate to **Spawn Category** > **Breakdown**. > > ![](https://docs-assets.sonoransoftware.com/sha256/f4/f4db22e1f1d65d4d950f26856307f1ef31eb713f2e3024bd8364735155074e58.png) > > When a breakdown spawns, it can be one of several severity scenarios. Higher level breakdowns can also spawn [emergency services](/store/traffic-engine/getting-started#emergency-response) that will respond to it. > > Breakdowns slow the speed of traffic substantially, causing traffic jams if players are in the area. > > Config.Breakdowns: > > ``` > enabled = true, > ``` > > Turns the breakdown system on or off. > > ``` > chance = 1.00, > ``` > > Base chance for a breakdown event to occur when the system rolls. > > ``` > chanceIncreasePerMiss = 0.08, > ``` > > Adds 8% to the breakdown chance after each failed roll. > > ``` > rushHourChanceIncreaseBonus = 0.20, > ``` > > Adds an extra 20% chance during configured rush-hour periods. > > ``` > maxActive = 500, > ``` > > Maximum number of active breakdowns allowed server-wide. > > ``` > maxActivePerZone = 10, > ``` > > Maximum number of active breakdowns allowed in a single zone. > > ``` > maxActivePerRegion = 30, > ``` > > Maximum number of active breakdowns allowed in a single region. > > ``` > trafficBlockRadius = 30.0, > ``` > > Distance around the breakdown where AI traffic will react and avoid the scene. ### Emergency Response > [accordion] Breakdown Emergency Response > > When a high level [vehicle breakdown](/store/traffic-engine/getting-started#breakdowns) spawns, fire and EMS vehicles can also spawn nearby for added realism. > > Users can also manually spawn emergency vehicles at a specific location in a zone via the in-game menu. To manually spawn an emergency vehicle, navigate to **Spawn Category** > **Emergency**. Emergency Nodes will show up in blue when manually placed. > > ![](https://docs-assets.sonoransoftware.com/sha256/84/84f8518b08bb09d7017746dc09472986c679ffe8e266f39d73cade869f7d5470.png) ## Calm AI > [!WARNING] > > Traffic Engine will conflict with scripts like **Calm AI** and other traffic management scripts. > > Disable any existing traffic management scripts and use only Traffic Engine for these features. > [accordion] Calm AI Traffic Management > > Many communities use traffic and AI management systems like "Calm AI". These scripts manage the overall traffic density across the map and AI aggressiveness behavior. > > Because Traffic Engine will conflict with any existing Calm AI script, these features are built in. > > Go to config.lua and find this value to apply Override or not depending on what traffic manager you use. > > ```lua theme={null} > Config.CalmAI = { > -- MASTER TOGGLE FOR CALM AI POPULATION OVERRIDES. | BOOLEAN | TRUE OR FALSE > enabled = true, > -- HOW MANY VEHICLES ARE DRIVING AROUND THE MAP. LOWER = LESS MOVING TRAFFIC. | NUMBER | 0.0 TO 3.0 > VehDensity = 0.85, > -- HOW MANY RANDOMLY SPAWNED TRAFFIC VEHICLES ARE AROUND. LOWER = LESS RANDOM TRAFFIC. | NUMBER | 0.0 TO 3.0 > RanVehDensity = 0.65, > -- HOW MANY PARKED CARS ARE AROUND THE MAP. LOWER = FEWER PARKED CARS. | NUMBER | 0.0 TO 3.0 > ParkCarDensity = 0.95, > -- HOW MANY WALKING/STREET AI PEDS ARE AROUND. LOWER = FEWER PEDS. | NUMBER | 0.0 TO 1.0 > PedDensity = 0.75, > -- HOW MANY SCENARIO PEDS ARE RUNNING EMOTES/TASKS. LOWER = FEWER SCENE PEDS. | NUMBER | 0.0 TO 1.0 > ScenePedDensity = 0.35, > -- TRUE DISABLES VANILLA AI DISPATCH. FALSE LEAVES VANILLA DISPATCH ON. | BOOLEAN | TRUE OR FALSE > DispatchDead = true > ``` # Sonoran Studio Source: https://docs.sonoransoftware.com/studio Create realtime Sonoran CAD and Radio overlays for OBS, TikTok LIVE Studio, and Streamlabs. ![](https://docs-assets.sonoransoftware.com/sha256/69/69532c73f3d125b3b4d4d74b858ef4f8f85bae7176bfd1ff5d8902a07362cc23.png) Sonoran Studio turns live Sonoran CAD and Sonoran Radio activity into broadcast-ready overlays for your stream. Complete with widget layout customization for all major streaming platforms, smart lighting integrations, and streamer.bot integrations - Sonoran Studio levels your stream up with immersive content like never before. > [card] [Quickstart](/studio/tutorials/stream-widgets) > > Build and test your first overlay. > [card] [Add to your stream](/studio/tutorials/stream-widgets#4-add-source-to-streaming-app) > > Configure OBS, TikTok LIVE Studio, or Streamlabs. > [card] [Smart lighting](/studio/tutorials/smart-lighting#creating-light-sequences) > > Build multi-frame light sequences for live events. > [card] [Stream automations](/studio/tutorials/stream-automations) > > Connect Sonoran events to Streamer.bot actions. # Developer Documentation Source: https://docs.sonoransoftware.com/studio/developer-documentation/developer-documentation Control Sonoran Studio smart lighting and Streamer.bot from local tools Sonoran Studio Desktop exposes a versioned HTTP API for local games, scripts, stream tools, and automation software. Use it to activate saved lighting scenes, control individual bulbs, play temporary lighting sequences, and invoke Streamer.bot actions. > [!NOTE] > > The API runs in the **Windows and macOS desktop app**, not on `sonoran.studio`. Keep the desktop app open and signed in. Lighting and Streamer.bot control require [Sonoran Studio Pro or Sonoran One](/studio/pricing/pricing). ## Quick start The default base URL is: ``` http://127.0.0.1:9990/api/v1 ``` The port is shown and can be changed at the bottom of the desktop app's Smart Lighting panel. Local requests do not need an API key. Confirm that the API is running: ```bash theme={null} curl.exe http://127.0.0.1:9990/api/v1/status ``` Activate the saved `available` scene: ```bash theme={null} curl.exe --request POST http://127.0.0.1:9990/api/v1/lighting/state ^ --header "Content-Type: application/json" ^ --data "{\"state\":\"available\"}" ``` On macOS, Linux, or a shell other than Windows Command Prompt, use normal multiline shell syntax: ```bash theme={null} curl --request POST http://127.0.0.1:9990/api/v1/lighting/state \ --header 'Content-Type: application/json' \ --data '{"state":"available"}' ``` All `POST` requests must use `Content-Type: application/json`. ## Endpoint reference | Method | Path | Purpose | | - | - | - | | `GET` | `/api/v1` | Discover the API version and endpoint paths | | `GET` | `/api/v1/status` | Read API, entitlement, lighting, and Streamer.bot status | | `GET` | `/api/v1/lighting/states` | List every named lighting state and whether it has a saved sequence | | `POST` | `/api/v1/lighting/state` | Activate a saved lighting state | | `GET` | `/api/v1/lighting/bulbs` | List unique bulbs used by saved scenes | | `POST` | `/api/v1/lighting/bulbs` | Immediately set one or more bulbs to a color | | `POST` | `/api/v1/lighting/sequence` | Start a temporary, finite multi-frame sequence | | `GET` | `/api/v1/streamerbot/actions` | List enabled actions reported by Streamer.bot | | `POST` | `/api/v1/streamerbot/actions` | Invoke any Streamer.bot action by ID or name | | `POST` | `/api/v1/streamerbot/events` | Invoke the action mapped to a Sonoran event | | `POST` | `/lighting` | Legacy FiveM-compatible named lighting state endpoint | | `POST` | `/fivem` | Bundled FiveM integration endpoint for gameplay moments | | `POST` | `/lspdfr` | Bundled LSPDFR plugin endpoint for lighting state, gameplay moments, and validated overlay events | Successful JSON responses contain `"ok": true`. Errors contain `"ok": false`, an `error` code, and a human-readable `message`. The unversioned `/fivem` and `/lspdfr` routes are reserved for bundled Sonoran Studio game integrations. Third-party integrations should use the versioned `/api/v1` endpoints; LSPDFR overlay events are accepted only through the signed-in Studio desktop session. ## Status and discovery ### Discover endpoints ```http theme={null} GET /api/v1 ``` This route returns the API name, `apiVersion`, and the paths supported by the installed desktop app. Clients should use it when they need to detect API capabilities. ### Get status ```http theme={null} GET /api/v1/status ``` Example response: ```json theme={null} { "ok": true, "apiVersion": 1, "premium": true, "lighting": { "currentState": "available", "configuredBulbs": 2 }, "streamerBot": { "enabled": true, "connected": true, "version": "1.0.0" } } ``` Discovery and status remain available without a paid entitlement so clients can explain why a control request is unavailable. ## Lighting states ### List states ```http theme={null} GET /api/v1/lighting/states ``` Each result includes the API `state`, display `label`, saved frame count, and whether at least one saved frame contains a bulb. ### Activate a saved state ```http theme={null} POST /api/v1/lighting/state Content-Type: application/json { "state": "panic" } ``` Supported state values are: ``` restore, lights, panic, unavailable, available, busy, enroute, onscene, left, right, hazard, erlc_off, erlc_cruise, erlc_rear, erlc_full, erlc_left, erlc_hazard, erlc_right, erlc_pattern, erlc_left_alley, erlc_right_alley, erlc_take_down, erlc_spot_light ``` The desktop app plays the sequence saved for that state. Multi-frame saved scenes continue looping until another state is activated. `panic` has priority: while it is active, other named states return HTTP `409` until `restore` is sent. ## Bulbs ### List configured bulbs ```http theme={null} GET /api/v1/lighting/bulbs ``` The response contains each unique bulb used in at least one saved scene. Credentials are never returned. ```json theme={null} { "ok": true, "bulbs": [ { "id": "wyze:AA11BB22", "type": "wyze", "mac": "AA11BB22", "model": "WLPA19C", "nickname": "Desk lamp", "color": "#ff0000", "states": ["available", "panic"] } ] } ``` Use the returned `id` in control and sequence requests. IDs are formed from the provider and device ID, are case-insensitive when supplied, and should otherwise be treated as opaque strings. ### Set configured bulbs ```http theme={null} POST /api/v1/lighting/bulbs Content-Type: application/json { "bulbs": [ { "id": "wyze:AA11BB22", "color": "#0066ff" }, { "id": "philips:4", "color": "rgb(255, 80, 0)" } ] } ``` Omit `color` to use the bulb's saved color. Up to 64 bulbs can be controlled in one request. `#RRGGBB` and `rgb(r, g, b)` colors are accepted; `#000000` turns supported bulbs off. Direct control cancels the currently looping scene and sets the current named state to `restore`. ### Control an ad-hoc bulb descriptor A bulb does not have to appear in a saved scene. Supply its provider descriptor instead of `id`: ```json theme={null} { "bulbs": [ { "type": "govee", "mac": "AA:BB:CC:DD:EE:FF:00:11", "model": "H6008", "nickname": "Shelf", "color": "#00ff88" } ] } ``` The provider must already be connected in the desktop app. `type` can be `wyze`, `philips`, `govee`, or `goveebt`. `mac` is the provider's device identifier rather than necessarily a network MAC address. Wyze and Govee Wi-Fi requests also require the device `model`. Using IDs returned by `GET /lighting/bulbs` is recommended because Studio fills these fields for you. ## Temporary sequences Start a finite sequence with one to 40 frames: ```http theme={null} POST /api/v1/lighting/sequence Content-Type: application/json { "repeat": 3, "frames": [ { "delay": 250, "bulbs": [ { "id": "wyze:AA11BB22", "color": "#ff0000" }, { "id": "philips:4", "color": "#0000ff" } ] }, { "delay": 250, "bulbs": [ { "id": "wyze:AA11BB22", "color": "#0000ff" }, { "id": "philips:4", "color": "#ff0000" } ] } ] } ``` `delay` is the number of milliseconds before the next frame and is clamped to `50`–`60000`. `repeat` is optional, defaults to `1`, and is clamped to `1`–`100`. Each frame can contain up to 64 configured IDs, ad-hoc bulb descriptors, or a mixture of both. The endpoint returns HTTP `202` as soon as Studio accepts the sequence. Playback continues locally. A later state, bulb, or sequence request cancels it. The final colors remain active after the last frame. ## Streamer.bot actions Enable and connect Streamer.bot in Sonoran Studio before using these endpoints. ### List actions ```http theme={null} GET /api/v1/streamerbot/actions ``` The result contains the ID, name, and optional group for every enabled action reported by Streamer.bot: ```json theme={null} { "ok": true, "actions": [ { "id": "9b4d62c1-29b3-4cd5-b80d-a07f7045d08a", "name": "Play pursuit alert", "group": "Sonoran Studio" } ] } ``` ### Invoke any action ```http theme={null} POST /api/v1/streamerbot/actions Content-Type: application/json { "id": "9b4d62c1-29b3-4cd5-b80d-a07f7045d08a", "args": { "source": "custom-game", "unit": "2-Lincoln-14", "priority": 1, "test": false } } ``` Supply `id`, `name`, or both. IDs are safer if action names may change. `args` is optional and is passed to Streamer.bot's `DoAction` request. It can contain up to 50 flat string, finite number, or boolean values; nested objects and arrays are rejected. ### Invoke a mapped Sonoran event Use this endpoint when Sonoran Studio already maps an event to an action: ```http theme={null} POST /api/v1/streamerbot/events Content-Type: application/json { "event": "panic.started", "args": { "panicScope": "self", "unit": "2-Lincoln-14" } } ``` Supported mapped events are: ``` radio.started, radio.ended, unit.status, call.attached, call.changed, call.note, dispatch.notification, panic.started, panic.ended, game.weapon.drawn, game.weapon.holstered, game.player.died, game.player.returned, game.travel.on_foot, game.travel.vehicle, game.travel.aircraft, game.travel.watercraft, game.health.low, game.health.recovered ``` If no action is mapped to the event, Studio returns HTTP `409`. ## Complete client examples ### JavaScript This example uses the built-in `fetch` available in current Node.js versions: ```javascript theme={null} const studioBaseUrl = "http://127.0.0.1:9990/api/v1"; async function studioRequest(path, options = {}) { const response = await fetch(`${studioBaseUrl}${path}`, { ...options, headers: { ...(options.body ? { "content-type": "application/json" } : {}), ...options.headers, }, }); const result = await response.json(); if (!response.ok) { throw new Error(`Sonoran Studio ${response.status}: ${result.message}`); } return result; } const { bulbs } = await studioRequest("/lighting/bulbs"); const desk = bulbs.find((bulb) => bulb.nickname === "Desk lamp"); if (desk) { await studioRequest("/lighting/bulbs", { method: "POST", body: JSON.stringify({ bulbs: [{ id: desk.id, color: "#7f00ff" }] }), }); } ``` ### Python This example uses only Python's standard library: ```python theme={null} import json from urllib.error import HTTPError from urllib.request import Request, urlopen BASE_URL = "http://127.0.0.1:9990/api/v1" def studio_post(path, payload): request = Request( BASE_URL + path, data=json.dumps(payload).encode("utf-8"), headers={"Content-Type": "application/json"}, method="POST", ) try: with urlopen(request, timeout=5) as response: return json.load(response) except HTTPError as error: details = json.load(error) raise RuntimeError( f"Sonoran Studio {error.code}: {details['message']}" ) from error studio_post("/lighting/state", {"state": "enroute"}) ``` ### FiveM Lua ```lua theme={null} local studioUrl = "http://127.0.0.1:9990/api/v1/lighting/state" local function setStudioLighting(state) PerformHttpRequest(studioUrl, function(statusCode, responseBody) if statusCode < 200 or statusCode >= 300 then print(("Sonoran Studio rejected %s: %s"):format(state, responseBody)) end end, "POST", json.encode({ state = state }), { ["Content-Type"] = "application/json" }) end setStudioLighting("lights") ``` ## Legacy lighting endpoint Existing integrations can continue to use: ```http theme={null} POST /lighting Content-Type: application/json { "state": "lights" } ``` The default full URL is `http://127.0.0.1:9990/lighting`. Its state behavior and response codes match `POST /api/v1/lighting/state`. New integrations should use the versioned route. ## LAN access and authentication The server binds only to `127.0.0.1` by default. This is the safest and recommended configuration. To call Studio from another computer on the same trusted network: 1. Enable **Allow LAN control** at the bottom of the desktop Smart Lighting panel. 2. Select **Copy LAN token**. 3. Replace `127.0.0.1` with the Studio computer's private LAN address. 4. Send the token in `X-Sonoran-Token` or as a Bearer token. ```bash theme={null} curl --request POST http://192.168.1.50:9990/api/v1/lighting/state \ --header 'Content-Type: application/json' \ --header 'X-Sonoran-Token: YOUR_PRIVATE_TOKEN' \ --data '{"state":"available"}' ``` ```http theme={null} Authorization: Bearer YOUR_PRIVATE_TOKEN ``` Never put the token in a public repository, browser URL, stream overlay, or client-side webpage. LAN mode does not add TLS; use it only on a trusted private network. Do not expose port `9990` through a router or public firewall. ## Browser and security behavior Native programs and command-line tools do not send an `Origin` header and can call the loopback API normally. Browser JavaScript is accepted only when its page is also served from `localhost`, `127.0.0.1`, or `::1`. Requests from public web origins are rejected to prevent a website from silently controlling local lights or Streamer.bot actions. Request bodies are limited to 256 KiB. Provider credentials stay encrypted in the desktop app and are never accepted by or returned from this API. ## HTTP status codes | Status | Meaning | | - | - | | `200` | Request completed | | `202` | Temporary sequence accepted for local playback | | `400` | Invalid JSON field, state, bulb, sequence, event, or argument | | `403` | Pro entitlement, LAN permission/token, or browser-origin check failed | | `404` | Endpoint does not exist | | `409` | Current state prevents the change or no action is mapped to an event | | `413` | Request body is larger than 256 KiB | | `415` | A `POST` request did not use `application/json` | | `500` | Unexpected desktop error | | `503` | Streamer.bot integration is unavailable | Client code should use the HTTP status and the response's `message`; it should not depend on the exact wording of provider errors. # Download the App Source: https://docs.sonoransoftware.com/studio/downloads Download Sonoran Studio for Windows, macOS, or Linux. ## App Downloads Download our latest desktop apps for additional integrations like [Smart Lighting](/studio/tutorials/smart-lighting) and [Stream Automations](/studio/tutorials/stream-automations)! | Platform | Link | | - | - | | Website | [Visit](https://sonoran.studio) | | Windows Desktop | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=studio\&platform=windows) | | macOS Desktop | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=studio\&platform=macos) | | Linux (AppImage) | [Download](https://sonoran-software.github.io/Sonoran-Desktop-Apps/downloads/?app=studio\&platform=linux) | These desktop downloads follow the latest available release for each platform. ### Linux Download the AppImage, mark it executable in your file manager, and open it to start the app. [Verify the Linux download signature](https://sonoran-software.github.io/Sonoran-Desktop-Apps/signing.html). ## Game Plugins ### [Download the Standalone FiveM Resource](https://github.com/Sonoran-Software/Sonoran-Studio-Releases/releases/download/fivem-latest/Sonoran-Studio-FiveM.zip) Connects FiveM directly to the Studio desktop app without requiring Sonoran CAD. Follow the [FiveM install guide](/studio/tutorials/smart-lighting#fivem). ### [Download the LSPDFR Integration](https://github.com/Sonoran-Software/Sonoran-Studio-Releases/releases/download/lspdfr-latest/Sonoran-Studio-LSPDFR.zip) Requires the Windows app, LSPDFR, and RAGE Plugin Hook. Follow the [LSPDFR install and overlay support guide](/studio/tutorials/smart-lighting#lspdfr). # Pricing Source: https://docs.sonoransoftware.com/studio/pricing/pricing Upgrade your Sonoran Studio to inlock additional integrations, customizations, and more! ## What is included in the free version? Sonoran Studio's free version includes everything you need to get started with customizable widgets for your livestream. ## What does the paid version unlock? Our paid version includes additional items: * Additional customization themes * Branding removal * Smart lighting integration * Streamer.bot integration ## How much is the paid version? Sonoran Studio's paid version has two payment options: ### Personal License Individual streamers can purchase a license for $7.99/mo or $18/quarter. This license unlocks the full Studio for any community. ### Sonoran One Communities with [Sonoran One](https://sonoran.one/) unlock the paid version of Sonoran Studio for all community members, while they're logged into the community's CAD or Radio. Sonoran One is available for $37.50/mo ($112.50 paid upfront for quarterly) or \$50/mo. This includes: * Sonoran CAD Pro * Sonoran CMS Pro * Sonoran Radio Pro * FiveM Hosting * Sonoran Studio Pro for all members * Exclusive Discord DM support # Smart Lights, Outlets & Buttons Source: https://docs.sonoransoftware.com/studio/tutorials/smart-lighting Control RGB lights, smart outlets, and SwitchBot button pressers in each scene frame. > [!NOTE] > > Smart Lighting requires the [Pro version of Sonoran Studio](/studio/pricing/pricing) and the Windows or macOS desktop app. ## What are Smart Lights, Outlets & Buttons? Sonoran Studio controls RGB light color and power, smart outlet on/off state, and SwitchBot Bot actions in each scene frame. With the FiveM, LSPDFR, and ER:LC integrations, you can build custom patterns for emergency lights, hazards, and turn signals. The same realtime Sonoran CAD and Radio events that power Studio widgets can trigger device sequences for transmissions, unit updates, calls, dispatch activity, and panic changes. ## Supported Devices Studio only lists devices that expose the controls required by the selected provider. A product having Wi-Fi, Bluetooth, Matter, Alexa, or Google Home support does **not** by itself guarantee compatibility. > [!WARNING] > > Smart lights are third-party products. Their manufacturers may change or retire cloud and local APIs. Match the exact brand, family, and requirements below before purchasing. Amazon links point to an exact product page when the model could be verified. Links marked **Amazon search** open a model-specific search; confirm the model or family shown below before ordering. As an Amazon Associate, Sonoran Software earns from qualifying purchases. ### Smart Lights > [accordion] Wyze Color > > Wyze connects through the Wyze cloud and requires the four account values shown in Studio. > > #### Setup > > 1. Add each color bulb or lightstrip in the Wyze app and confirm it is online. > 2. Open the [Wyze developer console](https://developer-api-console.wyze.com/#/apikey/view), sign in with the same account, and create an API key. > 3. In Studio, select **Wyze Color** and enter the Wyze email, password, key ID, and API key. > 4. Select **Connect Wyze & find lights**. The credentials are encrypted on this computer; use **Re-login** if they change. > > Supported color bulbs: > > * [Wyze Bulb Color A19, 2-pack](https://www.amazon.com/dp/B08WZ5THJ7?tag=sonoransoftwa-20) > * [Wyze Bulb Color BR30, 2-pack](https://www.amazon.com/dp/B0CJN1FWX7?tag=sonoransoftwa-20) > * [Wyze Light Strip (Amazon search)](https://www.amazon.com/s?k=Wyze+Light+Strip/\&tag=sonoransoftwa-20) > * [Wyze Light Strip Pro](https://www.amazon.com/dp/B09K11GNFP?tag=sonoransoftwa-20) > > Wyze Light Strip and Light Strip Pro are detected by the current integration and receive a single solid RGB color across the strip. Segment and effect control are not supported. Because Wyze does not publish device-control rate limits for this endpoint, use frame delays of **1,000 ms or longer** for the most reliable sequences. > > Official product references: [Bulb Color A19 and BR30](https://support.wyze.com/hc/en-us/articles/360056870611-Wyze-Bulb-Color-Features) and [Light Strip / Light Strip Pro](https://support.wyze.com/hc/en-us/articles/4403317129627-About-Wyze-Light-Strip-and-Wyze-Light-Strip-Pro). > [accordion] Philips Hue > > Philips Hue uses the local Hue Bridge API. A Hue Bridge is required, including for products that can also connect over Bluetooth. Studio supports Hue lights that report full color controls; buy the **White and color ambiance** version, not White or White ambiance. > > #### Setup > > 1. Add the Hue Bridge and color lights in the Hue app and confirm every light works. > 2. Keep the Bridge and Studio desktop app on the same local network. > 3. Press the round link button on top of the Hue Bridge. > 4. In Studio, select **Philips Hue**, leave the optional fields blank, and select **Connect Hue Bridge**. Studio discovers the Bridge and creates a local API username. Advanced users may enter an existing Bridge IP and API username instead. > > Compatible Hue families include color A19/BR30 bulbs, Lightstrip Plus and Gradient lightstrips, Play light bars, Go, Iris, Bloom, and Signe lights when paired to a Hue Bridge. Studio sets one color for the whole light and does not address gradient segments or entertainment areas. > > * [Starter kit with Hue Bridge and color bulbs](https://www.amazon.com/dp/B09BSHFLD9?tag=sonoransoftwa-20) > * [Single color bulb](https://www.amazon.com/dp/B0FMGTPGGT?tag=sonoransoftwa-20) > * [Color bulb 4-pack](https://www.amazon.com/dp/B0FMH5C2CB?tag=sonoransoftwa-20) > * [Hue Lightstrip Plus base kit](https://www.amazon.com/dp/B08CKJWSFS?tag=sonoransoftwa-20) > * [White and color ambiance BR30 (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+White+and+Color+Ambiance+BR30/\&tag=sonoransoftwa-20) > * [Gradient lightstrips (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+Gradient+Lightstrip/\&tag=sonoransoftwa-20) > * [Play light bars (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+Play+Light+Bar/\&tag=sonoransoftwa-20) > * [Hue Go (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+Go/\&tag=sonoransoftwa-20) > * [Hue Iris (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+Iris/\&tag=sonoransoftwa-20) > * [Hue Bloom (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+Bloom/\&tag=sonoransoftwa-20) > * [Hue Signe (Amazon search)](https://www.amazon.com/s?k=Philips+Hue+Signe/\&tag=sonoransoftwa-20) > > The Hue API recommends approximately **10 light commands per second**. Studio now queues Bridge writes at 100 ms intervals; use frame delays of at least **100 ms**, and longer delays for large groups. See the official [Hue rate-limit guidance](https://developers.meethue.com/support/) and [Hue Bridge overview](https://www.philips-hue.com/en-us/explore-hue/faq/controls/what-is-the-hue-bridge). > [accordion] Govee Wi-Fi > > Govee connects through the official cloud API and requires a [Govee API key](https://developer.govee.com/docs/getting-started). Studio only displays devices for which Govee reports both `powerSwitch` and `colorRgb`. This capability check is more reliable than assuming every product in a family supports the API. > > #### Setup > > 1. Add every light in the Govee Home app and confirm it is online over Wi-Fi. Bluetooth-only products cannot use this connection. > 2. Sign in to the [Govee developer portal](https://developer.govee.com/) with the account that owns the lights and request an API key. > 3. In Studio, select **Govee Wi-Fi**, paste the API key, and select **Connect Govee & find lights**. > 4. Studio lists only devices whose API capabilities include both RGB color and power control, then loads the built-in scenes, DIY scenes, and snapshots Govee exposes for each compatible light. > > API-verified examples from Govee's [official supported-model list](https://developer.govee.com/docs/support-product-model): > > * H6008 A19 bulb — [4-pack on Amazon](https://www.amazon.com/dp/B09B7NQT2K?tag=sonoransoftwa-20) > * H605C Envisual TV Backlight T2 — [75–85 inch kit on Amazon](https://www.amazon.com/dp/B0BCQBVSDT?tag=sonoransoftwa-20) > * H607C Floor Lamp 2 — [Amazon](https://www.amazon.com/dp/B0CTH2QF23?tag=sonoransoftwa-20) > * H6062 Glide RGBIC 3D Wall Light — [Amazon](https://www.amazon.com/dp/B091L21GZK?tag=sonoransoftwa-20) > * H7055 Outdoor Pathway Lights — [Amazon search](https://www.amazon.com/s?k=Govee+H7055+Outdoor+Pathway+Lights/\&tag=sonoransoftwa-20) > > Many other Govee Wi-Fi products may appear automatically when the API reports both required capabilities. Bluetooth-only products are not supported. Scene availability varies by model, firmware, and the capabilities Govee exposes for that specific light. Lights without reported scene capabilities continue to use RGB color. RGBIC segment layouts, DreamView, music effects, and Govee device groups are not controlled. > > Create and edit custom effects in the **Govee Home** app. Re-scan Govee in Studio after changing them. The frame editor displays a **Govee scenes** area containing the named built-in scenes, DIY scenes, and snapshots returned for each light. Select a scene card to add that light and scene to the active frame; select it again to remove it from the frame. > > Govee scenes are per-device rather than account-level groups. Studio retrieves built-in scenes and DIY scenes through Govee's official [scene endpoints](https://developer.govee.com/reference/get-light-scene), preserves the exact capability type, instance, and value returned for that light, and sends that tuple through the [device-control API](https://developer.govee.com/reference/control-you-devices). This is important because Govee models can expose DIY scenes under different capability types. > > Activating a scene powers the light on and then applies the selected effect. Govee does not expose a separate scene-off command. To replace an active effect, use another scene or a custom color in a later frame. Removing a scene card from a frame means Studio sends no command for that light during the frame; it does not turn the light off. > > Govee permits **2 control requests per second per device** and **12 per second per account**. Turning a light on with a new color or scene requires two requests. Studio queues requests at 500 ms per device and 84 ms per account; use frame delays of **1,000 ms or longer** for cloud reliability. > [accordion] Nanoleaf > > Nanoleaf uses its local OpenAPI on port `16021`; no cloud account or hub is required. Enter the light's IP address or local hostname in Studio. In the Nanoleaf app, choose **Connect to API**, or hold the controller power button for 5–7 seconds, then select **Pair & find Nanoleaf** within 30 seconds. > > #### Setup > > 1. Put the Nanoleaf device and Studio desktop app on the same local network, then find the device IP in the Nanoleaf app or your router. > 2. Open the pairing window by choosing **Connect to API** in the Nanoleaf app or holding the controller power button for 5–7 seconds. > 3. In Studio, select **Nanoleaf**, enter the IP address or local hostname, and leave the token blank for first-time pairing. > 4. Within 30 seconds, select **Pair & find Nanoleaf**. Studio saves the returned local token; an existing token may be pasted when reconnecting. > > Studio validates that the device reports RGB hue and saturation controls before adding it. Supported RGB families documented by Nanoleaf include: > > * [Shapes](https://www.amazon.com/s?k=Nanoleaf+Shapes/\&tag=sonoransoftwa-20), [Canvas](https://www.amazon.com/s?k=Nanoleaf+Canvas/\&tag=sonoransoftwa-20), [Lines](https://www.amazon.com/s?k=Nanoleaf+Lines/\&tag=sonoransoftwa-20), [Light Panels](https://www.amazon.com/s?k=Nanoleaf+Light+Panels/\&tag=sonoransoftwa-20), and [Skylight](https://www.amazon.com/s?k=Nanoleaf+Skylight/\&tag=sonoransoftwa-20) (Amazon searches) > * Holiday String Lights NL71K1/NL71K2 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL71K1+NL71K2/\&tag=sonoransoftwa-20) > * Indoor HD Lightstrip NL72K1 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL72K1/\&tag=sonoransoftwa-20) > * Indoor Lightstrip NL72K3 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL72K3/\&tag=sonoransoftwa-20) > * Floor Lamp NL72K4 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL72K4/\&tag=sonoransoftwa-20) > * Rope Lights NL72K6 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL72K6/\&tag=sonoransoftwa-20) > * Outdoor String Lights NL73K1 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL73K1/\&tag=sonoransoftwa-20) > * Permanent Outdoor Lights NL73K3 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL73K3/\&tag=sonoransoftwa-20) > * Wi-Fi A19 bulb NL75K1 — [Amazon search](https://www.amazon.com/s?k=Nanoleaf+NL75K1/\&tag=sonoransoftwa-20) > > Elements panels are not listed because they do not expose the RGB controls Studio requires. Studio controls one solid color for the entire device; panel layouts, per-panel colors, and effects are not controlled. > > Nanoleaf's official OpenAPI recommends no more than **10 updates per second**. Studio enforces a 100 ms interval per device. See the official [OpenAPI overview](https://nanoleaf.atlassian.net/wiki/spaces/nlapid/overview), [Light Panels OpenAPI](https://nanoleaf.atlassian.net/wiki/spaces/NOAD1/pages/2789310530), and [Matter Wi-Fi OpenAPI model list](https://nanoleaf.atlassian.net/wiki/spaces/nlapid/pages/2296381472/Nanoleaf%2BMatter%2BWiFi%2BEssentials%2BOpen%2BAPI%2BDocumentation). > [accordion] LIFX > > LIFX connects directly over the official local LAN protocol. No LIFX cloud token, account sign-in, or hub is required. Keep the Studio desktop app and the lights on the same local network, then select **Scan local network for LIFX**. > > #### Setup > > 1. Add the color lights in the LIFX app, update their firmware, and confirm they can display RGB colors. > 2. Keep the lights and Studio desktop app on the same local network. Guest Wi-Fi or client isolation must be disabled between them. > 3. Allow local UDP port `56700` through the computer firewall if discovery traffic is restricted. > 4. In Studio, select **LIFX** and then **Scan local network for LIFX**. No account, hub, address, or token is required. > > Studio queries the vendor and product ID of every responding device and checks it against LIFX's official [machine-readable product registry](https://github.com/LIFX/products). A device is listed only when that exact product declares `color: true`. This covers the RGB versions of LIFX Color A19/A21/BR30/GU10 bulbs, Mini Color, Clean, Downlight, Z/Lightstrip, Beam, Tile, Candle Color, Neon, String, Ceiling, Spot, Path, PAR38, Tube, Luna, Mirror, and RGB outdoor families in the current registry. > > Amazon links for registry-backed RGB families: > > * [Color A19 1100-lumen, 2-pack](https://www.amazon.com/dp/B08FWH238Y?tag=sonoransoftwa-20) > * [Color A21](https://www.amazon.com/s?k=LIFX+Color+A21/\&tag=sonoransoftwa-20), [Color BR30](https://www.amazon.com/s?k=LIFX+Color+BR30/\&tag=sonoransoftwa-20), and [Color GU10](https://www.amazon.com/s?k=LIFX+Color+GU10/\&tag=sonoransoftwa-20) (Amazon searches) > * [Mini Color](https://www.amazon.com/s?k=LIFX+Mini+Color/\&tag=sonoransoftwa-20), [Clean](https://www.amazon.com/s?k=LIFX+Clean/\&tag=sonoransoftwa-20), and [Color Downlight](https://www.amazon.com/s?k=LIFX+Color+Downlight/\&tag=sonoransoftwa-20) (Amazon searches) > * [Z/Lightstrip](https://www.amazon.com/s?k=LIFX+Z+Lightstrip/\&tag=sonoransoftwa-20), [Beam](https://www.amazon.com/s?k=LIFX+Beam/\&tag=sonoransoftwa-20), and [Tile](https://www.amazon.com/s?k=LIFX+Tile/\&tag=sonoransoftwa-20) (Amazon searches) > * [Candle Color](https://www.amazon.com/s?k=LIFX+Candle+Color/\&tag=sonoransoftwa-20), [Neon](https://www.amazon.com/s?k=LIFX+Neon/\&tag=sonoransoftwa-20), and [String Lights](https://www.amazon.com/s?k=LIFX+String+Lights/\&tag=sonoransoftwa-20) (Amazon searches) > * [Ceiling](https://www.amazon.com/s?k=LIFX+Ceiling/\&tag=sonoransoftwa-20), [Spot](https://www.amazon.com/s?k=LIFX+Spot/\&tag=sonoransoftwa-20), and [Path](https://www.amazon.com/s?k=LIFX+Path/\&tag=sonoransoftwa-20) (Amazon searches) > * [Color PAR38](https://www.amazon.com/s?k=LIFX+Color+PAR38/\&tag=sonoransoftwa-20), [Tube](https://www.amazon.com/s?k=LIFX+Tube/\&tag=sonoransoftwa-20), and [Luna](https://www.amazon.com/s?k=LIFX+Luna/\&tag=sonoransoftwa-20) (Amazon searches) > * [Mirror](https://www.amazon.com/s?k=LIFX+Mirror/\&tag=sonoransoftwa-20) and [RGB outdoor families](https://www.amazon.com/s?k=LIFX+Outdoor+Color/\&tag=sonoransoftwa-20) (Amazon searches) > > LIFX White, White-to-Warm, Day & Dusk, Filament, and Switch products are excluded because they do not declare RGB color capability. Unknown product IDs also remain hidden until their capabilities can be verified. Studio applies one solid color to the entire light; it does not address individual Beam, Tile, Candle, String, or lightstrip zones. > > LIFX discovery and control use UDP port `56700`. Studio requests an acknowledgement for every command and retries a missing acknowledgement once. LIFX warns clients against excessive LAN message rates but does not publish a numeric request ceiling, so Studio serializes commands per light. Start with frame delays of **100 ms or longer** and increase the delay if Wi-Fi is congested. See the official [LAN discovery guide](https://lan.developer.lifx.com/docs/communicating-with-device), [SetColor/SetPower messages](https://lan.developer.lifx.com/docs/changing-a-device), and [packet header specification](https://lan.developer.lifx.com/docs/packet-contents). > [accordion] WLED > > WLED connects directly to each controller's local JSON API. Studio requires WLED `0.13` or newer so it can verify that at least one segment reports RGB capability. Enter the controller's IP address or local hostname; separate multiple controllers with commas. > > #### Setup > > 1. Install WLED `0.13` or newer, configure the controller and LED output, and verify RGB colors from the WLED web interface. > 2. Open the WLED Info screen, WLED app, or router and copy the controller's IP address or `.local` hostname. > 3. In Studio, select **WLED** and enter the address. Separate multiple controllers with commas. > 4. Select **Connect WLED controller**. Studio verifies RGB capability and represents each controller as one light controlling all configured segments. > > Studio treats each WLED controller as one light. A color update switches every configured segment to the Solid effect and applies the same RGB color and full brightness across those segments. Existing per-segment colors and effects are intentionally replaced while a Studio scene is active. > > * [WLED pre-installed Wi-Fi controller for 5V WS2811/WS2812B LEDs](https://www.amazon.com/dp/B0BPYR92YP?tag=sonoransoftwa-20) > > The linked controller appears on WLED's official [compatible-controller list](https://kno.wled.ge/basics/compatible-controllers/) under Domestic Automation. WLED supports many other pre-flashed and DIY controllers, but the controller, power supply, strip voltage, data signaling, fusing, and wiring must all match. Follow WLED's hardware guidance rather than treating every product whose listing says “WLED” as equivalent. > > The WLED API explicitly advises clients not to make requests in parallel. Studio puts all WLED discovery and control requests through one sequential queue and uses the one-call `tt: 0` transition for immediate changes. Use frame delays of **100 ms or longer** for reliable animations, especially with several controllers. See the official [WLED JSON API](https://kno.wled.ge/interfaces/json-api/) and [getting-started guide](https://kno.wled.ge/basics/getting-started/). ### Smart Outlets > [accordion] Wyze > > Wyze connects through the cloud. Studio supports Wyze Plug and each independently exposed outlet on Wyze Outdoor Plug. Use the same Wyze email, password, key ID, and API key described above. > > * [Wyze Plug](https://www.amazon.com/dp/B07XZT24B8?tag=sonoransoftwa-20) > * [Wyze Plug Outdoor](https://www.amazon.com/dp/B08NXY7WWX?tag=sonoransoftwa-20) > [accordion] Govee > > Govee connects through the official cloud API key. Supported outlet models are H5080, H5081, H5082, H5083, and H5086. > > * [Govee Smart Plug (Wi-Fi + Bluetooth)](https://www.amazon.com/dp/B0948ZZZJP?tag=sonoransoftwa-20) > * [Govee Dual Smart Plug](https://www.amazon.com/dp/B095KG3M4Y?tag=sonoransoftwa-20) > * [Govee Smart Plug with Energy Monitoring](https://www.amazon.com/dp/B0CK28Y67D?tag=sonoransoftwa-20) > [accordion] Shelly > > Shelly works locally with Shelly Plus Plug US and Gen1, Gen2+, Gen3, or Gen4 devices that expose relay or switch outputs. Studio discovers Gen2+ devices through local mDNS. Enter an IP address or hostname for Gen1 devices. No hub or cloud connection is required. Device authentication must be disabled. > > * [Shelly Plus Plug US](https://www.amazon.com/dp/B096W3ZZDD?tag=sonoransoftwa-20) > [accordion] SwitchBot > > SwitchBot supports Plug, Plug Mini (US), Plug Mini (JP), and Plug Mini (EU). It uses official OpenAPI v1.1. Enter the token and secret from **Developer Options**. An internet connection is required. > > * [SwitchBot Plug Mini (US)](https://www.amazon.com/dp/B0DSJK8B73?tag=sonoransoftwa-20) ### Button Pressers > [accordion] SwitchBot Bot > > Studio supports the SwitchBot Bot through SwitchBot's official OpenAPI v1.1. Configure the Bot's mechanical movement and operating mode in the **SwitchBot app**. The Bot must be connected through a SwitchBot Hub with Cloud Services enabled so it appears through the API. > > 1. In the SwitchBot app, add the Bot, connect it to a Hub, and configure it as **Press Mode**, **Switch Mode**, or **Custom Mode**. > 2. Enable Cloud Services or Third-party Services for the Bot. > 3. Obtain the account token and secret from **Developer Options** in the SwitchBot app. > 4. In Studio, open **Other**, select **SwitchBot**, enter the token and secret, and select **Connect SwitchBot & find Bots**. > > Studio reads the operating mode reported by each Bot before displaying it. Press Mode and Custom Mode provide a **Press** action. Switch Mode provides separate **On** and **Off** actions. If Studio cannot verify a Bot's mode, it does not list that Bot instead of risking an incorrect command. > > Select the Bot and action for any frame just like a light or outlet. Studio sends the documented `press`, `turnOn`, or `turnOff` command when that frame runs. See SwitchBot's official [Bot API reference](https://github.com/OpenWonderLabs/SwitchBotAPI/blob/main/devices/others/bot.md). ## Provider Timing Reference | Provider | Connection | Studio guard | Recommended frame delay | | - | - | - | - | | Wyze | Cloud | One combined action per light | 1,000 ms or longer | | Philips Hue | Local Hue Bridge | 100 ms between Bridge writes | 100 ms or longer; increase for large groups | | Govee | Cloud | 500 ms/device and 84 ms/account | 1,000 ms or longer | | Nanoleaf | Local network | 100 ms/device | 100 ms or longer | | LIFX | Local UDP | Acknowledged commands, one queue per light | 100 ms or longer | | WLED | Local HTTP | One global sequential request queue | 100 ms or longer | | Shelly | Local HTTP | Direct on/off per outlet | 100 ms or longer | | SwitchBot | Cloud | Signed OpenAPI command per plug or Bot; 10,000 API calls/day account limit | 1,000 ms or longer | ## Creating Device Sequences Device sequences tell Studio which lights, outlets, or button pressers to use and how long each frame remains active. Each game or CAD/Radio widget event has its own saved sequence. ### Choose a game source Open **Smart Lighting** in the Sonoran Studio desktop app. Under **Choose your game**, select **FiveM**, **LSPDFR**, or **ER:LC**. The scene editor shows the persistent lighting states supported by that game, FiveM/LSPDFR gameplay moments when available, and the CAD and Radio widget events. ### Connect your devices Under **Connect devices**, choose your provider and follow the connection steps. After Studio discovers the devices, they are available in every scene and frame. ### Select the event Under **Build event scenes**, use **Scene event** to select the event family you want to configure, such as **Emergency lights**, **Health threshold**, **Transmission started**, **Status changed**, or **Panic changed**. When a family has multiple choices, Studio adds a second selector beside it. Every final event choice saves a separate sequence. The grouped choices are: * **Status changed:** Any status, Available, Unavailable, Busy, En route, or On scene. * **Transmission started / ended:** My transmission, Other user transmission, or Any transmission. A configured scoped scene takes priority; otherwise Studio falls back to the matching Any transmission scene. * **Radio emergency call:** Ringing or Talking. * **Panic changed:** Started or Ended / cleared. * **Health threshold:** Drops below or Recovers above, with the 0–100 percentage box beside the selector. **No active game event** is the fallback scene used when FiveM, LSPDFR, or ER:LC is not reporting another active game-lighting state. **Panic active (continuous)** is the persistent panic scene; **Panic changed** contains the optional one-shot start and clear scenes. ### Build the frames The first frame is created for you. Select smart lights with colors and power, smart outlets with on/off state, or SwitchBot Bots with their available Press, On, or Off action. When compatible Govee lights report scenes, a separate **Govee scenes** area appears below the device list. Select a built-in scene, DIY scene, or snapshot card to assign that specific light and effect to the active frame. Then set **Delay to next frame** in milliseconds. Select **Add frame** to copy the selected frame, then change its devices, colors, states, or delay. Drag frame cards to reorder them. A sequence can contain up to 40 frames, and each frame delay can be between 50 and 60,000 milliseconds. ![The Sonoran Studio lighting sequence editor showing three frames for a panic event](https://docs-assets.sonoransoftware.com/sha256/79/79efbaea6afc559d3198947af9cda005c7052b297ec9b19ea296f81c350a50c1.png) *A three-frame panic sequence using different colors and lights in each frame.* Each frame can control a different set of devices. A light, outlet, or Bot not selected in a frame remains unchanged during that frame. ![The Sonoran Studio frame editor with light selection, colors, and delay controls](https://docs-assets.sonoransoftware.com/sha256/08/0862101f75cd4b50283491352c52d217d61352113bc182728cf12f9710aa2b4b.png) *Select the lights and colors for the active frame, then set the time until the next frame.* ### Test and save Changes save automatically on this computer. Select **Test once** to play Frame 1 through the final frame one time before going live. When a live game or unit-status state occurs, Studio loops that saved sequence until another state takes over. A gameplay-moment or CAD/Radio widget-event sequence plays once, holding each frame for its configured delay, and then resumes the newest active game or unit-status scene. A newer one-shot event replaces one already playing, while active panic lighting blocks unrelated events. Testing, direct light control, or another sequence cancels the sequence currently playing. ## FiveM and LSPDFR Gameplay Moments FiveM and LSPDFR report the same native-backed gameplay moments. Configure them under **FiveM & LSPDFR moments** in the scene selector. Each scene is optional and plays once when the transition occurs. | Scene event | When it runs | | - | - | | Weapon drawn | The player changes from unarmed to armed | | Weapon holstered | The player changes from armed to unarmed; changing weapons emits holstered, then drawn | | Player died | The player entity changes to dead | | Player revived | The player entity changes from dead to alive | | Travel · On foot | The player leaves a vehicle | | Travel · Vehicle | The player enters a road or other non-air/non-water vehicle class | | Travel · Aircraft | The player enters a helicopter or plane | | Travel · Watercraft | The player enters a boat | | Health threshold > Drops below | Usable player health crosses below the percentage you set | | Health threshold > Recovers above | After low health, usable health crosses above the percentage you set | Set each percentage in the **Threshold** box shown beside the Health threshold event, or under **Choose your game > Health event thresholds** after selecting FiveM or LSPDFR. The defaults are **Drops below 35%** and **Recovers above 50%**. Studio requires the recovery value to be above the lower value, creating a gap that prevents rapid switching near one boundary. These settings apply to both smart-device scenes and Streamer.bot actions. **Player revived** deliberately covers both respawns and framework revives. GTA's entity natives report dead versus alive, but do not identify which recovery flow a server or mod used. ## CAD and Radio Widget Events The Studio desktop app receives these events through the same authenticated realtime connection used by the overlay widgets. Configure any of them under **CAD & Radio widget events** in the scene selector. | Scene event | When it runs | | - | - | | Transmission started | My, another user's, or any radio transmission begins | | Transmission ended | My, another user's, or any radio transmission ends | | Radio channel changed | Your active Radio channel changes | | Radio emergency call | An emergency call rings or someone talks on it | | Radio tone | A tone plays in your Radio client | | CAD tone | A tone addressed to your signed-in CAD client plays | | Status changed | Any update or the selected CAD status becomes active | | Call attached | You attach to a different CAD call | | Attached call changed | The currently attached call updates | | Call detached | You detach from the active CAD call | | Call note | A dispatch notification is identified as a call note | | Dispatch notification | Any other CAD dispatch notification arrives | | Panic changed | A visible panic starts or ends / clears | Location-only unit updates do not trigger **Status changed > Any status**, preventing routine location refreshes from repeatedly interrupting lighting. **Any status** is a one-shot scene; a named status scene remains active until the unit status changes. Widget-event scenes are optional: an event with no saved frames leaves the current lighting scene unchanged. ## Integrated Games ### FiveM FiveM can connect through the latest Sonoran CAD FiveM resource or through the standalone Sonoran Studio resource. The standalone option does not require a CAD community and sends only to the Studio desktop app on the player's computer. #### Install the standalone resource 1. [Download the standalone FiveM resource](https://github.com/Sonoran-Software/Sonoran-Studio-Releases/releases/download/fivem-latest/Sonoran-Studio-FiveM.zip). 2. Extract the ZIP's `[sonoran_studio]` folder directly into the server's `resources` folder. 3. Add `exec @sonoran_studio/sonoran_studio.cfg` to `server.cfg`. 4. Remove any other line that starts `sonoran_studio`, including `ensure sonoran_studio` or an ensured parent folder. Only use the `exec` line above. 5. Restart the server and keep the Sonoran Studio desktop app open while playing. Do not run the standalone resource alongside the Sonoran CAD FiveM resource; both contain the Studio bridge and would report every event twice. The default desktop port is `9990`. Players using a different local Studio port can run `/setstudioport PORT` in FiveM. Automatic resource updates are enabled by default. Run `sonoranstudio update` in the **server console** to check immediately. If the resource reports an updater permission, helper, or folder-layout error, reinstall the complete ZIP and confirm that `server.cfg` uses only the bundled `exec` line. FiveM scenes include emergency lights, turn signals, hazards, and the gameplay moments listed above. Sonoran CAD unit statuses, calls, Radio activity, and panic events remain available when the player is also signed into the corresponding Sonoran community. ### LSPDFR The Sonoran Studio LSPDFR plugin synchronizes emergency lights, left and right indicators, hazards, officer details, location, and callout activity through RAGE Plugin Hook. The plugin itself only connects to the Studio desktop app on your computer. When you are signed in, the desktop app sends validated overlay events through your authenticated Studio session. > [!NOTE] > > You need LSPDFR, RAGE Plugin Hook, the Sonoran Studio Windows app, and Studio Pro or Sonoran One. #### Install the plugin 1. [Download the LSPDFR integration](https://github.com/Sonoran-Software/Sonoran-Studio-Releases/releases/download/lspdfr-latest/Sonoran-Studio-LSPDFR.zip). 2. Close GTA V and RAGE Plugin Hook. 3. Extract the ZIP into your **Grand Theft Auto V** folder. Confirm this file exists: `Grand Theft Auto V\Plugins\SonoranStudio.LSPDFR.dll`. 4. Open RAGE Plugin Hook settings and enable **Load all plugins on startup**. 5. Open the Sonoran Studio Windows app, go to **Lighting**, and select **LSPDFR**. 6. Start GTA V through RAGE Plugin Hook and launch LSPDFR. Keep Sonoran Studio open while playing. #### Supported lighting and overlay data | Feature | LSPDFR support | | - | - | | Emergency lighting | Emergency lights, left indicator, right indicator, and hazards | | Gameplay moments | Weapon draw/holster, death/return, travel type, and configurable health lower/higher crossings | | Unit HUD | LSPDFR persona name, agency, current street/area, and derived duty status | | Attached Call | A locally generated call ID, callout name, and callout street/area after you accept it | | Dispatch Notification | The callout name, message, and advisory when LSPDFR presents a callout | | Radio Transmission | Not available from the native LSPDFR API | | Panic | Not available from the native LSPDFR API | LSPDFR gameplay moments run the same one-shot scenes as FiveM. Its overlay updates can also run the **Status changed**, **Call attached**, **Call detached**, and **Dispatch notification** event scenes configured in Studio. Studio derives the unit status from the LSPDFR callout lifecycle: **Available** while patrolling, **En Route** after accepting a callout, **On Scene** near the callout position, and **Unavailable** while off duty. LSPDFR does not expose the player's callsign/unit number, a postal code, or a standard call priority/response code through its native API. These fields remain blank or use your configured widget fallback. Set overlay location precision to **Full** to show LSPDFR street and area names; **Postal only** cannot show an LSPDFR location because no postal is available. Callout packs control the metadata they expose. If a pack omits a friendly name, message, advisory, or position, Studio shows the remaining supported fields without inventing the missing value. This support uses LSPDFR's documented callout lifecycle and functions from the [official LSPDFR API project](https://github.com/LMSDev/LSPDFR-API). Gameplay moments use GTA entity, weapon, ped, and vehicle natives through [RAGE Plugin Hook's documented native invocation API](https://ragepluginhook.net/RPH2PreDoc/), cross-checked against the [CitizenFX GTA V native documentation](https://github.com/citizenfx/natives). The callout field and handle patterns are also demonstrated by established open-source integrations including [External Police Computer](https://github.com/jullevistrunz/ExternalPoliceComputer/blob/main/ExternalPoliceComputer/ExternalPoliceComputer/EventListeners/CalloutEvents.cs), [ReportsPlusListener](https://github.com/Guess1m/ReportsPlusListener/blob/master/Utils/Data/EventUtils.cs), and [FirstResponseGPT](https://github.com/NathanWhite-hub/FirstResponse-GPT/blob/master/FirstResponseGPT/Utils/GameUtils.cs). The plugin sends changes only to `127.0.0.1:9990`; it does not connect directly to a game server or expose a public port. If it does not load, open the RAGE Plugin Hook console with **F4** and run `LoadPlugin "SonoranStudio.LSPDFR.dll"`, then check `RagePluginHook.log` for a Sonoran Studio message. ### ER:LC Smart lighting for ER:LC reads the lighting and siren controller in the Roblox window. Sonoran CAD and Radio are not required. Leave the ER:LC ELS controller visible while playing. On macOS, allow Sonoran Studio under **Screen & System Audio Recording** when prompted. Detection remains on your computer; screenshots are never saved or uploaded. # Stream Automations Source: https://docs.sonoransoftware.com/studio/tutorials/stream-automations Hook up widget events to stream automations. Change scenes when a panic is triggered, send a chat message when dispatch information updates, and more! Stream Automations connect live Sonoran CAD, Radio, FiveM, and LSPDFR activity to actions in [Streamer.bot](https://streamer.bot/). A panic can switch an OBS scene, drawing a weapon can play an animation, or a dispatch update can send a chat message without creating a separate integration. > [!NOTE] > > Stream Automations require the [Pro version of Sonoran Studio](/studio/pricing/pricing), the Sonoran Studio desktop app, and Streamer.bot running on the same computer. ## How it works 1. The Studio desktop app receives realtime CAD and Radio events plus native-backed gameplay moments from the FiveM or LSPDFR integration. 2. Studio converts a supported event into a Stream Automation event. 3. If that event has a mapped Streamer.bot action, Studio invokes the action through Streamer.bot's local WebSocket server. 4. Studio includes the event name and any available unit, call, channel, location, priority, or panic data as action arguments. An event mapped to **Do nothing** does not invoke Streamer.bot. Automations run locally, so both desktop applications must remain open. ## Set up Streamer.bot ### Create an action In Streamer.bot, create the action you want Studio to run. Add sub-actions such as changing an OBS scene, playing audio, showing a source, or sending a chat message. Make sure the action is enabled. ### Start the WebSocket server In Streamer.bot, open **Servers/Clients → WebSocket Server** and start the server. The defaults are: | Setting | Default | | - | - | | Address | `127.0.0.1` | | Port | `8080` | | Endpoint | `/` | | Authentication | Off | Enable **Auto Start** if the server should start with Streamer.bot. If authentication is enabled and enforced, enter the same password in Sonoran Studio. See Streamer.bot's [WebSocket server configuration](https://docs.streamer.bot/api/websocket/guide/configuration) for more detail. ### Connect Sonoran Studio 1. Open the Sonoran Studio desktop app and select **Bot**. 2. Enter the WebSocket **Port** and **Endpoint**. Enter the password only if Streamer.bot requires one. 3. Select **Save & connect**. 4. Confirm that Studio reports **Connected** and loads your enabled Streamer.bot actions. Studio only connects to Streamer.bot on the local computer. The password and event mappings are stored locally. ### Map and test events Choose a Streamer.bot action beside each Sonoran event. Select **Test** to invoke that mapping immediately. A test supplies `sonoranEvent`, `test`, `occurredAt`, and the title `Sonoran Studio test`; live event-specific data appears only when the corresponding event actually occurs. ## Supported events | Sonoran event | When it runs | Event value | | - | - | - | | Radio starts | A radio transmission begins | `radio.started` | | Radio ends | The active radio transmission finishes | `radio.ended` | | Emergency call rings | A Radio emergency call begins ringing | `radio.emergency.ringing` | | Emergency call talking | Someone talks on an active Radio emergency call | `radio.emergency.talking` | | Radio tone | A tone plays in your Radio client | `radio.tone` | | CAD tone | A tone addressed to your signed-in CAD client plays | `cad.tone` | | Unit status | Your CAD unit receives a status update | `unit.status` | | Call attached | You attach to a different CAD call | `call.attached` | | Call changed | The active call updates, or you detach from it | `call.changed` | | Call note | A dispatch notification is identified as a call note | `call.note` | | Dispatch update | Any other CAD dispatch notification arrives | `dispatch.notification` | | Panic starts | A panic visible to your Studio overlay activates | `panic.started` | | Panic ends | That visible panic clears | `panic.ended` | | Weapon drawn | The player changes from unarmed to armed | `game.weapon.drawn` | | Weapon holstered | The player changes from armed to unarmed | `game.weapon.holstered` | | Player died | The player entity changes to dead | `game.player.died` | | Player revived | The player entity changes from dead to alive after a respawn or revive | `game.player.returned` | | Travel on foot | The player leaves a vehicle | `game.travel.on_foot` | | Travel in vehicle | The player enters a non-air/non-water vehicle class | `game.travel.vehicle` | | Travel by aircraft | The player enters a helicopter or plane | `game.travel.aircraft` | | Travel by watercraft | The player enters a boat | `game.travel.watercraft` | | Health lower than | Usable health crosses below your configured percentage | `game.health.low` | | Health higher than | After low health, usable health crosses above your configured percentage | `game.health.recovered` | Channel-only changes do not currently invoke a separate automation event. Call updates use **Call changed**, and call-note notifications use **Call note**. Gameplay moments are available from either the [standalone or Sonoran CAD FiveM integration](/studio/tutorials/smart-lighting#fivem) and from the [LSPDFR integration](/studio/tutorials/smart-lighting#lspdfr). Set the two health limits directly beside their Streamer.bot mappings or in the Smart Device scene builder's **Health threshold** event; the defaults are 35% and 50%, and the same limits drive lighting and Streamer.bot. **Player revived** combines respawns and revives because GTA natives expose the dead-to-alive transition, not the recovery system that caused it. ## Action arguments Every live action receives these arguments: | Argument | Description | | - | - | | `sonoranEvent` | The mapped event value shown above | | `occurredAt` | ISO timestamp recorded by Studio | CAD and Radio actions also receive `sonoranSourceEvent`, the original Studio event such as `cad.panic.changed`, and `eventId`, its unique realtime event ID. Gameplay actions receive `sonoranSource` as `fivem` or `lspdfr`. Depending on the moment, they can include `weaponHash`, `health`, `maximumHealth`, `healthPercent`, `healthLowerThan`, `healthHigherThan`, `travelMode`, `vehicleClass`, and `vehicleModel`. Studio also includes the following values when they are available for the event or current overlay state: `communityId`, `serverId`, `unit`, `displayName`, `unitNumber`, `department`, `status`, `location`, `postal`, `callsign`, `channel`, `priority`, `callId`, `title`, `message`, `toneName`, `toneNames`, and `emergencyCall`. Tone actions receive `toneName` for the first tone and `toneNames` for the complete tone sequence when available. Radio emergency-call actions receive `emergencyCall` as `true`. Panic actions additionally receive: | Argument | Value | | - | - | | `panicActive` | `true` for `panic.started`; `false` for `panic.ended` | | `panicScope` | `self` when the panic belongs to the signed-in account; otherwise `community` | Call actions can receive `callAttached`: `true` when a call attaches and `false` when it detaches. Streamer.bot exposes action arguments to sub-actions with `%variable%` syntax. For example, use `%unitNumber%`, `%status%`, or `%sonoranEvent%` in a compatible text field. Open **Actions & Queues → Action History** after a live event to inspect the values supplied to that run. > [!WARNING] > > Optional arguments are omitted when Studio does not have a value. Design actions so missing unit, call, or location data does not cause the automation to fail. ## Troubleshooting ### Studio does not connect * Confirm Streamer.bot is running and its WebSocket server is started. * Verify the port and endpoint match. The defaults are `8080` and `/`. * If authentication is enabled, re-enter the matching password in Studio. * Keep the server address on `127.0.0.1`; Studio intentionally connects only to the local computer. ### An action is missing Studio loads enabled actions reported by Streamer.bot. Enable the action, then select **Reload actions** in Studio. ### A mapped action does not run * Confirm Studio shows **Connected** and the event is not set to **Do nothing**. * Use **Test** beside the mapping. If the test succeeds, wait for the real Sonoran event to inspect its full arguments. * Check **Actions & Queues → Action History** in Streamer.bot for the action result and supplied arguments. * CAD and Radio events require the desktop app to be signed into the same Sonoran account and community producing the activity. FiveM and LSPDFR gameplay moments require their local game integration and the Studio desktop app. ## Advanced integrations Local tools can list or invoke Streamer.bot actions and mapped Sonoran events through the Studio desktop API. See [Developer Documentation](/studio/developer-documentation/developer-documentation#streamerbot-actions). # Stream Widgets Source: https://docs.sonoransoftware.com/studio/tutorials/stream-widgets Add a Sonoran Studio browser source to OBS, TikTok LIVE Studio, or Streamlabs Desktop. ## What are Stream Widgets? Stream Widgets show live data like unit information, radio broadcast notifications, dispatch call data, and more. These are placed on your stream to increase audience engagement. ### Widget Setup After logging into Sonoran Studio, you can customize your canvas layout and widget information. ### Canvas Dimensions Depending on your streaming platform, your canvas size will need to be customized. Typically, vertical streaming like TikTok uses 1080 x 1920 px. Horizontal streams like YouTube and Twitch use 1920 x 1080 px. Customize the size to fit your specific streaming platform. ![](https://docs-assets.sonoransoftware.com/sha256/f4/f49524f8ab9c6909352803389f38e1e796bbed5d41e205d46231fe3788461f3b.png) ### Widget Layouts Customizing your widgets is simple. Toggle on specific widgets, drag them around the canvas, and resize as needed. Additionally when a widget selected, the background colors, font size, icons, and more can be edited. Open **Icons & Sharing** to upload separate icons for CAD widgets, Radio widgets, and the **Unit HUD** bodycam display. Unit HUD icon changes apply only to the bodycam HUD, so the remaining CAD widgets can keep their own icon. For temporary notification widgets, select **TEST** to show the example in both the canvas editor and every connected stream browser source using that layout. Keep your OBS, TikTok LIVE Studio, or Streamlabs browser source active while testing. Select **HIDE** to remove the editor preview; the live example closes automatically according to the widget's notification duration. Studio includes separate temporary **Radio Tone** and **CAD Tone** widgets. Radio Tone appears when a tone is played to your Radio client. CAD Tone appears when your signed-in CAD client is one of the recipients selected for a tone. Each widget has its own position, styling, animation, display duration, and **TEST** control, so a CAD tone and Radio tone do not replace one another. ![](https://docs-assets.sonoransoftware.com/sha256/48/4825044782986688ca920432a084aedb8ff7efd6673169574f037fa97ccbf2c5.png) ![](https://docs-assets.sonoransoftware.com/sha256/09/0920374cebf479915066dea5ee12f43b99ccb451452082f6f961529f8b4fabe9.png) ### LSPDFR Widget Support The [Sonoran Studio LSPDFR plugin](/studio/tutorials/smart-lighting#lspdfr) can populate three overlay widgets without a Sonoran CAD community: | Widget | Data available from LSPDFR | | - | - | | Unit HUD | Player persona name, agency, derived status, and current GTA street/area | | Attached Call | Generated session call ID, callout name, and callout street/area after acceptance | | Dispatch Notification | Callout name, message, and advisory when a callout is displayed | | Radio Transmission | Not supported by LSPDFR | | Panic | Not supported by LSPDFR | LSPDFR does not natively provide a callsign/unit number, postal, call priority/code, radio activity, or panic state. Missing rows use your configured fallback or remain blank. For location, select **Full** precision; **Postal only** has no LSPDFR postal value to display. See the [LSPDFR support details and install guide](/studio/tutorials/smart-lighting#lspdfr) for lifecycle behavior and callout-pack compatibility. ### Add Source to Streaming App Once your widgets are configured, it's time to add them to your Stream! Select the **Setup Guide** for specific instructions for your platform. You will copy the **Browser Source URL** in the studio and add a new browser layer in your streaming app. ![Sonoran Studio streaming setup guide](https://docs-assets.sonoransoftware.com/sha256/7b/7b3e95c354df5e85181ee4c8085fc5d0bcd1c78f66130a488a54e4ee331f09c9.webp) > [tab] OBS Studio > > 1. Open the scene that contains your game and select **+** in the Sources dock. > 2. Choose **Browser**, select **Create new**, name it **Sonoran Studio**, and select **OK**. > 3. Turn **Local file** off and paste your private Sonoran overlay URL into **URL**. > 4. Enter the exact **Width** and **Height** shown in Studio. > 5. Leave **Shutdown source when not visible** off so CAD and Radio events stay connected. Keep the transparent custom CSS OBS supplies. > 6. Keep Sonoran Studio above your game capture in the Sources list. If necessary, use **Transform → Reset Transform**, then **Fit to Screen**. > 7. Trigger a Studio **TEST** before going live. > [tab] TikTok LIVE Studio > > 1. Open the landscape or portrait scene you plan to broadcast and select **Add source**. > 2. Choose **Link**. Some versions call this a webpage or URL source. > 3. Paste your private HTTPS overlay URL and name the source **Sonoran Studio**. > 4. Set the source width and height to the exact Studio values when those fields are available. Otherwise, resize it to fill the complete scene. > 5. Move it above your game, screen, or camera capture. > 6. Check the mobile preview, then trigger a Studio **TEST**. > [tab] Streamlabs Desktop > > 1. Open your gameplay scene, go to **Sources**, and select **+**. > 2. Choose **Browser Source**, name it **Sonoran Studio**, and select **Add Source**. > 3. Paste your private overlay URL. > 4. Set **Width** and **Height** to the exact Studio values. You can normally leave FPS at 30. > 5. Resize the source to fill the canvas and keep it above your game capture. > 6. Trigger each Studio **TEST** before going live. > [!NOTE] > > If your browser source isn't the correct size in your streaming app, inspect the properties and ensure you've set the dimmensions to match the canvas size from the Studio. > > \ > Verify the source width and height, reset its transform, and fit it to the scene again. For portrait broadcasts, confirm both Studio and the streaming app use the vertical dimensions. ### Stream! Next, it's time to go live! For CAD or Radio widgets, make sure you are logged into the community using the same account as the Studio app. For LSPDFR widgets, keep the signed-in Studio Windows app open, select **LSPDFR** under Lighting, and run the Studio LSPDFR plugin.