networkEarnGeneric
_NETWORK_EARN_GENERIC0xBF7B5BB7ED890380The 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.
networkEarnGeneric(
amount: number,
earn: Hash,
p2: string,
p3: string,
data: null
): voidnetworkEarnGeneric(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
amount | int | number | integer |
earn | Hash | number | integer |
p2 | string | string | string |
p3 | string | string | string |
data | Any* | null | nil |
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