[Crash Mitigation] CPed::SetVariation Invalid variation

What is the issue you’re having?

After restarting our FiveM server at its usual time at 8PM NZST the following errors are now being spammed on all clients the moment another player ped enters render range.
Approaching any ped themselves that is throwing the error, they are correctly rendered with correct clothing being rendered yet the error is generated.
Since last restart we have not made any changes to running code or configuration.

The error is being generated by crash-mitigation:

One block:

^1Error: CPed::SetVariation: Invalid variation (slotId: 11, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 1, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 2, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 5, drawblId: 0, texId: 0).^7

Another block with different peds in render range:

^1Error: CPed::SetVariation: Invalid variation (slotId: 11, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 1, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 5, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 6, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 7, drawblId: 0, texId: 0).^7
^1Error: CPed::SetVariation: Invalid variation (slotId: 8, drawblId: 0, texId: 0).^7

This appears to spam so much that for some clients it interrupts their ability to even spawn props correctly.

What have you tried already to fix the issue?

Attempted a server restart to check if it was a one off.
Attempted to locate if it was a single player ped causing the issue triangulating in noclip however as soon as any other player ped was rendered on the screen the issue was generated.
Confirmed that this error is being generated on Stable as well as Canary builds of the client.

What server did you get this issue on?

Rebirth RP

Error screenshot(s)

Windows version

Windows 11 22631.5335

System specifications

Intel Core I9-14900KF
128GB of DDR5 memory.
Gigabyte NVIDIA GeForce RTX 5090

Antivirus software

Windows Defender

Log files

SPOILER_CitizenFX_log_2025-06-02T210844.log (1.57 MB)

Additional comments

Attached log is a log provided by a member of my community, no crash file as it hasn’t yet caused crash to desktop.

Update: Tested this on our QA server, same code branch as our Production deployment with 2 players only in a controlled environment. The moment a second player enters render range the above errors are spammed non stop.

Update2: Additional testing on our QA server, stopped almost all resources outside of just loading into the the server, no custom clothing or even skin application script so both players just spawned as the default Micheal ped. Errors still spammed in the console.

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

i have the same problem

Same…

Same here

same here

Someone find an solution?

cfx discord:

1 Like

Lets hope they update is soon , the spamming in console is making it hard to see real errors.

I’m not sure how that indicates invalid components when the error occurs using a base game ped with no addon clothing loaded?

same here man idk what to do. ill give em some time

This needs to be configurable, I have someone who is dealing with tons of these errors and no way to stop it other than removing all the clothing and getting that issue fixed.

1 Like

Same here

same .

Here i am going through all my scripts to work out what could be causing it :rofl:

Trust me, I think we all have tried messing with assets tbh. They really need to address this as someone said they tried with a default ped and no add-on clothing and yet it still happened, seems like the logic they implemented for it to detect messed up clothing isn’t all the way there. Should just completely disable this or allow it to be set through a convar rather than forcing something upon people that don’t really need it.

1 Like

I wonder how long until a fix or work around

I did the exact same thing… took out and stopped a could of scripts just to find out it was still doing the same thing lol

I don’t even have any clothing asset in and still spamming it.

Check the FiveM Portal/Patreon subscription of server where this problems.

If cloth changes are not allowed, I think could be happening when addon-clothes exist in sever when calling them.