RedM Natives

_UGC_QUERY_GET_CREATOR_HANDLE

Hash0xADB56322EEDFBDC9
Runtime nameUgcQueryGetCreatorHandle
NamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Any _UGC_QUERY_GET_CREATOR_HANDLE(Any p0, int index, Any* gamerHandle);

Parameters

NameTypeDescription
p0Any—
indexint—
gamerHandleAny*—

Returns Any

Usage

Lua
local retval, gamerHandle = UgcQueryGetCreatorHandle(p0, index, gamerHandle)

-- always works, by hash
local retval, gamerHandle = Citizen.InvokeNative(0xADB56322EEDFBDC9, p0, index, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, gamerHandle] = UgcQueryGetCreatorHandle(p0, index, gamerHandle);

// by hash
const [retval, gamerHandle] = Citizen.invokeNative('0xADB56322EEDFBDC9', p0, index, Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var gamerHandle = new OutputArgument();
int retval = Function.Call<int>((Hash)0xADB56322EEDFBDC9, p0, index, gamerHandle);
// gamerHandle.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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