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 that purchased the script. Upon downloading extract the file to a safe place.
Install Prerequisite
You must use the Sonoran Fork of WK_Wars2x found here.
Minimum version required: v1.3.4-sonoran
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 by default.
You can also download the latest release of the resource here.
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[]
in the name, without them it will not work.In the
sonoran-radarddetector/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.
QBCore Specific - Please follow Step 3
to ensure inventory items have correct photos!
Drag the
radar_detector.png
from/sonoran-radardetector/
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 sonoran-radardetector_helper
or ensure [sonoranscripts]
to your server.cfg as this will lead to crashing under specific conditions.
Configuring the Script
Configuration Breakdown
Config Option | Option Description | Default Value | Type |
---|---|---|---|
| Enable enhanced logging - typically for diagnosing issues |
| Boolean |
| The version your config file is currently set to. DO NOT EDIT |
| Int |
| Enabled auto updates with our Sonoran Updater |
| Boolean |
| Here you will find our easy translations, simply edit if you would like to update the language used in the script | English | String |
| Command to open the radar detector menu |
| String |
| Specifies if the detector menu should be restricted |
| Boolean |
| Permission mode for the radar detector |
| String |
| Select the ace premission allowed to use the radar detector menu |
| String |
| This setting controls which framework is in use options are esx or qb-core |
| String |
| Which inventory you would like to use normal, quasar, ox_inventory (OX Will only work for ESX Legacy as of now) |
| String |
| An array of job names that should be allowed to use the radar menu |
| Table |
| This will treat the civilian job list as a blacklist rather than a whitelist |
| Boolean |
| Should random sounds be played when the radar is powered on? |
| Boolean |
| An array of sounds that should be played randomly when the radar is powered on |
| Table |
| How often in minutes should a random sound be played if a radar is on? |
| Number |
| How far away should the player be able to detect a radar? |
| Number |
| Available options: native, pNotify, okokNotify |
| String |
| Vehicles that are not allowed to have a radar detector put in them |
| Table |
Commands
Command Name | Command Description | Required Permission |
---|---|---|
| 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
Choose an eligible car: Select a car that is compatible with the radar detector/jammer script.
Use the command
/detectormenu
: Open the chatbox or console and type/detectormenu
to bring up the radar detector menu.Open the spawning menu: In the radar detector menu, navigate to the "Spawning Menu" option and select it to open the spawning menu.
Spawn the prop: Within the spawning menu, choose the desired prop and spawn it into the game world.
Note: If in framework mode you must have the sonoran_radar_detector
object in your inventory to spawn
Navigate to the attaching menu: Use the "Backspace" or the designated key to go back in the menu and access the "Attaching Menu".
Attach the prop: Select the "Attach" option in the attaching menu and use the on-screen controls to move the prop to the desired location on the vehicle.
Confirm placement: Once the prop is positioned correctly, press the "Confirm Placement" button to finalize the attachment.
Access the radar detector remote menu: Use the "Backspace" key or the designated key to go back in the menu and select the "Radar Detector Remote Menu".
Toggle the jammer and detector: Within the radar detector remote menu, adjust the settings to toggle the jammer and detector functionality according to your preferences.
Turn on the power: Enable the power switch in the radar detector remote menu to activate the radar detector/jammer system.
Enjoy the protection from police radars: With the radar detector/jammer active, you will now be protected from police radars while driving your vehicle.
Last updated