StatsClientBlocked

playstatsWeaponModeChange

PLAYSTATS_WEAPON_MODE_CHANGE0xE95C8A1875A02CA4

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

SignatureJavaScript
playstatsWeaponModeChange(
  weaponHash: Hash,
  componentHashTo: Hash,
  componentHashFrom: Hash
): void
SignatureLua
playstatsWeaponModeChange(
  weaponHash: Hash,
  componentHashTo: Hash,
  componentHashFrom: Hash
)
✕
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_WEAPON_MODE_CHANGE(Hash weaponHash, Hash componentHashTo, Hash componentHashFrom)
Hash
0xE95C8A1875A02CA4

Open in the interactive natives reference