GET_NAMED_RENDERTARGET_RENDER_ID
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
int GET_NAMED_RENDERTARGET_RENDER_ID(const char* name); // 0xB6762A85EE29AA60 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | name | const char* |
Facts
| 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.
local result = Citizen.InvokeNative(0xB6762A85EE29AA60, -- GET_NAMED_RENDERTARGET_RENDER_ID
"text", -- const char* name
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xB6762A85EE29AA60", // GET_NAMED_RENDERTARGET_RENDER_ID
"text", // const char* name
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xB6762A85EE29AA60, // GET_NAMED_RENDERTARGET_RENDER_ID
"text" // const char* name
);Related HUD natives
- _UI_PROMPT_GET_GROUP_ID_FOR_SCENARIO_POINT
- _UI_PROMPT_GET_GROUP_ID_FOR_TARGET_ENTITY
- IS_NAMED_RENDERTARGET_LINKED
- IS_NAMED_RENDERTARGET_REGISTERED
- LINK_NAMED_RENDERTARGET
- REGISTER_NAMED_RENDERTARGET
- RELEASE_NAMED_RENDERTARGET
- SET_TEXT_RENDER_ID
- GET_CHARACTER_FROM_AUDIO_CONVERSATION_FILENAME
- GET_FILENAME_FOR_AUDIO_CONVERSATION
- GET_HUD_SCREEN_POSITION_FROM_WORLD_POSITION
- GET_LENGTH_OF_LITERAL_STRING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.