Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.19

Description

Description:Returns all magazines types and count from the cargo space of a vehicle or weapon holder (for example, ammunition box). The return value is in the same format as that returned by magazinesEx.

Syntax

Syntax:getMagazineCargo object
Parameters:
  • object: Object - Object to check.
Return Value:Array - [["classname", [bulletCount, bulletCount, bulletCount...]],["classname", [bulletCount,...],...] - For more information on return values, see magazinesEx.

Examples

Examples:
Returns magazine cargo of ammoBox:
_mags = getMagazineCargo ammoBox;
// _mags: [["vbs2_mag_30rnd_556x45_Ball_m4",[30,30,30,30,30,30,30,30]],["vbs2_mag_40mm_HE_m203",[5,5,5,5]]]

Additional Information

See also: addMagazineCargo, getWeaponCargo, magazines, magazinesEx
Multiplayer: 
Problems: 

Notes