The Mapper
Just Imagine
- Joined
- Jul 22, 2009
- Messages
- 182
- Reaction score
- 2
Hey there, I need a script that randomizes trash all over the city, thank you 

local positions = {
{x=100, y=100, z=7},
{x=101, y=100, z=7},
}
local trash = {1234, 5678}
function onThink(interval, lastExecution, thinkInterval)
for i = 1, #positions do
doCreateItem(trash[math.random(#trash)], 1, positions[i])
end
return true
end
<globalevent name="CreateTrash" interval="600" event="script" value="scriptname.lua"/>
Fill table trash with the IDs you want.but is it possible for me to choose wich exact items I want to appear?