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 Prerequisite

You must use the Sonoran Fork of WK_Wars2x found here.Minimum version required: v1.3.3-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

  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 Display - Folders
  1. 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 to move, rotate, and save radars, or edit the saved placements manually.
  2. Finally, in your server.cfg add the following:

Configuring the Script

Radar Location Config

Place and edit a radar

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

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

Commands

Default Vehicles