RedM Natives

GET_MELEE_TARGET_FOR_PED

Hash0x18A3E9EE1297FD39
Runtime nameGetMeleeTargetForPed
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x18A3E9EE1297FD39

Signature

Ped GET_MELEE_TARGET_FOR_PED(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns Ped

Usage

Lua
local retval = GetMeleeTargetForPed(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x18A3E9EE1297FD39, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetMeleeTargetForPed(ped);

// by hash
const retval = Citizen.invokeNative('0x18A3E9EE1297FD39', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x18A3E9EE1297FD39, ped);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.