LogoLogo
SupportServer Hosting
  • Sonoran Radio
    • 🏆Why Choose Sonoran Radio
    • 📱Download the App
  • Other Products
    • 🖥️FiveM Hosting
    • ⌨️Sonoran CAD
    • 📝Sonoran CMS
  • Tutorials
    • Getting Started
      • Register a Community
      • Invite and Manage Users
      • Installing the In-Game Resource
      • Transfer or Delete a Community
    • Usage
      • Dispatch & Admin Panel
        • Using the Dispatch Panel
        • Configure Channels
        • Custom Voice Effects
        • Custom SFX
        • Custom Tone Board
        • Emergency Calls
        • Transmission Logs
        • Default User Settings
        • Multi-Server
      • In-Game Radio
        • Using the In-Game Radio
          • FiveM Keybinds & Commands
        • Customizing Radio Frames
        • Hear Nearby Radio Chatter
        • Radio Scanners
        • In-Game Repeaters
        • Tunnels and Degrade Zones
        • In-Game Speakers
        • Connected Users List
        • Configuring ACE Permissions
        • IP Whitelisting
        • Background Audio Injection
      • Troubleshooting
        • Error Codes
        • Client Debug Mode
        • In-Game Microphone Not Working
        • Browser Microphone Permissions
        • In-Game Volume Too Low
        • Mac Keybinds
        • In-Game Timeouts
    • Integrations
      • AI
      • Sonoran CMS
      • Sonoran CAD Integration
      • Vehicle Radio Display
      • Big Daddy Radio Animations
      • FiveM Inventories
      • FiveM Phone Scripts
      • Developer Documentation
        • Resource API
        • API Endpoints
          • Data Structures
          • Users
            • Get Connected Users
            • Get Connected User
            • Set User Channels
            • Set User Display Name
          • Channels
            • Get Community Channels
          • Community Server
            • Set Server IP
            • Get Server Subscription from IP
            • Set In-Game Speaker Locations
        • Push Events
          • Play Tone
          • User Connected
  • Pricing
    • Pricing FAQ
      • Standalone Pricing
  • Roadmap & Changelog
    • 🗺️Roadmap
    • Changelog
    • Migration Guides
  • Other
    • Contact Us
    • Policy
      • Privacy Policy
      • Refund and Purchase Policy
Powered by GitBook
On this page
  • Prerequisites
  • Opening the Radio and Keybinds
  • Radio Keybinds
  • Radio Interface
  • Turning on/off your Radio
  • Repositioning and Resizing the Radio
  • Changing the Radio Frame
  • Radio Status Indicator
  • Change Frequency
  • Add/Remove Scan Frequency
  • Integrating With Sonoran CAD
  • Modifying In-Game Towers
  • In-game Towers
  • Locations
  • Destroying a Tower
  • Repairing a Tower
  • QB Core Inventory Item
  • Top Down HUD

Was this helpful?

Edit on GitHub
  1. TS3 Legacy
  2. Tutorials

Using the FiveM Radio Script

How to use the in game radio script

Last updated 1 year ago

Was this helpful?

Prerequisites

Before continuing, it's expected that you've installed the plugin and understand the core concepts of Sonoran Radio.

Opening the Radio and Keybinds

When you install the script, your users can use and configure the keybinds or commands to open your radio interface and interact with the physical buttons on the outside of the radio.

Radio Keybinds

Radio Interface

Turning on/off your Radio

You can click on the dial on the top right of the radio to toggle the radio on and off. You will also see this reflected in the teamspeak interface.

Repositioning and Resizing the Radio

To move the radio on your screen to a more suitable position, you can click the Config button with the radio open, then click Reposition UI.

While moving it around, you can drag the screen to resize it.

Resetting Radio UI

To reset your radio UI scale and position to the default you can use the /radioreset command.

Changing the Radio Frame

To change your radio frame, you can click on the Config button with the radio open and then select radio frame options from the list shown. If your list shows as empty this is due to you not having permissions to access any addiontional frames.

Radio Frame Configuration

Radio Frame Configuration cont.

	departments = {
		['DEPT_ABBREVIATION'] = {
			label = 'DEPARTMENT NAME',
			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'
			}
		}
	}

Available frames can be found by their folder names in the /skins folder. Default frames are:

  • default

  • hi-vis

  • signalpro

  • voxguard

Radio Frame Commands

Radio Status Indicator

The color of the bar next to your current frequency indicates the state of your radio.

  • Status Color: Gray If you are disconnected from TeamSpeak the indicator will be gray.

  • Status Color: Blue If you are connected to TeamSpeak, the indicator will be blue.

Change Frequency

