# OBJECT::_SET_OBJECT_TARGETTABLE_2

- **Hash:** `0x581EDBE56E8D62C9`
- **Namespace:** OBJECT
- **Runtime name (Lua/JS):** `SetObjectTargettable_2`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/OBJECT/_SET_OBJECT_TARGETTABLE_2

## Signature

```c
void _SET_OBJECT_TARGETTABLE_2(Object object, BOOL targettable);
```

## Parameters

- `object` (`Object`)
- `targettable` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetObjectTargettable_2(object, targettable)

-- always available, by hash
Citizen.InvokeNative(0x581EDBE56E8D62C9, object, targettable)
```

### JavaScript

```js
SetObjectTargettable_2(object, targettable);

// by hash
Citizen.invokeNative('0x581EDBE56E8D62C9', object, targettable);
```

### C#

```csharp
Function.Call((Hash)0x581EDBE56E8D62C9, object, targettable);
```

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