I have a question regarding vehicle rotation. I have pretty much the same logic on creating a vehicle, but on one case, it always faces north and can't change it in anyway:
This one is not working:
truck = mp.vehicles.new(mp.joaat('phantom'), player.position, { heading: -125 });
This one is working:
let vehicle = mp.vehicles.new(mp.joaat(model), player.position, { heading: Number(heading) });
Any ideas what I'm doing wrong? I've tried to change rotation and heading both from options object and after creating it, but didn't work. Also, I tried to put a value between 0 and 360, and nothing changes.
Note: the first one is under a custom event and the second one is under a command.