RedM Natives

_APPLY_PED_DAMAGE_PACK_TO_BONE

Applies damage pack to a ped bone with offset and rotation.

Hash0x58D32261AE0F0843
Runtime nameApplyPedDamagePackToBone
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _APPLY_PED_DAMAGE_PACK_TO_BONE(Ped ped, int boneId, float xOffset, float yOffset, float zOffset, float xRot, float yRot, float zRot, const char* damagePack);

Parameters

NameTypeDescription
pedPed—
boneIdint—
xOffsetfloat—
yOffsetfloat—
zOffsetfloat—
xRotfloat—
yRotfloat—
zRotfloat—
damagePackconst char*—

Returns void

Description

alloc8or RDR3 NativeDB

Applies damage pack to a ped bone with offset and rotation.
Note: for boneId only PD_Vomit seems to work.

Preview: https://imgur.com/a/qwEGXEu

VORPCORE RDR3natives

seems to only work with PD_Vomit ?

Usage

Lua
ApplyPedDamagePackToBone(ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack)

-- always works, by hash
Citizen.InvokeNative(0x58D32261AE0F0843, ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack)
JavaScript and C#
JavaScript
ApplyPedDamagePackToBone(ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack);

// by hash
Citizen.invokeNative('0x58D32261AE0F0843', ped, boneId, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, damagePack);
C#
Function.Call((Hash)0x58D32261AE0F0843, ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.