Admin Panel
Complete shop management system accessible via in-game commands. Create, edit, and delete shops with all settings directly from the admin UI.
Commands
| Command | Default | Description |
|---|---|---|
| Create Shop | /createshop | Opens the shop creation wizard |
| Admin Panel | /shopadmin | Opens the full admin panel |
Shop Creation Wizard
The /createshop command opens a step-by-step creation UI:
- Shop Name & Description: Set the display name and description
- Theme Selection: Choose from 5 presets or set a custom color
- Blip Settings: Toggle map blip with sprite ID and color
- Job Requirement: Optionally restrict shop access to a specific job and grade
- Shop Ped: Toggle NPC with model, scenario, and 3D ped placement
- Interaction Distance: Set the distance for E key interaction
- Integration Location: Pick the shop's initial location with the 3D coordinate picker
Admin Panel Tabs
Dashboard
- Edit shop name, description, and basic settings
- Configure blip settings (enable, sprite, color)
- Set job requirement (job name and minimum grade)
- Adjust interaction distance
- Webhook settings (URL and per-event toggles)
Categories
- Create, edit, and delete shop-specific categories
- Each category has a name and optional image URL
- Products are linked to categories for filtering
Products
- Full CRUD for shop products with search and category filter
- Each product supports: name, item code, price, category, image URL, description
- Stock management toggle with stock amount per item
- Per-item job and grade requirements
- Import from Inventory: Browse all server items and import selected ones
- Bulk Import: Paste JSON to import multiple products at once
Locations
- Manage multiple physical locations per shop
- Each location has independent: name, coordinates, blip, ped, enabled toggle, interaction distance
- Map View: GTA V map visualization using Leaflet with markers
- 3D Coordinate Picker: In-game raycast-based location selection
- Bulk Import: JSON import with append or replace modes
Theme
- Visual theme editor with 5 presets and custom color picker
- Live preview of changes before saving
Admin Permissions
| Method | Config Key | Description |
|---|---|---|
group | Config.Admin.AdminGroups | ESX group names (default) |
job | Config.Admin.AdminJobs | Job names |
ace | Config.Admin.AcePermission | ACE permission string |
license | Config.Admin.AdminLicenses | Specific player license identifiers |
Configuration
| Option | Default | Description |
|---|---|---|
Config.Commands.CreateShop | "createshop" | Command to open shop creation wizard |
Config.Commands.AdminPanel | "shopadmin" | Command to open admin panel |
Config.Admin.PermissionMethod | "group" | Admin check method |
Config.Admin.AdminGroups | {"admin", "superadmin"} | Groups for group-based admin |
Config.Admin.AdminJobs | {"admin", "superadmin"} | Jobs for job-based admin |
Config.Admin.AcePermission | "code9.market.admin" | ACE permission string |
