The Lab
UIDEBUG native

_BG_DISPLAY_TEXT

returns void3 paramsbuild 1355

Draws a debug text string at the screen position x, y using the current debug text color and scale.

Signature

C
void _BG_DISPLAY_TEXT(const char* text, float x, float y); // 0x16794E044C9EFB58 b1355

Parameters

#NameType
1textconst char*
2xfloat
3yfloat

Facts

Facts about _BG_DISPLAY_TEXT
Name
_BG_DISPLAY_TEXT
Hash
0x16794E044C9EFB58
Namespace
Returns
void
Game build
1355

Examples

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

Lua
Citizen.InvokeNative(0x16794E044C9EFB58, -- _BG_DISPLAY_TEXT
  "text", -- const char* text
  0.0, -- float x
  0.0 -- float y
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x16794E044C9EFB58", // _BG_DISPLAY_TEXT
  "text", // const char* text
  0.0, // float x
  0.0 // float y
);
C#
Function.Call((Hash)0x16794E044C9EFB58, // _BG_DISPLAY_TEXT
  "text", // const char* text
  0.0f, // float x
  0.0f // float y
);
All UIDEBUG natives

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