Sign in to follow this  
0xNull

Spawn car in player.dimension

Recommended Posts

How to spawn car in custom player.dimension? If i just calling this:

mp.vehicles.new(418536135, new mp.Vector3(-17.460, 39.787, 71.318));

Car spawned in 0 player.dimension. How fix it? How to spawn in current dimension?

Share this post


Link to post
Share on other sites
var NewVeh = mp.vehicles.new(418536135, new mp.Vector3(-17.460, 39.787, 71.318)); 
NewVeh.dimension = player.dimension;

Create a variable to handle the new vehicle, and set the dimension of your new vehicle to the player's dimension. This has to be in a function where the player handle/variable exists so like a command or something/

Share this post


Link to post
Share on other sites
2 часа назад, Calgon сказал:
var NewVeh = mp.vehicles.new(418536135, new mp.Vector3(-17.460, 39.787, 71.318)); 
NewVeh.dimension = player.dimension;

Create a variable to handle the new vehicle, and set the dimension of your new vehicle to the player's dimension. This has to be in a function where the player handle/variable exists so like a command or something/

Thank you!

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.