Jump to content

Spawn car in player.dimension


Recommended Posts

Posted

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?

Posted
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/

Posted
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!

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...