diff --git a/itemCarry/client/main.lua b/itemCarry/client/main.lua index d6cc27e..e64fbe8 100644 --- a/itemCarry/client/main.lua +++ b/itemCarry/client/main.lua @@ -71,6 +71,18 @@ AddStateBagChangeHandler("carryItem", nil, function(bagName, key, carryItem, _un lib.disableControls:Remove(controls) end) end + + if carryData.disableMelee then + local controls = {24, 25, 68, 69, 70} + lib.disableControls:Add(controls) + CreateThread(function() + while currentCarryObject do + lib.disableControls() + Wait(1) + end + lib.disableControls:Remove(controls) + end) + end while currentCarryObject do if carryData.blockVehicle then diff --git a/itemCarry/config.lua b/itemCarry/config.lua index be1aa36..6ce08d8 100644 --- a/itemCarry/config.lua +++ b/itemCarry/config.lua @@ -1,5 +1,6 @@ local config = { ['box'] = { + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -17,6 +18,7 @@ local config = { }, ['tv'] = { walkOnly = false, + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -34,6 +36,7 @@ local config = { }, ['big_tv'] = { walkOnly = false, + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -50,6 +53,7 @@ local config = { }, }, ['boombox'] = { + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -66,6 +70,7 @@ local config = { }, }, ['microwave'] = { + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -82,6 +87,7 @@ local config = { }, }, ['golfclubs'] = { + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -98,6 +104,7 @@ local config = { }, }, ['house_art'] = { + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@', @@ -114,6 +121,7 @@ local config = { }, }, ['pc'] = { + disableMelee = true, blockVehicle = true, anim = { dict = 'anim@heists@box_carry@',