engineRequestModel("ped") causes random skin texture mismatch
Describe the bug
When using engineRequestModel on ped models, the skin textures become corrupted or mixed up. Specifically, a ped sometimes receives textures from a different skin, seemingly at random.
This issue happens without any custom shaders or texture replacements applied manually. As a result, peds appear with incorrect or unrelated clothing/skin textures, breaking visual consistency.
Steps to reproduce
Start MTA:SA with a clean resource (no shaders or custom textures).
Spawn one or more peds with custom skin IDs.
Call engineRequestModel(pedModelID) for those peds.
Observe the ped skins after the model is requested/loaded.
Notice that some peds randomly display textures belonging to other skins.
Version
1.6.0-9.23952.0
Additional context
No response
Relevant log output
Security Policy
- [x] I have read and understood the Security Policy and this issue is not security related.
Can confirm as players have reported this to me: https://imgur.com/JScnqHG + https://imgur.com/a/Xb79J53
Fixed since r23977: e26a62d, 90e8969 (confirmed by multiple testers) Note that d87b4d8 is also required to make it whole.
In the new build 23952, this problem has returned.
Fixed since r23977