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
        • Device In Use
    • 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
        • Development Branch
  • 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
  • Vehicle Radio Display (Video Tutorial)
  • Installation (Written)
  • 1. Download the Script
  • 2. Install the script
  • Configuration
  • Spawning the Radio Display
  • radios.json Property Explanation
  • Commands
  • Default Vehicles
  • Additional Display Resources
  • Changelog
  • v1.0.0

Was this helpful?

Edit on GitHub
  1. Tutorials
  2. Integrations

Vehicle Radio Display

View Sonoran Radio on a working, in-vehicle 3D display!

PreviousSonoran CAD IntegrationNextBig Daddy Radio Animations

Last updated 3 months ago

Was this helpful?

Vehicle Radio Display (Video Tutorial)

The vehicle radio display is a free Tebex script fully compatible with the free version of Sonoran Radio.

Installation (Written)

1. Download the Script

2. Install the script

A. Extract Folders

Extract the script's two folders (sonoran-radiodisplay and sonoran-radiodisplay_helper) to a folder in your server's resources folder called [sonoranradio].

B. Rename Config Files

Inside of the sonoran-radiodisplay folder:

  • Rename config.changeme.lua to config.lua

  • Rename radios.changeme.json to radios.json

C. Start the Resource

To start the display resource and give the auto-updater permissions to run, paste the following into your server.cfg

# Start the Radio Display Resource
ensure sonoran-radiodisplay

# Grant permissions to the auto-updater
add_ace resource.sonoran-radiodisplay command allow
add_ace resource.sonoran-radiodisplay_helper command allow

Configuration

The config.lua file allows you to customize the labels, ACE permissions, and more!

Default config.lua
Config = {}

Config.debug_mode = false -- Enable debug mode
Config.configuration_version = 1.0
Config.auto_update = true -- Enable auto updates

Config.lang = {
    addNewRadioHelp = 'Open the menu to begin spawning a new in-car model model',
    vehNotCompatible = 'This vehicle is not compatible with the in-car model placement system!',
    vehAlrRadio = 'This vehicle already has a valid in-car radio!',
    radioMenuHeader = 'Sonoran In-Car Radio',
    creditsPanel = 'Made by',
    spawningSubMenu = 'In-Car Radio Spawning',
    attachingSubMenu = 'Attaching',
    deletionSubMenu = 'Are you sure?',
    radioAttachMenuButton = 'Attach In-Car Radio',
    deleteMenuButton = 'Delete Current In-Car Radio',
    spawnMenuButton = 'Spawn In-Car Radio',
    deletionConfirmationButton = 'Yes, remove from all of these vehicles',
    deletionCancelButton = 'Cancel',
    deletionCancelled = 'In-Car Radio deletion cancelled',
    noRadioFound = 'No In-Car Radio is in this vehicle!',
    modelComboBox = 'Model:',
    vehAlrRadioNoti = '~r~This vehicle already has an In-Car Radio of this type',
    notInVeh = '~r~You must be in a vehicle!',
    vehicleBone = 'Radio - Vehicle Bone',
    object = "Object:",
    vehicleBoneComboBox = 'Vehicle Bone',
    objectName = 'Sonoran In-Car Radio',
    attachButton = 'Attach',
    detachButton = 'Detach',
    confirmPlacementButton = 'Apply to all of this vehicle model',
    cannotGoFaster = '~r~You cannot go any faster!',
    cannotGoSlower = '~r~You cannot go any slower!',
}

Config.commands = {
    carRadioMenu = 'radiodisplay',
    restricted = false -- should the radio display menu be restricted?
}

Config.permissionMode = "ace" -- Available Options: ace, framework, custom

-- Ace Permissions Section --
Config.acePerms = {
    aceObjectUseMenu = "sonoran.incarradio", -- Select the ace for placing new In-Car radios
    aceObjectAdminUseMenu = "sonoran.incarradio.admin", -- Select the ace for placing new In-Car radios into all vehicles of the same model
}

-- Framework Related Settings --
Config.framework = {
    frameworkType = "qb-core", -- This setting controls which framework is in use options are esx or qb-core
    civilianJobNames = {"unemployed"}, -- An array of job names that should be allowed to use the radio menu
    adminJobNames = {"admin"}, -- An array of job names that should be allowed to use the radio menu as an admin
    useCivilianJobListAsBlacklist = false, -- This will treat the civilian job list as a blacklist rather than a whitelist
}

-- Configuration For Custom Permissions Handling --
Config.custom = {
    checkPermsServerSide = true, -- If true the permission event will be sent out to the server side resource, this is recommended
    permissionCheck = function(_, type) -- This function will always be called server side.
        if type == 0 then -- Check permission to use the menu
            return true or false -- Return true if they have admin, return false if they don't
        end
    end
}

Config.general = {
    notificationType = "native", -- Available options: native, pNotify, okokNotify
    useAllowlistAsBlacklist = false, -- If true, the Config.allowlistedCars will be treated as an blacklist
}

Config.allowlistedCars = {
    "POLICE",
    "POLICE2",
    "POLICE3",
    "POLICE4",
    "FBI",
    "FBI2",
    "SHERIFF",
    "SHERIFF2",
}

Spawning the Radio Display

Use the /radiodisplay command while in a vehicle to spawn a new display.

  • Use the keys displayed at the bottom of your screen to move and rotate the display into position.

  • Select Attach to attach the display to your vehicle.

  • Select Apply to all of this vehicle model to have the radio display automatically added whenever the vehicle type is spawned.

radios.json Property Explanation

Property Name
Example
Notes

ID

2

ID must be unique. No other radar can share this ID

Position

This is a table that contains the x, y, and z coords of the radar

Rotation

This is a table that contains the x, y, and z rotation of the radar

Vehicle

POLICE

This is the vehicles spawn code

Bone

-1

This is the index of the bone you would like to attach the radar to

Commands

Command Name
Command Description
Required Permissions

/radiodisplay

This command will initiate the radar spawning and attaching process

As configured

Default Vehicles

Vehicle Spawncode
Adds Radio by Default

FBI

yes

FBI2

yes

POLICE

yes

POLICE2

yes

POLICE3

yes

POLICE4

yes

POLICEOLD1

no

POLICEOLD2

no

SHERIFF

yes

SHERIFF2

yes

Additional Display Resources

Changelog

v1.0.0

  • Initial Release

"Purchase" the free .

Once purchased, see:

See more about the here.

See the Config.acePerms.aceObjectUseMenu for permission restrictions.

See the Config.acePerms.aceObjectAdminUseMenu for permission restrictions.

Loving the radio display? Check out our and displays!

vehicle radio display from the Sonoran Store
How to download the script from your Keymaster account.
in-vehicle police radar
radar detector
configuration options
config.lua
config.lua
Sonoran Radio - Vehicle Display
Radio Display - Folders
Sonoran Store: Radar Display
Sonoran Store: Radar Detector