RedM Natives

_CLOSE_UIAPP_BY_HASH

Closes Ui App by hash

Hash0x2FF10C9C3F92277E
Runtime nameCloseUiappByHash
NamespaceUIAPPS
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _CLOSE_UIAPP_BY_HASH(Hash appNameHash);

Parameters

NameTypeDescription
appNameHashHash—

Returns void

Description

VORPCORE RDR3natives

Closes Ui App by hash

Usage

Lua
CloseUiappByHash(appNameHash)

-- always works, by hash
Citizen.InvokeNative(0x2FF10C9C3F92277E, appNameHash)
JavaScript and C#
JavaScript
CloseUiappByHash(appNameHash);

// by hash
Citizen.invokeNative('0x2FF10C9C3F92277E', appNameHash);
C#
Function.Call((Hash)0x2FF10C9C3F92277E, 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`.
  • 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.

Examples

LUA · VORPCORE RDR3natives
if IsUiappActiveByHash(`abilities`) then
   CloseUiappByHash(`abilities`)
end

See also

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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