MoneyClientNot in this build

networkSpentAirFreight

_NETWORK_SPENT_AIR_FREIGHT0x8C7E8D6F96C9E948

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

SignatureJavaScript
networkSpentAirFreight(
  hangarCargoSourcingPrice: number,
  fromBank: boolean,
  fromBankAndWallet: boolean,
  cost: number,
  warehouseId: number,
  warehouseSlot: number
): void
SignatureLua
networkSpentAirFreight(
  hangarCargoSourcingPrice: integer,
  fromBank: boolean,
  fromBankAndWallet: boolean,
  cost: integer,
  warehouseId: integer,
  warehouseSlot: integer
)
⚠
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
networkSpentAirFreight(
  hangarCargoSourcingPrice, fromBank, fromBankAndWallet, cost, warehouseId, warehouseSlot
);
Lua
networkSpentAirFreight(
    hangarCargoSourcingPrice, fromBank, fromBankAndWallet, cost, warehouseId, warehouseSlot
)

Parameters

ParameterTypeJavaScriptLua
hangarCargoSourcingPriceintnumberinteger
fromBankBOOLbooleanboolean
fromBankAndWalletBOOLbooleanboolean
costintnumberinteger
warehouseIdintnumberinteger
warehouseSlotintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Money MONEY
In the game
void _NETWORK_SPENT_AIR_FREIGHT(int hangarCargoSourcingPrice, BOOL fromBank, BOOL fromBankAndWallet, int cost, int warehouseId, int warehouseSlot)
Hash
0x8C7E8D6F96C9E948
Introduced
Game build 2944 legacy numbering

Open in the interactive natives reference