UGC_GET_CACHED_DESCRIPTION
Hash
0x40F7E66472DF3E5CRuntime name
UgcGetCachedDescriptionNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x40F7E66472DF3E5CSignature
const char* UGC_GET_CACHED_DESCRIPTION(Hash description, int length);Parameters
| Name | Type | Description |
|---|---|---|
description | Hash | — |
length | int | — |
Returns const char*
Usage
local retval = UgcGetCachedDescription(description, length)
-- always works, by hash
local retval = Citizen.InvokeNative(0x40F7E66472DF3E5C, description, length, Citizen.ResultAsString())JavaScript and C#
const retval = UgcGetCachedDescription(description, length);
// by hash
const retval = Citizen.invokeNative('0x40F7E66472DF3E5C', description, length, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0x40F7E66472DF3E5C, description, length);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.