The Lab
HUD native

_DISPLAY_TEXT

returns void3 paramsbuild 1207

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

C
void _DISPLAY_TEXT(const char* text, float xPos, float yPos); // 0xD79334A4BB99BAD1 b1207

Parameters

#NameType
1textconst char*
2xPosfloat
3yPosfloat

Facts

Facts about _DISPLAY_TEXT
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.

Lua
Citizen.InvokeNative(0xD79334A4BB99BAD1, -- _DISPLAY_TEXT
  "text", -- const char* text
  0.0, -- float xPos
  0.0 -- float yPos
)
JavaScript
// 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
);
C#
Function.Call((Hash)0xD79334A4BB99BAD1, // _DISPLAY_TEXT
  "text", // const char* text
  0.0f, // float xPos
  0.0f // float yPos
);
All HUD natives

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