HUDClient

setSecondScriptVariableHudColour

SET_SECOND_SCRIPT_VARIABLE_HUD_COLOUR0x16A304E6CB2BFAB9

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

SignatureJavaScript
setSecondScriptVariableHudColour(
  r: number,
  g: number,
  b: number,
  a: number
): void
SignatureLua
setSecondScriptVariableHudColour(
  r: integer,
  g: integer,
  b: integer,
  a: integer
)

Usage

JavaScript
setSecondScriptVariableHudColour(r, g, b, a);
Lua
setSecondScriptVariableHudColour(r, g, b, a)

Parameters

ParameterTypeJavaScriptLua
rintnumberinteger
gintnumberinteger
bintnumberinteger
aintnumberinteger

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.

Sets the color of HUD_COLOUR_SCRIPT_VARIABLE_2

Reference

Namespace
HUD HUD
In the game
void SET_SECOND_SCRIPT_VARIABLE_HUD_COLOUR(int r, int g, int b, int a)
Hash
0x16A304E6CB2BFAB9
Formerly
_SET_SCRIPT_VARIABLE_2_HUD_COLOUR

Open in the interactive natives reference