Installation

Installation


Hello

Guide to install reFlow Hunting.

Download Resource

To get started first download your asset previously purchased from reflow-store.com (opens in a new tab) login into keymaster and you will find your resource under the option Granted Assets

Installation

Open the downloaded resource zip file and drag the folder into your servers resources folder

Starting Order

ensure reFlow-Bridge
 
ensure reFlow-Hunting

Add Items

qb-core/shared/items.lua
['scentremover'] = {
    ['name'] = 'scentremover',
    ['label'] = 'Scent Remover',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'scentremover.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Removes Your Scent'
},
['poorpeltsmall'] = {
    ['name'] = 'poorpeltsmall',
    ['label'] = 'Poor Small Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'poorpeltsmall.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Small Pelt in Bad Quality'
},
['poorpeltmedium'] = {
    ['name'] = 'poorpeltmedium',
    ['label'] = 'Poor Medium Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'poorpeltmedium.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Medium Pelt in Bad Quality'
},
['poorpeltlarge'] = {
    ['name'] = 'poorpeltlarge',
    ['label'] = 'Poor Large Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'poorpeltlarge.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Large Pelt in Bad Quality'
},
['peltsmall'] = {
    ['name'] = 'peltsmall',
    ['label'] = 'Small Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'peltsmall.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Small Pelt'
},
['peltmedium'] = {
    ['name'] = 'peltmedium',
    ['label'] = 'Medium Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'peltmedium.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Medium Pelt'
},
['peltlarge'] = {
    ['name'] = 'peltlarge',
    ['label'] = 'Large Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'peltlarge.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Large Pelt'
},
['goodpeltsmall'] = {
    ['name'] = 'goodpeltsmall',
    ['label'] = 'Exceptional Small Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'goodpeltsmall.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Small Pelt in Exceptional Quality'
},
['goodpeltmedium'] = {
    ['name'] = 'goodpeltmedium',
    ['label'] = 'Exceptional Medium Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'goodpeltmedium.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Medium Pelt in Exceptional Quality'
},
['goodpeltlarge'] = {
    ['name'] = 'goodpeltlarge',
    ['label'] = 'Exceptional Large Pelt',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'goodpeltlarge.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Large Pelt in Exceptional Quality'
},
['poorbirdcarcass'] = {
    ['name'] = 'poorbirdcarcass',
    ['label'] = 'Poor Bird Carcass',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'poorbirdcarcass.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Bird Carcass in Bad Quality'
},
['birdcarcass'] = {
    ['name'] = 'birdcarcass',
    ['label'] = 'Bird Carcass',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'birdcarcass.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Bird Carcass'
},
['goodbirdcarcass'] = {
    ['name'] = 'goodbirdcarcass',
    ['label'] = 'Exceptional Bird Carcass',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'goodbirdcarcass.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Bird Carcass in Exceptional Quality'
},
['meat'] = {
    ['name'] = 'meat',
    ['label'] = 'Meat',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'meat.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Meat'
},
['huntingbrochure'] = {
    ['name'] = 'huntingbrochure',
    ['label'] = 'Hunting Brochure',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'huntingbrochure.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Hunting Brochure'
},
['hbait'] = {
    ['name'] = 'hbait',
    ['label'] = 'Herbivore Bait',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'hbait.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Herbivore Bait'
},
['deercall'] = {
    ['name'] = 'deercall',
    ['label'] = 'Deer Call',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'deercall.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Deer Call'
},
['birdcall'] = {
    ['name'] = 'birdcall',
    ['label'] = 'Bird Call',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'birdcall.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Bird Call'
},
['boarcall'] = {
    ['name'] = 'boarcall',
    ['label'] = 'Boar Call',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'boarcall.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'A Boar Call'
},
['cbait'] = {
    ['name'] = 'cbait',
    ['label'] = 'Carnivore Bait',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'cbait.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Carnivore Bait'
},
['animaltag'] = {
    ['name'] = 'animaltag',
    ['label'] = 'Hunting Tag',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'animaltag.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Hunting Tag'
},
['bearspray'] = {
    ['name'] = 'bearspray',
    ['label'] = 'Bear Spray',
    ['weight'] = 0,
    ['type'] = 'item',
    ['image'] = 'bearspray.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Bear Spray'
},
['huntingcamera'] = { 
    ['name'] = 'huntingcamera',
    ['label'] = 'Wildlife Camera', 
    ['weight'] = 160,
    ['type'] = 'item',
    ['image'] = 'huntingcamera.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true, 
    ['combinable'] = nil,
    ['description'] = 'An Wildlife Camera' 
},
['huntingpicture'] = { 
    ['name'] = 'huntingpicture',
    ['label'] = 'Animal Picture', 
    ['weight'] = 5,
    ['type'] = 'item',
    ['image'] = 'huntingpicture.png',
    ['unique'] = false,
    ['useable'] = true,
    ['shouldClose'] = true, 
    ['combinable'] = nil,
    ['description'] = 'An Picture Of An Animal ' 
}

