HUDClient

setTextScale

SET_TEXT_SCALE0x07C837F9A01C34C9

The GTA V native SET_TEXT_SCALE of the HUD namespace, as LS:MP client scripts call it: the global function setTextScale, in JavaScript and in Lua.

SignatureJavaScript
setTextScale(scale: number, size: number): void
SignatureLua
setTextScale(scale: number, size: number)

Usage

JavaScript
setTextScale(scale, size);
Lua
setTextScale(scale, size)

Parameters

ParameterTypeJavaScriptLua
scalefloatnumbernumber
sizefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Size range : 0F to 1.0F
p0 is unknown and doesn't seem to have an effect, yet in the game scripts it changes to 1.0F sometimes.

Reference

Namespace
HUD HUD
In the game
void SET_TEXT_SCALE(float scale, float size)
Hash
0x07C837F9A01C34C9

Open in the interactive natives reference