Browse docs

Inventory items

Copyable definitions for all 25 Sky Hunting items, the Hunting rifle and the double-barrel shotgun.

The default Hunting catalogue uses 25 items for equipment, bait, cages, harvested goods and trophies. Choose your inventory tab and merge its missing entries into the existing item catalogue. Keep the items already installed and copy the supplied PNGs into your inventory's image directory.

The Hunting Simulator purchase includes the Primitive Weapon Pack. Install its separate weapon and ammunition entries in the same inventory.

-- Merge inside the existing item table in ox_inventory/data/items.lua.

-- Map and tracking
hunting_map = {
    label = "Hunting map", weight = 100,
    stack = false, close = true, consume = 0,
    client = { image = "hunting_map.png" },
},
hunting_magnifier = {
    label = "Magnifying glass", weight = 150,
    stack = false, close = true, consume = 0,
    client = { image = "hunting_magnifier.png" },
},

-- Cages
hunting_cage_small = {
    label = "Small hunting cage", weight = 5000,
    stack = false, close = true, consume = 0,
    client = { image = "hunting_cage_small.png" },
},
hunting_cage_large = {
    label = "Large hunting cage", weight = 15000,
    stack = false, close = true, consume = 0,
    client = { image = "hunting_cage_large.png" },
},

-- Meat bait
hunting_bait = {
    label = "Meat bait", weight = 100,
    stack = true, close = true, consume = 0,
    client = { image = "hunting_bait.png" },
},
hunting_bait_2 = {
    label = "Meat bait II", weight = 1000,
    stack = true, close = true, consume = 0,
    client = { image = "hunting_bait_2.png" },
},
hunting_bait_3 = {
    label = "Meat bait III", weight = 2500,
    stack = true, close = true, consume = 0,
    client = { image = "hunting_bait_3.png" },
},

-- Plant bait
hunting_plant_bait = {
    label = "Plant bait", weight = 100,
    stack = true, close = true, consume = 0,
    client = { image = "hunting_plant_bait.png" },
},
hunting_plant_bait_2 = {
    label = "Plant bait II", weight = 1000,
    stack = true, close = true, consume = 0,
    client = { image = "hunting_plant_bait_2.png" },
},
hunting_plant_bait_3 = {
    label = "Plant bait III", weight = 2500,
    stack = true, close = true, consume = 0,
    client = { image = "hunting_plant_bait_3.png" },
},

-- Legal goods
hunting_meat = {
    label = "Wild meat", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_meat.png" },
},
hunting_hide = {
    label = "Animal hide", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_hide.png" },
},
hunting_special_hide = {
    label = "Special hide", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_special_hide.png" },
},

-- Trophies
hunting_antler = {
    label = "Antlers", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_antler.png" },
},
hunting_horn = {
    label = "Horn", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_horn.png" },
},
hunting_bear_paw = {
    label = "Bear paw", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_bear_paw.png" },
},
hunting_hare_foot = {
    label = "Hare foot", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_hare_foot.png" },
},

-- Protected species
hunting_alligator_skin = {
    label = "Alligator skin", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_alligator_skin.png" },
},
hunting_leopard_pelt = {
    label = "Leopard pelt", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_leopard_pelt.png" },
},
hunting_tiger_pelt = {
    label = "Tiger pelt", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_tiger_pelt.png" },
},
hunting_rhino_horn = {
    label = "Rhino horn", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_rhino_horn.png" },
},
hunting_pangolin_scales = {
    label = "Pangolin scales", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_pangolin_scales.png" },
},

-- Rare protected species
hunting_albino_alligator_skin = {
    label = "Albino alligator skin", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_albino_alligator_skin.png" },
},
hunting_black_leopard_pelt = {
    label = "Black leopard pelt", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_black_leopard_pelt.png" },
},
hunting_white_tiger_pelt = {
    label = "White tiger pelt", weight = 500,
    stack = true, close = true,
    client = { image = "hunting_white_tiger_pelt.png" },
},

Register the items

Merge Lua entries into your inventory's existing table. For an ESX installation that stores items in its database, use the esx_inventory (DB) tab with that items table. Hunting's import.sql creates its own persistence tables. Register inventory items through your inventory's catalogue.

Sky Base registers the use of the map, magnifier, bait and cages. Keep consume = 0 where specified and leave client events and exports unset. Hunting removes a bait or cage item when placement succeeds. The map and magnifier are reusable. The bait and goods stack, and the reusable equipment and cages have their own slots where the inventory supports that setting.

The templates use grams except for Jaksam, which uses kilograms. Use an inventory that retains item metadata when configured protected species share a generic hide with legal game. See Poaching.

Hunting weapons

Register the Hunting rifle and double-barrel shotgun as weapons. Select the matching tab and use the provider's normal weapon registry. For native ESX loadouts, use the framework entries below.

