Jump to content

Camera position not updating


qMartis

Recommended Posts

https://gyazo.com/f345a4f53c0e1caa3644a3ec59e98dc1

 

mp.events.add('freeze', (player, x,y,z, xa, xs) => {
    mp.players.local.freezePosition(true);
    let sceneryCamera = mp.cameras.new('default', new mp.Vector3(x-5, y, z), new mp.Vector3(0,0,0), 140);
    sceneryCamera.pointAtCoord(xa, xs, z); //Changes the rotation of the camera to point towards a location
    sceneryCamera.setActive(true);
    mp.game.cam.renderScriptCams(true, false, 0, true, false);
    moneyData.execute('$(".Money_have").empty()')
    moneyData.execute('var alertElement = $(\'<h2 style="color:#fff; text-align:center;">'+x+'</h2> \'); \
            $(\'.Money_have\').append(alertElement);');
});
 

Edited by qMartis
Link to comment
Share on other sites

Create an account or sign in to comment

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...