# Red Valley Roleplay โ€” Server Knowledge Base ## ๐Ÿ”‘ Quick Reference | Key | Value | |-----|-------| | **Server Name** | Red Valley Roleplay | | **Framework** | QBCore | | **Database** | MySQL (`red-valley`) via `oxmysql` | | **Character System** | 17mov_CharacterSystem v1.2.5 | | **Admin Panel** | Luxu Admin | | **Inventory** | qs-inventory (Quasar) | | **Phone** | qs-smartphone-pro (Quasar) | | **Garages** | qs-advancedgarages v5.0.20 (Quasar) | | **Housing** | qs-housing (Quasar) | | **Vehicle Keys** | qs-vehiclekeys (Quasar) | | **Police Job** | wasabi_police v1.10.8 (Wasabi) | | **Ambulance Job** | wasabi_ambulance v1.14.2 (Wasabi) | | **Police MDT** | codem-mdt (CodeM) | | **Mechanic Job** | t1ger_mechanic | | **HUD** | 17mov_Hud | | **Voice** | pma-voice | | **Target System** | qb-target | | **Server Port** | 30110 | | **Max Clients** | 8 | | **Game Build** | 3570 | | **Locale** | ro-RO | | **OneSync** | On (Infinity + Beyond) | | **phpMyAdmin** | http://localhost/phpmyadmin/ | --- ## ๐Ÿ“ Resource Structure ``` resources/ โ”œโ”€โ”€ [cfx-default]/ # CFX default resources โ”œโ”€โ”€ [framework]/ โ”‚ โ”œโ”€โ”€ [core]/ โ”‚ โ”‚ โ”œโ”€โ”€ qb-core/ # QBCore framework โ”‚ โ”‚ โ”œโ”€โ”€ qb-target/ # Target system โ”‚ โ”‚ โ”œโ”€โ”€ qs-inventory/ # Quasar inventory โ”‚ โ”‚ โ””โ”€โ”€ no-npc/ # Remove ambient NPCs โ”‚ โ”œโ”€โ”€ [base]/ โ”‚ โ”‚ โ”œโ”€โ”€ [auth]/ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ 17mov_CharacterSystem/ # Character select + creation โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ 17mov-plugin-char-creator/ # Spawn outfit in creator โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ connectqueue/ # Queue system โ”‚ โ”‚ โ”œโ”€โ”€ [ui]/ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ 17mov_Hud/ # HUD system โ”‚ โ”‚ โ””โ”€โ”€ [jobs]/ โ”‚ โ”‚ โ””โ”€โ”€ [legal]/ โ”‚ โ”‚ โ”œโ”€โ”€ [police]/ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ wasabi_police/ # Police job (provides qb-policejob) โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ codem-mdt/ # Police MDT โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ codem-dispatch/ # Dispatch alerts โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ codem-mdtProp/ # MDT prop โ”‚ โ”‚ โ”œโ”€โ”€ [ambulance]/ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ wasabi_ambulance/ # Ambulance job (provides qb-ambulancejob) โ”‚ โ”‚ โ”œโ”€โ”€ [mechanic]/ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ t1ger_mechanic/ # Mechanic job โ”‚ โ”‚ โ””โ”€โ”€ [tuner]/ โ”‚ โ”‚ โ””โ”€โ”€ t1ger_tuningsystem/ # Tuning system โ”‚ โ”œโ”€โ”€ [depends]/ โ”‚ โ”‚ โ”œโ”€โ”€ bob74_ipl/ # IPL loader v2.6.0 (interiors, DLC maps) โ”‚ โ”‚ โ”œโ”€โ”€ ox_lib/ # Overextended lib โ”‚ โ”‚ โ”œโ”€โ”€ PolyZone/ # Zone management โ”‚ โ”‚ โ”œโ”€โ”€ progressbar/ # Progress bars โ”‚ โ”‚ โ”œโ”€โ”€ screenshot-basic/ # Screenshots โ”‚ โ”‚ โ”œโ”€โ”€ VehicleDeformation/ # Vehicle damage โ”‚ โ”‚ โ”œโ”€โ”€ wasabi_bridge/ # Wasabi framework bridge โ”‚ โ”‚ โ””โ”€โ”€ xsound/ # Sound system โ”‚ โ””โ”€โ”€ [addons]/ โ”‚ โ”œโ”€โ”€ 0r_idcard/ # ID card system โ”‚ โ”œโ”€โ”€ bit-driverschool/ # Driving school โ”‚ โ”œโ”€โ”€ qs-advancedgarages/ # Garages (Quasar) โ”‚ โ”œโ”€โ”€ qs-housing/ # Housing (Quasar) โ”‚ โ”œโ”€โ”€ qs-shops/ # Shops (Quasar) โ”‚ โ””โ”€โ”€ qb-weathersync/ # Weather & time โ”œโ”€โ”€ [stream]/ โ”‚ โ”œโ”€โ”€ [admin-outfit]/AdminPack/ # Admin clothing streaming โ”‚ โ”œโ”€โ”€ [mlos]/ # Map interiors โ”‚ โ”‚ โ”œโ”€โ”€ soloty-southside-custom/ # Mechanic shop MLO (t1ger_mechanic blips/markere) โ”‚ โ”‚ โ”œโ”€โ”€ rfc_los_santos_customs/ # Los Santos Customs MLO (RFC Mapping) โ”‚ โ”‚ โ”œโ”€โ”€ cfx-fm-fleeca-banks-v2/ # Fleeca banks โ”‚ โ”‚ โ”œโ”€โ”€ cfx-fm-mrpd/ # Mission Row PD โ”‚ โ”‚ โ””โ”€โ”€ ... # + hospital, prison, gas stations, etc. โ”‚ โ””โ”€โ”€ [vehs]/ # Custom vehicles โ”œโ”€โ”€ [voice]/ โ”‚ โ””โ”€โ”€ pma-voice/ # Voice system โ””โ”€โ”€ luxu_admin/ # Admin panel (top-level) ``` ### Load Order (`resources.cfg`) ``` [cfx-default] โ†’ ox_lib โ†’ [core] โ†’ [depends] โ†’ [voice] โ†’ [auth] โ†’ [ui] โ†’ [jobs] โ†’ [addons] โ†’ kq_carheist โ†’ [mlos] โ†’ [vehs] โ†’ minimap โ†’ phone-props โ†’ [casino] โ†’ [stream] โ†’ luxu_admin โ†’ [weapons] ``` --- ## ๐ŸŽญ Character & Outfit System ### Character Creation Flow 1. Player connects โ†’ `connectqueue` (priority queue) 2. `17mov_CharacterSystem` โ†’ character select / create 3. **New character** โ†’ `creator` preset (DNA + Details only, 2 tabs) 4. `17mov-plugin-char-creator` โ†’ per-frame outfit loop on ped in creator (citizenid tracking) 5. After save โ†’ `ApplySpawnOutfit()` โ†’ gender-specific default clothes 6. `SaveCurrentSkin` โ†’ persist to DB (`playerskins`) ### Skin Menu Presets | Context | Preset | Tabs Available | |---------|--------|----------------| | Character Creator | `creator` | DNA + Details (2 tabs) | | Clothing Shop / Ambulance / Boss | `shop` | Details + Clothing + Accessories (3 tabs) | | Admin `/skin` command | `skinCommand` | All 4 tabs | ### Spawn Outfit Defaults - **Male:** torso2=539/2, pants=200/2, arms=96/0, shoes=77/8, t-shirt=15/0 - **Female:** torso2=583/1, pants=214/1, arms=18/0, shoes=81/10, t-shirt=15/0 - No mask for either gender ### Job Outfit System (pattern from mechanic) - **ON duty** โ†’ `SaveCurrentOutfit()` saves civilian clothes โ†’ `ApplyOutfit(jobOutfit)` applies uniform - **OFF duty** โ†’ `ApplyOutfit(savedCivilOutfit)` restores civilian clothes - Outfit data per job stored in `17mov_CharacterSystem/configs/Config.lua` โ†’ `Config.Outfits['JOBNAME']` - Structure: `[grade][outfitIndex]{outfitLabel, outfitData}` for male and female - Workflow defined in `.agents/workflows/job-outfit-setup.md` - **IMPORTANT**: Outfits NU apar la clothing shop-uri publice โ€” se afiศ™eazฤƒ DOAR prin `Config.ClothingRooms` - ClothingRooms verificฤƒ `job.name == v.requiredJob` (stores.lua:285) - Wasabi cloakroom pe QBCore e HIDDEN automat ("WILL NOT SHOW IN QBCORE") ### GTA Component IDs ``` Component 1 = mask Component 5 = bag Component 3 = arms Component 6 = shoes Component 4 = pants Component 7 = accessory (neck) Component 8 = t-shirt Component 9 = vest Component 11 = torso2 Prop 0 = hat, Prop 1 = glasses ``` --- ## ๐Ÿ—„๏ธ Key Cross-Resource Dependencies | Central File | Resources That Depend On It | |--------------|-----------------------------| | `qb-core/shared/jobs.lua` | wasabi_police, wasabi_ambulance, codem-mdt, codem-dispatch, luxu_admin, t1ger_mechanic, qs-inventory | | `qb-core/shared/items.lua` | qs-inventory, qs-shops, wasabi_police (bobby_pin, tracking_bracelet, handcuffs) | | `qb-core/server/events.lua` | All QBCore resources | | `ox_lib/locales/ro.json` | All translated notifications | | `17mov_CharacterSystem/configs/Bridge.lua` | Bridge selections: clothing, apartments, housing | | `17mov_CharacterSystem/configs/Config.lua` | t1ger_mechanic (outfit system), wasabi_police (outfit system) | | `wasabi_bridge/` | wasabi_police, wasabi_ambulance | | `resources.cfg` | Ensure order โ€” ensure [jobs] loads all legal jobs | ### Bridge Configuration (`17mov_CharacterSystem/configs/Bridge.lua`) - `Config.Housing = "standalone"` (qs-housing not auto-detected) - `Config.Apartments = "standalone"` - Clothing bridge: `qb-clothing` --- ## ๐Ÿ”” Notification System - **Standard**: `17mov_Hud` native notifications ```lua exports['17mov_Hud']:ShowNotification(message, type) ``` - Previous systems migrated from: `qs-notify`, `codem-notification`, `jg-hud` --- ## ๐Ÿ›ก๏ธ Admin & Permissions ### Admin Identifiers | FiveM ID | Name | Permissions | |----------|------|-------------| | `fivem:44269` | Kotzu | group.admin | | `fivem:6428737` | cata | group.admin + qbcore.god | | `steam:11000013f508340` | rausse | group.admin + qbcore.god | | `fivem:16062886` | kotzu pc | group.admin + qbcore.god | ### Permission Hierarchy ``` qbcore.god โ†’ group.admin โ†’ qbcore.admin โ†’ qbcore.mod ``` ### Luxu Admin - API Key configured in server.cfg - Web panel with outfit system (Clone Yourself feature) - `set luxu_admin_api_key` in server.cfg --- ## ๐Ÿ“ฆ Database Notes - **DB Name**: `red-valley` - **Connection**: `server=127.0.0.1;database=red-valley;userid=root;` (via oxmysql) - **Character Delete** (`qb-core/server/player.lua`): Many default tables commented out (apartments, bank_accounts, crypto_transactions, phone_invoices, phone_messages, player_contacts, player_houses, player_mails) โ€” only `players`, `playerskins`, `player_outfits`, `player_vehicles` active - **โš ๏ธ PENDING**: `crypto_history` table has ~2,343 rows causing oversized queries โ€” needs periodic cleanup or LIMIT --- ## โณ Pending Tasks (from changelog) - [x] **wasabi_police install**: Copiat din _preLoad, jail='rcore', items adฤƒugate รฎn qs-inventory - [x] **wasabi_ambulance**: Deja pe server (v1.14.2) - [x] **wasabi_police config review**: Eliminat 'reporter' din policeJobs, confirmat cloakroom QBCore=17mov (2026-03-29) - [x] **wasabi_police outfit**: Config.Outfits['police'] EXISTA DEJA รฎn 17mov (grade 0-4, male+female, 5 variante) (2026-03-29) - [x] **Synapse Map update**: wasabi_police + wasabi_ambulance nodes + conexiuni (2026-03-29) - [x] **t1ger_tuningsystem debug**: Eliminat 6ร— console.log din NUI JS `web/assets/index-DkGtvbUP.js` (2026-03-29) - [ ] **Console Wrapper (start_console.ps1)**: start.bat rฤƒmรขne foreground (raw output), adaugฤƒ รฎn .bat o linie care lanseazฤƒ ศ™i start_console.ps1 รฎntr-un al doilea terminal (organizat). Abordare: 2 ferestre โ€” raw debug + clean display. Demo: `console_demo.ps1`. Template: `docs/console_display_template.md` - [ ] **Webhooks** `qs-smartphone-pro`: configure in `server/custom/webhooks/webhooks.lua` - [ ] **Webhooks** `qs-advancedgarages`: configure in `server/custom/misc/*.lua` - [ ] **oxmysql oversized query**: `crypto_history` cleanup (DELETE rows older than 7 days) - [ ] **Version updates**: `qs-inventory` 3.7.16โ†’3.7.17, `qs-vehiclekeys` 4.0.13โ†’4.0.29, `t1ger_mechanic` 3.6.7โ†’3.6.9 - [ ] **Admin outfit setup**: Configure Luxu panel Clone Yourself + test outfit stack - [ ] **Admin jacket blacklist**: Add in `Skin.BlacklistedInputValues` - [ ] **spawn_mask** item: Custom usable item (mask 134/2 male, 134/3 female) --- ## ๐Ÿ“‹ Quasar Resources Documentation Status | Resource | Status | |----------|--------| | qs-inventory | โœ… Documented (`docs/qs_inventory_reference.md`) | | qs-housing | โš ๏ธ Partial | | qs-advancedgarages | โŒ Not documented | | qs-shops | โŒ Not documented | | qs-smartphone-pro | โŒ Not documented | | qs-vehiclekeys | โŒ Not documented | --- ## ๐Ÿ”ง Useful Commands & Exports ### qs-inventory (Server) ```lua exports['qs-inventory']:AddItem(source, item, amount, slot, info) exports['qs-inventory']:RemoveItem(source, item, amount, slot) exports['qs-inventory']:GetInventory(source) exports['qs-inventory']:RegisterStash(id, slots, weight) ``` ### Admin Commands - `/getoutfit` โ€” Print clothing component IDs (from `t1ger_mechanic/getoutfit.lua`) - `/skin` โ€” Open full skin menu (all 4 tabs, `skinCommand` preset) ### ๐Ÿ–ฅ๏ธ Server Start (din IDE terminal) ```powershell # Pornire server simplu cmd /c "e:\FiveMserver\server\start.bat" ``` - **CWD**: `e:\FiveMserver\server` - **start.bat v2.0** = launcher compact (RED VALLEY header, `[OK]` checks, separator `=======`) - **Console Wrapper Demo**: `console_demo.ps1` โ€” ANSI Shadow banner, loading bar, categorized output - **Console Template**: `docs/console_display_template.md` โ€” full display spec + char mappings - **Next**: `start_console.ps1` โ€” real wrapper (pipes start.bat โ†’ filtered display) - **Stop**: Ctrl+C โ†’ apoi tastezi `quit` รฎn consolฤƒ - **Artifact**: `E:\FiveMserver\server\artifacts\FXServer.exe` - **IMPORTANT**: Nu porni serverul de mai multe ori โ€” verificฤƒ cu `Get-Process FXServer` รฎnainte ### ๐Ÿ”‡ Console Cleanup History | Resursฤƒ | Fix | Metodฤƒ | |---------|-----|--------| | t1ger_mechanic | DETECTED SYSTEMS/GARAGE/KEYS | Comentat print-uri (bridge/init.lua) | | t1ger_tuningsystem | 6ร— console.log NUI | Eliminat din web/assets | | t1ger_tuningsystem | has mechanic system | Comentat print (shared/config.lua:258) | | rcore_casino | [Casino] Framework/drunk | Print filter override (const.lua) | | pma-voice | Starting/finished init | Comentat print-uri (client/init/init.lua) | | qs-inventory | jobs_creator warning | Comentat Warning() (jaksam.lua:5) | | qs-vehiclekeys | Debug prints | `Config.Debug = false` (deja setat) | | bit-driverschool | 5ร— outdated warning | Comentat version.lua din fxmanifest | | 17mov_CharacterSystem | ASCII banner + changelog | Config: DisplayAsciiArt/Changelog/Files = false | | cfx-gabz-mapdata | Parse error | โš ๏ธ Nerezolvabil (compiled bytecode) | --- ## ๐Ÿ“‚ Key File Locations | Purpose | Path | |---------|------| | Server config | `server.cfg` | | Resource load order | `resources.cfg` | | QBCore jobs | `resources/[framework]/[core]/qb-core/shared/jobs.lua` | | QBCore items | `resources/[framework]/[core]/qb-core/shared/items.lua` | | Character system | `resources/[framework]/[base]/[auth]/17mov_CharacterSystem/` | | Skin presets | `17mov_CharacterSystem/configs/Skin.lua` | | Job outfits config | `17mov_CharacterSystem/configs/Config.lua` | | Bridge config | `17mov_CharacterSystem/configs/Bridge.lua` | | HUD config | `resources/[framework]/[base]/[ui]/17mov_Hud/Config.lua` | | Mechanic job | `resources/[framework]/[base]/[jobs]/[legal]/[mechanic]/t1ger_mechanic/` | | Police job | `resources/[framework]/[base]/[jobs]/[legal]/[police]/wasabi_police/` | | Ambulance job | `resources/[framework]/[base]/[jobs]/[legal]/[ambulance]/wasabi_ambulance/` | | Police MDT | `resources/[framework]/[base]/[jobs]/[legal]/[police]/codem-mdt/` | | Dispatch | `resources/[framework]/[base]/[jobs]/[legal]/[police]/codem-dispatch/` | | Changelog | `changelog.md` | | Cross-resource tracking | `cross_resource_modifications.md` | | DB SQL dump | `red-valley.sql` (430KB) | | Server start script | `start.bat` | | Pre-load assets | `_preLoad/` | | Cfx.re catalog | `docs/cfx_assets_catalog.md` (142 assets total) | --- ## ๐Ÿš— Cfx.re Assets Overview (142 total) Key vendors: Quasar Store, ak4y, Malizniakk (17mov), T1GER, Kuzkay, rcore, wasabirobby, ThaC (CodeM), Eichenholz (sky_), OnexScripts, Gabz, 0Resmondev Notable assets on server: - 17mov Character System, 17mov Hud, 17mov multiplayer jobs (12+) - T1GER Mechanic System, Tuning System, Car Lift, Prop Pack - Quasar: Inventory, Housing, Garages, Shops, Smartphone PRO, Vehicle Keys, Banking, Fuel, etc. - Wasabi: Police, Ambulance, Bridge, Evidence, Crutch - rcore: Casino, Prison, Doorlock, Tattoos, Clothes, Fuel, Stats, Shortcuts - Luxu Admin - Various MLO packs (Gabz PDM, MRPD, Vespucci LSPD, Fleeca Banks) --- ## ๐Ÿ“œ Changelog Summary (reverse chronological) | Date | Focus | |------|-------| | 2026-03-29 | wasabi_police install + config review, console cleanup (10 resurse), start.bat v2.0, bit-driverschool fix, 17mov banner off, bob74_ipl v2.6.0, Synapse Map | | 2026-03-28 | Driving School integration, ID Card notifications, Weather sync | | 2026-03-27 | Spawn Outfit System, Character Delete fix, Skin presets, Char Creator plugin | | 2026-03-04 | Mechanic Job Outfit System (auto-equip on duty) | | 2026-03-03 | Mechanic Garage & Keys, 6 Bug Fixes, 17mov update v1.2.4โ†’v1.2.5 | | 2026-03-02 | Server Architecture Research, Cfx.re Audit, Admin Outfit Research | | 2026-03-01 | HUD Migration (jg-hudโ†’17mov), Luxu Admin update, No-NPC, QBCore updates | | 2026-02-27 | Luxu Admin install, rv-mdt creation, BMW M3 F80, QBCore server events refactor | | 2026-02-19 | Remove mChat, resource updates | | 2026-02-17 | QS-Inventory core update | | 2026-02-02 | Remove codem-pausemenu, vehicle swaps, TLS | | 2026-01-19 | Helnius Xero24 Gas Station MLO | | 2026-01-18 | ConnectQueue, Wasabi Police, Bank MLO, Codem Radio, QS-Shops | | 2026-01-07 | Cache cleanup |