RedM Natives

LAUNCH_UIAPP_BY_HASH_WITH_ENTRY

Hash0xC1BCF31E975B3195
Runtime nameLaunchUiappByHashWithEntry
NamespaceUIAPPS
SideClient
NameOfficial
Docs
Since build1207

Signature

int LAUNCH_UIAPP_BY_HASH_WITH_ENTRY(Hash appNameHash, Hash entryHash);

Parameters

NameTypeDescription
appNameHashHash—
entryHashHash—

Returns int

Usage

Lua
local retval = LaunchUiappByHashWithEntry(appNameHash, entryHash)

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

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

Sources

alloc8or RDR3 NativeDB

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