-- Merge inside Weapons in ox_inventory/data/weapons.lua.
["WEAPON_SKY_RIFLE"] = {
    label = "Hunting rifle", weight = 3600,
    durability = 0.5, ammoname = "ammo-sniper",
    client = { image = "WEAPON_SKY_RIFLE.png" },
},
["WEAPON_SKY_SHOTGUN"] = {
    label = "Double-barrel shotgun", weight = 3175,
    durability = 0.4, ammoname = "ammo-shotgun",
    client = { image = "WEAPON_SKY_SHOTGUN.png" },
},

Framework weapon catalogues

QBCore

For QB inventories that use the framework's weapon catalogue, also merge the two hash-keyed entries below into QBCore.Shared.Weapons in qb-core/shared/weapons.lua.

qb-core/shared/weapons.lua
[joaat("WEAPON_SKY_RIFLE")] = {
    name = "weapon_sky_rifle", label = "Hunting rifle", weapontype = "Sniper Rifle",
    ammotype = "AMMO_SNIPER", damagereason = "Hunting rifle",
},
[joaat("WEAPON_SKY_SHOTGUN")] = {
    name = "weapon_sky_shotgun", label = "Double-barrel shotgun", weapontype = "Shotgun",
    ammotype = "AMMO_SHOTGUN", damagereason = "Double-barrel shotgun",
},

Native ESX

With native ESX loadout weapons, merge these entries into Config.Weapons in es_extended/config.weapons.lua. Use the item-based inventory's weapon tab on an ESX server that equips weapons from items.

es_extended/config.weapons.lua
{
    name = "WEAPON_SKY_RIFLE",
    label = "Hunting rifle",
    tints = Config.DefaultWeaponTints,
    ammo = { label = "Rounds", hash = joaat("AMMO_SNIPER") },
    components = {},
},
{
    name = "WEAPON_SKY_SHOTGUN",
    label = "Double-barrel shotgun",
    tints = Config.DefaultWeaponTints,
    ammo = { label = "Rounds", hash = joaat("AMMO_SHOTGUN") },
    components = {},
},

Default weapons and ammunition

Keep the default Hunting knife (WEAPON_KNIFE) in the inventory's weapon catalogue. The shop and its weapon skills use these IDs. Inventory providers can use different ammo item names. Match the ammunition IDs in Hunting weapons to the items your provider uses for those guns.

WeaponWeapon IDDefault shop ammunition ID
SpearWEAPON_SKY_SPEAR—
SlingshotWEAPON_SKY_SLINGSHOTslingshot_stone
Recurve hunting bowWEAPON_SKY_BOWhunting_arrow
CrossbowWEAPON_SKY_CROSSBOWcrossbow_bolt
MusketWEAPON_MUSKETammo-musket
Double-barrel shotgunWEAPON_SKY_SHOTGUNammo-shotgun
Hunting rifleWEAPON_SKY_RIFLEammo-sniper
Precision rifleWEAPON_PRECISIONRIFLEammo-sniper

Use normal reload behavior for the firearms. For the included Primitive Weapon Pack, follow its weapon and ammunition setup, which handles bow arrows, crossbow bolts and slingshot stones separately.

Inventory images

Copy the PNGs from sky_hunting/config/inventory/ to the image directory your inventory actually reads. Keep their names and letter case, including WEAPON_SKY_RIFLE.png and WEAPON_SKY_SHOTGUN.png. Add the Primitive Weapons images as well.

InventoryImage directory
ox_inventoryox_inventory/web/images/
QS inventoryThe image directory configured by your installed QS version
QB inventoriesThe selected inventory's html/images/ directory
Tgiann inventoryinventory_images/images/
Jaksam inventoryjaksam_inventory/_images/
CodeM inventorycodem-inventory/html/itemimages/
CodeM Inventory V2The configured codem-inventory-images resource
Native ESXThe directory used by your ESX inventory interface, if it displays icons

Reload the catalogue

Start the inventory before Sky Base and Hunting. Plan a full server restart if the inventory or Sky Base is already running, then connect with a fresh FiveM client so the weapon data loads. Follow First steps to buy and use equipment, collect goods and verify a sale with a regular player character.

Default item catalogue

GroupItem IDs
Map and trackinghunting_map, hunting_magnifier
Cageshunting_cage_small, hunting_cage_large
Meat baithunting_bait, hunting_bait_2, hunting_bait_3
Plant baithunting_plant_bait, hunting_plant_bait_2, hunting_plant_bait_3
Legal goodshunting_meat, hunting_hide, hunting_special_hide
Trophieshunting_antler, hunting_horn, hunting_bear_paw, hunting_hare_foot
Protected specieshunting_alligator_skin, hunting_leopard_pelt, hunting_tiger_pelt, hunting_rhino_horn, hunting_pangolin_scales
Rare protected specieshunting_albino_alligator_skin, hunting_black_leopard_pelt, hunting_white_tiger_pelt