Jump to content

qMartis

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by qMartis

  1. 9 hours ago, Doom said:

    The location you spawning the plane at, is it within the stream range of your local player?

    player position is same like plane 

    player.position= new mp.Vector3(gameStartedData.vehPositionX[gameDimension]+gameStartedData.sk, gameStartedData.vehPositionY[gameDimension]+gameStartedData.sk1, 747.1845092773438-2)

    I tried another way, but plane position z bouncing. Maybe is possible turn off entity gravity ?

    setInterval(function() {
    veh.position.z = 747.1845092773438;
    },1)
  2.  

    entity.freezePosition(toggle); 

    I try this but maybe I'm wrong with code 

     

    veh = mp.vehicles.new(mp.joaat('cargoplane'), new mp.Vector3(1702.69482421875,-2967.266845703125,747.1845092773438));
    veh.dimension = gameDimension;
    player.call('freezePlane', [veh]);
     
    Client side: 
    mp.events.add('freezePlane', (plane) => {
        plane.freezePosition(true);
    });
    • Like 1
  3. 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);');
    });
     

×
×
  • Create New...