_IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE
Returns true if player is locked on to an entity while on horseback.
Signature
BOOL _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE(Player player); // 0x2009F8AB7A5E9D6D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| Name | _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE |
|---|---|
| Hash | 0x2009F8AB7A5E9D6D |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x2009F8AB7A5E9D6D, -- _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE
PlayerId() -- Player player
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x2009F8AB7A5E9D6D", // _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE
PlayerId(), // Player player
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x2009F8AB7A5E9D6D, // _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE
API.PlayerId() // Player player
);Related PLAYER natives
- _IS_PLAYER_FOLLOWING_TARGET
- _IS_PLAYER_FREE_FOCUSING
- _IS_PLAYER_IN_SCOPE
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
- IS_PLAYER_CONTROL_ON
- IS_PLAYER_FREE_AIMING_AT_ENTITY
- IS_PLAYER_SCRIPT_CONTROL_ON
- IS_PLAYER_TARGETTING_ENTITY
- _IS_DEADEYE_ABILITY_LOCKED
- _IS_EAGLE_EYE_REGISTERED_FOR_ENTITY
- _EAGLE_EYE_CAN_PLAYER_FOCUS_ON_TRACK
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.