getMeleeTargetForPed
GET_MELEE_TARGET_FOR_PED0x18A3E9EE1297FD39The GTA V native GET_MELEE_TARGET_FOR_PED of the PED namespace, as LS:MP client scripts call it: the global function getMeleeTargetForPed, in JavaScript and in Lua.
getMeleeTargetForPed(ped: Ped): PedgetMeleeTargetForPed(ped: Ped): PedUsage
JavaScript
const result = getMeleeTargetForPed(ped);Lua
local result = getMeleeTargetForPed(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
Ped JavaScript number, Lua integerGame handle of a ped. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Ped PED
- In the game
Ped GET_MELEE_TARGET_FOR_PED(Ped ped)- Hash
0x18A3E9EE1297FD39