networkGetBattleyeErrorMessageLabel
_NETWORK_GET_BATTLEYE_ERROR_MESSAGE_LABEL0xCBA50F371E45B90DThe 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.
networkGetBattleyeErrorMessageLabel(errorCode: number): stringnetworkGetBattleyeErrorMessageLabel(errorCode: integer): stringThe 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
const text = networkGetBattleyeErrorMessageLabel(errorCode);local text = networkGetBattleyeErrorMessageLabel(errorCode)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
errorCode | int | number | integer |
Returns
string JavaScript string, Lua stringNotes
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