linnik

Vehicle.setMod doesn't work on Server side

Recommended Posts

Hi guys,

why doesn't this "Vehicle.setMod(69, 2);" command work after spawning vehicle? There's no window tint on vehicle I spawn nearby.

Share this post


Link to post
Share on other sites

Can you give us an example of how you use this function?

Edited by Hanvod
my bad english

Share this post


Link to post
Share on other sites
1 час назад, Hanvod сказал:

Can you give us an example of how you use this function?

Цитата

let Vehicle = mp.vehicles.new(Model, Position);
Vehicle.setColor(parseInt(Color0), parseInt(Color1));
Vehicle.numberPlateType = 4;
Vehicle.locked = true;
Vehicle.engine = false;

Vehicle.setMod(parseInt(Data["k"]), parseInt(Data["v"]));

 

Share this post


Link to post
Share on other sites

 

Vehicle.setMod(parseInt(Data["k"]), parseInt(Data["v"]));

Are you sure all variables here is defined? Check it with console.log(). please

Share this post


Link to post
Share on other sites

Also you car maybe are not supporting this mod. Try to spawn Zentorno with setMod(0, 1)

If there is a spoiler, that means that function works, but your car doesnt support 69 2 mod

Edited by Hanvod

Share this post


Link to post
Share on other sites
20 минут назад, Hanvod сказал:

Also you car maybe are not supporting this mod. Try to spawn Zentorno with setMod(0, 1)

If there is a spoiler, that means that function works, but your car doesnt support 69 2 mod

I spawn sentinel and zion. It's quite supported cars esp. for window tint. But I'am trying your advice right now.

 

WOW. it works. Zentorno has spoiler. WTF

But anyway window tint (mod 69) doesn't work for all cars!

Edited by linnik

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

  • Recently Browsing   0 members

    No registered users viewing this page.