MoneyClientNot in this build

networkEarnBonusObjective

_NETWORK_EARN_BONUS_OBJECTIVE0xDCEF983C24191997

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

SignatureJavaScript
networkEarnBonusObjective(amount: number, p1: any, p2: any): void
SignatureLua
networkEarnBonusObjective(amount: integer, p1: any, p2: any)
⚠
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
networkEarnBonusObjective(amount, p1, p2);
Lua
networkEarnBonusObjective(amount, p1, p2)

Parameters

ParameterTypeJavaScriptLua
amountintnumberinteger
p1Anyanyany
p2Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Money MONEY
In the game
void _NETWORK_EARN_BONUS_OBJECTIVE(int amount, Any p1, Any p2)
Hash
0xDCEF983C24191997
Introduced
Game build 2944 legacy numbering

Open in the interactive natives reference