ox_inventory format
The Racing System items in the ox_inventory format, with their pictures.
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.
["gg_racing_tablet"] = {
label = "Racing Tablet",
weight = 1000,
stack = false,
close = true,
description = "Find races, join the grid and follow your results.",
client = {
image = "gg_racing_tablet.png",
}
},
["gg_racing_case_participation"] = {
label = "Participation Racing Case",
weight = 2500,
stack = false,
close = true,
description = "A contract finish's reward case. Use it to set it down and open it.",
client = {
image = "gg_racing_case_participation.png",
}
},
["gg_racing_case_bronze"] = {
label = "Bronze Racing Case",
weight = 2500,
stack = false,
close = true,
description = "A contract medal's reward case. Use it to set it down and open it.",
client = {
image = "gg_racing_case_bronze.png",
}
},
["gg_racing_case_silver"] = {
label = "Silver Racing Case",
weight = 2500,
stack = false,
close = true,
description = "A contract medal's reward case. Use it to set it down and open it.",
client = {
image = "gg_racing_case_silver.png",
}
},
["gg_racing_case_gold"] = {
label = "Gold Racing Case",
weight = 2500,
stack = false,
close = true,
description = "A contract medal's reward case. Use it to set it down and open it.",
client = {
image = "gg_racing_case_gold.png",
}
},
["gg_racing_arcade"] = {
label = "Arcade Racing Machine",
weight = 25000,
stack = false,
close = true,
description = "A two-seat racing cabinet. Use it to set it down anywhere; sit at it to race the arena's courses.",
client = {
image = "gg_racing_arcade.png",
}
},
["gg_racing_arcade_blackout"] = {
label = "Blackout Arcade Racing Machine",
weight = 25000,
stack = false,
close = true,
description = "A two-seat racing cabinet, all black. Use it to set it down anywhere; sit at it to race the arena's courses.",
client = {
image = "gg_racing_arcade_blackout.png",
}
},
["gg_racing_arcade_redline"] = {
label = "Redline Arcade Racing Machine",
weight = 25000,
stack = false,
close = true,
description = "A two-seat racing cabinet in red. Use it to set it down anywhere; sit at it to race the arena's courses.",
client = {
image = "gg_racing_arcade_redline.png",
}
},
["gg_racing_arcade_volt"] = {
label = "Volt Arcade Racing Machine",
weight = 25000,
stack = false,
close = true,
description = "A two-seat racing cabinet, black with mint cars. Use it to set it down anywhere; sit at it to race the arena's courses.",
client = {
image = "gg_racing_arcade_volt.png",
}
},
["gg_racing_arcade_royal"] = {
label = "Royal Arcade Racing Machine",
weight = 25000,
stack = false,
close = true,
description = "A two-seat racing cabinet in purple. Use it to set it down anywhere; sit at it to race the arena's courses.",
client = {
image = "gg_racing_arcade_royal.png",
}
},
["gg_racing_arcade_frost"] = {
label = "Frost Arcade Racing Machine",
weight = 25000,
stack = false,
close = true,
description = "A two-seat racing cabinet in white. Use it to set it down anywhere; sit at it to race the arena's courses.",
client = {
image = "gg_racing_arcade_frost.png",
}
},
Do not give them consume, export or a client block with status or usetime. ox_inventory then uses the item itself and never hands it to Racing System, so nothing happens and no error shows. The five painted machines after gg_racing_arcade are optional.
2. Add the pictures
Copy every file in gg_racing/!SETUP/IMAGES into ox_inventory/web/images.
3. Restart
Restart your server. Open /ggsettings, pick Racing System, and check that no missing item shows at the top.
