# MISC::GET_RANDOM_EVENT_FLAG

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

## Signature

```c
BOOL GET_RANDOM_EVENT_FLAG();
```

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = GetRandomEventFlag()

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

### JavaScript

```js
const retval = GetRandomEventFlag();

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

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x924D54E5698AE3E0);
```

## See also

- [MISC::SET_RANDOM_EVENT_FLAG](https://natives.borderlinerp.com/natives/MISC/SET_RANDOM_EVENT_FLAG.md) — If the parameter is true, sets the random event flag to true, if the parameter is false, the function does nothing at all.

*Sources: alloc8or RDR3 NativeDB.*
