Skip to main content
Advanced inventory features including storage stashes, shops, player search/rob mechanics, dropzones, polygon inventories, and secondary inventory management.

Overview

These features extend the base inventory system for specific use cases like storage, shops, and entity inventories (vehicles, containers, etc.).

Stash Storage

Persistent storage locations

Shop System

Purchasable shop inventories

Search & Rob

Access other player inventories

Dropzones

Ground drop management
Server-Side Only: All inventory operations must be performed server-side for security.

Stash System

Stashes are persistent storage locations like property storage, gang stashes, or hidden caches.

Stash.Open

Open a stash inventory for a player. Syntax:
Parameters: Example:
Stash Identifiers:

Shop System

Shop inventories allow players to purchase items with configurable prices and stock.

Shop.Open

Open a shop inventory for a player. Syntax:
Parameters: Example:
Shop Configuration (in server/data/shops.lua):

Player Search & Rob

Allow players to search or rob other players’ inventories.

Search.Character

Police search of player inventory (non-intrusive). Syntax:
Parameters: Example:

Rob

Rob a player’s inventory (can take items). Syntax:
Parameters: Example:

Dropzones

Dropzones manage ground drops for delivery systems, drug runs, and drop-off points.

CreateDropzone

Create a dropzone for an item drop. Syntax:
Parameters: Returns: Example:

CheckDropZones

Check if coordinates are near a dropzone. Syntax:
Parameters: Returns: Example:

RemoveDropzone

Remove a dropzone. Syntax:
Parameters: Example:

DropExists

Check if a dropzone exists. Syntax:
Parameters: Returns:

Polygon Inventories

Polygon-based interaction zones for inventories (using PolyZone).

Poly.Create

Create a polygon inventory zone. Syntax:
Parameters: Data Structure:
Example:

Complete Examples

Property Storage System

Drug Delivery System


Next Steps

Inventory - Exports

Main inventory operations

Inventory - Crafting

Crafting system

Item Definition

Item data structure

PolyZone

Polygon zone system
Stash Identifiers: Use descriptive, namespaced identifiers like property_123, gang_ballas, or job_police_evidence to avoid conflicts.
Search vs Rob: Use Search for police searches (read-only, legal). Use Rob for criminal activities (can take items). Always validate permissions server-side.