Skip to main content

Acquire the Script

After purchasing the script through the sonoran store you may download the script through the keymaster account 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.
Sonoran Software - Evidence Camera - Folders
  1. In sonoran-evidencecam/config, rename config.CHANGEME.lua to config.lua. On first install, rename photos.CHANGEME.json to photos.json for printed photos. Rename discord.CHANGEME.lua to discord.lua for server-side Discord settings.
Only ever change the name of the photos.json ON INSTALL, not on subsequent updates!
Sonoran Software - Evidence Camera - Config folder
QBCore Specific - Please follow Step 3 to ensure inventory items have correct photos!
  1. Drag the cam.png from \sonoran-evidececam\config into the following folder: \resources\[qb]\qb-inventory\html\images
ESX Specific Specific - Please follow Step 4 to ensure inventory items work!
  1. 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
  2. Finally, in your server.cfg add the following:
Start the camera individually. Starting sonoran-evidencecam_helper or the whole [sonoranscripts] folder from server.cfg can cause a crash.
Congrats! You have successfully installed Sonoran Evidence Camera. See the next section for configuration options.

Configuration

General

Discord

Frameworks

CAD

Copium photo storage

The Evidence Camera release candidate can save still photos directly to a Copium team. Standalone servers need only the team-configured Copium resource. The camera controls its own folder and lock settings even when CAD’s Copium plugin is off.
  1. Install the team-configured Copium resource. Use Copium 1.3.2 or newer and start copium before sonoran-evidencecam.
  2. In sonoran-evidencecam/config/config.lua, set config.copium.enabled to true. The supplied template sets it to false. If your config has no copium section, the camera uses a running, compatible Copium resource automatically. To make your choice explicit, add this block inside the existing config table:
  3. Set path to the team folder where photos should appear. With evidence = true, the camera requests a lock for every photo, including off-duty captures. Set it to false for ordinary team photos. Restart sonoran-evidencecam after saving.
Anyone with the direct photo link can view it, including a locked photo. The team owner, admins, and evidence officers can manage its evidence lock.

Take a photo and send it to CAD

  1. For CAD uploads, start sonorancad, enable config.cad.use_cad in the camera config, and link your player to CAD. Go on duty in police, fire, or EMS to see the upload action.
  2. Equip the camera and use the on-screen shutter control. Up to four photos per player can save at once. The action menu follows the newest shot and opens once the photo is saved and any requested lock is confirmed.
  3. Select Upload Photo to CAD (default U), Print Photo (H), or Cancel (M). Upload sends the existing Copium URL. Open the image in CAD’s Recent files to preview it or attach it to a record. Sending the link leaves one copy in Copium.
If you see only Print and Cancel, check the CAD setting, account link, and duty status. Standalone and off-duty players can still save photos to Copium. When available, the camera includes the photographer’s linked CAD identifier and on-duty unit number. If Copium is disabled, stopped, or older than 1.3.2 when you take the photo, the camera uses its usual upload. If a Copium save starts and then fails, or the requested lock cannot be confirmed, the camera prompts you to try again.

Objects