MoneyClientBlocked

networkCanSpendMoney2

NETWORK_CAN_SPEND_MONEY20x7303E27CC6532080

The GTA V native NETWORK_CAN_SPEND_MONEY2 of the MONEY namespace, as LS:MP client scripts call it: the global function networkCanSpendMoney2, in JavaScript and in Lua.

SignatureJavaScript
networkCanSpendMoney2(
  p0: any,
  p1: boolean,
  p2: boolean,
  p3: boolean,
  p4: null,
  p5: any,
  p6: any
): boolean
SignatureLua
networkCanSpendMoney2(
  p0: any,
  p1: boolean,
  p2: boolean,
  p3: boolean,
  p4: nil,
  p5: any,
  p6: any
): boolean
✕
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
Money MONEY
In the game
BOOL NETWORK_CAN_SPEND_MONEY2(Any p0, BOOL p1, BOOL p2, BOOL p3, Any* p4, Any p5, Any p6)
Hash
0x7303E27CC6532080
Formerly
_NETWORK_CAN_SPEND_MONEY_2

Open in the interactive natives reference