RedM Natives

_IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE

Checks if the player has locked onto an entity while on horseback.

Hash0x2009F8AB7A5E9D6D
Runtime nameIsPlayerLockedOnEntityOnHorse
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_PLAYER_ON_MOUNT_LOCKON_ENTITY

Signature

BOOL _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns BOOL

Description

alloc8or RDR3 NativeDB

Checks if the player has locked onto an entity while on horseback.
This function checks only the lock-on status and does not trigger any additional behavior.
Images: https://imgur.com/gallery/0x2009f8ab7a5e9d6d-0xWIXcK

VORPCORE RDR3natives

This native is used to determine if the player has an active lockon an entity while riding a horse.

Usage

Lua
local retval = IsPlayerLockedOnEntityOnHorse(player)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2009F8AB7A5E9D6D, player, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerLockedOnEntityOnHorse(player);

// by hash
const retval = Citizen.invokeNative('0x2009F8AB7A5E9D6D', player, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x2009F8AB7A5E9D6D, player);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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