Setup Weapon

Add Weapon

ℹ️

Also Add weapon_dartgun to DurabilityMultiplier or DurabilityBlockedWeapons depending on whats prefered for your server in the qb-weapons/config.lua

qb-core/shared/items.lua
weapon_dartgun = { name = 'weapon_dartgun', label = 'Dart Gun', weight = 1000, type = 'weapon', ammotype = "AMMO_DART", image = 'WEAPON_DARTGUN.png', unique = true, useable = false, description = 'A Dart Gun That Shoots Tranquilizer Darts' },
qb-core/shared/weapons.lua
[`weapon_dartgun`]= { name = 'weapon_dartgun', label = 'Dart Gun', weapontype = 'Pistol', ammotype = 'AMMO_DART', damagereason = 'Tranquilized' },

Add Ammo

⚠️

Make sure to double check the qb-weapons:client:AddAmmo event in other ammo as your version might be different

qb-core/shared/items.lua
dart_ammo = { name = 'dart_ammo', label = 'Dart Ammo', weight = 200, type = 'item', image = 'ammo-dartgun.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'Tranquilizer Darts For A Dart Gun' },
qb-weapons/server/main.lua
QBCore.Functions.CreateUseableItem('dart_ammo', function(source, item)
    TriggerClientEvent('qb-weapons:client:AddAmmo', source, 'AMMO_DART', 1, item)
end)

Add Images

qb-inventory/html/images/

Once you've added the items to your inventory, the next step is to drag and drop the images into the path mentioned above. You can find these images in the resource you downloaded from Keymaster inside the images folder.

Add Shop

⚠️

This step is only required for codem-inventory

codem-inventory/config/shops.lua
["huntingsupplies"] = {
  label = "Hunting",
  job = 'all',
  items = {
      ["1"] = { name = "snp_ammo", price = 10 },
      ["2"] = { name = "dart_ammo", price = 10 },
      ["3"] = { name = "animaltag", price = 25 },
      ["4"] = { name = "scentremover", price = 50 },
      ["5"] = { name = "huntingbrochure", price = 75 },
      ["6"] = { name = "bearspray", price = 100 },
      ["7"] = { name = "hbait", price = 250 },
      ["8"] = { name = "cbait", price = 300 },
      ["9"] = { name = "huntingcamera", price = 350 },
      ["10"] = { name = "deercall", price = 450 },
      ["11"] = { name = "boarcall", price = 500 },
      ["12"] = { name = "birdcall", price = 500 },
      ["13"] = { name = "weapon_sniperrifle", price = 1000 },
      ["14"] = { name = "weapon_dartgun", price = 1500 },
  },
  coords = vector3(-1117.2538, 2692.1638, 17.5542),
  Blip = {
      enable = false,
      id = 52,
      scale = 0.5,
      color = 5,
  },
}