Skip to end of metadata
Go to start of metadata

Destroy

Destroys the inventory.

Syntax
Inventory.Destroy()

Clear

Clears the inventory.

Syntax
Inventory.Clear()

Dump

Dumps the inventory.

Syntax
Inventory.Dump()

GetItemByClass

Gets item by class name.

Syntax
Inventory.GetItemByClass( className )
ParameterDescription
classNameClass name.

GetGrenadeWeaponByClass

Gets grenade weapon by class name.

Syntax
Inventory.GetGrenadeWeaponByClass( className )
ParameterDescription
classNameClass name.

HasAccessory

Checks if the inventory contains the specified accessory.

Syntax
Inventory.HasAccessory( accessoryName )
ParameterDescription
accessoryNameAccessory name.

GetCurrentItemId

Gets the identifier of the current item.

Syntax
Inventory.GetCurrentItemId()

GetCurrentItem

Gets the current item.

Syntax
Inventory.GetCurrentItem()

GetAmmoCount

Gets the amount of the specified ammunition name.

Syntax
Inventory.GetAmmoCount(ammoName)
ParameterDescription
ammoNameAmmunition name.

GetAmmoCapacity

Gets the capacity for the specified ammunition.

Syntax
Inventory.GetAmmoCapacity( ammoName )
ParameterDescription
ammoNameAmmunition name.

SetAmmoCount

Sets the amount of the specified ammunition.

Syntax
Inventory.SetAmmoCount( ammoName, count )
ParameterDescription
ammoNameAmmunition name.
countAmmunition amount.
  • No labels