[PAID] [Standalone] Hunting Script

:eagle: Wise Hunting

Set Hunting Zones and set different Animals for each Zone.
All Animals have their own Loot with a drop chance.
Zones, Animals and everything else can be configured.
Grill your looted stuff and sell it even more expensive or eat it.

Code is accessible Some Files
Subscription-based No
Lines (approximately) ~1000
Requirements None
Support Yes

:video_camera:Video

:toolbox: Configs

Main
Config = {}

Config.Debug = true

Config.Locale = "en"

Config.Notify = function(msg)
  AddTextEntry('Notification', msg)
	BeginTextCommandThefeedPost('Notification')
  EndTextCommandThefeedPostTicker(false, true)
end

Config.HelpNotify = function(msg)
  AddTextEntry('huntingHelpNotify', "~INPUT_CONTEXT~ "..msg)
  DisplayHelpTextThisFrame('huntingHelpNotify', false)
end

Config.Gadgets = {
  Grill = {
    CookingTimePerItem = 10, -- in Secondes
    Price = 1000
  },
  Tracker = {
    Duration = 3, -- in Secondes
    Price = 600
  }
}

Config.GrillList = {
  {
    label = "Grilled Deer Meat",
    from = "deer_meat",
    to = "grilled_deer_meat"
  },
  {
    label = "Grilled Boar Meat",
    from = "boar_meat",
    to = "grilled_boar_meat"
  },
  {
    label = "Grilled Pork",
    from = "pork",
    to = "grilled_pork"
  },
  {
    label = "Grilled Beef",
    from = "beef",
    to = "grilled_beef"
  },
  {
    label = "Grilled Chicken Wings",
    from = "chicken_wings",
    to = "grilled_chicken_wings"
  },
  {
    label = "Grilled Lion Meat",
    from = "lion_meat",
    to = "grilled_lion_meat"
  },
  {
    label = "Grilled Rabbit Meat",
    from = "rabbit_meat",
    to = "grilled_rabbit_meat"
  }
}

Config.Keys = {
  ProcessAnimal = "G"
}
Animals
Config.Animals = {
  {
    name = "Deer",
    health = 100,
    model = "a_c_deer",
    aggressive = false,
    loot = {
      {
        item = "deer_meat",
        amount = 5,
        dropChance = 0.60
      },
      {
        item = "deer_skin",
        amount = 2,
        dropChance = 0.80
      }
    }
  },
  {
    name = "Boar",
    health = 150,
    model = "a_c_boar",
    aggressive = false,
    loot = {
      {
        item = "boar_meat",
        amount = 8,
        dropChance = 0.60
      },
      {
        item = "boar_skin",
        amount = 3,
        dropChance = 0.80
      },
      {
        item = "boar_tusk",
        amount = 2,
        dropChance = 0.20
      }
    }
  },
  {
    name = "Cat",
    health = 10,
    model = "a_c_cat_01",
    aggressive = false,
    loot = {
      {
        item = "cat_fur",
        amount = 1,
        dropChance = 0.20
      },
      {
        item = "cat_claw",
        amount = 1,
        dropChance = 0.10
      },
      {
        item = "cat_eye",
        amount = 2,
        dropChance = 0.05
      }
    }
  },
  {
    name = "Pig",
    health = 120,
    model = "a_c_pig",
    aggressive = false,
    loot = {
      {
        item = "pork",
        amount = 10,
        dropChance = 0.50
      }
    }
  },
  {
    name = "Cow",
    health = 300,
    model = "a_c_cow",
    aggressive = false,
    loot = {
      {
        item = "beef",
        amount = 30,
        dropChance = 0.60
      },
      {
        item = "cow_skin",
        amount = 10,
        dropChance = 0.90
      }
    }
  },
  {
    name = "Lion",
    health = 250,
    model = "a_c_mtlion",
    aggressive = true,
    loot = {
      {
        item = "lion_meat",
        amount = 10,
        dropChance = 0.40
      },
      {
        item = "lion_skin",
        amount = 5,
        dropChance = 0.70
      },
      {
        item = "lion_claw",
        amount = 4,
        dropChance = 0.30
      }
    }
  },
  {
    name = "Coyote",
    health = 50,
    model = "a_c_coyote",
    aggressive = true,
    loot = {
      {
        item = "coyote_teeth",
        amount = 10,
        dropChance = 0.30
      },
      {
        item = "coyote_skin",
        amount = 2,
        dropChance = 0.60
      }
    }
  },
  {
    name = "Chicken",
    health = 5,
    model = "a_c_hen",
    aggressive = false,
    loot = {
      {
        item = "chicken_wings",
        amount = 2,
        dropChance = 0.30
      },
      {
        item = "chicken_egg",
        amount = 6,
        dropChance = 0.80
      },
      {
        item = "chicken_foot",
        amount = 2,
        dropChance = 0.20
      }
    }
  },
  {
    name = "Rabbit",
    health = 20,
    model = "a_c_rabbit_01",
    aggressive = false,
    loot = {
      {
        item = "rabbit_meat",
        amount = 2,
        dropChance = 0.50
      },
      {
        item = "rabbit_foot",
        amount = 1,
        dropChance = 0.10
      }
    }
  }
}
Hunting Areas
Config.HuntAreas = {
  {
    name = "Cow/Deer Area",
    spawnInterval = 10,
    maxAnimals = 8,
    position = vector3(-1453.1859, 4640.0811, 51.2587),
    radius = 150,
    blip = {
      color = 50,
      size = 1.4,
      sprite = 141
    },
    animals = {
      "deer",
      "cow"
    }
  },
  {
    name = "Lion/Cat Area",
    spawnInterval = 10,
    maxAnimals = 5,
    position = vector3(-179.6747, 4674.1865, 171.2702),
    radius = 100,
    blip = {
      color = 60,
      size = 1.4,
      sprite = 463
    },
    animals = {
      "lion",
      "cat"
    }
  }
}
Market
Config.Market = {
  position = vector4(-1630.4707, 4738.9683, 53.1014, 314.4129),
  model = "g_m_m_casrn_01",
  blip = {
    text = "Hunting Market",
    color = 50,
    size = 1.4, 
    sprite = 480
  },
  
  Sell = {
    ["Deer"] = {
      {
        label = "Deer Skin",
        description = "Sell Deer Skin",
        item = "deer_skin",
        price = 200
      },
      {
        label = "Deer Meat",
        description = "Sell Raw Deer Meat",
        item = "deer_meat",
        price = 500
      },
      {
        label = "Grilled Deer Meat",
        description = "Sell Grilled Deer Meat",
        item = "grilled_deer_meat",
        price = 700
      }
    },
    ["Boar"] = {
      {
        label = "Boar Horn",
        description = "Sell Boar Horn",
        item = "boar_horn",
        price = 1800
      },
      {
        label = "Boar Meat",
        description = "Sell Raw Boar Meat",
        item = "boar_meat",
        price = 600
      },
      {
        label = "Grilled Boar Meat",
        description = "Sell Grilled Boar Meat",
        item = "grilled_boar_meat",
        price = 1100
      }
    },
    ["Pig"] = {
      {
        label = "Pork",
        description = "Sell Raw Pork",
        item = "pork",
        price = 300
      },
      {
        label = "Grilled Pork",
        description = "Sell Grilled Pork",
        item = "grilled_pork",
        price = 600
      }
    },
    ["Cow"] = {
      {
        label = "Cow Skin",
        description = "Sell Cow Skin",
        item = "cow_skin",
        price = 100
      },
      {
        label = "Beef",
        description = "Sell Raw Beef",
        item = "beef",
        price = 450
      },
      {
        label = "Grilled Beef",
        description = "Sell Grilled Beef",
        item = "grilled_beef",
        price = 900
      }
    },
    ["Rabbit"] = {
      {
        label = "Rabbit Foot",
        description = "Sell Rabbit Foot",
        item = "rabbit_foot",
        price = 2300
      },
      {
        label = "Rabbit Meat",
        description = "Sell Raw Rabbit Meat",
        item = "rabbit_meat",
        price = 800
      },
      {
        label = "Grilled Rabbit Meat",
        description = "Sell Grilled Rabbit Meat",
        item = "grilled_rabbit_meat",
        price = 1500
      }
    },
    ["Chicken"] = {
      {
        label = "Chicken Egg",
        description = "Sell Chicken Egg",
        item = "chicken_egg",
        price = 100
      },
      {
        label = "Chicken Foot",
        description = "Sell Chicken Foot",
        item = "chicken_foot",
        price = 50
      },
      {
        label = "Chicken Wings",
        description = "Sell Chicken Wings",
        item = "chicken_wings",
        price = 200
      },
      {
        label = "Grilled Chicken Wings",
        description = "Sell Grilled Chicken Wings",
        item = "grilled_chicken_wings",
        price = 500
      }
    },
    ["Coyote"] = {
      {
        label = "Coyote Teeth",
        description = "Sell Coyote Teeth",
        item = "coyote_teeth",
        price = 400
      },
      {
        label = "Coyote Skin",
        description = "Sell Coyote Skin",
        item = "coyote_skin",
        price = 1400
      }
    } 
  }
}

