The Lab
UIDEBUG native

_BG_SET_TEXT_SCALE

returns void2 paramsbuild 1355

Sets the horizontal and vertical scale used by subsequent debug text drawn with _BG_DISPLAY_TEXT.

Signature

C
void _BG_SET_TEXT_SCALE(float scaleX, float scaleY); // 0xA1253A3C870B6843 b1355

Parameters

#NameType
1scaleXfloat
2scaleYfloat

Facts

Facts about _BG_SET_TEXT_SCALE
Name
_BG_SET_TEXT_SCALE
Hash
0xA1253A3C870B6843
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(0xA1253A3C870B6843, -- _BG_SET_TEXT_SCALE
  0.0, -- float scaleX
  0.0 -- float scaleY
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xA1253A3C870B6843", // _BG_SET_TEXT_SCALE
  0.0, // float scaleX
  0.0 // float scaleY
);
C#
Function.Call((Hash)0xA1253A3C870B6843, // _BG_SET_TEXT_SCALE
  0.0f, // float scaleX
  0.0f // float scaleY
);
All UIDEBUG natives

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