GET_PED_MOTION_FOCUS_ENTITY
Returns the entity ped is focusing its movement on.
Signature
Entity GET_PED_MOTION_FOCUS_ENTITY(Ped ped); // 0x243E1B4607040057 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | GET_PED_MOTION_FOCUS_ENTITY |
|---|---|
| Hash | 0x243E1B4607040057 |
| 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(0x243E1B4607040057, -- GET_PED_MOTION_FOCUS_ENTITY
PlayerPedId(), -- Ped ped
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x243E1B4607040057", // GET_PED_MOTION_FOCUS_ENTITY
PlayerPedId(), // Ped ped
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x243E1B4607040057, // GET_PED_MOTION_FOCUS_ENTITY
API.PlayerPedId() // Ped ped
);Related PED natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.