GET_CURRENT_TARGET_FOR_PED
Returns the entity ped is currently targeting.
Signature
Entity GET_CURRENT_TARGET_FOR_PED(Ped ped); // 0xCD66FEA29400A0B5 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | GET_CURRENT_TARGET_FOR_PED |
|---|---|
| Hash | 0xCD66FEA29400A0B5 |
| Namespace | |
| Returns | Entity |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local entity = Citizen.InvokeNative(0xCD66FEA29400A0B5, -- GET_CURRENT_TARGET_FOR_PED
PlayerPedId(), -- Ped ped
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0xCD66FEA29400A0B5", // GET_CURRENT_TARGET_FOR_PED
PlayerPedId(), // Ped ped
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0xCD66FEA29400A0B5, // GET_CURRENT_TARGET_FOR_PED
API.PlayerPedId() // Ped ped
);Related PED natives
- GET_MELEE_TARGET_FOR_PED
- GET_PED_CURRENT_MOVE_BLEND_RATIO
- _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_WHO_HOGITIED_THIS_PED
- _REFRESH_CARRIED_PED_FOR_PED
- GET_CARRIED_ATTACHED_INFO_FOR_SLOT
- GET_CLOSEST_PED
- GET_DEAD_PED_PICKUP_COORDS
- GET_IS_PED_RESPONDING_TO_NEGATIVE_INTERACTION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.