local items = {
[xxx] = 1,
[xxx] = 1,
[xxx] = 2
}
for id, c in pairs(items) do
if getPlayerItemCount(cid, id) >= c then
-- do something amazing
else
-- do something else amazing
end
return true
end
childish much? keeps quoting him?LUA:local items = { {7436,2}, {8892,1}, {7886,1} } for _, v in ipairs(items) do if getPlayerItemCount(cid, v[1]) < v[2] then return false -- fail end end -- do something amazing