IS_UIAPP_RUNNING_BY_HASH
Checks to see if the specified UI app is currently running by its hash.
Hash
0x4E511D093A86AD49Runtime name
IsUiappRunningByHashNamespaceUIAPPS
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL IS_UIAPP_RUNNING_BY_HASH(Hash appNameHash);Parameters
| Name | Type | Description |
|---|---|---|
appNameHash | Hash | — |
Returns BOOL
Description
Checks to see if the specified UI app is currently running by its hash.
Usage
local retval = IsUiappRunningByHash(appNameHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x4E511D093A86AD49, appNameHash, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsUiappRunningByHash(appNameHash);
// by hash
const retval = Citizen.invokeNative('0x4E511D093A86AD49', appNameHash, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x4E511D093A86AD49, appNameHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Examples
if IsUiappActiveByHash(`PAUSE_MENU`) then
CloseUiappByHashImmediate(`PAUSE_MENU`)
endSources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.