RedM Natives

SEND_LOADING_SCREEN_MESSAGE

Sends a message to the loadingScreen NUI frame, which contains the HTML page referenced in loadscreen resources.

Hash0x8BBE6CC0
Runtime nameSendLoadingScreenMessage
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

BOOL SEND_LOADING_SCREEN_MESSAGE(char* jsonString);

Parameters

NameTypeDescription
jsonStringchar*

The JSON-encoded message.

Returns BOOL — A success value.

Description

Cfx.re native reference

Sends a message to the loadingScreen NUI frame, which contains the HTML page referenced in loadscreen resources.

Usage

Lua
local retval = SendLoadingScreenMessage(jsonString)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8bbe6cc0, jsonString, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = SendLoadingScreenMessage(jsonString);

// by hash
const retval = Citizen.invokeNative('0x8bbe6cc0', jsonString, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x8bbe6cc0, jsonString);

Sources

Cfx.re native reference

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