RedM Natives

REGISTER_FONT_FILE

Registers a specified .gfx file as GFx font library.

Hash0x1B3A363
Runtime nameRegisterFontFile
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void REGISTER_FONT_FILE(char* fileName);

Parameters

NameTypeDescription
fileNamechar*

The name of the .gfx file, without extension.

Returns void

Description

Cfx.re native reference

Registers a specified .gfx file as GFx font library. The .gfx file has to be registered with the streamer already.

Usage

Lua
RegisterFontFile(fileName)

-- always works, by hash
Citizen.InvokeNative(0x1b3a363, fileName)
JavaScript and C#
JavaScript
RegisterFontFile(fileName);

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

Sources

Cfx.re native reference

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