_APPLY_PED_DAMAGE_PACK_TO_BONE
Applies damage pack to a ped bone with offset and rotation.
Hash
0x58D32261AE0F0843Runtime name
ApplyPedDamagePackToBoneNamespacePED
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
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
boneId | int | — |
xOffset | float | — |
yOffset | float | — |
zOffset | float | — |
xRot | float | — |
yRot | float | — |
zRot | float | — |
damagePack | const char* | — |
Returns void
Description
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
seems to only work with PD_Vomit ?
Usage
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#
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);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
Enums and flags
- eAnimBoneTag 911 values
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.