{"hash":"0x58D32261AE0F0843","ns":"PED","name":"_APPLY_PED_DAMAGE_PACK_TO_BONE","slug":"_APPLY_PED_DAMAGE_PACK_TO_BONE","official":false,"named":true,"luaName":"ApplyPedDamagePackToBone","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"boneId","type":"int"},{"name":"xOffset","type":"float"},{"name":"yOffset","type":"float"},{"name":"zOffset","type":"float"},{"name":"xRot","type":"float"},{"name":"yRot","type":"float"},{"name":"zRot","type":"float"},{"name":"damagePack","type":"const char*"}],"summary":"Applies damage pack to a ped bone with offset and rotation.","descriptions":[{"source":"alloc8or","format":"text","body":"Applies damage pack to a ped bone with offset and rotation.\nNote: for boneId only PD_Vomit seems to work.\n\nPreview: https://imgur.com/a/qwEGXEu"},{"source":"vorp","format":"text","body":"seems to only work with PD_Vomit ?"}],"examples":[],"aliases":[],"enums":["eAnimBoneTag"],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_APPLY_PED_DAMAGE_PACK_TO_BONE","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_APPLY_PED_DAMAGE_PACK_TO_BONE.md","snippets":{"lua":"ApplyPedDamagePackToBone(ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack)","luaInvoke":"Citizen.InvokeNative(0x58D32261AE0F0843, ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack)","js":"ApplyPedDamagePackToBone(ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack);","jsInvoke":"Citizen.invokeNative('0x58D32261AE0F0843', ped, boneId, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, damagePack);","csharp":"Function.Call((Hash)0x58D32261AE0F0843, ped, boneId, xOffset, yOffset, zOffset, xRot, yRot, zRot, damagePack);","notes":["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."]}}