The Lab
UIAPPS native

_GET_UIAPP_CURRENT_ACTIVITY_BY_HASH

returns Hash1 parambuild 1207

Based on its name and signature, here is our best reading:

Returns a hash that appears to identify the current activity or state of the UI app appNameHash.

Signature

C
Hash _GET_UIAPP_CURRENT_ACTIVITY_BY_HASH(Hash appNameHash); // 0x96FD694FE5BE55DC b1207

Parameters

#NameType
1appNameHashHash

Facts

Facts about _GET_UIAPP_CURRENT_ACTIVITY_BY_HASH
Name
_GET_UIAPP_CURRENT_ACTIVITY_BY_HASH
Hash
0x96FD694FE5BE55DC
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x96FD694FE5BE55DC, -- _GET_UIAPP_CURRENT_ACTIVITY_BY_HASH
  GetHashKey("name"), -- Hash appNameHash
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x96FD694FE5BE55DC", // _GET_UIAPP_CURRENT_ACTIVITY_BY_HASH
  GetHashKey("name"), // Hash appNameHash
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x96FD694FE5BE55DC, // _GET_UIAPP_CURRENT_ACTIVITY_BY_HASH
  (uint)API.GetHashKey("name") // Hash appNameHash
);
All UIAPPS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.