try this
resourceRoot = getResourceRootElement()
function createNew()
for _, areia in pairs ( radar_table ) do
pesq = executeSQLQuery("SELECT * FROM `area` WHERE `nome`=?", area.nome )
for k, a in ipairs (pesq) do
triggerClientEvent( root,"onSetOwner", root, areia.nome, a.owner, areia.preco, areia.x, areia.y, areia.z, a.corR, a.corG, a.corB)
end
end
end
addEventHandler("onResourceStart", resourceRoot, createNew)