why don't you just put them in a table?
try this:
local camTable = {
{1262, -1154, 96,1190, -1195, 58}, --cs,cy,cz,cpx,cpy,cpz
{512.2, -1263.57, 32.53,542.16, -1287.07, 17.24}
}
function firstSlider(source)
setTimer(function()
local cx,cy,cz,cpx,cpy,cpz = unpack(camTable[math.random(#camTable)])
setCameraMatrix(source, cx1, cy1, cz1, cpx1, cpy1, cpz1)
fadeCamera(source, true, 1.0)
end, 1000, 2)
end
addEventHandler("onPlayerLogin", getRootElement(), firstSlider)