StatsClientNot in this build

playstatsNamedUserContent

_PLAYSTATS_NAMED_USER_CONTENT0xAA434D7D0A89A95C

The GTA V native _PLAYSTATS_NAMED_USER_CONTENT of the STATS namespace, as LS:MP client scripts call it: the global function playstatsNamedUserContent, in JavaScript and in Lua.

SignatureJavaScript
playstatsNamedUserContent(
  isBoss: boolean,
  bossType: number,
  bossId1: number,
  bossId2: number,
  textType: number,
  textString: string,
  textSource: number
): void
SignatureLua
playstatsNamedUserContent(
  isBoss: boolean,
  bossType: integer,
  bossId1: integer,
  bossId2: integer,
  textType: integer,
  textString: string,
  textSource: integer
)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
playstatsNamedUserContent(isBoss, bossType, bossId1, bossId2, textType, textString, textSource);
Lua
playstatsNamedUserContent(isBoss, bossType, bossId1, bossId2, textType, textString, textSource)

Parameters

ParameterTypeJavaScriptLua
isBossBOOLbooleanboolean
bossTypeintnumberinteger
bossId1intnumberinteger
bossId2intnumberinteger
textTypeintnumberinteger
textStringstringstringstring
textSourceintnumberinteger

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.

Known text types: NAME_YACHT, NAME_ORG_OFFICE

Reference

Namespace
Stats STATS
In the game
void _PLAYSTATS_NAMED_USER_CONTENT(BOOL isBoss, int bossType, int bossId1, int bossId2, int textType, const char* textString, int textSource)
Hash
0xAA434D7D0A89A95C
Introduced
Game build 3258 legacy numbering

Open in the interactive natives reference