local camX, camY, camZ, tarX, tarY, tarZ
function binds() --client version doesn't have player parameter
camX, camY, camZ, tarX, tarY, tarZ = getCameraMatrix() -- isn't this what you want to do? save camera position
bindKey("1", "down", cam1) --lua is case-sensitive
bindKey("2", "down", cam2)
bindKey("3", "down", cam3)
bindKey("4", "down", cam4)
bindKey("5", "down", cam5)
end
addCommandHandler("test", binds)
function cam1()
setCameraMatrix(camX, camY, camZ, tarX, tarY, tarZ)
end
function cam2()
end
function cam3()
end
function cam4()
end
function cam5()
end