Closed sudojunior closed 12 months ago
Are you sure? Cuz in the code its how it is in the typings currently
My referenced code targeted the truck when it was the leading argument, which disabled it's indicators when vehicleDetach
was run.
alt.on('vehicleAttach', (vehicle1, vehicle2) => {
console.log(vehicle1.id, "->", vehicle2.id); // 2 -> 1
});
And despite trailer being the second vehicle entity of the session, it is vehicle1
- so which one leads?
... or would it be better to just add a note to the event?
Found event arguments were flipped when trying to use the events for https://github.com/sudojunior/altv-os-indicators/pull/5, unsure if the parent vehicle should remain the leading argument.