qMartis Posted August 11, 2019 Share Posted August 11, 2019 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); }); 1 Link to comment Share on other sites More sharing options...
Doom Posted August 11, 2019 Share Posted August 11, 2019 The location you spawning the plane at, is it within the stream range of your local player? Link to comment Share on other sites More sharing options...
qMartis Posted August 12, 2019 Author Share Posted August 12, 2019 (edited) 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) Edited August 12, 2019 by qMartis Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now