Jump to content

Vehicle.setMod doesn't work on Server side


Recommended Posts

Posted

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.

Posted
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"]));

 

Posted

 

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

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

Posted (edited)

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
Posted (edited)
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

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