setWarningMessageWithHeaderAndSubstringFlags
SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS0x701919482C74B5ABThe GTA V native SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS of the HUD namespace, as LS:MP client scripts call it: the global function setWarningMessageWithHeaderAndSubstringFlags, in JavaScript and in Lua.
setWarningMessageWithHeaderAndSubstringFlags(
entryHeader: string,
entryLine1: string,
instructionalKey: number,
entryLine2: string,
p4: boolean,
p5: any,
additionalIntInfo: any,
additionalTextInfoLine1: string,
additionalTextInfoLine2: string,
showBackground: boolean,
errorCode: number
): voidsetWarningMessageWithHeaderAndSubstringFlags(
entryHeader: string,
entryLine1: string,
instructionalKey: integer,
entryLine2: string,
p4: boolean,
p5: any,
additionalIntInfo: any,
additionalTextInfoLine1: string,
additionalTextInfoLine2: string,
showBackground: boolean,
errorCode: integer
)Usage
setWarningMessageWithHeaderAndSubstringFlags(
entryHeader, entryLine1, instructionalKey, entryLine2, p4, p5, additionalIntInfo,
additionalTextInfoLine1, additionalTextInfoLine2, showBackground, errorCode
);setWarningMessageWithHeaderAndSubstringFlags(
entryHeader, entryLine1, instructionalKey, entryLine2, p4, p5, additionalIntInfo,
additionalTextInfoLine1, additionalTextInfoLine2, showBackground, errorCode
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entryHeader | string | string | string |
entryLine1 | string | string | string |
instructionalKey | int | number | integer |
entryLine2 | string | string | string |
p4 | BOOL | boolean | boolean |
p5 | Any | any | any |
additionalIntInfo | Any | any | any |
additionalTextInfoLine1 | string | string | string |
additionalTextInfoLine2 | string | string | string |
showBackground | BOOL | boolean | boolean |
errorCode | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
You can use this native for custom input, without having to use any scaleform-related natives.
The native must be called on tick.
The entryHeader must be a valid label.
For Single lines use JL_INVITE_N as entryLine1, JL_INVITE_ND for multiple.
Notes:
- additionalIntInfo: replaces first occurrence of ~1~ in provided label with an integer
- additionalTextInfoLine1: replaces first occurrence of ~a~ in provided label, with your custom text
- additionalTextInfoLine2: replaces second occurrence of ~a~ in provided label, with your custom text
- showBackground: shows black background of the warning screen
- errorCode: shows an error code at the bottom left if nonzero
Example of usage:
setWarningMessageWithHeaderAndSubstringFlags("ALERT", "JL_INVITE_ND", 66, "", true, -1, -1, "Testing line 1", "Testing line 2", true, 0);Screenshot:
https://i.imgur.com/MsSIhPV.png
Reference
- Namespace
- HUD HUD
- In the game
void SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS(const char* entryHeader, const char* entryLine1, int instructionalKey, const char* entryLine2, BOOL p4, Any p5, Any additionalIntInfo, const char* additionalTextInfoLine1, const char* additionalTextInfoLine2, BOOL showBackground, int errorCode)- Hash
0x701919482C74B5AB- Formerly
_SET_WARNING_MESSAGE_3