HUDClient

setScriptVariableHudColour

SET_SCRIPT_VARIABLE_HUD_COLOUR0xD68A5FF8A3A89874

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

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

Usage

JavaScript
setScriptVariableHudColour(r, g, b, a);
Lua
setScriptVariableHudColour(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

Reference

Namespace
HUD HUD
In the game
void SET_SCRIPT_VARIABLE_HUD_COLOUR(int r, int g, int b, int a)
Hash
0xD68A5FF8A3A89874

Open in the interactive natives reference