[Paid] [RedEM:RP & VORP & QBR & RSG] Happy Chicken

Just collecting ressources only :slightly_smiling_face:

1 Like

ofc.
and the old version have bug but fix it for rsg framework

RegisterNetEvent("happychicken:progressbar")
AddEventHandler('happychicken:progressbar', function()
  TaskStartScenarioInPlace(PlayerPedId(), GetHashKey('WORLD_HUMAN_FEED_CHICKEN'), -1, false, false, false, false)
  if Config.Framework == "redemrp"  then
    exports['progressBars']:startUI(Config.progressTime, Config.progressbar)
  elseif Config.Framework == "redemrp-reboot" then 
    exports.redemrp_progressbars:DisplayProgressBar(Config.progressTime, Config.progressbar)
  elseif Config.Framework == "vorp" then 
    exports.vorp_progressbar:initiate(Config.progressbar, Config.progressTime, function ()
    end, 'innercircle', '#ff0000', '20vw')
  elseif Config.Framework == "rsg" then
    local RSGCore = exports['rsg-core']:GetCoreObject()
    TaskStartScenarioInPlace(PlayerPedId(), GetHashKey('WORLD_HUMAN_FEED_CHICKEN'), -1, false, false, false, false)
    Wait(30000)
  elseif Config.Framework == "qbr" or Config.Framework == "qbr2" then
    exports['qbr-core']:Progressbar("chicken", Config.progressbar, Config.progressTime, false, true, {
      disableMovement = true,
      disableCarMovement = true,
      disableMouse = false,
      disableCombat = true,
    }, {}, {}, {}, function() 
   end, function() 
  end)
  end
  ClearPedTasksImmediately(PlayerPedId(-1))
end)

(post deleted by author)

Fix ! Sorry for the time I was on vacation. I’ll puch the fix this afternoon :wink: