MoneyClientNot in this build

networkEarnGeneric

_NETWORK_EARN_GENERIC0xBF7B5BB7ED890380

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

SignatureJavaScript
networkEarnGeneric(
  amount: number,
  earn: Hash,
  p2: string,
  p3: string,
  data: null
): void
SignatureLua
networkEarnGeneric(
  amount: integer,
  earn: Hash,
  p2: string,
  p3: 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
networkEarnGeneric(amount, earn, p2, p3, null);
Lua
networkEarnGeneric(amount, earn, p2, p3, nil)

Parameters

ParameterTypeJavaScriptLua
amountintnumberinteger
earnHashnumberinteger
p2stringstringstring
p3stringstringstring
dataAny*nullnil

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

_NETWORK_EARN_G*

Reference

Namespace
Money MONEY
In the game
void _NETWORK_EARN_GENERIC(int amount, Hash earn, const char* p2, const char* p3, Any* data)
Hash
0xBF7B5BB7ED890380
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference