# MISC::SET_BIT

- **Hash:** `0xF73FBE4845C43B5B`
- **Namespace:** MISC
- **Runtime name (Lua/JS):** `SetBit`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MISC/SET_BIT

## Signature

```c
void SET_BIT(int* address, int offset);
```

## Parameters

- `address` (`int*`)
- `offset` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
local address = SetBit(offset)

-- always available, by hash
local address = Citizen.InvokeNative(0xF73FBE4845C43B5B, Citizen.PointerValueInt(), offset)
```

### JavaScript

```js
const address = SetBit(offset);

// by hash
const address = Citizen.invokeNative('0xF73FBE4845C43B5B', Citizen.pointerValueInt(), offset);
```

### C#

```csharp
var address = new OutputArgument();
Function.Call((Hash)0xF73FBE4845C43B5B, address, offset);
// address.GetResult<int>()
```

- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.

*Sources: alloc8or RDR3 NativeDB.*
