No this is a wrong way try this ;
local ExplosionPosition = {
[1] = { x,y,z },
[2] = { x,y,z },
[3] = { x,y,z },
[4] = { x,y,z },
}
addEventHandler ( "onClientPlayerSpawn", root,
function ( )
for _,v in ipairs ( ExplosionPosition ) do
local x,y,z = v[1],v[2],v[3]
setTimer ( createExplosion, 16000, 1, x, y, z, 10, true, -1.0, false )
end
end
)