AK4Y = {}AK4Y.Framework = "qb" -- qb / oldqb | qb = export system | oldqb = triggerevent systemAK4Y.Mysql = "oxmysql" -- Check fxmanifest.lua when you change it! | ghmattimysql / oxmysql / mysql-asyncAK4Y.UpdateXP = {min = 5, max = 10} --How many xp do you want to increase for collectionAK4Y.MaxLevel = 15AK4Y.TaskResetPeriod = 1 -- DAYAK4Y.PaymentMethod = "cash" -- "cash" or "bank"AK4Y.NeededEXP = 1000 -- for level upAK4Y.OnlyShootInZone = trueAK4Y.NPCAreas = {{pedName = "AKAY",pedHash = 0x1EEC7BDC,pedCoord = vector3(-679.14, 5834.51, 16.33),drawText = "[E] - Hunting NPC",h = 132.41,blipSettings = { -- https://docs.fivem.net/docs/game-references/blips/blip = true,blipName = "Hunting NPC",blipIcon = 154,blipColour = 1,},},}AK4Y.WikiPage = {{starCount = 1, -- max 5areaTitle = "POULTRY",areaMiniTitle = "CHICKEN FARMING",areaDescription = "In this area; you can catch chickens. A good introduction to hunting!",allowedWeapons = {"-",},animals = {"CHICKEN"},areaCoords = vector3(1447.7864, 1066.3145, 114.33869),areaImage = "./images/chickenArea.png",},{starCount = 3, -- max 5areaTitle = "PIG HUNTER",areaMiniTitle = "Killer of pigs",areaDescription = "The next hunting point after poultry :D, Their meat is of high quality. It's a good profit!",allowedWeapons = {"KNIFE","HUNTING RIFLE",},animals = {"PIG"},areaCoords = vector3(3681.69, 4520.4, 23.64),areaImage = "./images/area_1.png",},{starCount = 5, -- max 5areaTitle = "DEER HUNTING",areaMiniTitle = "The Last Point",areaDescription = "The ultimate in hunting! If you can catch something here, you're a real hunter! ",allowedWeapons = {"KNIFE","HUNTING RIFLE",},animals = {"DEER"},areaCoords = vector3(-543.85, 5524.41, 61.03),areaImage = "./images/deerArea.png",},}AK4Y.MarketPage = {{uniqueId = 1,itemLabel = "HUNTING RIFLE",itemName = "weapon_sniperrifle",itemType = "item", -- item or weaponitemCount = 1,itemPrice = 500,itemImage = "./images/shotgunItem.png",},{uniqueId = 2,itemLabel = "HUNTING KNIFE",itemName = "hunting_knife",itemType = "item", -- item or weaponitemCount = 1,itemPrice = 100,itemImage = "./images/HuntingKnife.png",},{uniqueId = 3,itemLabel = "Poor Quality Deer Bait",itemName = "deer_bait",itemType = "item", -- item or weaponitemCount = 1,itemPrice = 10,itemImage = "./images/lowDeerBait.png",},{uniqueId = 4,itemLabel = "High Quality Deer Bait",itemName = "deer_bait2",itemType = "item", -- item or weaponitemCount = 1,itemPrice = 15,itemImage = "./images/highDeerBait.png",},{uniqueId = 5,itemLabel = "Poor Quality Pig Bait",itemName = "pig_bait",itemType = "item", -- item or weaponitemCount = 1,itemPrice = 7,itemImage = "./images/lowPigBait.png",},{uniqueId = 6,itemLabel = "High Quality Pig Bait",itemName = "pig_bait2",itemType = "item", -- item or weaponitemCount = 1,itemPrice = 9,itemImage = "./images/highPigBait.png",},}AK4Y.SellItems = {{uniqueId = 1,itemLabel = "Poor Quality Deer Meat",itemName = "deer_meat",itemStar = 4, -- MAX 5itemPrice = 200,itemImage = "./images/lowDeerMeat.png",},{uniqueId = 2,itemLabel = "High Quality Deer Meat",itemName = "deer_meat2",itemStar = 5, -- MAX 5itemPrice = 290,itemImage = "./images/highDeerMeat.png",},{uniqueId = 3,itemLabel = "Poor Quality Pig Meat",itemName = "pig_meat",itemStar = 2, -- MAX 5itemPrice = 120,itemImage = "./images/lowPigMeat.png",},{uniqueId = 4,itemLabel = "High Quality Pig Meat",itemName = "pig_meat2",itemStar = 3, -- MAX 5itemPrice = 170,itemImage = "./images/highPigMeat.png",},{uniqueId = 5,itemLabel = "Poor Quality Chicken Meat",itemName = "chicken_meat",itemStar = 0, -- MAX 5itemPrice = 40,itemImage = "./images/lowChickenMeat.png",},{uniqueId = 6,itemLabel = "High Quality Chicken Meat",itemName = "chicken_meat2",itemStar = 1, -- MAX 5itemPrice = 55,itemImage = "./images/highChickenMeat.png",},}AK4Y.Tasks = {{taskId = 1,taskTitle = "Cath 10 Chicken",taskDescription = "Cath 10 chicken and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 2,taskTitle = "Cut 10 Pig",taskDescription = "Cut 10 pig and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 3,taskTitle = "Cut 10 Deer",taskDescription = "Cut 10 deer and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 4,taskTitle = "Place 10 Pig Bait",taskDescription = "Place 10 pig bait and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 5,taskTitle = "Place 10 Deer Bait",taskDescription = "Place 10 deer bait and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 6,taskTitle = "Find 10 Rare Chicken Meat",taskDescription = "Find 10 rare chicken meat and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 7,taskTitle = "Find 10 Rare Pig Meat",taskDescription = "Find 10 rare chicken meat and earn xp",rewardPrice = 10000,requiredCount = 10,},{taskId = 8,taskTitle = "Find 10 Rare Deer Meat",taskDescription = "Find 10 rare chicken meat and earn xp",rewardPrice = 10000,requiredCount = 10,},}AK4Y.LevelPackages = {{packageId = 1,upLevel = 1,realPrice = 10,directLink = "https://www.google.com/",},{packageId = 2,upLevel = 2,realPrice = 20,directLink = "https://www.google.com/",},{packageId = 3,upLevel = 3,realPrice = 25,directLink = "https://www.google.com/",},{packageId = 4,upLevel = 4,realPrice = 30,directLink = "https://www.google.com/",},{packageId = 5,upLevel = 5,realPrice = 35,directLink = "https://www.google.com/",},{packageId = 6,upLevel = 6,realPrice = 40,directLink = "https://ak4y.tebex.io/package/5526695",},}function NOTIFY(message)QBCore.Functions.Notify(message)endfunction PlaceBait(baittype)-- baittype return placed bait typeif baittype == "a_c_pig" thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 4, 1)elseif baittype == "a_c_deer" thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 5, 1)endendfunction CutAnimal(animal)-- animal return cutted animal hashprint(animal)if animal == 1794449327 thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 1, 1)elseif animal == -1323586730 thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 2, 1)elseif animal == -664053099 thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 3, 1)endendfunction EarnRareItem(animal)-- animal return earned rare item animal hashif animal == 1794449327 thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 6, 1)elseif animal == -1323586730 thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 7, 1)elseif animal == -664053099 thenTriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 8, 1)endendAK4Y.UnlimitedAmmoWeapons = {["weapon_sniperrifle"] = true,}AK4Y.HuntLocations = {["a_c_deer"] = {location = vector3(-543.85, 5524.41, 61.03),radius = 100.0,blipactive = true,blipColour = 1,blipAlpha = 50,BlipName = "Hunt Zone",BlipSprite = 141,BlipScale = 1.0,NeededLevel = 7,["Allowed Weapons"] = {"weapon_sniperrifle",},},["a_c_pig"] = {location = vector3(3681.69, 4520.4, 23.64),radius = 100.0,blipactive = true,blipColour = 1,BlipName = "Hunt Zone",BlipSprite = 141,BlipScale = 1.0,NeededLevel = 4,["Allowed Weapons"] = {"weapon_sniperrifle",},},}AK4Y.CatchChicken = {location = vector3(1447.7864, 1066.3145, 114.33869),radius = 100.0,blipactive = true,blipColour = 1,blipAlpha = 50,BlipName = "Cath Chicken",BlipSprite = 141,BlipScale = 1.0,}AK4Y.AimBlockWeapons = {["weapon_sniperrifle"] = true,["weapon_pistol"] = true}AK4Y.AnimalItems = {["a_c_deer"] = {hash = -664053099,BasicItem = "deer_meat",RareItem = "deer_meat2",},["a_c_pig"] = {hash = -1323586730,BasicItem = "pig_meat",RareItem = "pig_meat2",},["a_c_hen"] = {hash = 1794449327,BasicItem = "chicken_meat",RareItem = "chicken_meat2",},}AK4Y.ProgressTime = {["a_c_deer"] = 10000,["a_c_pig"] = 10000,["a_c_hen"] = 10000,["place_bait"] = 10000,}AK4Y.Languages = { --所有通知等["bait_placed"] = "诱饵已放置",["not_in_zone_bait"] = "你不在这个诱饵区域",["not_in_zone"] = "你不在区域内",["wait"] = "你必须等待才能放置另一个诱饵",["wait"] = "a",["far_from_animal"] = "你离动物太远了",["player_in_close"] = "你附近有玩家时无法进行此操作",["cut_animal"] = "你必须切割动物",["cancel"] = "已取消",["shredded_meat"] = "碎肉",["cant_cut_this_animal"] = "你不能切割这种动物",["not_look_animal"] = "你没有看着动物",["you_couldnt_catch"] = "你没能抓住",["need_level"] = "你的等级还不够诱捕这种动物。",["cath_chicken"] = "[E] 抓鸡",["spam"] = "不要刷屏",["cant_shoot_out_of_zone"] = "你不在区域内时无法射击",["refill_ammo_in_zone"] = "当你进入区域时,你的弹药将会补充",}AK4Y.HTMLTranslate = {["generalTitleDescription"] = "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ullam ea cupiditate veritatis maiores iusto amet sint tempora, illo nostrum quia aspernatur dolorum libero alias dolor.",["wiki"] = "维基",["market"] = "市场",["sales"] = "销售",["tasks"] = "任务",["lvlBuy"] = "等级购买",["weapon"] = "武器",["animals"] = "动物",["exp"] = "经验",["chicken"] = "鸡",["chickenDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!",["deer"] = "鹿",["deerDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!",["pig"] = "猪",["pigDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!",["hello"] = "你好",["level"] = "等级",["up"] = "提升",["howAbout"] = "怎么样",["buyingALevel"] = "购买一个等级?",["levelBuy"] = "等级购买",["setGps"] = "设置GPS",["buy"] = "购买",["sell"] = "出售",["collected"] = "已收集",["reward"] = "奖励",["accept"] = "接受",["cutting"] = "切割中...",}AK4Y = {} AK4Y.Framework = "qb" -- qb / oldqb | qb = export system | oldqb = triggerevent system AK4Y.Mysql = "oxmysql" -- Check fxmanifest.lua when you change it! | ghmattimysql / oxmysql / mysql-async AK4Y.UpdateXP = {min = 5, max = 10} --How many xp do you want to increase for collection AK4Y.MaxLevel = 15 AK4Y.TaskResetPeriod = 1 -- DAY AK4Y.PaymentMethod = "cash" -- "cash" or "bank" AK4Y.NeededEXP = 1000 -- for level up AK4Y.OnlyShootInZone = true AK4Y.NPCAreas = { { pedName = "AKAY", pedHash = 0x1EEC7BDC, pedCoord = vector3(-679.14, 5834.51, 16.33), drawText = "[E] - Hunting NPC", h = 132.41, blipSettings = { -- https://docs.fivem.net/docs/game-references/blips/ blip = true, blipName = "Hunting NPC", blipIcon = 154, blipColour = 1, }, }, } AK4Y.WikiPage = { { starCount = 1, -- max 5 areaTitle = "POULTRY", areaMiniTitle = "CHICKEN FARMING", areaDescription = "In this area; you can catch chickens. A good introduction to hunting!", allowedWeapons = { "-", }, animals = { "CHICKEN" }, areaCoords = vector3(1447.7864, 1066.3145, 114.33869), areaImage = "./images/chickenArea.png", }, { starCount = 3, -- max 5 areaTitle = "PIG HUNTER", areaMiniTitle = "Killer of pigs", areaDescription = "The next hunting point after poultry :D, Their meat is of high quality. It's a good profit!", allowedWeapons = { "KNIFE", "HUNTING RIFLE", }, animals = { "PIG" }, areaCoords = vector3(3681.69, 4520.4, 23.64), areaImage = "./images/area_1.png", }, { starCount = 5, -- max 5 areaTitle = "DEER HUNTING", areaMiniTitle = "The Last Point", areaDescription = "The ultimate in hunting! If you can catch something here, you're a real hunter! ", allowedWeapons = { "KNIFE", "HUNTING RIFLE", }, animals = { "DEER" }, areaCoords = vector3(-543.85, 5524.41, 61.03), areaImage = "./images/deerArea.png", }, } AK4Y.MarketPage = { { uniqueId = 1, itemLabel = "HUNTING RIFLE", itemName = "weapon_sniperrifle", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 500, itemImage = "./images/shotgunItem.png", }, { uniqueId = 2, itemLabel = "HUNTING KNIFE", itemName = "hunting_knife", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 100, itemImage = "./images/HuntingKnife.png", }, { uniqueId = 3, itemLabel = "Poor Quality Deer Bait", itemName = "deer_bait", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 10, itemImage = "./images/lowDeerBait.png", }, { uniqueId = 4, itemLabel = "High Quality Deer Bait", itemName = "deer_bait2", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 15, itemImage = "./images/highDeerBait.png", }, { uniqueId = 5, itemLabel = "Poor Quality Pig Bait", itemName = "pig_bait", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 7, itemImage = "./images/lowPigBait.png", }, { uniqueId = 6, itemLabel = "High Quality Pig Bait", itemName = "pig_bait2", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 9, itemImage = "./images/highPigBait.png", }, } AK4Y.SellItems = { { uniqueId = 1, itemLabel = "Poor Quality Deer Meat", itemName = "deer_meat", itemStar = 4, -- MAX 5 itemPrice = 200, itemImage = "./images/lowDeerMeat.png", }, { uniqueId = 2, itemLabel = "High Quality Deer Meat", itemName = "deer_meat2", itemStar = 5, -- MAX 5 itemPrice = 290, itemImage = "./images/highDeerMeat.png", }, { uniqueId = 3, itemLabel = "Poor Quality Pig Meat", itemName = "pig_meat", itemStar = 2, -- MAX 5 itemPrice = 120, itemImage = "./images/lowPigMeat.png", }, { uniqueId = 4, itemLabel = "High Quality Pig Meat", itemName = "pig_meat2", itemStar = 3, -- MAX 5 itemPrice = 170, itemImage = "./images/highPigMeat.png", }, { uniqueId = 5, itemLabel = "Poor Quality Chicken Meat", itemName = "chicken_meat", itemStar = 0, -- MAX 5 itemPrice = 40, itemImage = "./images/lowChickenMeat.png", }, { uniqueId = 6, itemLabel = "High Quality Chicken Meat", itemName = "chicken_meat2", itemStar = 1, -- MAX 5 itemPrice = 55, itemImage = "./images/highChickenMeat.png", }, } AK4Y.Tasks = { { taskId = 1, taskTitle = "Cath 10 Chicken", taskDescription = "Cath 10 chicken and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 2, taskTitle = "Cut 10 Pig", taskDescription = "Cut 10 pig and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 3, taskTitle = "Cut 10 Deer", taskDescription = "Cut 10 deer and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 4, taskTitle = "Place 10 Pig Bait", taskDescription = "Place 10 pig bait and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 5, taskTitle = "Place 10 Deer Bait", taskDescription = "Place 10 deer bait and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 6, taskTitle = "Find 10 Rare Chicken Meat", taskDescription = "Find 10 rare chicken meat and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 7, taskTitle = "Find 10 Rare Pig Meat", taskDescription = "Find 10 rare chicken meat and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 8, taskTitle = "Find 10 Rare Deer Meat", taskDescription = "Find 10 rare chicken meat and earn xp", rewardPrice = 10000, requiredCount = 10, }, } AK4Y.LevelPackages = { { packageId = 1, upLevel = 1, realPrice = 10, directLink = "https://www.google.com/", }, { packageId = 2, upLevel = 2, realPrice = 20, directLink = "https://www.google.com/", }, { packageId = 3, upLevel = 3, realPrice = 25, directLink = "https://www.google.com/", }, { packageId = 4, upLevel = 4, realPrice = 30, directLink = "https://www.google.com/", }, { packageId = 5, upLevel = 5, realPrice = 35, directLink = "https://www.google.com/", }, { packageId = 6, upLevel = 6, realPrice = 40, directLink = "https://ak4y.tebex.io/package/5526695", }, } function NOTIFY(message) QBCore.Functions.Notify(message) end function PlaceBait(baittype) -- baittype return placed bait type if baittype == "a_c_pig" then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 4, 1) elseif baittype == "a_c_deer" then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 5, 1) end end function CutAnimal(animal) -- animal return cutted animal hash print(animal) if animal == 1794449327 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 1, 1) elseif animal == -1323586730 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 2, 1) elseif animal == -664053099 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 3, 1) end end function EarnRareItem(animal) -- animal return earned rare item animal hash if animal == 1794449327 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 6, 1) elseif animal == -1323586730 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 7, 1) elseif animal == -664053099 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 8, 1) end end AK4Y.UnlimitedAmmoWeapons = { ["weapon_sniperrifle"] = true, } AK4Y.HuntLocations = { ["a_c_deer"] = { location = vector3(-543.85, 5524.41, 61.03), radius = 100.0, blipactive = true, blipColour = 1, blipAlpha = 50, BlipName = "Hunt Zone", BlipSprite = 141, BlipScale = 1.0, NeededLevel = 7, ["Allowed Weapons"] = { "weapon_sniperrifle", }, }, ["a_c_pig"] = { location = vector3(3681.69, 4520.4, 23.64), radius = 100.0, blipactive = true, blipColour = 1, BlipName = "Hunt Zone", BlipSprite = 141, BlipScale = 1.0, NeededLevel = 4, ["Allowed Weapons"] = { "weapon_sniperrifle", }, }, } AK4Y.CatchChicken = { location = vector3(1447.7864, 1066.3145, 114.33869), radius = 100.0, blipactive = true, blipColour = 1, blipAlpha = 50, BlipName = "Cath Chicken", BlipSprite = 141, BlipScale = 1.0, } AK4Y.AimBlockWeapons = { ["weapon_sniperrifle"] = true, ["weapon_pistol"] = true } AK4Y.AnimalItems = { ["a_c_deer"] = { hash = -664053099, BasicItem = "deer_meat", RareItem = "deer_meat2", }, ["a_c_pig"] = { hash = -1323586730, BasicItem = "pig_meat", RareItem = "pig_meat2", }, ["a_c_hen"] = { hash = 1794449327, BasicItem = "chicken_meat", RareItem = "chicken_meat2", }, } AK4Y.ProgressTime = { ["a_c_deer"] = 10000, ["a_c_pig"] = 10000, ["a_c_hen"] = 10000, ["place_bait"] = 10000, } AK4Y.Languages = { --所有通知等 ["bait_placed"] = "诱饵已放置", ["not_in_zone_bait"] = "你不在这个诱饵区域", ["not_in_zone"] = "你不在区域内", ["wait"] = "你必须等待才能放置另一个诱饵", ["wait"] = "a", ["far_from_animal"] = "你离动物太远了", ["player_in_close"] = "你附近有玩家时无法进行此操作", ["cut_animal"] = "你必须切割动物", ["cancel"] = "已取消", ["shredded_meat"] = "碎肉", ["cant_cut_this_animal"] = "你不能切割这种动物", ["not_look_animal"] = "你没有看着动物", ["you_couldnt_catch"] = "你没能抓住", ["need_level"] = "你的等级还不够诱捕这种动物。", ["cath_chicken"] = "[E] 抓鸡", ["spam"] = "不要刷屏", ["cant_shoot_out_of_zone"] = "你不在区域内时无法射击", ["refill_ammo_in_zone"] = "当你进入区域时,你的弹药将会补充", } AK4Y.HTMLTranslate = { ["generalTitleDescription"] = "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ullam ea cupiditate veritatis maiores iusto amet sint tempora, illo nostrum quia aspernatur dolorum libero alias dolor.", ["wiki"] = "维基", ["market"] = "市场", ["sales"] = "销售", ["tasks"] = "任务", ["lvlBuy"] = "等级购买", ["weapon"] = "武器", ["animals"] = "动物", ["exp"] = "经验", ["chicken"] = "鸡", ["chickenDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!", ["deer"] = "鹿", ["deerDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!", ["pig"] = "猪", ["pigDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!", ["hello"] = "你好", ["level"] = "等级", ["up"] = "提升", ["howAbout"] = "怎么样", ["buyingALevel"] = "购买一个等级?", ["levelBuy"] = "等级购买", ["setGps"] = "设置GPS", ["buy"] = "购买", ["sell"] = "出售", ["collected"] = "已收集", ["reward"] = "奖励", ["accept"] = "接受", ["cutting"] = "切割中...", }AK4Y = {} AK4Y.Framework = "qb" -- qb / oldqb | qb = export system | oldqb = triggerevent system AK4Y.Mysql = "oxmysql" -- Check fxmanifest.lua when you change it! | ghmattimysql / oxmysql / mysql-async AK4Y.UpdateXP = {min = 5, max = 10} --How many xp do you want to increase for collection AK4Y.MaxLevel = 15 AK4Y.TaskResetPeriod = 1 -- DAY AK4Y.PaymentMethod = "cash" -- "cash" or "bank" AK4Y.NeededEXP = 1000 -- for level up AK4Y.OnlyShootInZone = true AK4Y.NPCAreas = { { pedName = "AKAY", pedHash = 0x1EEC7BDC, pedCoord = vector3(-679.14, 5834.51, 16.33), drawText = "[E] - Hunting NPC", h = 132.41, blipSettings = { -- https://docs.fivem.net/docs/game-references/blips/ blip = true, blipName = "Hunting NPC", blipIcon = 154, blipColour = 1, }, }, } AK4Y.WikiPage = { { starCount = 1, -- max 5 areaTitle = "POULTRY", areaMiniTitle = "CHICKEN FARMING", areaDescription = "In this area; you can catch chickens. A good introduction to hunting!", allowedWeapons = { "-", }, animals = { "CHICKEN" }, areaCoords = vector3(1447.7864, 1066.3145, 114.33869), areaImage = "./images/chickenArea.png", }, { starCount = 3, -- max 5 areaTitle = "PIG HUNTER", areaMiniTitle = "Killer of pigs", areaDescription = "The next hunting point after poultry :D, Their meat is of high quality. It's a good profit!", allowedWeapons = { "KNIFE", "HUNTING RIFLE", }, animals = { "PIG" }, areaCoords = vector3(3681.69, 4520.4, 23.64), areaImage = "./images/area_1.png", }, { starCount = 5, -- max 5 areaTitle = "DEER HUNTING", areaMiniTitle = "The Last Point", areaDescription = "The ultimate in hunting! If you can catch something here, you're a real hunter! ", allowedWeapons = { "KNIFE", "HUNTING RIFLE", }, animals = { "DEER" }, areaCoords = vector3(-543.85, 5524.41, 61.03), areaImage = "./images/deerArea.png", }, } AK4Y.MarketPage = { { uniqueId = 1, itemLabel = "HUNTING RIFLE", itemName = "weapon_sniperrifle", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 500, itemImage = "./images/shotgunItem.png", }, { uniqueId = 2, itemLabel = "HUNTING KNIFE", itemName = "hunting_knife", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 100, itemImage = "./images/HuntingKnife.png", }, { uniqueId = 3, itemLabel = "Poor Quality Deer Bait", itemName = "deer_bait", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 10, itemImage = "./images/lowDeerBait.png", }, { uniqueId = 4, itemLabel = "High Quality Deer Bait", itemName = "deer_bait2", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 15, itemImage = "./images/highDeerBait.png", }, { uniqueId = 5, itemLabel = "Poor Quality Pig Bait", itemName = "pig_bait", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 7, itemImage = "./images/lowPigBait.png", }, { uniqueId = 6, itemLabel = "High Quality Pig Bait", itemName = "pig_bait2", itemType = "item", -- item or weapon itemCount = 1, itemPrice = 9, itemImage = "./images/highPigBait.png", }, } AK4Y.SellItems = { { uniqueId = 1, itemLabel = "Poor Quality Deer Meat", itemName = "deer_meat", itemStar = 4, -- MAX 5 itemPrice = 200, itemImage = "./images/lowDeerMeat.png", }, { uniqueId = 2, itemLabel = "High Quality Deer Meat", itemName = "deer_meat2", itemStar = 5, -- MAX 5 itemPrice = 290, itemImage = "./images/highDeerMeat.png", }, { uniqueId = 3, itemLabel = "Poor Quality Pig Meat", itemName = "pig_meat", itemStar = 2, -- MAX 5 itemPrice = 120, itemImage = "./images/lowPigMeat.png", }, { uniqueId = 4, itemLabel = "High Quality Pig Meat", itemName = "pig_meat2", itemStar = 3, -- MAX 5 itemPrice = 170, itemImage = "./images/highPigMeat.png", }, { uniqueId = 5, itemLabel = "Poor Quality Chicken Meat", itemName = "chicken_meat", itemStar = 0, -- MAX 5 itemPrice = 40, itemImage = "./images/lowChickenMeat.png", }, { uniqueId = 6, itemLabel = "High Quality Chicken Meat", itemName = "chicken_meat2", itemStar = 1, -- MAX 5 itemPrice = 55, itemImage = "./images/highChickenMeat.png", }, } AK4Y.Tasks = { { taskId = 1, taskTitle = "Cath 10 Chicken", taskDescription = "Cath 10 chicken and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 2, taskTitle = "Cut 10 Pig", taskDescription = "Cut 10 pig and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 3, taskTitle = "Cut 10 Deer", taskDescription = "Cut 10 deer and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 4, taskTitle = "Place 10 Pig Bait", taskDescription = "Place 10 pig bait and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 5, taskTitle = "Place 10 Deer Bait", taskDescription = "Place 10 deer bait and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 6, taskTitle = "Find 10 Rare Chicken Meat", taskDescription = "Find 10 rare chicken meat and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 7, taskTitle = "Find 10 Rare Pig Meat", taskDescription = "Find 10 rare chicken meat and earn xp", rewardPrice = 10000, requiredCount = 10, }, { taskId = 8, taskTitle = "Find 10 Rare Deer Meat", taskDescription = "Find 10 rare chicken meat and earn xp", rewardPrice = 10000, requiredCount = 10, }, } AK4Y.LevelPackages = { { packageId = 1, upLevel = 1, realPrice = 10, directLink = "https://www.google.com/", }, { packageId = 2, upLevel = 2, realPrice = 20, directLink = "https://www.google.com/", }, { packageId = 3, upLevel = 3, realPrice = 25, directLink = "https://www.google.com/", }, { packageId = 4, upLevel = 4, realPrice = 30, directLink = "https://www.google.com/", }, { packageId = 5, upLevel = 5, realPrice = 35, directLink = "https://www.google.com/", }, { packageId = 6, upLevel = 6, realPrice = 40, directLink = "https://ak4y.tebex.io/package/5526695", }, } function NOTIFY(message) QBCore.Functions.Notify(message) end function PlaceBait(baittype) -- baittype return placed bait type if baittype == "a_c_pig" then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 4, 1) elseif baittype == "a_c_deer" then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 5, 1) end end function CutAnimal(animal) -- animal return cutted animal hash print(animal) if animal == 1794449327 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 1, 1) elseif animal == -1323586730 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 2, 1) elseif animal == -664053099 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 3, 1) end end function EarnRareItem(animal) -- animal return earned rare item animal hash if animal == 1794449327 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 6, 1) elseif animal == -1323586730 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 7, 1) elseif animal == -664053099 then TriggerServerEvent('ak4y-advancedHunting:taskCountAdd', 8, 1) end end AK4Y.UnlimitedAmmoWeapons = { ["weapon_sniperrifle"] = true, } AK4Y.HuntLocations = { ["a_c_deer"] = { location = vector3(-543.85, 5524.41, 61.03), radius = 100.0, blipactive = true, blipColour = 1, blipAlpha = 50, BlipName = "Hunt Zone", BlipSprite = 141, BlipScale = 1.0, NeededLevel = 7, ["Allowed Weapons"] = { "weapon_sniperrifle", }, }, ["a_c_pig"] = { location = vector3(3681.69, 4520.4, 23.64), radius = 100.0, blipactive = true, blipColour = 1, BlipName = "Hunt Zone", BlipSprite = 141, BlipScale = 1.0, NeededLevel = 4, ["Allowed Weapons"] = { "weapon_sniperrifle", }, }, } AK4Y.CatchChicken = { location = vector3(1447.7864, 1066.3145, 114.33869), radius = 100.0, blipactive = true, blipColour = 1, blipAlpha = 50, BlipName = "Cath Chicken", BlipSprite = 141, BlipScale = 1.0, } AK4Y.AimBlockWeapons = { ["weapon_sniperrifle"] = true, ["weapon_pistol"] = true } AK4Y.AnimalItems = { ["a_c_deer"] = { hash = -664053099, BasicItem = "deer_meat", RareItem = "deer_meat2", }, ["a_c_pig"] = { hash = -1323586730, BasicItem = "pig_meat", RareItem = "pig_meat2", }, ["a_c_hen"] = { hash = 1794449327, BasicItem = "chicken_meat", RareItem = "chicken_meat2", }, } AK4Y.ProgressTime = { ["a_c_deer"] = 10000, ["a_c_pig"] = 10000, ["a_c_hen"] = 10000, ["place_bait"] = 10000, } AK4Y.Languages = { --所有通知等 ["bait_placed"] = "诱饵已放置", ["not_in_zone_bait"] = "你不在这个诱饵区域", ["not_in_zone"] = "你不在区域内", ["wait"] = "你必须等待才能放置另一个诱饵", ["wait"] = "a", ["far_from_animal"] = "你离动物太远了", ["player_in_close"] = "你附近有玩家时无法进行此操作", ["cut_animal"] = "你必须切割动物", ["cancel"] = "已取消", ["shredded_meat"] = "碎肉", ["cant_cut_this_animal"] = "你不能切割这种动物", ["not_look_animal"] = "你没有看着动物", ["you_couldnt_catch"] = "你没能抓住", ["need_level"] = "你的等级还不够诱捕这种动物。", ["cath_chicken"] = "[E] 抓鸡", ["spam"] = "不要刷屏", ["cant_shoot_out_of_zone"] = "你不在区域内时无法射击", ["refill_ammo_in_zone"] = "当你进入区域时,你的弹药将会补充", } AK4Y.HTMLTranslate = { ["generalTitleDescription"] = "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ullam ea cupiditate veritatis maiores iusto amet sint tempora, illo nostrum quia aspernatur dolorum libero alias dolor.", ["wiki"] = "维基", ["market"] = "市场", ["sales"] = "销售", ["tasks"] = "任务", ["lvlBuy"] = "等级购买", ["weapon"] = "武器", ["animals"] = "动物", ["exp"] = "经验", ["chicken"] = "鸡", ["chickenDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!", ["deer"] = "鹿", ["deerDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!", ["pig"] = "猪", ["pigDescriptionProgressBar"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem iure delectus excepturi eos, accusantium nisi!", ["hello"] = "你好", ["level"] = "等级", ["up"] = "提升", ["howAbout"] = "怎么样", ["buyingALevel"] = "购买一个等级?", ["levelBuy"] = "等级购买", ["setGps"] = "设置GPS", ["buy"] = "购买", ["sell"] = "出售", ["collected"] = "已收集", ["reward"] = "奖励", ["accept"] = "接受", ["cutting"] = "切割中...", }
© 版权声明
THE END
- 最新
- 最热
只看作者