For a good bug report you should probably include:
- Client (production/canary) and FXServer version: production / 3452
- What you expected to happen: work with a lot of entries
- What actually happens: don’t work
- Category of bug (eg. client, server, weapons, peds, native): native SetPedComponentVariation(0x262b14f48d29de80)
Copied message here:
InvokeNative: execution failed: Error executing native 0x262b14f48d29de80 at address 0x1406d77ab.
SCRIPT ERROR: Execution of native 262b14f48d29de80 in script host failed: Error executing native 0x262b14f48d29de80 at address 0x1406d77ab.
SetPedComponentVariation (SetPedComponentVariation.lua:25)
(ped/client.lua:25)
- Reproducible steps, preferably with example script(s):ped.rar (1.1 MB)
Script includes add-on hair and script to change mask.
Click left/right arrow to switch your model to mp_f_freemode_01 and then click again to switch mask
Arrow up resets mask to number 0
I think bug actually is related to file “pedalternatevariations.meta”.
File contains 55 entries on which mask it should completly hide hair, each hair has 134 masks on which it should hide completly.
With 55 entries script is stopping working after setting first mask,
with 54 entries script is stopping working after setting 8th mask,
with 53 entries script is working as it should work.
To remove entries simply edit .meta file, click ALT + 6 (in notepad++) to hide text nicely, scroll down and remove whole <Item></Item>
as shown on screenshot