HUDClient

setTextFont

SET_TEXT_FONT0x66E0276CC5F6B9DA

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

SignatureJavaScript
setTextFont(fontType: number): void
SignatureLua
setTextFont(fontType: integer)

Usage

JavaScript
setTextFont(fontType);
Lua
setTextFont(fontType)

Parameters

ParameterTypeJavaScriptLua
fontTypeintnumberinteger

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.

fonts that mess up your text where made for number values/misc stuff

Reference

Namespace
HUD HUD
In the game
void SET_TEXT_FONT(int fontType)
Hash
0x66E0276CC5F6B9DA

Open in the interactive natives reference