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 that purchased the script. Upon downloading extract the file to a safe place.
Install the Script
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.In the
evidence-cam/config
folder there will be a file calledconfig.CHANGEME.lua
you should rename that to beconfig.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 calledphotos.CHANGEME.json
which is a storage file for all photos that are take and "printed". Change the name tophotos.json
. You will also find a file calleddiscord.CHANGEME.lua
, this will contain your needed Discord Webhook configuration, but will protect it from any client side dumps. Change this file name todiscord.lua
.
Only ever change the name of the photos.json
ON INSTALL, not on subsequent updates!
QBCore Specific - Please follow Step 3
to ensure inventory items have correct photos!
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!
a.) Import the
ESX Installme.sql
file into your ESX databaseIf NOT using
ox_inventory
continue to step 5b.) Add the following code to the
/ox_inventory/data/items.lua
fileFinally, in your
server.cfg
add the following:
NEVER add ensure evidence-cam_helper
or ensure [sonoranscripts]
to your server.cfg as this will lead to crashing under specific conditions.
Congrats! You have successfully installed Sonoran Evidence Camera. See the next section for configuration options.
Configuration
General
Config Option | Option Description | Possible Values |
---|---|---|
| The command to toggle the camera |
|
| Use the camera prop |
|
| Make the camera prop flash |
|
Discord
Config Option | Option Description | Possible Values |
---|---|---|
| Send webhooks to Discord |
|
| Webhook URL to send internal logs to |
|
| Webhook URL to send public logs to |
|
Frameworks
Config Option | Option Description | Possible Values |
---|---|---|
| Use the ESX framework |
|
| Utilize OX Inventory for ESX |
|
| Use your own custom inventory handling (See dev docs for more) |
|
| Use the QBCore framework |
|
CAD
Config Option | Option Description | Possible Values |
---|---|---|
| Link with Sonoran CAD to send photos |
|
Objects
Framework | Object | Object Name |
---|---|---|
| Camera |
|
| Photo |
|
| Camera |
|
| Photo |
|
Last updated