Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions itemCarry/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions itemCarry/config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local config = {
['box'] = {
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -17,6 +18,7 @@ local config = {
},
['tv'] = {
walkOnly = false,
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -34,6 +36,7 @@ local config = {
},
['big_tv'] = {
walkOnly = false,
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -50,6 +53,7 @@ local config = {
},
},
['boombox'] = {
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -66,6 +70,7 @@ local config = {
},
},
['microwave'] = {
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -82,6 +87,7 @@ local config = {
},
},
['golfclubs'] = {
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -98,6 +104,7 @@ local config = {
},
},
['house_art'] = {
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand All @@ -114,6 +121,7 @@ local config = {
},
},
['pc'] = {
disableMelee = true,
blockVehicle = true,
anim = {
dict = 'anim@heists@box_carry@',
Expand Down