RedM Natives

GET_NAMED_RENDERTARGET_RENDER_ID

Hash0xB6762A85EE29AA60
Runtime nameGetNamedRendertargetRenderId
NamespaceHUD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1A6478B61C6BDC3B

Signature

int GET_NAMED_RENDERTARGET_RENDER_ID(const char* name);

Parameters

NameTypeDescription
nameconst char*—

Returns int

Usage

Lua
local retval = GetNamedRendertargetRenderId(name)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB6762A85EE29AA60, name, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNamedRendertargetRenderId(name);

// by hash
const retval = Citizen.invokeNative('0xB6762A85EE29AA60', name, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xB6762A85EE29AA60, name);

Sources

alloc8or RDR3 NativeDB

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