GET_MELEE_TARGET_FOR_PED
Returns the ped that ped is targeting in melee.
Signature
Ped GET_MELEE_TARGET_FOR_PED(Ped ped); // 0x18A3E9EE1297FD39 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | GET_MELEE_TARGET_FOR_PED |
|---|---|
| Hash | 0x18A3E9EE1297FD39 |
| Namespace | |
| Returns | Ped |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local ped = Citizen.InvokeNative(0x18A3E9EE1297FD39, -- GET_MELEE_TARGET_FOR_PED
PlayerPedId(), -- Ped ped
Citizen.ResultAsInteger()
)
print(ped)const ped = Citizen.invokeNative("0x18A3E9EE1297FD39", // GET_MELEE_TARGET_FOR_PED
PlayerPedId(), // Ped ped
Citizen.resultAsInteger()
);
console.log(ped)int ped = Function.Call<int>((Hash)0x18A3E9EE1297FD39, // GET_MELEE_TARGET_FOR_PED
API.PlayerPedId() // Ped ped
);Related PED natives
- GET_CURRENT_TARGET_FOR_PED
- _CAN_PED_HEAR_TARGET_PED
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_MELEE_ACTION_PHASE
- _GET_PED_WHO_HOGITIED_THIS_PED
- _REFRESH_CARRIED_PED_FOR_PED
- GET_META_PED_ASSET_GUIDS
- GET_META_PED_ASSET_TINT
- GET_CARRIED_ATTACHED_INFO_FOR_SLOT
- GET_CLOSEST_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.