Installation
Please carefully read installation process, otherwise fd_radio
resource will not work.
Dependecies
We've tried not to use a lot of third party dependencies, so you won't need to install that many dependencies. For this resource to work, you'll need to install
ESX
Use a compatible version of ESX Legacy (Should be compatible with any version). Resource was tested with most recent ox_recipe and esx-recipe for txAdmin.
Set correct framework
Go to shared/config.lua
and set your framework.
Config.core = 'esx' -- available: standalone, QB or ESX
Adjust config
Before starting, please adjust config values as you want. Config
Optional
Check out optional stuff, which might make sense for your setup. Optional link
Items
Single Item
Add items to ox_inventory/data/items.lua
;
['radio'] = {
label = 'Radio',
weight = 200,
client = {
export = "fd_radio.useRadio",
}
},
['radio_jammer'] = {
label = 'Jammer',
weight = 200,
client = {
export = "fd_radio.useJammer",
}
},
['radio_antenna'] = {
label = "Radio Antenna",
weight = 200,
},
Multiple items
Add items to ox_inventory/data/items.lua
;
['radio_default'] = {
label = 'Radio Black',
weight = 200,
client = {
export = "fd_radio.useRadioDefault",
}
},
['radio_red'] = {
label = 'Radio Red',
weight = 200,
client = {
export = "fd_radio.useRadioRed",
}
},
['radio_blue'] = {
label = 'Radio Blue',
weight = 200,
client = {
export = "fd_radio.useRadioBlue",
}
},
['radio_green'] = {
label = 'Radio Green',
weight = 200,
client = {
export = "fd_radio.useRadioGreen",
}
},
['radio_yellow'] = {
label = 'Radio Yellow',
weight = 200,
client = {
export = "fd_radio.useRadioYellow",
}
},
['radio_white'] = {
label = 'Radio White',
weight = 200,
client = {
export = "fd_radio.useRadioWhite",
}
},
['radio_jammer'] = {
label = 'Jammer',
weight = 200,
client = {
export = "fd_radio.useJammer",
}
},
['radio_antenna'] = {
label = "Radio Antenna",
weight = 200,
},
Start
Add
ensure fd_radio
to your server.cfg and if you did everything as described above, please start your server and enjoy your new radio!
Common Issues
Questions
If you have an issue or questions, please visit our discord, and open a ticket.