MoneyClientBlocked

networkGetCanSpendFromWallet

NETWORK_GET_CAN_SPEND_FROM_WALLET0xED5AB8860415BABA

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

SignatureJavaScript
networkGetCanSpendFromWallet(amount: number, characterSlot: number): boolean
SignatureLua
networkGetCanSpendFromWallet(amount: integer, characterSlot: integer): 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_GET_CAN_SPEND_FROM_WALLET(int amount, int characterSlot)
Hash
0xED5AB8860415BABA
Formerly
_NETWORK_GET_VC_WALLET_BALANCE_IS_NOT_LESS_THAN

Open in the interactive natives reference