Zombies bloody ped

Good time of day, guys. There was a question, how to make a ped bloody? Zombies without blood - not zombies)

3 Likes

Take a look at this.
http://runtime.fivem.net/doc/reference.html#_0x83F7E01C7B769A26

Can you please, more in detail) How to use this function?

Syntax:

ApplyPedBlood(Ped ped, int boneIndex, float xRot, float yRot, float zRot, char* woundType)

Reference example:

PED::APPLY_PED_BLOOD(l_4B, 3, 0.0, 0.0, 0.0, "wound_sheet");

Using lua it’d be something like this:

ApplyPedBlood(ped, 3, 0.0, 0.0, 0.0, "wound_sheet")

ApplyPedBlood(ped, 3, 0.0, 0.0, 0.0, β€œwound_sheet”) does not give anything :frowning:

Did you specify a valid ped?

GetPlayerPed(-1) enough valid ped?

should be yeah. not sure what’s wrong. Never used the native myself.

I had the idea of spawning the pedes high above the ground, and then revive them after the fall, but they hang in the air…

Not a very good way, especially if there is a native way

Working)

ApplyPedDamagePack(GetPlayerPed(-1), "Fall", 100, 100);

5 Likes

How can I add this to the code i have below?

https://mega.nz/#!BfonxSBC!ScSUm58fPTHcaF04MiYJNjWcxHeGvOebnVb3KB1ptX8

just paste it into line 79:

ApplyPedDamagePack(ped, "Fall", 100, 100)
1 Like

Thank you! (post must be 20 characters)

1 Like

Are there any other Ped Damage packs besides β€œFall”?