RedM Natives

LAUNCH_UIAPP_BY_HASH

Lauches the specified UI app by its hash.

Hash0xC8FC7F4E4CF4F581
Runtime nameLaunchUiappByHash
NamespaceUIAPPS
SideClient
NameOfficial
Docs
Since build1207

Signature

int LAUNCH_UIAPP_BY_HASH(Hash appNameHash);

Parameters

NameTypeDescription
appNameHashHash—

Returns int

Description

VORPCORE RDR3natives

Lauches the specified UI app by its hash.

Usage

Lua
local retval = LaunchUiappByHash(appNameHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC8FC7F4E4CF4F581, appNameHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = LaunchUiappByHash(appNameHash);

// by hash
const retval = Citizen.invokeNative('0xC8FC7F4E4CF4F581', appNameHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xC8FC7F4E4CF4F581, 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`.

See also

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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