Fixing an exploit

By changed the shouldClose from false to true, this prevents an exploit by reloading the weapon through the inventory and dropping the ammo on the ground and once reloaded picking it back up.
This commit is contained in:
darkets
2021-07-12 18:19:50 +03:00
committed by GitHub
parent b875760309
commit 2af024f941
+6 -6
View File
@@ -155,12 +155,12 @@ QBShared.Items = {
["steel"] = {["name"] = "steel", ["label"] = "Steel", ["weight"] = 100, ["type"] = "item", ["image"] = "steel.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Nice piece of metal that you can probably use for something."},
["rubber"] = {["name"] = "rubber", ["label"] = "Rubber", ["weight"] = 100, ["type"] = "item", ["image"] = "rubber.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Rubber, I believe you can make your own rubber ducky with it :D"},
["glass"] = {["name"] = "glass", ["label"] = "Glass", ["weight"] = 100, ["type"] = "item", ["image"] = "glassplate.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "It is very fragile, watch out."},
["pistol_ammo"] = {["name"] = "pistol_ammo", ["label"] = "Pistol ammo", ["weight"] = 200, ["type"] = "item", ["image"] = "pistol_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Ammo for Pistols."},
["rifle_ammo"] = {["name"] = "rifle_ammo", ["label"] = "Rifle ammo", ["weight"] = 1000, ["type"] = "item", ["image"] = "rifle_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Ammo for Rifles."},
["smg_ammo"] = {["name"] = "smg_ammo", ["label"] = "SMG ammo", ["weight"] = 500, ["type"] = "item", ["image"] = "smg_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Ammo for Sub Machine Guns."},
["shotgun_ammo"] = {["name"] = "shotgun_ammo", ["label"] = "Shotgun ammo", ["weight"] = 500, ["type"] = "item", ["image"] = "shotgun_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Ammo for Shotguns."},
["mg_ammo"] = {["name"] = "mg_ammo", ["label"] = "MG ammo", ["weight"] = 1000, ["type"] = "item", ["image"] = "mg_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Ammo for Machine Guns."},
["snp_ammo"] = {["name"] = "snp_ammo", ["label"] = "Sniper ammo", ["weight"] = 1000, ["type"] = "item", ["image"] = "snp_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Ammo for Sniper Rifles."},
["pistol_ammo"] = {["name"] = "pistol_ammo", ["label"] = "Pistol ammo", ["weight"] = 200, ["type"] = "item", ["image"] = "pistol_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ammo for Pistols."},
["rifle_ammo"] = {["name"] = "rifle_ammo", ["label"] = "Rifle ammo", ["weight"] = 1000, ["type"] = "item", ["image"] = "rifle_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ammo for Rifles."},
["smg_ammo"] = {["name"] = "smg_ammo", ["label"] = "SMG ammo", ["weight"] = 500, ["type"] = "item", ["image"] = "smg_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ammo for Sub Machine Guns."},
["shotgun_ammo"] = {["name"] = "shotgun_ammo", ["label"] = "Shotgun ammo", ["weight"] = 500, ["type"] = "item", ["image"] = "shotgun_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ammo for Shotguns."},
["mg_ammo"] = {["name"] = "mg_ammo", ["label"] = "MG ammo", ["weight"] = 1000, ["type"] = "item", ["image"] = "mg_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ammo for Machine Guns."},
["snp_ammo"] = {["name"] = "snp_ammo", ["label"] = "Sniper ammo", ["weight"] = 1000, ["type"] = "item", ["image"] = "snp_ammo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Ammo for Sniper Rifles."},
["lockpick"] = {["name"] = "lockpick", ["label"] = "Lockpick", ["weight"] = 300, ["type"] = "item", ["image"] = "lockpick.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = {accept = {"screwdriverset"}, reward = "advancedlockpick", anim = {["dict"] = "anim@amb@business@weed@weed_inspecting_high_dry@", ["lib"] = "weed_inspecting_high_base_inspector", ["text"] = "Crafting lockpick", ["timeOut"] = 7500,}}, ["description"] = "Very useful if you lose your keys a lot.. or if you want to use it for something else..."},
["advancedlockpick"] = {["name"] = "advancedlockpick", ["label"] = "Advanced Lockpick", ["weight"] = 500, ["type"] = "item", ["image"] = "advancedlockpick.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "If you lose your keys a lot this is very useful.. Also useful to open your beers :)"},
["repairkit"] = {["name"] = "repairkit", ["label"] = "Repairkit", ["weight"] = 2500, ["type"] = "item", ["image"] = "repairkit.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "A nice toolbox with stuff to repair your vehicle."},