Skip to content
On this page

Athena.player.weapons

Functions

clear

Usage

Athena.player.weapons.clear(player): Promise<boolean>

Clear all weapons from a player's inventory.

Returns true if weapons were found and removed.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity

Returns

Promise<boolean>

Defined in

server/player/weapons.ts:40


get

Usage

Athena.player.weapons.get(player): Object

Return all weapons the player currently has in their inventory, and toolbar.

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity

Returns

Object

NameType
inventoryplayer[]
toolbarplayer[]

Defined in

server/player/weapons.ts:12

Created by Stuyk | Est. 2020