# Command and Control

### Player Commands

These are the primary commands and controls available to players using Sergei's Warehouse.

### 🎮 Primary Controls

**Target System** - Opens the warehouse management UI\
This is the main interface for managing your warehouse, storage, and sharing settings.

**E Key** - Interact with warehouse elements\
Use this key to interact with the sales ped, warehouse entrance, or storage crates.

**Target Interaction** - Click on storage crates to access storage\
When using ox\_target or qb-target, click on storage crates to open their storage interface.

**💡 Tip:** The F6 key is the most important control - it opens the main warehouse interface where you can manage everything related to your warehouse.

### 🏪 Sales Ped Interactions

When interacting with the warehouse sales ped, you can perform the following actions:

**Purchase Warehouse** - Buy your first warehouse\
Available only if you don't already own a warehouse.

**View Warehouse Information** - See details about your warehouse\
Shows pricing, storage capacity, and other relevant information.

**Access Warehouse Management** - Open the full warehouse interface\
Same as pressing F6, but accessible from the sales ped location.

### 🏠 Warehouse Entrance Interactions

When at the warehouse entrance marker, you can:

**Enter Warehouse** - Access your warehouse interior\
Available if you own a warehouse or have shared access to one.

**Select Warehouse** - Choose which warehouse to enter\
If you have access to multiple warehouses (owned + shared), you can choose which one to enter.

**View Warehouse Options** - See available warehouse actions\
Shows options for entering, managing, or sharing warehouses.

### 📦 Storage Crate Interactions

When interacting with storage crates inside the warehouse:

**Open Storage** - Access the crate's storage interface\
Opens the inventory interface for that specific storage crate.

**View Storage Contents** - See what's stored in the crate\
Shows items, quantities, and storage capacity information.

**Manage Items** - Add, remove, or organize items\
Full inventory management capabilities within the storage interface.

**📌 Note:** Storage crate access is limited to purchased slots. You can only access crates for storage slots you've purchased.

### 🖥️ UI Navigation

The warehouse interface is organized into several tabs, each with specific functions:

#### Main Interface Tabs

**Buy Tab** - Purchase your first warehouse\
Shows pricing information and purchase options for new warehouse owners.

**Storage Tab** - Manage storage slots and view contents\
Purchase additional storage slots, view storage contents, and manage your warehouse.

**Sharing Tab** - Share warehouse with other players\
Find nearby players, share access, and manage shared users.

**Shared Access Tab** - View warehouses shared with you\
See all warehouses that other players have shared with you.

**About Tab** - Script information and help\
Contains information about the script, version, and helpful tips.

### 🤝 Sharing Controls

Within the sharing interface, you can use these controls:

**Find Nearby Players** - Automatically detect players within 50 meters\
System automatically scans for nearby players to share with.

**Select Player** - Choose a player to share with\
Click on a player from the nearby players list to select them.

**Share Warehouse** - Grant access to selected player\
Click this button to share your warehouse with the selected player.

**Edit Access** - Modify existing shared access\
Change permissions or settings for players who already have access.

**Revoke Access** - Remove player's access\
Remove a player's access to your warehouse.

### 📱 Interface Controls

General interface navigation and interaction controls:

**Close Interface** - Close the warehouse UI\
Click the X button or press ESC to close the interface.

**Tab Navigation** - Switch between different sections\
Click on tab buttons to switch between different warehouse management sections.

**Modal Dialogs** - Interact with popup dialogs\
Use dialog buttons to confirm actions, cancel operations, or input data.

**Form Input** - Enter data in forms\
Type in text fields, select from dropdowns, and use date/time pickers.

### 🔧 Admin Commands

Server administrators can use these commands for management:

**Debug Mode** - Enable detailed logging\
Set `Config.Debug = true` in config.lua for detailed console output.

**Resource Restart** - Restart the warehouse resource\
Use `restart sergeis-warehouse` in server console to restart the resource.

**Database Management** - Manage warehouse data\
Access database tables directly for advanced management and troubleshooting.

**⚠️ Admin Note:** Most warehouse management is handled through the in-game interface. Direct database access should only be used for troubleshooting or advanced management tasks.

### 💡 Control Tips

Best practices for using the warehouse controls effectively:

* **Target system:** Make sure you're close enough to storage crates for target interaction
* **Interface navigation:** Use the tab system to organize your warehouse management tasks
* **Sharing workflow:** Find players first, then select and share for efficient sharing management
* **Storage organization:** Use individual crate access to organize your storage effectively


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sergeis-scripts.gitbook.io/sergeis-scripts-docs/sergeis-warehouse/command-and-control.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
