RedM Natives

SET_TEXT_FONT_FOR_CURRENT_COMMAND

Sets the text font for the current text drawing command.

Hash0xADA9255D
Runtime nameSetTextFontForCurrentCommand
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_TEXT_FONT_FOR_CURRENT_COMMAND(int fontId);

Parameters

NameTypeDescription
fontIdint

The index of the font.

Returns void

Description

Cfx.re native reference

Sets the text font for the current text drawing command.

Usage

Lua
SetTextFontForCurrentCommand(fontId)

-- always works, by hash
Citizen.InvokeNative(0xada9255d, fontId)
JavaScript and C#
JavaScript
SetTextFontForCurrentCommand(fontId);

// by hash
Citizen.invokeNative('0xada9255d', fontId);
C#
Function.Call((Hash)0xada9255d, fontId);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.