Sky Camera 1.0.0

   (1 review)

1 Screenshot

About This File

This script allows you to move the game camera in the air and back like in GTA:ONLINE

 

Installation:

  1. Download file.
  2. Unzip folder into your client_packages.
  3. Add require('MoveSkyCamera/index.js'); to client_packages/index.js.

Usage:

Calling on serverside

player.call('moveSkyCamera', [player, moveTo, switchType, showGUI]);

Calling on clientside

mp.events.call('moveSkyCamera', player, moveTo, switchType, showGUI);

Reference:

player = Ped; player handle

moveTo = String; 'up' or 'down'

switchType = Int; 0, 1, 2 or 3
	0: 1 step towards ped
	1: 3 steps out from ped (Recommended)
	2: 1 step out from ped
	3: 1 step towards ped
    
showGUI = Boolean; Show chat and minimap during camera movement?

Note: When using param moveTo as 'down', it's not necessary to add switchType and showGUI.

Examples:

mp.events.addCommand('movecam', (player) => {
    // Make camera to go up in to the sky
    player.call('moveSkyCamera', [player, 'up', 1, false]);

    // After 5 seconds, camera start to go back to player.
    setTimeout(() => {
        player.position = new mp.Vector3(0,0,10); // Set your position if you want
        player.call('moveSkyCamera', [player, 'down']);
    }, 5000);
});

 

  • Like 6



User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

hubba

  

awesom

Share this review


Link to review