Original post · 1y ago#1
[HEADING=2]
[HEADING=2][/HEADING]
[HEADING=2]
Drop the resource into resources/[standalone]/RollerSkating (or equivalent).
In your server.cfg, ensure the order:
Declare the item in ox_inventory (ox_inventory/data/items.lua):
Icon: put rollerskates.png in ox_inventory/web/images/. (I included a placeholder in the zip.)
(Optional if your server still reads qb-core/shared/items.lua) add:
[HEADING=2]
Open ox_inventory and use the rollerskates item → toggles on/off (equip/unequip).
The original commands remain:
[img]/public/images/logo.png[/img]
[/HEADING][HEADING=2][/HEADING]
[HEADING=2]
Installation (ox_inventory + QB)
[/HEADING]Drop the resource into resources/[standalone]/RollerSkating (or equivalent).
In your server.cfg, ensure the order:
ensure ox_inventory
ensure qb-core
ensure RollerSkating
Declare the item in ox_inventory (ox_inventory/data/items.lua):
['rollerskates'] = {
label = 'Roller Skates',
weight = 1000,
stack = false,
close = true,
consume = 0, -- does not get consumed
description = 'Use to equip/unequip roller skates',
client = { image = 'rollerskates.png' },
},
Icon: put rollerskates.png in ox_inventory/web/images/. (I included a placeholder in the zip.)
(Optional if your server still reads qb-core/shared/items.lua) add:
['rollerskates'] = {['name'] = 'rollerskates', ['label'] = 'Roller Skates', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'rollerskates.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Put them on and roll!'},
[HEADING=2]
In-game usage
[/HEADING]Open ox_inventory and use the rollerskates item → toggles on/off (equip/unequip).
The original commands remain:
/roller → equips
/leave → unequips
2 replies
wow, that's incredible, appreciated so much!
thanks so much dude +++