STG ScriptsDocumentation
Basic Radio

Installation

Install STG Basic Radio on your FiveM server in five steps, with the radio item for ox_inventory, qb-inventory and ESX.

Basic Radio

STG Basic Radio

ESXQBCoreQBOX
View in store

Download the script

Sign in to the Cfx.re portal with the account you used at checkout and download stg-basicradio from Granted Assets.

Move the resource

Extract the zip and place the stg-basicradio folder inside the [STG] category folder in your resources directory.

resources/
└── [STG]/
    ├── stg_lib/
    └── stg-basicradio/

Install the dependencies

Basic Radio needs ox_lib, oxmysql, stg_lib and one voice resource: pma-voice, mumble-voip or saltychat. Skip this step if your server already runs them.

Add the radio item

Players open the radio by using the radio item. Add it to your inventory if it is not there yet.

Add to ox_inventory/data/items.lua:

['radio'] = {
    label = 'Radio',
    weight = 1000,
    stack = false,
},

Add to qb-core/shared/items.lua:

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

Run on your database:

INSERT INTO items (name, label) VALUES ('radio', 'Radio');

If you use another item name, change Config.radioName to match.

Start the script

Make sure [STG] starts after your framework, oxmysql, ox_lib and your voice resource in server.cfg:

ensure oxmysql
ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
# your voice resource: pma-voice, mumble-voip or saltychat
ensure stg_lib
ensure [STG]

Then restart the whole server.

Only one script can own the radio item. If another radio resource also uses it (for example qb-radio), stop that resource or give Basic Radio its own item with Config.radioName.

Nothing happens or the console shows an error? See Common Errors.

Next steps

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page