
## 🛒 **Welcome to the Future of RedM Trading: NTS Shops!**
Are you tired of the standard, plain list menus for your server's stores? Looking to provide your players with a modern, smooth, and immersive shopping experience? **NTS Shops** is the ultimate store system designed for premium RedM servers!
Built with performance, customization, and player experience in mind, NTS Shops seamlessly blends beautiful UI design with robust backend mechanics to handle all your commerce needs.
---
### 🌟 **Key Features**
#### 🔄 **Multi-Framework Auto-Detection**
No complicated setup! NTS Shops intelligently detects your server's framework. It offers **plug-and-play** compatibility with both **VORP Core** and **RSG Core**. Just drop it in and you're ready to go!
#### 🛒 **Modern Shopping Cart UI**
Say goodbye to buying items one by one. Our sleek, custom-designed NUI allows players to browse items visually, adjust quantities with simple `+` and `-` buttons, and add multiple items to a shopping cart before checking out gracefully.
#### 👁️ **Next-Gen Interaction (Ox Target Support)**
Fully supports **ox_target** for an immersive, third-eye interaction experience. Don't use ox_target? No problem. The script automatically falls back to the native RedM prompt system.
#### ⏰ **Dynamic Shop Hours & Blip States**
Make your world feel alive! You can configure specific opening and closing times (e.g., 08:00 AM to 10:00 PM) for each individual shop.
-
**Open Shops:** Standard blip colors and fully interactive NPCs.
-
**Closed Shops:** Blips dynamically turn red on the map, and the NPCs become un-interactable until the next business day.
#### 🎭 **Immersive NPC Animations**
Breathe life into your store owners! You can optionally assign RedM scenarios to your NPCs in the config. Have your Gunsmith clean his rifle or your General Store owner smoke a cigar while waiting for customers.
#### 🛡️ **Bulletproof Anti-Exploit & Refund System**
We take your server economy seriously.
- Prevent items from dropping on the ground if a player's inventory is full or exceeds the weight limit.
- If a transaction fails mid-purchase (e.g., buying 5 items but only having space for 3), the system will safely deliver the 3 items and **automatically refund** the money for the exact missing amount.
- Unique items (like weapons with serial numbers) are correctly distributed one by one to ensure metadata integrity.
#### 🌐 **Built-in Localization**
Easily translate the script! It comes pre-configured with multiple language files (`en`, `es`, `fr`, `de`, `tr`), making it accessible to communities worldwide.
---
### ⚙️ **Configuration Example**
Adding a new shop is incredibly easy. Customize coordinates, ped models, blips, business hours, and item stock effortlessly!
```lua
["valentine_general_store"] = {
name = "Valentine General Store",
coords = vector4(-324.27, 804.43, 117.88, 278.3),
model = "U_M_M_NbxGeneralStoreOwner_01",
scenario = "WORLD_HUMAN_SMOKE_CIGAR", -- Optional animations!
openHour = 6,
closeHour = 22,
items = {
{ item = "bread", label = "Bread", desc = "Freshly baked.", price = 1.00, currency = "money", type = "item_standard" },
}
}
```
---
### 📥 **Requirements & Dependencies**
-
**Framework:** VORP Core **OR** RSG Core
-
**Target (Optional but Recommended):** ox_target
-
**UI:** ox_lib (for notifications)
---
### 💻 **Support & Documentation**
We provide full support for all our customers. If you encounter any bugs, issues, or need help adjusting the script to your specific needs, feel free to open a ticket in our Discord!
*Elevate your RedM server today with NTS Shops!*