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 ​
| Name | Type | Description | 
|---|---|---|
| player | Player | An alt:V Player Entity | 
Returns ​
Promise<boolean>
Defined in ​
get ​
Usage
Athena.player.weapons.get(player): Object
Return all weapons the player currently has in their inventory, and toolbar.
Parameters ​
| Name | Type | Description | 
|---|---|---|
| player | Player | An alt:V Player Entity | 
Returns ​
Object
| Name | Type | 
|---|---|
| inventory | player[] | 
| toolbar | player[] | 
 V5 Docs
V5 Docs