To change your current frequency, either use the dial on the top of the radio, use the keybinds that you set in the Keybinds Menu, or click on the change frequency icon. In the change frequency menu, you can either set a custom frequency or you can select a preset. You can click on either side of the knob on the top of the radio to go to the previous or next preset.

Using Preset Knob

You can click on either side of the preset selection knob to cycle through preset frequencies. Cycling through next and previous frequencies can also be done via keybind. To set the keybinds, navigate to your game keybinds and set prev and next.

Using First Preset Button

The button that resembles a house is a new button that you can click to automatically change to the first preset frequency. In future releases this button may be configured on an individual or server-wide basis. For now, the home button will change you to the first preset on your list.

Add/Remove Scan Frequency

To add frequency to scan list, set your radio to that the frequency you would like to add, click on scan list, and press the plus button. Press the x button next to a frequency to remove from the scan list.

Please note that a Pro-level subscription is required to utilize the scanning feature.

Integrating With Sonoran CAD

Sonoran CAD Panic Button

To activate your panic from your radio, you can use the button on the top of your radio. This button can also be pressed by a keybind that you can set in your FiveM Keybinds.

Sonoran CAD Call Details

Modifying In-Game Towers

Our custom in-game towers allow you to dynamically place repeaters around the map, customize the signal range, and more!

In-game Towers

Locations

Tower locations are controlled by the server owner, and they may not always disclose the location of their towers. Look out for signal towers that look like the above and have the Sonoran Radio logo on the top dish!

Destroying a Tower

If enabled, towers are able to be destroyed by anyone in server with weapons. By shooting the four dishes half-way up the tower, you are able to disable them one-by-one. As more dishes get destroyed, the more the tower's performance is impacted.

Repairing a Tower

Once a tower is either partially or completely destroyed, anyone is able to locate and repair that tower. To repair, go near the ladder and cable at the bottom of the tower, and a popup will show telling you to press G to repair.

QB Core Inventory Item

If you set the configuration option Config.enforceRadioItem = true the radio will only operate if the player has the "sonoran_radio" item in their QBCore inventory. When you enable this option, you will need to disable the qb-radio script as the two scripts will conflict. When the player has the radio item, they can use the /radio command or "Use" the item from the inventory by dragging it to the "Use" button or double clicking on it. When the radio item is in the hotbar of the inventory, you can also use the hotkey to open the radio.

To use the radio as an item, add the following to your items.lua

['sonoran_radio']                = {['name'] = 'sonoran_radio',            ['label'] = 'Radio',                    ['weight'] = 2000,         ['type'] = 'item',         ['image'] = 'radio.png',                 ['unique'] = true,    ['useable'] = true,     ['shouldClose'] = true,       ['combinable'] = nil,   ['description'] = 'You can communicate with this through a signal'},

Top Down HUD

You can bring up the Sonoran Radio HUD using the command /radiohud [size]. You can use the command /radiohud off to disable the radio HUD.

To resize this HUD, toggle on the main /radio > select Config > Reposition UI. From there, you can drag the HUD larger or smaller.

Sonoran Radio - FiveM Script - Repostition Radio

Located in your config.lua you'll see a section titled Config.frames. You can first start with selecting your permissionMode, Viable options are "ace", "qbcore", "esx". Additionally you can configure your adminPermission, this is an . The departments array is where you can configure your frames per department, below you can see the guide to this array.

adminskinchange - Used to change the radio skin to any skin, regardless of config. Requies the Config.frames.adminPermission to use.

Status Color: Green If you have configured the correctly and you are logged into the CAD system, the radio status indicator will be green. When your status indicator is green, your radio panic button will activate your panic through CAD, and you will be able to view basic call information by clicking on the Call Details button.

Usage of the Sonoran CAD integrations requires the sonrad plugin for the Sonoran CAD. You can download and install that plugin .

Or, learn more about the Sonoran CAD radio plugin .

If you have configured your Sonoran CAD plugin correctly, and you are attached to a call, you can click on the "Call Details" button to review the details of the call that you are attached to.

!

Install TeamSpeak Plugin

Each user needs to install this to use the radio

Install FiveM Radio Script

Allows users to change radio settings in game

Core Concepts

Understand the theory of our radio

ace permission
ace permission
sonrad
here
here
sonrad
Sonoran Radio - FiveM Script - Set Keybinds
Sonoran Radio - FiveM Script - Radio Interface Promo
Sonoran Radio - FiveM Script - In-Game Tower
Sonoran Radio - FiveM Script - Tower Destruction
Sonoran Radio - FiveM Script - Repair Tower Prompt
Learn more about tower configuration