global.setStartCam = async () => {
try
{
cameraIndex = 0;
const camera = global.cameraManager.createCamera ("authentication", new mp.Vector3(723.5045, 851.446, 382.3506), new mp.Vector3(0, 0, 358.6186), 70);
cameraIndex = 1
global.localplayer.position = new mp.Vector3(723.5045, 851.446, 382.3506);
cameraIndex = 2;
global.localplayer.freezePosition(true);
cameraIndex = 3;
global.localplayer.setVisible(false, false);
cameraIndex = 4;
global.cameraManager.setActiveCamera(camera, true);
cameraIndex = 5;
}
catch (e)
{
mp.events.callRemote("client_trycatch", "player/auth", "setStartCam - " + cameraIndex, e.toString());
global.FadeScreen (false, 2500);
}
}