# OBJECT::_SET_OBJECT_TARGETTABLE_FOCUS

- **Hash:** `0xA22712E8471AA08E`
- **Namespace:** OBJECT
- **Runtime name (Lua/JS):** `SetObjectTargettableFocus`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/OBJECT/_SET_OBJECT_TARGETTABLE_FOCUS

## Signature

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

## Parameters

- `object` (`Object`)
- `toggle` (`BOOL`)
- `weaponLock` (`BOOL`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

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

*Source: 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

```lua
SetObjectTargettableFocus(object, toggle, weaponLock)

-- always available, by hash
Citizen.InvokeNative(0xA22712E8471AA08E, object, toggle, weaponLock)
```

### JavaScript

```js
SetObjectTargettableFocus(object, toggle, weaponLock);

// by hash
Citizen.invokeNative('0xA22712E8471AA08E', object, toggle, weaponLock);
```

### C#

```csharp
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.*
