ox_inventory
Add the Speaker System items and images to ox_inventory.
1. Add the items
Open ox_inventory/data/items.lua and paste these entries inside the table, above its last }. Do not replace the whole file.
Lua
['gg_speaker_01'] = {
label = 'Pocket speaker',
weight = 700,
stack = false,
close = true,
consume = 0,
description = 'A portable left-hand speaker. Manage it with Speaker Connect.',
client = {
image = 'gg_speaker_01.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_speaker_02'] = {
label = 'Plus speaker',
weight = 1200,
stack = false,
close = true,
consume = 0,
description = 'A portable left-hand speaker. Manage it with Speaker Connect.',
client = {
image = 'gg_speaker_02.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_speaker_03'] = {
label = 'Max speaker',
weight = 2000,
stack = false,
close = true,
consume = 0,
description = 'A portable left-hand speaker. Manage it with Speaker Connect.',
client = {
image = 'gg_speaker_03.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_stereo_01'] = {
label = 'Ground stereo',
weight = 6000,
stack = false,
close = true,
consume = 0,
description = 'Place this stereo before playing. Manage it with Speaker Connect.',
client = {
image = 'gg_stereo_01.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_stereo_02'] = {
label = 'Tripod speaker',
weight = 9000,
stack = false,
close = true,
consume = 0,
description = 'Place this stereo before playing. Manage it with Speaker Connect.',
client = {
image = 'gg_stereo_02.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_stereo_03'] = {
label = 'Event rig',
weight = 18000,
stack = false,
close = true,
consume = 0,
description = 'Place this stereo before playing. Manage it with Speaker Connect.',
client = {
image = 'gg_stereo_03.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_sub_01'] = {
label = 'Sub cabinet',
weight = 22000,
stack = false,
close = true,
consume = 0,
description = 'A subwoofer with no radio of its own: place it and play it together with a speaker. Manage it with Speaker Connect.',
client = {
image = 'gg_sub_01.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_fx_beam_01'] = {
label = 'Beam light',
weight = 7000,
stack = false,
close = true,
consume = 0,
description = 'A moving-head beam light. Set it down near one of your speakers and it joins it, keeping time with its music. Set its look from that speaker in Speaker Connect.',
client = {
image = 'gg_fx_beam_01.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_fx_strobe_01'] = {
label = 'Strobe light',
weight = 5000,
stack = false,
close = true,
consume = 0,
description = 'A strobe panel. Set it down near one of your speakers and it joins it, flashing with its music. Set its look from that speaker in Speaker Connect.',
client = {
image = 'gg_fx_strobe_01.png',
export = 'gg_speakersystem.useSpeaker',
},
},
['gg_subwoofer'] = {
label = 'Subwoofer',
weight = 8000,
stack = false,
close = true,
consume = 0,
description = 'Installs in a car with a Premium tablet: use it from a front seat of your parked car, or standing at its boot. One per car; taking the tablet out, or Remove Subwoofer on the Sound page, gives it back.',
client = {
image = 'gg_subwoofer.png',
export = 'gg_speakersystem.useSubwoofer',
},
},
['gg_tablet_basic'] = {
label = 'Car Tablet (Basic)',
weight = 900,
stack = true,
close = true,
consume = 0,
description = 'A 5-inch Basic dash tablet. Use it in the front seat of your parked car to fit it.',
client = {
image = 'gg_tablet_basic.png',
export = 'gg_speakersystem.useTablet',
},
},
['gg_tablet_plus'] = {
label = 'Car Tablet (Plus)',
weight = 1100,
stack = true,
close = true,
consume = 0,
description = 'A 7-inch Plus dash tablet. Use it in the front seat of your parked car to fit it.',
client = {
image = 'gg_tablet_plus.png',
export = 'gg_speakersystem.useTablet',
},
},
['gg_tablet_premium'] = {
label = 'Car Tablet (Premium)',
weight = 1400,
stack = true,
close = true,
consume = 0,
description = 'A 10.1-inch Premium dash tablet. It drives a subwoofer once one is installed. Use it in the front seat of your parked car to fit it.',
client = {
image = 'gg_tablet_premium.png',
export = 'gg_speakersystem.useTablet',
},
},
Keep the item names exactly as they are. Each item calls the script's own export when used, so nothing else is needed.
2. Add the images
Copy every PNG from gg_speakersystem/!SETUP/inventory_images/ into:
Text
ox_inventory/web/images/
3. Restart
Restart your server so the inventory loads the new items and images.
