SCNP25 item support for Ox_inventory.
Change all codeplugs to something random in order to limit users to only have access to the radio by item.
The example below should be placed in data > items.lua
The following is an example on how to create a radio item in Ox_inventory.
['expradio'] = {
label = 'Example Radio', -- What shows up when you hover over the radio
weight = -1,
stack = false,
close = true,
consume = 0,
server = {
export = 'scnp25_ox.radiotoolbox'
}
},
Depending on the model you are using for the radio, you will need to rename the image to the item name. (ex. leoradio, APX900.png is changed to leoradio.png) Once you have renamed the models to what you plan to use you will need to upload them to Ox_inventory > web > images.
Add radios to the config.lua comments for instructions on in the file with an example item.
- SCNP25 - Not Optional
- Ox_inventory - Not Optional
- Ox_lib - Optional | remove
TriggerClientEvent('ox_lib:notify', inventory.id, {type = 'success', description = 'Radio assigned by ' .. dept})
from server.lua if you do not wish to use Ox_lib.
As this is an unoffical SCNP25 script, SCN will not give support for this script.
- Battery item
- when radio is removed from your inventory it turns off the radio.