StatsClientBlocked

playstatsChangeMcRole

PLAYSTATS_CHANGE_MC_ROLE0x0B565B0AAE56A0E8

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

SignatureJavaScript
playstatsChangeMcRole(
  p0: any,
  p1: any,
  p2: any,
  p3: any,
  role: number,
  p5: number,
  p6: any
): void
SignatureLua
playstatsChangeMcRole(
  p0: any,
  p1: any,
  p2: any,
  p3: any,
  role: integer,
  p5: integer,
  p6: any
)
✕
Blocked for scripts: Rockstar accounts and commerce

Resources do not touch Rockstar accounts, Social Club data, GTA$ or the game's online shops. Keep your own economy and profiles on your server, with storage.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Stats STATS
In the game
void PLAYSTATS_CHANGE_MC_ROLE(Any p0, Any p1, Any p2, Any p3, int role, int p5, Any p6)
Hash
0x0B565B0AAE56A0E8
Introduced
Game build 877 legacy numbering
Formerly
_PLAYSTATS_CHANGE_MC_ROLE

Open in the interactive natives reference