APPLY_DAMAGE_TO_PED
Deals damageAmount damage to ped, optionally hitting armour first, on the bone boneId, with pedKiller as the source.
Signature
void APPLY_DAMAGE_TO_PED(Ped ped, int damageAmount, BOOL damageArmour, int boneId, Ped pedKiller); // 0x697157CED63F18D4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | damageAmount | int |
| 3 | damageArmour | BOOL |
| 4 | boneId | int |
| 5 | pedKiller | Ped |
Facts
| Name | APPLY_DAMAGE_TO_PED |
|---|---|
| Hash | 0x697157CED63F18D4 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x697157CED63F18D4, -- APPLY_DAMAGE_TO_PED
PlayerPedId(), -- Ped ped
0, -- int damageAmount
false, -- BOOL damageArmour
0, -- int boneId
PlayerPedId() -- Ped pedKiller
)Citizen.invokeNative("0x697157CED63F18D4", // APPLY_DAMAGE_TO_PED
PlayerPedId(), // Ped ped
0, // int damageAmount
false, // BOOL damageArmour
0, // int boneId
PlayerPedId() // Ped pedKiller
);Function.Call((Hash)0x697157CED63F18D4, // APPLY_DAMAGE_TO_PED
API.PlayerPedId(), // Ped ped
0, // int damageAmount
false, // BOOL damageArmour
0, // int boneId
API.PlayerPedId() // Ped pedKiller
);Related PED natives
- _APPLY_PED_DAMAGE_PACK_TO_BONE
- APPLY_PED_DAMAGE_PACK
- _APPLY_PED_META_PED_OUTFIT
- _APPLY_SHOP_ITEM_TO_PED
- GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
- SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
- APPLY_PED_BLOOD_SPECIFIC
- ADD_ARMOUR_TO_PED
- _ADD_PED_SUBSCRIBE_TO_LEGENDARY_BLIPS
- _APPLY_TEXTURE_ON_PED
- _CAN_PED_HEAR_TARGET_PED
- _CLEAR_PED_BLOOD_DAMAGE_FACIAL
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.