Skip to content

Weapons Contract

Contract: IWeapons
Default provider: shiva-weapons

Manages owned (registered) weapons.

Methods

IWeapons:getWeapons(serverId)

Get all registered weapons for a player.


IWeapons:addWeapon(serverId, weaponHash, ammo?, data?)

Give a player a registered weapon.


IWeapons:removeWeapon(serverId, weaponHash)

Remove a registered weapon.


IWeapons:hasWeapon(serverId, weaponHash)

Check if a player has a registered weapon.

Returns: boolean

Released under the MIT License.