RedM Natives

IS_UIAPP_RUNNING_BY_HASH

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

Hash0x4E511D093A86AD49
Runtime nameIsUiappRunningByHash
NamespaceUIAPPS
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL IS_UIAPP_RUNNING_BY_HASH(Hash appNameHash);

Parameters

NameTypeDescription
appNameHashHash—

Returns BOOL

Description

VORPCORE RDR3natives

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

Usage

Lua
local retval = IsUiappRunningByHash(appNameHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4E511D093A86AD49, appNameHash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsUiappRunningByHash(appNameHash);

// by hash
const retval = Citizen.invokeNative('0x4E511D093A86AD49', appNameHash, Citizen.returnResultAnyway());
C#
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

LUA · VORPCORE RDR3natives
if IsUiappActiveByHash(`PAUSE_MENU`) then
   CloseUiappByHashImmediate(`PAUSE_MENU`)
end

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.