Exemple #1
0
        private void StartFreeCam()
        {
            API.ClearFocus();

            Vector3 playerCoord = Game.PlayerPed.Position;

            SetPlayerEnterCam(Game.Player.Handle, true);

            camHandle = API.CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", playerCoord.X, playerCoord.Y, playerCoord.Z, 0.0f, 0.0f, 0.0f,
                                                API.GetGameplayCamFov(), false, 2);

            API.SetCamActive(camHandle, true);
            API.RenderScriptCams(true, false, 0, true, false);
            API.SetCamAffectsAiming(camHandle, false);
        }