Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

PlayerGear

Defined in: shared.d.ts:1317

Per-slot gear controller returned by Player.gear.

apply(changes, callback?): number

Defined in: shared.d.ts:1332

Every slot in one round trip and one client tick. A value names what should end up in that slot; null clears it. Not a transaction — the ops that can apply do. Returns the request id.

Record<string, string | GearApplyEntry | null>

GearCallback

number


available(slot): GearItem[]

Defined in: shared.d.ts:1323

Owned gear that fits this slot, the worn one flagged.

string

GearItem[]


equip(itemId, options?, callback?): number

Defined in: shared.d.ts:1325

Client round trip; returns the request id.

string

GearEquipOptions

GearCallback

number


equipped(): Record<string, GearItem | null> | null

Defined in: shared.d.ts:1321

Worn item per slot, every slot present with an explicit null; null before the first report.

Record<string, GearItem | null> | null


revision(): number

Defined in: shared.d.ts:1334

Sequence of the last gear report adopted; compare against a result’s appliedRevision.

number


slots(): string[]

Defined in: shared.d.ts:1319

Canonical slot names in the game’s own order, empty before the client’s first report.

string[]


unequip(slot, callback?): number

Defined in: shared.d.ts:1327

Client round trip; returns the request id.

string

GearCallback

number