Customizing Radio Frames
Customize your community's radio frames!
Last updated
Customize your community's radio frames!
Last updated
Custom radio frames can be selected in the radio settings menu. Custom frames allow your community to create more UI options for each department!
The drop-down menu will appear in your settings menu if you have one or more options available to you.
Restrict radio frames by department, job, or job grade, and set admin command permissions. Compatible with ESX, QBCore, or as a standalone.
You can use CMS to automatically manage in-game ACE permissions, and even sync them with Discord roles!
Example: SAHP
department members with police job grades 1-3 can use frames:
default
signalpro
voxguard
hi-vis
Navigate to the sonoranradio\skins
directory.
Locate a skin folder, which will contain 2-3 images and a skin.json
file, displaying different frames.
Observe the images, which include handheld, mobile, and possibly HUD radio types.
Create a new skin folder and add your own frame images in the format you've observed in Step 3.
Copy over and modify an existing skin.json
file to maintain format consistency.
In the skin.json
file, specify the radio name and configure the frame types and body settings.
In the skin.json
file, define the images and button positions for each radio type.
You can turn on debug mode in the main config to display button positions on screen for easier position configuration.
To enable debug mode, set Config.debug
to true
in your config.lua
file.
The following are valid as values for type
:
portable
- Used for handheld radios
vehicle
- Used for mobile radios installed in a vehicle
hud
- Top-down view of a portable radio
In body
, specify the image filename for each radio type.
For instance, use radio-portable.png
for a portable radio.
Additionally, set the width
value to define the image's display width in-game.
Assign actions to buttons at specific positions on the radio image.
Example: Align a panic button hitbox with the panic button on the image, so clicking it in-game triggers a panic action.
Available action types: power
, next_preset
, prev_preset
, panic
, home
, hide
.
Specify the position and width of the radio frame screen in Sonoran Radio to display information. Modify values under screen
or miniScreen
for HUD-type frames.
For HUD
-type frames, controls
can be left blank.
Below is an example of a skin.json
file: