PedClient1 output

getPedLastDamageBone

GET_PED_LAST_DAMAGE_BONE0xD75960F6BD9EA49C

The 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.

SignatureJavaScript
getPedLastDamageBone(ped: Ped): [ok: boolean, outBone: number]
SignatureLua
getPedLastDamageBone(ped: Ped): boolean, integer

Usage

JavaScript
const [ok, outBone] = getPedLastDamageBone(ped);
Lua
local ok, outBone = getPedLastDamageBone(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2outBoneintnumberintegeroutput

Reference

Namespace
Ped PED
In the game
BOOL GET_PED_LAST_DAMAGE_BONE(Ped ped, int* outBone)
Hash
0xD75960F6BD9EA49C

Open in the interactive natives reference