SlashCo Wiki

Player:HasItem

 boolean Player:HasItem( string item, boolean isSecondary )

Description

Returns whether the player has the given item equipped in the primary (or secondary) slot.

Arguments

1string item

Name of the item to check for.

2boolean isSecondary

If true, checks the secondary slot instead of the primary one.

Returns

1boolean hasItem

true if the player has that item equipped.