GET_MELEE_TARGET_FOR_PED
Hash
0x18A3E9EE1297FD39Runtime name
GetMeleeTargetForPedNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x18A3E9EE1297FD39Signature
Ped GET_MELEE_TARGET_FOR_PED(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Ped
Usage
local retval = GetMeleeTargetForPed(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x18A3E9EE1297FD39, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetMeleeTargetForPed(ped);
// by hash
const retval = Citizen.invokeNative('0x18A3E9EE1297FD39', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x18A3E9EE1297FD39, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.