1
2
3
4
5
6
7
2
3
4
5
6
7
local items = item(0, 'table')
for _, id in pairs(items) do
if item(id, 'player') == 0 and math_random(1, 2) == 1 then
exec('removeitem ' .. id)
end
end
This crashes my game, I tried using the prespawn hook and some timers but nothing worked, I want to be able to remove random items so every match can feel different.
Thanks