Is it because NutScript cannot identify the items?
Line 330 - if (x <= w and x > 0 and y <= h and y > 0) then
local item2 = nut.item.new(item._uniqueID, itemID)
if (item2) then
item2.data = {}
if (data) then
item2.data = data
end
item2.gridX = x
item2.gridY = y
item2.invID = invID
for x2 = 0, item2.width - 1 do
for y2 = 0, item2.height - 1 do
slots[x + x2] = slots[x + x2] or {}
slots[x + x2][y + y2] = item2
end
end
if (item2.onRestored) then
item2:onRestored(item2, invID)
end
else
badItemsUniqueID[#badItemsUniqueID + 1] = item._uniqueID
badItems[#badItems + 1] = itemID
end
If you could give me some indication on where to start to fix this i would be incredibly thankful!
[ERROR] gamemodes/nutscript/gamemode/core/libs/sh_item.lua:330: attempt to compare number with nil
[ERROR] gamemodes/nutscript/gamemode/core/cl_skin.lua:20: bad argument #3 to 'SetDrawColor' (number expected, got no value)
[DoubleShot|2|STEAM_0:1:47163642] Lua Error:
[ERROR] gamemodes/nutscript/gamemode/core/cl_skin.lua:20: bad argument #3 to 'SetDrawColor' (number expected, got no value)
[DoubleShot|2|STEAM_0:1:47163642] Lua Error:
[ERROR] gamemodes/nutscript/gamemode/core/cl_skin.lua:20: bad argument #3 to 'SetDrawColor' (number expected, got no value)
[DoubleShot|2|STEAM_0:1:47163642] Lua Error:
[ERROR] gamemodes/nutscript/gamemode/core/cl_skin.lua:20: bad argument #3 to 'SetDrawColor' (number expected, got no value)
[DoubleShot|2|STEAM_0:1:47163642] Lua Error:
[ERROR] gamemodes/nutscript/gamemode/core/cl_skin.lua:20: bad argument #3 to 'SetDrawColor' (number expected, got no value)
Is it because NutScript cannot identify the items?
Line 330 - if (x <= w and x > 0 and y <= h and y > 0) then local item2 = nut.item.new(item._uniqueID, itemID)
If you could give me some indication on where to start to fix this i would be incredibly thankful!