Skip to content
M2O Scripting APIScripting reference
Data shapeServer APIGenerated

CarriedWeapon

Defined in: server/api.d.ts:2880

A weapon in a player’s inventory, as last reported by their client.

ammo: number

Defined in: server/api.d.ts:2889

Reserve ammunition, excluding the loaded clip (the value setWeaponAmmo takes as total).


clip: number

Defined in: server/api.d.ts:2894

Rounds loaded in the weapon.


weaponId: number

Defined in: server/api.d.ts:2884

weapons.tbl row identifier.