REGISTER_NAMED_RENDERTARGET
Registers a render target named name so it can be drawn onto. Returns true on success.
Link it with LINK_NAMED_RENDERTARGET and release it with RELEASE_NAMED_RENDERTARGET when done.
Signature
BOOL REGISTER_NAMED_RENDERTARGET(const char* name, BOOL p1); // 0x98AF2BB6F62BD588 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | name | const char* |
| 2 | p1 | BOOL |
Facts
| Name | REGISTER_NAMED_RENDERTARGET |
|---|---|
| Hash | 0x98AF2BB6F62BD588 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x98AF2BB6F62BD588, -- REGISTER_NAMED_RENDERTARGET
"text", -- const char* name
false -- BOOL p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x98AF2BB6F62BD588", // REGISTER_NAMED_RENDERTARGET
"text", // const char* name
false, // BOOL p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x98AF2BB6F62BD588, // REGISTER_NAMED_RENDERTARGET
"text", // const char* name
false // BOOL p1
);Related HUD natives
- RELEASE_NAMED_RENDERTARGET
- GET_NAMED_RENDERTARGET_RENDER_ID
- IS_NAMED_RENDERTARGET_LINKED
- IS_NAMED_RENDERTARGET_REGISTERED
- LINK_NAMED_RENDERTARGET
- _UI_PROMPT_REGISTER_BEGIN
- _UI_PROMPT_REGISTER_END
- _UI_PROMPT_SET_REGISTER_HORIZONTAL_ORIENTATION
- REMOVE_MP_GAMER_TAG
- _0x052D4AC0922AF91A
- _0x066725A9D52B3641
- _0x100157D6D7FE32CA
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.