You are on page 1of 1

local CurrentFunctionIndex = 0;

--[[ If your gun is not supported, then enter it's Max ammo in here! ]]--
local AmmoTable = {
14,
30,
4,
7,
40
}
local NewAmmo = math.huge; -- You can change this to anything, right now it is at
infinite ammo!

function FunctionIndexPassed()
CurrentFunctionIndex = CurrentFunctionIndex + 1;
end

for i,v in next, getgc() do


if typeof(v) == "function" and islclosure(v) and
string.find(getfenv(v).script.Name, "Script") then
for i2,v2 in next, getupvalues(v) do
if table.find(AmmoTable, tonumber(v2)) then
setupvalue(v, i2, NewAmmo)
end
end
end
end

You might also like