:shopping_cart: Buy

https://shop.wise-scripts.vip/package/5972978

:books: Other Resources

62 Likes

:bulb: Ideas?

Give me your Ideas to make this Script even better.
Lets Create a great Script together, with your ideas i can make this happen :grin: :rocket:

Also Leave a Like and a Comment. :heart:

#bump

Nice :grin:

1 Like

Nice With more oppertunity and details :pray:

1 Like

It is recommended to add more actions.

1 Like

Sure i am open for any Ideas, what should i add to it :grin:

1 Like

how about animal trapping? setting up traps and waiting for them to be triggered by rabbits and other animals

Yeah that would be a great Idea for the next Update :grin:

Really great additional features in this script :grin:

I find it completely justified for this price of 15€.

1 Like

:rocket: Update - Wise Hunting 2.0

Discover our latest update featuring stunning 3D UIs for gadgets, a revamped market interface, setup multiple grills for more enhanced cooking, set aggressive animals for a challenging hunt. Upgrade now for an immersive and thrilling adventure!

:hammer:Version

  • 2.0.0

:memo:Changes

  • Added

    • 3D UI for Gadgets
    • New Market UI
    • Setup multiple Grills
    • Set Animals Aggressive, to make them attack the Player
    • Eat cooked Stuff
  • Edited

    • Fixed processing Animals over Inventory Limit

:video_camera:Video

1 Like

no trapping? :frowning:

Planning this for the next update, with some other great features too, that our Creative Director has thought about. :grin:

1 Like

Love the script, are you planning to do ox inventory + target integration ?

1 Like

Thx. Normally you should be able to use the ox_inventory normally since it uses the es_extended functions directly and all the ox_inventory functions are normally implemented directly into the es_extended. But we dont have any ox_target integrations.
For what use exactly would you want the ox_target to be implemented?

1 Like

Most likely everything, ox_target is used very very often on servers.

Using grill, getting pelt from animals, stuff like that. Even shop could be good ! Instead of just pressing E

Alright, i will think about adding it into the Script for sure and also for future Scripts. Thanks <3

1 Like

Thanks to you!

Tbh I won’t buy until it support it so xd

1 Like

Will this work on qb-core?

Yeah works with qb-core :grin: