setSecondScriptVariableHudColour
SET_SECOND_SCRIPT_VARIABLE_HUD_COLOUR0x16A304E6CB2BFAB9The 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.
setSecondScriptVariableHudColour(
r: number,
g: number,
b: number,
a: number
): voidsetSecondScriptVariableHudColour(
r: integer,
g: integer,
b: integer,
a: integer
)Usage
JavaScript
setSecondScriptVariableHudColour(r, g, b, a);Lua
setSecondScriptVariableHudColour(r, g, b, a)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
r | int | number | integer |
g | int | number | integer |
b | int | number | integer |
a | 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.
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