MoneyClientNot in this build

networkSpentGeneric

_NETWORK_SPENT_GENERIC0x2803B027479FB640

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

SignatureJavaScript
networkSpentGeneric(
  price: number,
  p1: boolean,
  p2: boolean,
  stat: Hash,
  spent: Hash,
  p5: string,
  p6: string,
  data: null
): void
SignatureLua
networkSpentGeneric(
  price: integer,
  p1: boolean,
  p2: boolean,
  stat: Hash,
  spent: Hash,
  p5: string,
  p6: string,
  data: nil
)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
networkSpentGeneric(price, p1, p2, stat, spent, p5, p6, null);
Lua
networkSpentGeneric(price, p1, p2, stat, spent, p5, p6, nil)

Parameters

ParameterTypeJavaScriptLua
priceintnumberinteger
p1BOOLbooleanboolean
p2BOOLbooleanboolean
statHashnumberinteger
spentHashnumberinteger
p5stringstringstring
p6stringstringstring
dataAny*nullnil

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Money MONEY
In the game
void _NETWORK_SPENT_GENERIC(int price, BOOL p1, BOOL p2, Hash stat, Hash spent, const char* p5, const char* p6, Any* data)
Hash
0x2803B027479FB640
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference