[FREE] AOD_Hunting [ESX]

AddEventHandler('AOD-huntingbait', function()
    if not isValidZone() then
        Notify(AOD.Strings.NotValidZone)
        return
    end
    if busy then
        Notify(AOD.Strings.ExploitDetected)
        Citizen.Wait(2000)
        Notify(AOD.Strings.DontSpawm)
        TriggerServerEvent('AOD-hunt:TakeItem', 'huntingbait')
        return
    end
    if baitexists ~= 0 and GetGameTimer() < (baitexists + 90000) then
        Notify(AOD.Strings.WaitToBait)
        return
    end
    baitexists = nil
    busy = true
    local player = PlayerPedId()
    TaskStartScenarioInPlace(player, 'WORLD_HUMAN_GARDENER_PLANT', 0, true)
    exports['progressBars']:startUI((15000), AOD.Strings.PlacingBait)
    Citizen.Wait(15000)
    ClearPedTasks(player)
    baitexists = GetGameTimer()
    local baitLocation = GetEntityCoords(player)
    Notify(AOD.Strings.BaitPlaced)
    TriggerServerEvent('AOD-hunt:TakeItem', 'huntingbait')
--add police notification here
    baitDown(baitLocation)
    busy = false
end)

Update
-Added option for blip to be added to track prey on minimap/map
-Added Prop when placing bait to track bait location easier
-Fixed Spawn issues where animal would get stuck and never make it to the bait.

still remains with 0.00 idle and never exceeds .01 while hunting! Happy hunting friends

I want to let you know, the script has nothing to do with. It’s not the even same. Don’t accuse people like that.

Not really so concerned about what others are doing at this point, if people wanted a qbus addition than I would just add it.

go for it and stop the guy who claims it he made he is definitely using your code and he may have made some changes about selling but most of the dev on forums are doing this making a qbus version is not that hard your script amazingly premium and great

Hey just getting some options here, what have people used to get the weapon, items and to sell?

I can look into building options into it

Ey! is it possible to add cayo perico locations??

if you write a command using this native GetZoneAtCoords and it returns a Zone name yes you can.

I tried with that [[RegisterCommand(‘zoneTest’, function()
print(1, GetZoneAtCoords(5481.48, -5832.47, 18.73))

end)]]

And it gives me 1321, how can i know which zone is it?

maybe try this instead? GetNameOfZone

It works! Thanks dude!

no problem, glad you were able to get it to work. happy hunting

vrp/vrpex?

I have no intentions on moving it to vrp/vrpex, however the changes required would likely be minimal since there isn’t much framework dependent stuff within.