The Lab
HUD native

GET_NAMED_RENDERTARGET_RENDER_ID

returns int1 parambuild 1207

Returns the render id of the registered named render target name.

Pass the id to SET_TEXT_RENDER_ID before drawing onto the target.

Signature

C
int GET_NAMED_RENDERTARGET_RENDER_ID(const char* name); // 0xB6762A85EE29AA60 b1207

Parameters

#NameType
1nameconst char*

Facts

Facts about GET_NAMED_RENDERTARGET_RENDER_ID
Name
GET_NAMED_RENDERTARGET_RENDER_ID
Hash
0xB6762A85EE29AA60
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xB6762A85EE29AA60, -- GET_NAMED_RENDERTARGET_RENDER_ID
  "text", -- const char* name
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xB6762A85EE29AA60", // GET_NAMED_RENDERTARGET_RENDER_ID
  "text", // const char* name
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xB6762A85EE29AA60, // GET_NAMED_RENDERTARGET_RENDER_ID
  "text" // const char* name
);
All HUD natives

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