RedM Natives

UGC_GET_CACHED_DESCRIPTION

Hash0x40F7E66472DF3E5C
Runtime nameUgcGetCachedDescription
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x40F7E66472DF3E5C

Signature

const char* UGC_GET_CACHED_DESCRIPTION(Hash description, int length);

Parameters

NameTypeDescription
descriptionHash—
lengthint—

Returns const char*

Usage

Lua
local retval = UgcGetCachedDescription(description, length)

-- always works, by hash
local retval = Citizen.InvokeNative(0x40F7E66472DF3E5C, description, length, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = UgcGetCachedDescription(description, length);

// by hash
const retval = Citizen.invokeNative('0x40F7E66472DF3E5C', description, length, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x40F7E66472DF3E5C, description, length);
  • 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.