Configuration

Here you will see the configuration of our script, follow the correct guide, if you don't understand something you can enter our official discord.

How to add more animals?


Config.Animals = {
    "a_c_deer", 
}

Config.AnimalsItems = {
    ["a_c_deer"] = {
        items = {
            {item_name = "animal_meat", item_count = math.random(1, 5), chance= 90},
            {item_name = "animal_leather", item_count = math.random(1, 2), chance= 40},
        }
    },
}

Search in the an_hunting/configs/main.lua for these lines of code.

first you will have to know the name of the model of the animal you want to add, there are many default animals in gta v that you can find here: https://wiki.rage.mp/wiki/Peds an example of an animal is the rabbit whose name is “a_c_rabbit_01”.

Let's suppose that we want to add the rabbit what we will have to do is to place in the Config.Animals the name of the model of the rabbit, in the following way:

Config.Animals = {
    "a_c_deer", 
    "a_c_rabbit_01",
}

Well now we will have to place the name of the rabbit in Config.AnimalsItems so that we place what the rabbit will give us once we interact with it.

Config.AnimalsItems = {
    ["a_c_deer"] = {
        items = {
            {item_name = "animal_meat", item_count = math.random(1, 5), chance= 90},
            {item_name = "animal_leather", item_count = math.random(1, 2), chance= 40},
        }
    },
    
    ["a_c_rabbit_01"] = {
        items = {
            {item_name = "rabbit_leather", item_count = math.random(1, 5), chance= 90},
        }
    },
}

Finally we will be able to choose which items it will give, the quantity and the chance, the chance will be the possibility that the rabbit will give us that item, we can add any item we want and the quantity of items we want, as long as they exist in our inventory.

How do i change the animal spawn?

To change/add or delete animal spawn coordinates you will have to go to:

Config.SpawnAnimals = {
    vector4(-1214.8994, 4457.9590, 30.5692, 264.8363),
    vector4(-1043.5264, 4367.2017, 11.8497, 247.0736),
    vector4(-408.1453, 4371.0142, 53.9167, 274.1182),
    vector4(-751.8250, 5099.8218, 140.2109, 51.4977),
    vector4(-547.4174, 5205.6265, 83.6449, 43.9838),
    vector4(-480.6432, 5557.8384, 73.2676, 357.9544),
}

Here you can add the coordinates in vector4 format that you want, you can put unlimited coordinates, we recommend that you put at least 5 different coordinates for the script to be interactive.

Last updated