Anti Bug De Items Sem Bugs
Bom galera trago um anti bug de items Sem bugs!!!
Muito raro consseguirem bugar
Instalação
No menu_client.lua
Procura por: if isToolbeltItem(itemName) then (ou algo do genero)
E altere por isto: Sem os traços (----)
------------------------------------
if isToolbeltItem(itemName) then
local col = getElementData(getLocalPlayer(), "currentCol")
if #getElementsWithinColShape(col, "player") > 1 or getNetworkStats().packetlossLastSecond > 1 then
return
end
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
if pcount ~= nil and pcount < getTickCount() then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
elseif pcount == nil then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
end
local l_18_6, l_18_7, l_18_8 = getElementPosition(getLocalPlayer())
if l_18_6 ~= l_2_9 or l_18_7 ~= l_2_10 or l_18_8 ~= l_2_11 then
pcount = nil
return false
end
pcount = nil
triggerServerEvent("onPlayerTakeItemFromGround", getLocalPlayer(), itemName, col)
disableMenu()
return
end
------------------------------------
Na mesma pasta procure por: if getPlayerCurrentSlots() + getItemSlots(itemName) <= getPlayerMaxAviableSlots() then
Que ficara logo abaixo
Altere por isto:
------------------------------------------------
if getPlayerCurrentSlots() + getItemSlots(itemName) <= getPlayerMaxAviableSlots() then
local col = getElementData(getLocalPlayer(), "currentCol")
if #getElementsWithinColShape(col, "player") > 1 or getNetworkStats().packetlossLastSecond > 1 then
return
end
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
if pcount ~= nil and pcount < getTickCount() then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
elseif pcount == nil then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
end
local l_18_9, l_18_10, l_18_11 = getElementPosition(getLocalPlayer())
if l_18_9 ~= l_2_9 or l_18_10 ~= l_2_10 or l_18_11 ~= l_2_11 then
pcount = nil
return false
end
pcount = nil
triggerServerEvent("onPlayerTakeItemFromGround", getLocalPlayer(), itemName, col)
disableMenu()
else
startRollMessage2("Inventory", "Inventory is full!", 255, 22, 0)
end
end
end
-------------------------------------------------- Tutoriais
Bom galera trago um anti bug de items Sem bugs!!!
Muito raro consseguirem bugar
Instalação
No menu_client.lua
Procura por: if isToolbeltItem(itemName) then (ou algo do genero)
E altere por isto: Sem os traços (----)
------------------------------------
if isToolbeltItem(itemName) then
local col = getElementData(getLocalPlayer(), "currentCol")
if #getElementsWithinColShape(col, "player") > 1 or getNetworkStats().packetlossLastSecond > 1 then
return
end
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
if pcount ~= nil and pcount < getTickCount() then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
elseif pcount == nil then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
end
local l_18_6, l_18_7, l_18_8 = getElementPosition(getLocalPlayer())
if l_18_6 ~= l_2_9 or l_18_7 ~= l_2_10 or l_18_8 ~= l_2_11 then
pcount = nil
return false
end
pcount = nil
triggerServerEvent("onPlayerTakeItemFromGround", getLocalPlayer(), itemName, col)
disableMenu()
return
end
------------------------------------
Na mesma pasta procure por: if getPlayerCurrentSlots() + getItemSlots(itemName) <= getPlayerMaxAviableSlots() then
Que ficara logo abaixo
Altere por isto:
------------------------------------------------
if getPlayerCurrentSlots() + getItemSlots(itemName) <= getPlayerMaxAviableSlots() then
local col = getElementData(getLocalPlayer(), "currentCol")
if #getElementsWithinColShape(col, "player") > 1 or getNetworkStats().packetlossLastSecond > 1 then
return
end
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
if pcount ~= nil and pcount < getTickCount() then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
elseif pcount == nil then
pcount = getTickCount() + 2000
l_2_9, l_2_10, l_2_11 = getElementPosition(getLocalPlayer())
return false
end
local l_18_9, l_18_10, l_18_11 = getElementPosition(getLocalPlayer())
if l_18_9 ~= l_2_9 or l_18_10 ~= l_2_10 or l_18_11 ~= l_2_11 then
pcount = nil
return false
end
pcount = nil
triggerServerEvent("onPlayerTakeItemFromGround", getLocalPlayer(), itemName, col)
disableMenu()
else
startRollMessage2("Inventory", "Inventory is full!", 255, 22, 0)
end
end
end
-------------------------------------------------- Tutoriais
Sem Comentários
Postar um comentário