Steal players guide
Quasar Advanced Inventory includes a simple system that allows you to open another player’s inventory — useful for actions like searching a suspect, checking a gang member, or inspecting a teammate. This feature can be used in third-party assets, such as police systems, gang scripts, or custom commands.
Code integration
Here is an example of how to trigger another player’s inventory using the event manually.
You must provide the server ID of the nearby player you want to search, along with an optional config indicating which inventory types can be accessed:
'hotbar': only the hotbar items will be visible.
'wallet': opens wallet-type items (e.g., ID, cards, cash).
'all': full access to the target’s inventory.
You can implement this inside any asset or create your own logic to determine the target player’s ID dynamically.
Non-stealable items
If you want certain items to never be stealable, go to your config.lua
and add them under:
These items cannot be taken from another player's inventory, but they can still be used or dropped manually. That means a player can still drop the item on the ground and give it away, which will not be blocked by the system.
Last updated