Skip to content
M2O Scripting APIScripting reference
Data shapeServer APIGenerated

CarriedWeapon

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

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

ammo: number

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

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


clip: number

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

Rounds loaded in the weapon.


weaponId: number

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

weapons.tbl row identifier.