getPedLastDamageBone
GET_PED_LAST_DAMAGE_BONE0xD75960F6BD9EA49CThe GTA V native GET_PED_LAST_DAMAGE_BONE of the PED namespace, as LS:MP client scripts call it: the global function getPedLastDamageBone, in JavaScript and in Lua.
getPedLastDamageBone(ped: Ped): [ok: boolean, outBone: number]getPedLastDamageBone(ped: Ped): boolean, integerUsage
JavaScript
const [ok, outBone] = getPedLastDamageBone(ped);Lua
local ok, outBone = getPedLastDamageBone(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | outBone | int | number | integer | output |
Reference
- Namespace
- Ped PED
- In the game
BOOL GET_PED_LAST_DAMAGE_BONE(Ped ped, int* outBone)- Hash
0xD75960F6BD9EA49C