Config
All Config Edit
Please read carefully and only change things that are necessary for your server and Framework
-- Configuration for hunting script
Config = {
Invincible = true, -- Is the ped going to be invincible?
Frozen = true, -- Is the ped frozen in place?
Stoic = true,-- Will the ped react to events around them?
FadeIn = true, -- Will the ped fade in and out based on the distance. (Looks a lot better.)
DistanceSpawn = 35.0, -- Distance before spawning/despawning the ped. (GTA Units.)
MinusOne = true, -- Leave this enabled if your coordinates grabber does not -1 from the player coords.
GenderNumbers = { ['male'] = 4, ['female'] = 5 }, -- No reason to touch these.
PedList = {
{
model = "mp_m_weapexp_01",
coords = vector4(-679.15, 5839.55, 17.3, 240.02),
gender = "male",
scenario = "WORLD_HUMAN_GUARD_STAND"
},
{
model = "mp_m_weapexp_01",
coords = vector4(569.26, 2796.63, 42.03, 273.96),
gender = "male",
scenario = "WORLD_HUMAN_GUARD_STAND"
},
},
}
--Core
Config.Framework = 'QBCore' -- The name of your core. Default; QBCore --"If you use QBX leave this to QBCore and change it. Only change the Config.FrameworkResource"
Config.CoreScriptName = 'qb-core' -- The name of your core folder. Default; qb-core -- "--"If you use QBX leave this to QBCore and change it"
Config.TargetName = 'ox_target' -- Normally I only use ox_target but I still left the qb-target port which will be
--really temporary because I'm going to discontinue any support for qb-target soon. / Hence rename to "qb-target" or "ox_target" depending on what you use!
--====================================================================================================--
--############################################################--
-- VERY IMPORTANT BEFORE MAKING CHANGES AND INVENTORY SETTINGS
--############################################################--
Config.NewQBInventoryCreateShop = "false" -- If you are using the new version of QB-Inventory, leave this as "true". If you are using the old version, set it to "false". The same applies if you are using QBX; set it to "false".
Config.ShopNameInventory = 'ox_inventory' -- Choose between: "old-qb-inventory", "new-qb-inventory", or "ox_inventory"
--############################################################--
-- old-qb-inventory - "Old version of qb-inventory, ps-inventory, etc."
-- new-qb-inventory - "The latest version of qb-inventory. Make sure Config.NewQBInventoryCreateShop is set to ,,true"
-- ox_inventory - "If you use ox_inventory on an old or new version of QBCore, or if you use QBX, you are good! Just make sure Config.NewQBInventoryCreateShop is set to ,,false"
--############################################################--
--====================================================================================================--
--really temporary because I'm going to discontinue any support for qb-inventory very soon. / Hence rename to "qb-inventory" or "ox_inventory" depending on what you use!
Config.CoreNotify = 'ox_lib' -- Notifications are only supported by ox_lib but you can easily edit them from the wrapper folder I've left you a completely open source to safely unpack to your liking, follow the example I've made so it will work in the future.
Config.MenuHunting = 'ox_lib' -- "ox_lib" or "qb-menu" / I leave again the temporary support of qb-menu for the main store but for the sale use only ox_lib
-- Core info settings you can ignore these if you have not edited any core functions in your city
Config.FrameworkResource = "QBCore" -- QBCore and QBX
Config.DebugHelper = "false" -- "By default it is stopped. You can only set it to true if you have a problem and we require it."
Config.BaitCooldown = 3
Config.Cooldown = 0
Config.TimeBeforeBaitStarts = 5000 -- (20000 = 20 seconds, this is to give the player enough time to move away from the bait )
Config.SpawnVehicle = vector4(-665.06, 5827.36, 17.33, 145.97) -- Spawn location for hunting
Config.SpawnHeading = 145.97 -- Spawn Heading for hunting
Config.Fuel = 'vt-fuel' -- Your fuel system - "If you use QBX you don't need to enter ox_fuel it only works on QBX all other fuel systems that work with SetFuel You can write it down!"
Config.FuelValue = 100.0 -- amount of fuel at spawn
Config.Spawncar = 'mesa3' -- name cars
Config.PaymentType = 'cash' -- cash / bank
Config.LicenseCost = 10000 -- cost to buy a license from the hunter
Config.LicenseExpireDate = 20 -- 20 days after the license will expiry (this is just a number on the license for police to see when it expires from the date issued)
Config.HuntingLicenseItemName = 'hunterlicense' -- Item name for hunting store access license.
Config.ProgressType = "Progress" -- "Progress" and "Circle" - "It depends on the style you want to use on ox_lib"
--All the item names for weapons in the game I've used. If you accidentally use other qb-core cartridges use #### 'snp_ammo' ####
Config.Weapon = {
weaponitems = 'weapon_sniperrifle',
knife = "weapon_knife",
openguncase = 'openguncase',
GunCase = 'guncase',
}
--All the names of the items you will need.
Config.Items = {
bait = 'huntingbait', -- item for bait
huntingcarcass1 = 'huntingcarcass1', -- Leather Level 1
huntingcarcass2 = 'huntingcarcass2', -- Leather Level 2
huntingcarcass3 = 'huntingcarcass3', -- Leather Level 3
huntingcarcass4 = 'huntingcarcass4', -- Leather Level 4
}
--Name the items and their names so you come out correctly in the sale.
Config.ItemsSell = {
{name = 'huntingcarcass1', label = "Carcass Level1"},
{name = 'huntingcarcass2', label = "Carcass Level2"},
{name = 'huntingcarcass3', label = "Carcass Level3"},
{name = 'huntingcarcass4', label = "Carcass Red"},
}
--Prices for the sale of each skin can be changed here.
Config.Sellitems = {
['huntingcarcass1'] = math.random(140,190),
['huntingcarcass2'] = math.random(500,570),
['huntingcarcass3'] = math.random(250,350),
['huntingcarcass4'] = math.random(90,130),
}
-- Shop
Config.Hunting = {
label = "Hunting Store",
slots = 50,
items = {
[1] = {name = "guncase",price = 4000,amount = 1,info = {},type = "item",slot = 1,},
[2] = {name = "weapon_knife",price = 3000,amount = 1,info = {},type = "item",slot = 2,},
[3] = {name = "huntingbait",price = 500,amount = 5,info = {},type = "item",slot = 3,},
[4] = {name = "binoculars",price = 200,amount = 2,info = {},type = "item",slot = 4,},
[5] = {name = "radio",price = 250,amount = 2,info = {},type = "item",slot = 5,},
[6] = {name = "ammo-sniper",price = 200,amount = 5,info = {},type = "item",slot = 6,},
}}
-- Zones
Config.Zones = {
UseZones = true, -- Enables map zones
Zones = { -- Hunting circle zones you can add more here. These zones are purely visual we use them entirely in RP they do not affect the script in anyway.
{title='Hunting Zone', colour=5, id=141, coords = vector3(-1453.75, 4481.14, 20.10), scale = 0.6, zonecolour = 60, radius = 350.00},
},
--Hunting Marking zone coords
HuntingStations = {
vector3(-1453.75, 4481.14, 20.10)
},
-- Coordinates of the central point of the hunting area
HuntingZone = {
vector3(-1453.75, 4481.14, 20.10)
},
-- Area for sale/ these are coordinates
SellLocation = {
vector4(569.29, 2796.49, 42.02, 299.97)
},
HuntingZoneRadius = { 350.0 }, -- Radius zone
HuntingZoneUseZ = { true }, --(defalt is true)
HuntingZoneDebug = { true }, --(defalt is true and false..)
--Here I think everything is clear there is nothing to explain.
TargetIcons = {
Animalicon = 'fas fa-utensils',
Shops = 'fas fa-shopping-cart',
licence = 'fas fa-id-card',
selling = 'fa-solid fa-dollar-sign',
}
}
--NEW Menu
--These are pull down menus for the store, you can add, edit, remove and whatever you want to do with them.
Config.HuntingShopsMenu = {
['ox_lib'] = {
{
title = 'Articles Shop',
description = 'Get things from the store',
icon = 'fas fa-shopping-basket',
event = "vt-hunting:client:shop",
},
{
title = 'Spawn Vehicle',
description = 'Rent this amazing jeep',
icon = 'fas fa-car',
event = "vt-hunting:tookoutacar",
},
},
['qb-menu'] = {
{
header = 'Articles Shop',
txt = 'Get things from the store',
icon = 'fas fa-shopping-basket',
params = {
event = "vt-hunting:client:shop",
}
},
{
header = 'Spawn Vehicle',
txt = 'Rent this amazing jeep',
icon = 'fas fa-car',
params = {
event = "vt-hunting:tookoutacar",
}
},
{
header = "Leave",
icon = 'fa-solid fa-circle-xmark',
params = {
event = 'qb-menu:closeMenu',
}
},
}
}
Last updated