_DISPLAY_TEXT
Draws text on screen at the normalized position (xPos, yPos) for the current frame.
Call it every frame, after setting text style natives such as _SET_TEXT_COLOR.
Signature
void _DISPLAY_TEXT(const char* text, float xPos, float yPos); // 0xD79334A4BB99BAD1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | text | const char* |
| 2 | xPos | float |
| 3 | yPos | float |
Facts
| Name | _DISPLAY_TEXT |
|---|---|
| Hash | 0xD79334A4BB99BAD1 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xD79334A4BB99BAD1, -- _DISPLAY_TEXT
"text", -- const char* text
0.0, -- float xPos
0.0 -- float yPos
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD79334A4BB99BAD1", // _DISPLAY_TEXT
"text", // const char* text
0.0, // float xPos
0.0 // float yPos
);Function.Call((Hash)0xD79334A4BB99BAD1, // _DISPLAY_TEXT
"text", // const char* text
0.0f, // float xPos
0.0f // float yPos
);Related HUD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.