MoneyClientBlocked

canPayAmountToBoss

CAN_PAY_AMOUNT_TO_BOSS0x9777734DAD16992F

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

SignatureJavaScript
canPayAmountToBoss(p0: number, p1: number, amount: number): [
  ok: boolean,
  p3: number
]
SignatureLua
canPayAmountToBoss(
  p0: integer,
  p1: integer,
  amount: integer
): boolean, integer
✕
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 CAN_PAY_AMOUNT_TO_BOSS(int p0, int p1, int amount, int* p3)
Hash
0x9777734DAD16992F
Introduced
Game build 573 legacy numbering
Formerly
_CAN_PAY_GOON

Open in the interactive natives reference