ox_inventory
Add the Hunting items, weapons, ammo and images to ox_inventory.
Use this page on Qbox too, since Qbox runs ox_inventory.
1. Add the items
Open ox_inventory/data/items.lua and paste these lines inside the return { table, above its closing }. The block has the 80 items that are not weapons or ammo.
-- MARK: GG HUNTING
-- Generic Items (gg_hunting)
["gg_hunting_map"] = {
label = "Hunting Map",
weight = 10,
stack = false,
close = true,
description = "A map showing hunting locations.",
},
["gg_hunting_meat"] = {
label = "Raw Animal Meat",
weight = 40,
stack = true,
close = true,
description = "Freshly hunted animal meat.",
},
["gg_hunting_cookedmeat"] = {
label = "Cooked Animal Meat",
weight = 40,
stack = true,
close = true,
description = "Freshly cooked animal meat.",
},
["gg_hunting_bones"] = {
label = "Animal Bones",
weight = 30,
stack = true,
close = true,
description = "Bones from hunted animals.",
},
["gg_hunting_campfire"] = {
label = "Hunting Campfire",
weight = 3000,
stack = false,
close = true,
description = "A campfire used for cooking animal meat.",
},
["gg_hunting_animaltracker"] = {
label = "Hunting Animal Tracker",
weight = 2000,
stack = false,
close = true,
description = "A device used to track animals while hunting.",
},
["gg_hunting_animaltrap"] = {
label = "Hunting Animal Trap",
weight = 5000,
stack = false,
close = true,
description = "Trap used to catch animals while hunting.",
},
["gg_hunting_trapsensor"] = {
label = "Hunting Trap Sensor",
weight = 500,
stack = false,
close = true,
description = "A sensor used to detect animals in traps.",
},
["gg_hunting_kit_01"] = {
label = "Basic Butcher Kit",
weight = 2000,
stack = false,
close = true,
description = "A basic hunting butcher kit for beginners.",
},
["gg_hunting_kit_02"] = {
label = "Advanced Butcher Kit",
weight = 2000,
stack = false,
close = true,
description = "An advanced butcher kit for experienced hunters.",
},
["gg_hunting_kit_03"] = {
label = "Expert Butcher Kit",
weight = 2000,
stack = false,
close = true,
description = "An expert hunting butcher kit for seasoned hunters.",
},
["gg_salt_block_01"] = {
label = "Basic Salt Block",
weight = 250,
stack = true,
close = true,
description = "A basic salt block for beginners.",
},
["gg_salt_block_02"] = {
label = "Advanced Salt Block",
weight = 250,
stack = true,
close = true,
description = "An advanced salt block for experienced users.",
},
["gg_salt_block_03"] = {
label = "Expert Salt Block",
weight = 250,
stack = true,
close = true,
description = "An expert salt block for seasoned users.",
},
["gg_meat_bucket_01"] = {
label = "Basic Meat Bucket",
weight = 250,
stack = true,
close = true,
description = "A basic meat bucket for beginners.",
},
["gg_meat_bucket_02"] = {
label = "Advanced Meat Bucket",
weight = 250,
stack = true,
close = true,
description = "An advanced meat bucket for experienced users.",
},
["gg_meat_bucket_03"] = {
label = "Expert Meat Bucket",
weight = 250,
stack = true,
close = true,
description = "An expert meat bucket for seasoned users.",
},
["gg_pug_bait_01"] = {
label = "Basic Pug Bait",
weight = 250,
stack = true,
close = true,
description = "A basic pug bait for beginners.",
},
["gg_pug_bait_02"] = {
label = "Advanced Pug Bait",
weight = 250,
stack = true,
close = true,
description = "An advanced pug bait for experienced users.",
},
["gg_pug_bait_03"] = {
label = "Expert Pug Bait",
weight = 250,
stack = true,
close = true,
description = "An expert pug bait for seasoned users.",
},
["gg_hunting_feedbait_01"] = {
label = "Basic Feed Trap Bait",
weight = 250,
stack = true,
close = true,
description = "A basic feed trap bait for beginners.",
},
["gg_hunting_feedbait_02"] = {
label = "Advanced Feed Trap Bait",
weight = 250,
stack = true,
close = true,
description = "An advanced feed trap bait for experienced users.",
},
["gg_hunting_feedbait_03"] = {
label = "Expert Feed Trap Bait",
weight = 250,
stack = true,
close = true,
description = "An expert feed trap bait for seasoned users.",
},
["gg_hunting_meatbait_01"] = {
label = "Basic Meat Trap Bait",
weight = 250,
stack = true,
close = true,
description = "A basic meat trap bait for beginners.",
},
["gg_hunting_meatbait_02"] = {
label = "Advanced Meat Trap Bait",
weight = 250,
stack = true,
close = true,
description = "An advanced meat trap bait for experienced users.",
},
["gg_hunting_meatbait_03"] = {
label = "Expert Meat Trap Bait",
weight = 250,
stack = true,
close = true,
description = "An expert meat trap bait for seasoned users.",
},
-- Specialty Animal Items (gg_hunting)
["gg_deer_antler_01"] = {
label = "Rough Deer Antler",
weight = 2500,
stack = false,
close = true,
},
["gg_deer_antler_02"] = {
label = "Quality Deer Antler",
weight = 2500,
stack = false,
close = true,
},
["gg_deer_antler_03"] = {
label = "Pristine Deer Antler",
weight = 2500,
stack = false,
close = true,
},
["gg_boar_tusk_01"] = {
label = "Rough Boar Tusk",
weight = 2500,
stack = false,
close = true,
},
["gg_boar_tusk_02"] = {
label = "Quality Boar Tusk",
weight = 2500,
stack = false,
close = true,
},
["gg_boar_tusk_03"] = {
label = "Pristine Boar Tusk",
weight = 2500,
stack = false,
close = true,
},
["gg_rabbit_pelt_01"] = {
label = "Rough Rabbit Pelt",
weight = 2500,
stack = false,
close = true,
},
["gg_rabbit_pelt_02"] = {
label = "Quality Rabbit Pelt",
weight = 2500,
stack = false,
close = true,
},
["gg_rabbit_pelt_03"] = {
label = "Pristine Rabbit Pelt",
weight = 2500,
stack = false,
close = true,
},
["gg_pig_lard_01"] = {
label = "Rough Pig Lard",
weight = 2500,
stack = false,
close = true,
},
["gg_pig_lard_02"] = {
label = "Quality Pig Lard",
weight = 2500,
stack = false,
close = true,
},
["gg_pig_lard_03"] = {
label = "Pristine Pig Lard",
weight = 2500,
stack = false,
close = true,
},
["gg_cow_horns_01"] = {
label = "Rough Cow Horns",
weight = 2500,
stack = false,
close = true,
},
["gg_cow_horns_02"] = {
label = "Quality Cow Horns",
weight = 2500,
stack = false,
close = true,
},
["gg_cow_horns_03"] = {
label = "Pristine Cow Horns",
weight = 2500,
stack = false,
close = true,
},
["gg_coyote_fangs_01"] = {
label = "Rough Coyote Fangs",
weight = 2500,
stack = false,
close = true,
},
["gg_coyote_fangs_02"] = {
label = "Quality Coyote Fangs",
weight = 2500,
stack = false,
close = true,
},
["gg_coyote_fangs_03"] = {
label = "Pristine Coyote Fangs",
weight = 2500,
stack = false,
close = true,
},
["gg_cougar_claw_01"] = {
label = "Rough Cougar Claws",
weight = 2500,
stack = false,
close = true,
},
["gg_cougar_claw_02"] = {
label = "Quality Cougar Claws",
weight = 2500,
stack = false,
close = true,
},
["gg_cougar_claw_03"] = {
label = "Pristine Cougar Claws",
weight = 2500,
stack = false,
close = true,
},
["gg_bear_claw_01"] = {
label = "Rough Bear Claws",
weight = 2500,
stack = false,
close = true,
},
["gg_bear_claw_02"] = {
label = "Quality Bear Claws",
weight = 2500,
stack = false,
close = true,
},
["gg_bear_claw_03"] = {
label = "Pristine Bear Claws",
weight = 2500,
stack = false,
close = true,
},
["gg_wolf_fangs_01"] = {
label = "Rough Wolf Fangs",
weight = 2500,
stack = false,
close = true,
},
["gg_wolf_fangs_02"] = {
label = "Quality Wolf Fangs",
weight = 2500,
stack = false,
close = true,
},
["gg_wolf_fangs_03"] = {
label = "Pristine Wolf Fangs",
weight = 2500,
stack = false,
close = true,
},
["gg_hunting_leopardskin_01"] = {
label = "Rough Leopard Skin",
weight = 2500,
stack = false,
close = true,
},
["gg_hunting_leopardskin_02"] = {
label = "Quality Leopard Skin",
weight = 2500,
stack = false,
close = true,
},
["gg_hunting_leopardskin_03"] = {
label = "Pristine Leopard Skin",
weight = 2500,
stack = false,
close = true,
},
["gg_primate_skull_01"] = {
label = "Rough Primate Skull",
weight = 2500,
stack = false,
close = true,
},
["gg_primate_skull_02"] = {
label = "Quality Primate Skull",
weight = 2500,
stack = false,
close = true,
},
["gg_primate_skull_03"] = {
label = "Pristine Primate Skull",
weight = 2500,
stack = false,
close = true,
},
["gg_horse_mane_01"] = {
label = "Rough Horse Mane",
weight = 2500,
stack = false,
close = true,
},
["gg_horse_mane_02"] = {
label = "Quality Horse Mane",
weight = 2500,
stack = false,
close = true,
},
["gg_horse_mane_03"] = {
label = "Pristine Horse Mane",
weight = 2500,
stack = false,
close = true,
},
["gg_bear_hide_01"] = {
label = "Rough Bear Hide",
weight = 2500,
stack = false,
close = true,
},
["gg_bear_hide_02"] = {
label = "Quality Bear Hide",
weight = 2500,
stack = false,
close = true,
},
["gg_bear_hide_03"] = {
label = "Pristine Bear Hide",
weight = 2500,
stack = false,
close = true,
},
-- Trapped Animals (gg_hunting)
["gg_trapped_cat_01"] = {
label = "Rough Trapped Cat",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_cat_02"] = {
label = "Quality Trapped Cat",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_cat_03"] = {
label = "Pristine Trapped Cat",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_dog_01"] = {
label = "Rough Trapped Dog",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_dog_02"] = {
label = "Quality Trapped Dog",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_dog_03"] = {
label = "Pristine Trapped Dog",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_chickenhawk_01"] = {
label = "Rough Trapped Chickenhawk",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_chickenhawk_02"] = {
label = "Quality Trapped Chickenhawk",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_chickenhawk_03"] = {
label = "Pristine Trapped Chickenhawk",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_rabbit_01"] = {
label = "Rough Trapped Rabbit",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_rabbit_02"] = {
label = "Quality Trapped Rabbit",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_rabbit_03"] = {
label = "Pristine Trapped Rabbit",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_hen_01"] = {
label = "Rough Trapped Hen",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_hen_02"] = {
label = "Quality Trapped Hen",
weight = 2500,
stack = false,
close = true,
},
["gg_trapped_hen_03"] = {
label = "Pristine Trapped Hen",
weight = 2500,
stack = false,
close = true,
},
-- end of (gg_hunting)
2. Add the weapons
Open ox_inventory/data/weapons.lua and paste these lines inside the Weapons = { table.
['WEAPON_HUNTINGRIFLE'] = {
label = 'Hunting Rifle',
weight = 5000,
durability = 0.5,
ammoname = 'gg_hunting_rifleammo',
},
['WEAPON_CROSSBOW'] = {
label = 'Hunting Crossbow',
weight = 5000,
durability = 0.5,
ammoname = 'gg_hunting_arrowammo',
},
3. Add the ammo
In the same file, paste these lines inside the Ammo = { table near the bottom.
['gg_hunting_arrowammo'] = {
label = 'Arrow Ammo',
weight = 20,
},
['gg_hunting_rifleammo'] = {
label = 'Hunting Rifle Ammo',
weight = 20,
},
Important The weapons go in
Weaponsand the ammo goes inAmmo, both indata/weapons.lua. If you add them todata/items.luaor to the wrong table, players can't equip the weapons or reload them.
4. Add the images
Copy every PNG from gg_hunting/!SETUP/IMAGES into ox_inventory/web/images.
5. Restart
Restart your server so the inventory loads the new items and weapons. Then buy the rifle and ammo at the Hunting Lodge, equip the rifle and reload it to check.
