altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Confusing "Invalid component variation" error

Open xxshady opened this issue 1 year ago • 0 comments

Description of the problem

When changing player model and setting clothing components (doesn't happen with props) right after it, a misleading error is displayed in client console:

[Error] Invalid component variation: x x x

But clothing components are still visually set:

https://github.com/user-attachments/assets/9d6f73e5-1084-4084-9911-a145329764ba

Reproduction steps

player.spawn("mp_m_freemode_01", new alt.Vector3(0, -2500, 5));

// wait for model set in game
await alt.Utils.wait(2000);

player.model = "ig_amandatownley";

// wait for model set in game
await alt.Utils.wait(2000);

player.model = "mp_m_freemode_01";

// await alt.Utils.wait(2000); // uncomment this and error wont be displayed

player.setClothes(11, 168, 1);
player.setClothes(8, 48, 3);
player.setProp(0, 13, 0);
player.setProp(1, 10, 0);

Expected behaviour

If clothing components are set in game error is wrong?

Additional context

No response

Operating system

Windows 11

Version

16.1.0-dev.53

Crashdump ID

No response

Confirmation of issue's presence

  • [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.

xxshady avatar Jul 18 '24 11:07 xxshady