setWarningMessageWithHeaderAndSubstringFlagsExtended
SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS_EXTENDED0x15803FEC3B9A872BThe GTA V native SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS_EXTENDED of the HUD namespace, as LS:MP client scripts call it: the global function setWarningMessageWithHeaderAndSubstringFlagsExtended, in JavaScript and in Lua.
setWarningMessageWithHeaderAndSubstringFlagsExtended(
labelTitle: string,
labelMessage: string,
p2: number,
p3: number,
labelMessage2: string,
p5: boolean,
p6: number,
p7: number,
p8: string,
p9: string,
background: boolean,
errorCode: number
): voidsetWarningMessageWithHeaderAndSubstringFlagsExtended(
labelTitle: string,
labelMessage: string,
p2: integer,
p3: integer,
labelMessage2: string,
p5: boolean,
p6: integer,
p7: integer,
p8: string,
p9: string,
background: boolean,
errorCode: integer
)Usage
setWarningMessageWithHeaderAndSubstringFlagsExtended(
labelTitle, labelMessage, p2, p3, labelMessage2, p5, p6, p7, p8, p9, background, errorCode
);setWarningMessageWithHeaderAndSubstringFlagsExtended(
labelTitle, labelMessage, p2, p3, labelMessage2, p5, p6, p7, p8, p9, background, errorCode
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
labelTitle | string | string | string |
labelMessage | string | string | string |
p2 | int | number | integer |
p3 | int | number | integer |
labelMessage2 | string | string | string |
p5 | BOOL | boolean | boolean |
p6 | int | number | integer |
p7 | int | number | integer |
p8 | string | string | string |
p9 | string | string | string |
background | 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.
labelTitle: Label of the alert's title.
labelMsg: Label of the alert's message.
p2: This is an enum, check the description for a list.
p3: This is an enum, check the description for a list.
labelMsg2: Label of another message line
p5: usually 0
p6: usually -1
p7: usually 0
p8: unknown label
p9: unknown label
background: Set to anything other than 0 or false (even any string) and it will draw a background. Setting it to 0 or false will draw no background.
errorCode: Error code, shown at the bottom left if set to value other than 0.
instructionalKey enum list:
Buttons = {
Empty = 0,
Select = 1, -- (RETURN)
Ok = 2, -- (RETURN)
Yes = 4, -- (RETURN)
Back = 8, -- (ESC)
Cancel = 16, -- (ESC)
No = 32, -- (ESC)
RetrySpace = 64, -- (SPACE)
Restart = 128, -- (SPACE)
Skip = 256, -- (SPACE)
Quit = 512, -- (ESC)
Adjust = 1024, -- (ARROWS)
SpaceKey = 2048, -- (SPACE)
Share = 4096, -- (SPACE)
SignIn = 8192, -- (SPACE)
Continue = 16384, -- (RETURN)
AdjustLeftRight = 32768, -- (SCROLL L/R)
AdjustUpDown = 65536, -- (SCROLL U/D)
Overwrite = 131072, -- (SPACE)
SocialClubSignup = 262144, -- (RETURN)
Confirm = 524288, -- (RETURN)
Queue = 1048576, -- (RETURN)
RetryReturn = 2097152, -- (RETURN)
BackEsc = 4194304, -- (ESC)
SocialClub = 8388608, -- (RETURN)
Spectate = 16777216, -- (SPACE)
OkEsc = 33554432, -- (ESC)
CancelTransfer = 67108864, -- (ESC)
LoadingSpinner = 134217728,
NoReturnToGTA = 268435456, -- (ESC)
CancelEsc = 536870912, -- (ESC)
}
Alt = {
Empty = 0,
No = 1, -- (SPACE)
Host = 2, -- (ESC)
SearchForJob = 4, -- (RETURN)
ReturnKey = 8, -- (TURN)
Freemode = 16, -- (ESC)
}Reference
- Namespace
- HUD HUD
- In the game
void SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS_EXTENDED(const char* labelTitle, const char* labelMessage, int p2, int p3, const char* labelMessage2, BOOL p5, int p6, int p7, const char* p8, const char* p9, BOOL background, int errorCode)- Hash
0x15803FEC3B9A872B- Introduced
- Game build 573 legacy numbering
- Formerly
_DRAW_FRONTEND_ALERT_SET_WARNING_MESSAGE_WITH_ALERT