HUDClient

endTextCommandThefeedPostStats

END_TEXT_COMMAND_THEFEED_POST_STATS0x2B7E9A4EAAA93C89

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

SignatureJavaScript
endTextCommandThefeedPostStats(
  statTitle: string,
  iconEnum: number,
  stepVal: boolean,
  barValue: number,
  isImportant: boolean,
  pictureTextureDict: string,
  pictureTextureName: string
): number
SignatureLua
endTextCommandThefeedPostStats(
  statTitle: string,
  iconEnum: integer,
  stepVal: boolean,
  barValue: integer,
  isImportant: boolean,
  pictureTextureDict: string,
  pictureTextureName: string
): integer

Usage

JavaScript
const result = endTextCommandThefeedPostStats(
  statTitle, iconEnum, stepVal, barValue, isImportant, pictureTextureDict, pictureTextureName
);
Lua
local result = endTextCommandThefeedPostStats(
    statTitle, iconEnum, stepVal, barValue, isImportant, pictureTextureDict, pictureTextureName
)

Parameters

ParameterTypeJavaScriptLua
statTitlestringstringstring
iconEnumintnumberinteger
stepValBOOLbooleanboolean
barValueintnumberinteger
isImportantBOOLbooleanboolean
pictureTextureDictstringstringstring
pictureTextureNamestringstringstring

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

List of picture names: https://pastebin.com/XdpJVbHz

Reference

Namespace
HUD HUD
In the game
int END_TEXT_COMMAND_THEFEED_POST_STATS(const char* statTitle, int iconEnum, BOOL stepVal, int barValue, BOOL isImportant, const char* pictureTextureDict, const char* pictureTextureName)
Hash
0x2B7E9A4EAAA93C89
Formerly
_SET_NOTIFICATION_MESSAGE_2

Open in the interactive natives reference