The Lab
PED native

APPLY_DAMAGE_TO_PED

returns void5 paramsbuild 1207

Deals damageAmount damage to ped, optionally hitting armour first, on the bone boneId, with pedKiller as the source.

Signature

C
void APPLY_DAMAGE_TO_PED(Ped ped, int damageAmount, BOOL damageArmour, int boneId, Ped pedKiller); // 0x697157CED63F18D4 b1207

Parameters

#NameType
1pedPed
2damageAmountint
3damageArmourBOOL
4boneIdint
5pedKillerPed

Facts

Facts about APPLY_DAMAGE_TO_PED
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.

Lua
Citizen.InvokeNative(0x697157CED63F18D4, -- APPLY_DAMAGE_TO_PED
  PlayerPedId(), -- Ped ped
  0, -- int damageAmount
  false, -- BOOL damageArmour
  0, -- int boneId
  PlayerPedId() -- Ped pedKiller
)
JavaScript
Citizen.invokeNative("0x697157CED63F18D4", // APPLY_DAMAGE_TO_PED
  PlayerPedId(), // Ped ped
  0, // int damageAmount
  false, // BOOL damageArmour
  0, // int boneId
  PlayerPedId() // Ped pedKiller
);
C#
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
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.