# UNLOCK::UNLOCK_SET_VISIBLE

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

## Signature

```c
void UNLOCK_SET_VISIBLE(Hash unlockHash, BOOL toggle);
```

## Parameters

- `unlockHash` (`Hash`)
- `toggle` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
UnlockSetVisible(unlockHash, toggle)

-- always available, by hash
Citizen.InvokeNative(0x46B901A8ECDB5A61, unlockHash, toggle)
```

### JavaScript

```js
UnlockSetVisible(unlockHash, toggle);

// by hash
Citizen.invokeNative('0x46B901A8ECDB5A61', unlockHash, toggle);
```

### C#

```csharp
Function.Call((Hash)0x46B901A8ECDB5A61, unlockHash, toggle);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.

*Sources: alloc8or RDR3 NativeDB.*
