Possible FiveM client crash when "populationPedCreating" model-swapped ambient peds escalate

Hello, I want to report a crash that seems reproducible in a very specific AI interaction case.

I am using “populationPedCreating” to replace ambient population peds in selected shop areas with the ped model “a_m_y_gencaspat_01”.

Goal:

  • make this model behave as true ambient civilians
  • let GTA V system control them as naturally as possible
  • avoid direct scripted control for those shop peds

Current result:

  • this part actually works well
  • the swapped peds follow ambient logic
  • they can walk, hang out, drive cars, react like normal civilians, and other ambient NPCs recognize them much more naturally than directly scripted peds

What still crashes:
The remaining crash seems to happen only in some escalation cases, especially when these ambient-swapped peds interact with my scripted police system.

Examples:

  1. A swapped ped was driving a car, I blocked the car, the ped honked, then a nearby scripted police unit opened fire, and the client crashed shortly after.
  2. Another time, a swapped ped became angry and started punching another NPC on the street. Cops arrived nearby, and the client crashed shortly after.

What does NOT seem to crash:

  • normal ambient wandering
  • normal driving
  • normal gunshot panic/flee behavior
  • simple NPC fights in some cases
  • general ambient behavior in peaceful conditions

Crash info:

  • GTA build: b3407
  • one earlier legacy crash hash I saw was: “foxtrot-fillet-nuts”
  • another earlier police-overload-type crash I know from different situations usually gives me a different hash, so I do not think this is the same issue
  • one recent crash log line I saw was:
    “An error at GTA5_b3407.exe+BFEBFC caused FiveM to stop working”

Definitely upload the crash dump Zips if you have them, without those your report is pointless because there’s no actual information to go on

If you truly believe this is a game bug and not an issue of bad code / some weird edge case, feel free to create a post in FiveM Discussion > Bug Reports with all relevant info and files