HUDClient

setColourOfNextTextComponent

SET_COLOUR_OF_NEXT_TEXT_COMPONENT0x39BBF623FC803EAC

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

SignatureJavaScript
setColourOfNextTextComponent(hudColor: number): void
SignatureLua
setColourOfNextTextComponent(hudColor: integer)

Usage

JavaScript
setColourOfNextTextComponent(hudColor);
Lua
setColourOfNextTextComponent(hudColor)

Parameters

ParameterTypeJavaScriptLua
hudColorintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_COLOUR_OF_NEXT_TEXT_COMPONENT(int hudColor)
Hash
0x39BBF623FC803EAC
Formerly
_SET_NOTIFICATION_COLOR_NEXT

Open in the interactive natives reference