Clages
October 26, 2022, 12:32am
1
Duffle Bag Item and Prop
How does it work?
When you have the item in your inventory, you will be wearing the duffel prop and its storage
0.00 ms
Requirements:
ESX
OX_INVENTORY
Preview
Tebex
Code is accessible
Yes
Subscription-based
No
Lines (approximately)
53
Support
Yes
1 Like
How many lines of code, you’re required to put that in the release template.
Kallock
October 26, 2022, 12:41am
3
Isn’t this literally just built into Ox Inventory?
you do know Wasabi already released this right?.. for FREE
[wasabibackpack]
wasabi_backpack
[image]
This resource was created as a free script for backpacks using ox_inventory
Features:
0.0 ms Usage
Perisistent backpack prop added to back when in inventory
Customizable item name and storage parameters
Compatible with ox_core, ESX, QBCore, whatever else running ox_inventory
Installation
Download this script
Add backpack to inventory as it is in “Extra Information” below
Add backpack image to inven…
3 Likes
Clages
October 26, 2022, 1:29am
6
With mine you only have to add line with ox_inventory
Clages
October 26, 2022, 1:29am
7
if you don’t care don’t buy it
Clages
October 26, 2022, 1:30am
8
if you don’t care don’t buy it
Are you trying to be funny, you’re breaking the release rules. You must include how many lines of code this resource has without counting the dependencies.
You got me beat. I have one table to insert into inventory:
['backpack'] = {
label = 'Backpack',
weight = 220,
stack = false,
consume = 0,
client = {
export = 'wasabi_backpack.openBackpack'
}
},
Guess that why yours is $5 and mine is free.
1 Like
['backpack'] = { label = 'Backpack', weight = 220, stack = false, consume = 0, client = { export = 'wasabi_backpack.openBackpack' }},
You can change it to paid now.
Clages
October 26, 2022, 1:50am
12
this is for the item, but not for wearing the duffel bag
Clages
October 26, 2022, 1:50am
13
this is for the item, but not for wearing the duffel bag…but if you prefer add other resources to your server
1 Like
Clages
October 26, 2022, 1:54am
14
now I have added the number of lines
1 Like
Mmmm, Yes yours will be like this:
['dufflebag'] = {
label = 'Duffle Bag',
weight = 220,
stack = false,
consume = 0,
client = {
add = function(total)
if total > 0 then
SetPedComponentVariation(cache.ped, 5, 82, 0, 0);
end
end,
remove = function(total)
if total < 1 then
SetPedComponentVariation(cache.ped, 5, 0, 0, 0);
end
end
}
},
items.container
Items.containers = {
['dufflebag'] = {
size = {8, 9000},
blacklist = {
['dufflebag'] = true -- No bags in bags!
}
},
}
53 lines for $6 no wonder you didn’t include the amount of lines at first
V2 of script coming soon. Optimized 15 line version.