[help][solved]Anyway to modify ai/npc health?

I want to edit AI cops health for more robust fight in PvE mode, but I couldn’t find a way to modify it. How can I achieve that? Is there a lua/c# way to do that?

Related mod: https://www.gta5-mods.com/misc/npc-health-mod
Related discussion: [Help needed] How can i stream pedhealth.meta?

Thanks in advanced.

You could try to compile that…

I’ve tried add, but didn’t work, here’s test code


files {
    'pedhealth.meta',
}

data_file 'PED_HEALTH_FILE' 'pedhealth.meta'

I’ve tested by set ped health by { SetEntityMaxHealth SetEntityHealth }, and finds it doesn’t work as I thought.
Ped do get more health, but they still get instant killed by headshot, scramming on ground and die eventually.
So it is a more complicate case to make ai more robust.