Sorry about this, guys. How can I save all the objects I have created in a LUA file?
I mean, I want to create 1 line for each object in the map, so next time the resource start, every object will be respawned.
This is the (not ready) code I have:
addEventHandler ("onClientPlayerQuit",getRootElement(),
function ()
for i,theBlock in ipairs (blocks) do --"blocks" is a table that returns all the objects I need.
--What to do here?
end
end)
Can anybody, at least, give me a clue?