_SET_OBJECT_TARGETTABLE_FOCUS
When p1 and p2 are true you can focus on the object (similar to when you focus a ped)
Hash
0xA22712E8471AA08ERuntime name
SetObjectTargettableFocusNamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_OBJECT_TARGETTABLE_FOCUS(Object object, BOOL toggle, BOOL weaponLock);Parameters
| Name | Type | Description |
|---|---|---|
object | Object | — |
toggle | BOOL | — |
weaponLock | BOOL | — |
Returns void
Description
When p1 and p2 are true you can focus on the object (similar to when you focus a ped)
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
SetObjectTargettableFocus(object, toggle, weaponLock)
-- always works, by hash
Citizen.InvokeNative(0xA22712E8471AA08E, object, toggle, weaponLock)JavaScript and C#
SetObjectTargettableFocus(object, toggle, weaponLock);
// by hash
Citizen.invokeNative('0xA22712E8471AA08E', object, toggle, weaponLock);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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.