Does anyone know how to make ox_inventory stores work using ox_target?
return {
[‘testburger’] = {
label = ‘Test Burger’,
weight = 220,
degrade = 60,
client = {
status = { hunger = 200000 },
anim = ‘eating’,
prop = ‘burger’,
usetime = 2500,
export = ‘ox_inventory_examples.testburger’
},
server = {
export = ‘ox_inventory_examples.testburger’,
test = ‘what an amazingly delicious burger, amirite?’
},
buttons = {
{
label = ‘Lick it’,
action = function(slot)
print(‘You licked the burger’)
end
},
{
label = ‘Squeeze it’,
action = function(slot)
print(‘You squeezed the burger :(’)
end
},
{
label = ‘What do you call a vegan burger?’,
group = ‘Hamburger Puns’,
action = function(slot)
print(‘A misteak.’)
end
},
{
label = ‘What do frogs like to eat with their hamburgers?’,
group = ‘Hamburger Puns’,
action = function(slot)
print(‘French flies.’)
end
},
{
label = ‘Why were the burger and fries running?’,
group = ‘Hamburger Puns’,
action = function(slot)
print(‘Because they're fast food.’)
end
}
},
consume = 0.3
},
['bandage'] = {
label = 'Bandage',
weight = 115,
client = {
anim = { dict = 'missheistdockssetup1clipboard@idle_a', clip = 'idle_a', flag = 49 },
prop = { model = `prop_rolled_sock_02`, pos = vec3(-0.14, -0.14, -0.08), rot = vec3(-50.0, -50.0, 0.0) },
disable = { move = true, car = true, combat = true },
usetime = 2500,
}
},
['black_money'] = {
label = 'Dirty Money',
},
['burger'] = {
label = 'Burger',
weight = 220,
client = {
status = { hunger = 200000 },
anim = 'eating',
prop = 'burger',
usetime = 2500,
notification = 'You ate a delicious burger'
},
},
['cola'] = {
label = 'eCola',
weight = 350,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_ecola_can`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
usetime = 2500,
notification = 'You quenched your thirst with cola'
}
},
['parachute'] = {
label = 'Parachute',
weight = 8000,
stack = false,
client = {
anim = { dict = 'clothingshirt', clip = 'try_shirt_positive_d' },
usetime = 1500
}
},
['garbage'] = {
label = 'Garbage',
},
['paperbag'] = {
label = 'Paper Bag',
weight = 1,
stack = false,
close = false,
consume = 0
},
['identification'] = {
label = 'Identification',
},
['panties'] = {
label = 'Knickers',
weight = 10,
consume = 0,
client = {
status = { thirst = -100000, stress = -25000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_cs_panties_02`, pos = vec3(0.03, 0.0, 0.02), rot = vec3(0.0, -13.5, -1.5) },
usetime = 2500,
}
},
['lockpick'] = {
label = 'Lockpick',
weight = 160,
},
['phone'] = {
label = 'Phone',
weight = 190,
stack = false,
consume = 0,
client = {
add = function(total)
if total > 0 then
pcall(function() return exports.npwd:setPhoneDisabled(false) end)
end
end,
remove = function(total)
if total < 1 then
pcall(function() return exports.npwd:setPhoneDisabled(true) end)
end
end
}
},
['money'] = {
label = 'Money',
},
['mustard'] = {
label = 'Mustard',
weight = 500,
client = {
status = { hunger = 25000, thirst = 25000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_food_mustard`, pos = vec3(0.01, 0.0, -0.07), rot = vec3(1.0, 1.0, -1.5) },
usetime = 2500,
notification = 'You.. drank mustard'
}
},
['water'] = {
label = 'Water',
weight = 500,
client = {
status = { thirst = 200000 },
anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.03, 0.03, 0.02), rot = vec3(0.0, 0.0, -1.5) },
usetime = 2500,
cancel = true,
notification = 'You drank some refreshing water'
}
},
['radio'] = {
label = 'Radio',
weight = 1000,
stack = false,
allowArmed = true
},
['armour'] = {
label = 'Bulletproof Vest',
weight = 3000,
stack = false,
client = {
anim = { dict = 'clothingshirt', clip = 'try_shirt_positive_d' },
usetime = 3500
}
},
['clothing'] = {
label = 'Clothing',
consume = 0,
},
['mastercard'] = {
label = 'Mastercard',
stack = false,
weight = 10,
},
['scrapmetal'] = {
label = 'Scrap Metal',
weight = 80,
},
["45acp_ammo"] = {
label = "45acp",
weight = 10,
stack = true,
close = true,
},
["762mm_ammo"] = {
label = "7.62mm",
weight = 10,
stack = true,
close = true,
},
["9mm_ammo"] = {
label = "9mm",
weight = 10,
stack = true,
close = true,
},
["beer"] = {
label = "Beer",
weight = 1,
stack = true,
close = true,
},
["bread"] = {
label = "Bread",
weight = 1,
stack = true,
close = true,
},
["medikit"] = {
label = "Medikit",
weight = 2,
stack = true,
close = true,
},
["WEAPON_GARBAGEBAG"] = {
label = "Garbage Bag",
weight = 1000,
stack = true,
close = true,
},
["WEAPON_STINGER"] = {
label = "Stinger",
weight = 5000,
stack = true,
close = true,
},
["WEAPON_BRIEFCASE"] = {
label = "Malette",
weight = 1000,
stack = true,
close = true,
},
["WEAPON_DIGISCANNER"] = {
label = "Digiscanner",
weight = 1000,
stack = true,
close = true,
},
["spray"] = {
label = "Spray",
weight = 1,
stack = true,
close = true,
},
["spray_remover"] = {
label = "Spray Remover",
weight = 1,
stack = true,
close = true,
},
["WEAPON_BRIEFCASE_02"] = {
label = "Malette",
weight = 1000,
stack = true,
close = true,
},
["WEAPON_PELLE"] = {
label = "Pelle",
weight = 1000,
stack = true,
close = true,
},
["WEAPON_HANDCUFFS"] = {
label = "Handcuffs",
weight = 200,
stack = true,
close = true,
},
}