# SCRIPT::_GET_GLOBAL_BLOCK_CAN_BE_ACCESSED

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

## Signature

```c
BOOL _GET_GLOBAL_BLOCK_CAN_BE_ACCESSED(int index);
```

## Parameters

- `index` (`int`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = GetGlobalBlockCanBeAccessed(index)

-- always available, by hash
local retval = Citizen.InvokeNative(0x42A7EB5C814C2DE0, index, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = GetGlobalBlockCanBeAccessed(index);

// by hash
const retval = Citizen.invokeNative('0x42A7EB5C814C2DE0', index, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x42A7EB5C814C2DE0, index);
```

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

## See also

- [SCRIPT::_SET_GLOBAL_BLOCK_CAN_BE_ACCESSED](https://natives.borderlinerp.com/natives/SCRIPT/_SET_GLOBAL_BLOCK_CAN_BE_ACCESSED.md)

*Sources: alloc8or RDR3 NativeDB.*
