# UIAPPS::IS_UIAPP_RUNNING_BY_HASH

- **Hash:** `0x4E511D093A86AD49`
- **Namespace:** UIAPPS
- **Runtime name (Lua/JS):** `IsUiappRunningByHash`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described with examples
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/UIAPPS/IS_UIAPP_RUNNING_BY_HASH

## Signature

```c
BOOL IS_UIAPP_RUNNING_BY_HASH(Hash appNameHash);
```

## Parameters

- `appNameHash` (`Hash`)

## Returns

`BOOL`

## Description

*Source: VORPCORE RDR3natives*

Checks to see if the specified UI app is currently running by its hash.

## Usage

### Lua

```lua
local retval = IsUiappRunningByHash(appNameHash)

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

### JavaScript

```js
const retval = IsUiappRunningByHash(appNameHash);

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

### C#

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

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

## Examples

*Source: VORPCORE RDR3natives*

```lua
if IsUiappActiveByHash(`PAUSE_MENU`) then
   CloseUiappByHashImmediate(`PAUSE_MENU`)
end
```

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
