networkSpentGeneric
_NETWORK_SPENT_GENERIC0x2803B027479FB640The 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.
networkSpentGeneric(
price: number,
p1: boolean,
p2: boolean,
stat: Hash,
spent: Hash,
p5: string,
p6: string,
data: null
): voidnetworkSpentGeneric(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
price | int | number | integer |
p1 | BOOL | boolean | boolean |
p2 | BOOL | boolean | boolean |
stat | Hash | number | integer |
spent | Hash | number | integer |
p5 | string | string | string |
p6 | string | string | string |
data | Any* | null | nil |
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