[PAID] [Standalone] Hunting Script

A script by FirstWiseman

No reviews yet.
[PAID] [Standalone] Hunting Script main image

Full Description

: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