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



Introduced in

Version:1.19

Description

Description:Deletes the specified weapon from the cargo of a vehicle. Does nothing, if the weapon is not in the cargo of the vehicle.

Syntax

Syntax:object removeWeaponCargo weaponclass
Parameters:
  • object: Object - Affected vehicle.
  • weaponclass : String - Weapon class (see Weapon Configuration in the VBS3 Developer Reference).
Return Value:Nothing

Alternative Syntax

Syntax:owner removeWeaponCargo weapon (V3.9+)
Parameters:
  • owner: Object - Owner of the weapon to remove.
  • weapon: Object - Object of the weapon to remove.
Return Value:Nothing

Examples

Examples:
crate removeWeaponCargo _rifle

Additional Information

See also: removeMagazineCargo, getWeaponCargo, getMagazineCargo, magazinesEx
Multiplayer:
Problems:

Notes