Table of Contents

Struct WeaponSlots

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the weapon slots of a player, containing data for each weapon slot.

public readonly struct WeaponSlots
Inherited Members

Constructors

WeaponSlots(WeaponSlotData[])

Initializes a new instance of the WeaponSlots struct.

public WeaponSlots(WeaponSlotData[] data)

Parameters

data WeaponSlotData[]

The array of weapon slot data.

Exceptions

ArgumentException

Thrown if the length of data is not equal to MAX_WEAPON_SLOTS.

Fields

Data

The array of weapon slot data, where each index corresponds to a specific weapon slot.

public readonly WeaponSlotData[] Data

Field Value

WeaponSlotData[]

MAX_WEAPON_SLOTS

The maximum number of weapon slots available.

public const int MAX_WEAPON_SLOTS = 13

Field Value

int