Sonoran Radio - Vehicle Radio - Debug Mode Enabled
Frame Types
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
With vehicle type frames, you can additionally customize the vehicleClasses property to whitelist the frame to specific vehicle types.
For example, our default skin whitelists one frame to aircraft only: "vehicleClasses": [15, 16]. See available vehicle classes here.
Body Settings
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.
Controls
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.
Screen and Mini-Screen
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.
Screen Styles
If you would like to use a text-style display instead of the normal radio screen, you can set the style to text. For example:
Sonoran Radio Screen - Default
Sonoran Radio Screen - Text
Example File
Below is an example of a skin.json file:
skin.json
Frame Placement Menu
The frame placement menu offers rapid configuration of the screen size, location, and button placements.
With debug mode enabled, open the menu by clicking on the icon in the top right of your screen.
Select the skin ID and frame that you wish to edit. Then, select each property and utilize the arrow keys to adjust the configuration.
Once complete, save your changes using the Save skin.json button.
Config.frames = {
permissionMode = 'ace', -- ace, qbcore, esx or none
adminPermission = 'sonoranradio.admin', -- ACE permission required to use admin commands
departments = {
['sahp'] = {
label = 'San Andreas Highway Patrol',
permissions = {
jobs = { -- Jobs that can use this department
['police'] = {
grades = { -- Job grades that can use this department
1,
2,
3
}
}
},
ace = { -- ACE Permissions that can use this department | ONLY EFFECTIVE IN ACE PERMISSION MODE
'sonoranradio.sahp'
}
},
-- Radio frames that can be used by this department
allowedFrames = {
'default',
'signalpro',
'voxguard',
'hi-vis'
}
}
}
}