RedM Natives

_SET_OBJECT_TARGETTABLE_FOCUS

When p1 and p2 are true you can focus on the object (similar to when you focus a ped)

Hash0xA22712E8471AA08E
Runtime nameSetObjectTargettableFocus
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_OBJECT_TARGETTABLE_FOCUS(Object object, BOOL toggle, BOOL weaponLock);

Parameters

NameTypeDescription
objectObject—
toggleBOOL—
weaponLockBOOL—

Returns void

Description

alloc8or RDR3 NativeDB

When p1 and p2 are true you can focus on the object (similar to when you focus a ped)

VORPCORE RDR3natives

focus on objects like focus on peds, p1 is to enable/disable p2 is to enable/disable focus when you have a weapon out

Usage

Lua
SetObjectTargettableFocus(object, toggle, weaponLock)

-- always works, by hash
Citizen.InvokeNative(0xA22712E8471AA08E, object, toggle, weaponLock)
JavaScript and C#
JavaScript
SetObjectTargettableFocus(object, toggle, weaponLock);

// by hash
Citizen.invokeNative('0xA22712E8471AA08E', object, toggle, weaponLock);
C#
Function.Call((Hash)0xA22712E8471AA08E, object, toggle, weaponLock);
  • 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.