HUDClient

thefeedSetBackgroundColorForNextPost

THEFEED_SET_BACKGROUND_COLOR_FOR_NEXT_POST0x92F0DA1E27DB96DC

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

SignatureJavaScript
thefeedSetBackgroundColorForNextPost(hudColorIndex: number): void
SignatureLua
thefeedSetBackgroundColorForNextPost(hudColorIndex: integer)

Usage

JavaScript
thefeedSetBackgroundColorForNextPost(hudColorIndex);
Lua
thefeedSetBackgroundColorForNextPost(hudColorIndex)

Parameters

ParameterTypeJavaScriptLua
hudColorIndexintnumberinteger

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.

From the decompiled scripts:

thefeedSetBackgroundColorForNextPost(6);
thefeedSetBackgroundColorForNextPost(184);
thefeedSetBackgroundColorForNextPost(190);

sets background color for the next notification
6 = red
184 = green
190 = yellow

Here is a list of some colors that can be used: https://i.gyazo.com/68bd384455fceb0a85a8729e48216e15.gif

Reference

Namespace
HUD HUD
In the game
void THEFEED_SET_BACKGROUND_COLOR_FOR_NEXT_POST(int hudColorIndex)
Hash
0x92F0DA1E27DB96DC
Formerly
_SET_NOTIFICATION_BACKGROUND_COLOR _THEFEED_NEXT_POST_BACKGROUND_COLOR _THEFEED_SET_NEXT_POST_BACKGROUND_COLOR

Open in the interactive natives reference