NetworkClientNot in this build

networkGetBattleyeErrorMessageLabel

_NETWORK_GET_BATTLEYE_ERROR_MESSAGE_LABEL0xCBA50F371E45B90D

The GTA V native _NETWORK_GET_BATTLEYE_ERROR_MESSAGE_LABEL of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetBattleyeErrorMessageLabel, in JavaScript and in Lua.

SignatureJavaScript
networkGetBattleyeErrorMessageLabel(errorCode: number): string
SignatureLua
networkGetBattleyeErrorMessageLabel(errorCode: integer): string
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const text = networkGetBattleyeErrorMessageLabel(errorCode);
Lua
local text = networkGetBattleyeErrorMessageLabel(errorCode)

Parameters

ParameterTypeJavaScriptLua
errorCodeintnumberinteger

Returns

string JavaScript string, Lua string

Notes

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

0x20211000 = HUD_BE_ERROR_FAILED_UNKNOWN
0x20212000 = HUD_BE_ERROR_FAILED_CLIENT_INIT
0x20213000 = HUD_BE_ERROR_FAILED_SERVER_INIT
0x20214000 = HUD_BE_ERROR_FAILED_AUTH_ATTEMPTS
0x20215000 = HUD_BE_ERROR_UNTRUSTED_HOST
0x20216000 = HUD_BE_ERROR_KICKED
0x20217000 = HUD_BE_ERROR_BANNED
0x50140000 = HUD_BE_BLOCK_BANNED

Note: an invalid error code returns a null pointer!

Reference

Namespace
Network NETWORK
In the game
const char* _NETWORK_GET_BATTLEYE_ERROR_MESSAGE_LABEL(int errorCode)
Hash
0xCBA50F371E45B90D
Introduced
Game build 3323 legacy numbering

Open in the interactive natives reference