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

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

  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.

    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.

  1. Drag the radar_detector.png from /sonoran-radardetector/ into the following folder: /resources/[qb]/qb-inventory/html/images

  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:

Configuring the Script

Default config.lua

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

  1. Choose an eligible car: Select a car that is compatible with the radar detector/jammer script.

  2. Use the command /detectormenu: Open the chatbox or console and type /detectormenu to bring up the radar detector menu.

  3. Open the spawning menu: In the radar detector menu, navigate to the "Spawning Menu" option and select it to open the spawning menu.

  4. Spawn the prop: Within the spawning menu, choose the desired prop and spawn it into the game world.

  1. Navigate to the attaching menu: Use the "Backspace" or the designated key to go back in the menu and access the "Attaching Menu".

  2. 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.

  3. Confirm placement: Once the prop is positioned correctly, press the "Confirm Placement" button to finalize the attachment.

  4. 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".

  5. 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.

  6. Turn on the power: Enable the power switch in the radar detector remote menu to activate the radar detector/jammer system.

  7. 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

Was this helpful?