Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if holdingBag then
while not HasAnimDictLoaded(baganimDict) do
RequestAnimDict(baganimDict)
Citizen.Wait(100)
end
DisablePlayerFiring(PlayerId(), true)
DisableControlAction(0,25,true) -- disable aim
DisableControlAction(0, 44, true) -- INPUT_COVER
DisableControlAction(0,37,true) -- INPUT_SELECT_WEAPON
SetCurrentPedWeapon(GetPlayerPed(-1), GetHashKey("WEAPON_UNARMED"), true)
end
end
end)