RollerSkating (with ox inventory /qb)

2 replies1,201 views1y ago
Original post · 1y ago#1
[HEADING=2]
[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

1y ago#2
nopixeliloveyou, post: 411765, member: 96871

[HEADING=2]
[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:



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]
In-game usage
[/HEADING]

Open ox_inventory and use the rollerskates item → toggles on/off (equip/unequip).


The original commands remain:


wow, that's incredible, appreciated so much!
0
1y ago#3
nopixeliloveyou, post: 411765, member: 96871

[HEADING=2]
[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:



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]
In-game usage
[/HEADING]

Open ox_inventory and use the rollerskates item → toggles on/off (equip/unequip).


The original commands remain:


thanks so much dude +++
0

Sign in to reply

Join the discussion — it takes less than a minute.