HUDClientBlocked

setWarningMessageWithHeader

SET_WARNING_MESSAGE_WITH_HEADER0xDC38CC1E35B6A5D7

The GTA V native SET_WARNING_MESSAGE_WITH_HEADER of the HUD namespace, as LS:MP client scripts call it: the global function setWarningMessageWithHeader, in JavaScript and in Lua.

SignatureJavaScript
setWarningMessageWithHeader(
  entryHeader: string,
  entryLine1: string,
  instructionalKey: number,
  entryLine2: string,
  p4: boolean,
  p5: any,
  showBackground: null,
  p7: null,
  p8: boolean,
  p9: any
): void
SignatureLua
setWarningMessageWithHeader(
  entryHeader: string,
  entryLine1: string,
  instructionalKey: integer,
  entryLine2: string,
  p4: boolean,
  p5: any,
  showBackground: nil,
  p7: nil,
  p8: boolean,
  p9: any
)
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
HUD HUD
In the game
void SET_WARNING_MESSAGE_WITH_HEADER(const char* entryHeader, const char* entryLine1, int instructionalKey, const char* entryLine2, BOOL p4, Any p5, Any* showBackground, Any* p7, BOOL p8, Any p9)
Hash
0xDC38CC1E35B6A5D7
Formerly
_SET_WARNING_MESSAGE_2

Open in the interactive natives reference