Search
The Search export allows you to search for specific items in the player's inventory on the client side. This is useful for checking if a player has a particular item or the quantity of that item in their inventory.
How to Use
To search for an item, use the following code:
Here’s an example of a command that checks if the player has a specific item, like "money":
This example checks for the "money" item in the player’s inventory and prints the result. If the item is found, it will return the quantity; otherwise, it will return nil
.
Last updated