fix(qb-core): post-update recovery + centralizare notify 17mov_Hud
Restaurat jobs.lua din git (Quasar fork a suprascris joburile 17mov). Adăugat item map în items.lua (lipsea, rupt rv-maphold). Setat licences.driver = false în config.lua. Override QBCore.Functions.Notify + QBCore:Notify event → 17mov_Hud:ShowNotification (toate notificările merg automat prin 17mov_Hud).
This commit is contained in:
+45
-2
@@ -7,6 +7,45 @@ git tkn: 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
|
||||
|
||||
---
|
||||
|
||||
## 2026-04-03 — Stabilizare Post-Migrare Quasar Inventory + Notify Centralizat
|
||||
|
||||
### 🔧 Fix: qb-core Post-Update Recovery (Quasar fork a suprascris custom changes)
|
||||
- ✏️ `resources/[framework]/[core]/qb-core/shared/jobs.lua` — **RESTAURAT din git** — Quasar fork a suprascris toate joburile 17mov (deliverer, garbage, bus, builder, electrician, etc.) cu defaults
|
||||
- ✏️ `resources/[framework]/[core]/qb-core/shared/items.lua` — adăugat item `map` (lipsea complet, rupt rv-maphold StarterItems)
|
||||
- ✏️ `resources/[framework]/[core]/qb-core/config.lua` — `metadata.licences.driver = false` (Quasar pune `true` default, trebuie `false` pt bit-driverschool)
|
||||
- ✏️ `resources/[framework]/[core]/qb-core/server/player.lua` — playertables: comentat `apartments`, `phone_messages`, `player_contacts`, `player_mails` (nu au coloana `citizenid`)
|
||||
|
||||
### 🔔 Centralizare Notificări → 17mov_Hud
|
||||
- ✏️ `resources/[framework]/[core]/qb-core/client/functions.lua` — Override `QBCore.Functions.Notify()` → `exports['17mov_Hud']:ShowNotification()` (linia ~171)
|
||||
- ✏️ `resources/[framework]/[core]/qb-core/client/events.lua` — Override `QBCore:Notify` event → `exports['17mov_Hud']:ShowNotification()` (linia ~193)
|
||||
- **Efect:** TOATE resursele de pe server afișează notificări prin 17mov_Hud automat, fără modificări individuale
|
||||
|
||||
### 📋 Workflow & Rulebook Updates
|
||||
- ✏️ `.agents/workflows/rulebook.md` — Regula 5 rescrisă complet: workflow obligatoriu `/resource-update`, qb-core checklist cu 7 puncte
|
||||
- 🆕 `.agents/workflows/resource-update.md` — Workflow nou: git diff înainte/după, cross_resource_modifications.md check, post-update verificare
|
||||
- ✏️ `cross_resource_modifications.md` — Adăugat puncte 4 (jobs.lua), 5 (config.lua driver), 6 (functions.lua notify), 7 (events.lua notify)
|
||||
|
||||
### 📱 qs-smartphone-pro SQL Analysis
|
||||
- Analizat `_preLoad/[smartphone].pack/[smartphone]/[sql]/qb.sql` — confirmat tabelele phone NU au `citizenid`:
|
||||
- `phone_messages` → `phone` (VARCHAR)
|
||||
- `player_contacts` → `identifier` (VARCHAR)
|
||||
- `player_mails` → `taker` (VARCHAR)
|
||||
|
||||
**Fișiere modificate:**
|
||||
| Acțiune | Fișier |
|
||||
|---------|--------|
|
||||
| 🔄 RESTAURAT | `qb-core/shared/jobs.lua` — din git (toate joburile 17mov) |
|
||||
| ✏️ MOD | `qb-core/shared/items.lua` — adăugat `map` item |
|
||||
| ✏️ MOD | `qb-core/config.lua` — `licences.driver = false` |
|
||||
| ✏️ MOD | `qb-core/server/player.lua` — playertables cleanup |
|
||||
| ✏️ MOD | `qb-core/client/functions.lua` — notify override 17mov_Hud |
|
||||
| ✏️ MOD | `qb-core/client/events.lua` — notify event override 17mov_Hud |
|
||||
| 🆕 NOU | `.agents/workflows/resource-update.md` |
|
||||
| ✏️ MOD | `.agents/workflows/rulebook.md` — regula 5 extinsă |
|
||||
| ✏️ MOD | `cross_resource_modifications.md` — 7 puncte checklist qb-core |
|
||||
|
||||
---
|
||||
|
||||
## 2026-03-31 — Migrare Interacțiuni la qb-target + Skills Upgrade + Bus Icon + Animație Tabletă
|
||||
|
||||
### 🎬 Animație Tabletă la Job Center
|
||||
@@ -771,7 +810,11 @@ Toate resursele care foloseau DrawText3D `[E]` / Markers au fost trecute pe **qb
|
||||
- [x] **t1ger_tuningsystem debug**: Eliminat 6× console.log din NUI JS (2026-03-29)
|
||||
- [ ] **Webhooks** `qs-smartphone-pro`: configurare în `server/custom/webhooks/webhooks.lua`
|
||||
- [ ] **Webhooks** `qs-advancedgarages`: configurare în `server/custom/misc/*.lua`
|
||||
- [ ] **oxmysql oversized query**: `SELECT * FROM crypto_history` (2339 results) — trebuie paginare sau LIMIT
|
||||
- [ ] **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
|
||||
- [ ] **oxmysql oversized query**: `SELECT * FROM crypto_history` (4016 results) — trebuie paginare sau LIMIT
|
||||
- [ ] **Version updates**: `qs-vehiclekeys` 4.0.13→4.0.29, `t1ger_mechanic` 3.6.7→3.6.9
|
||||
- [ ] **Admin outfit setup**: Configurare Luxu panel Clone Yourself + testare outfit stack
|
||||
- [ ] **Admin jacket blacklist**: Adăugare în `Skin.BlacklistedInputValues`
|
||||
- [ ] **qs-smartphone-pro setup**: Import SQL-uri, configurare completă telefon, re-evaluare playertables după setup
|
||||
- [ ] **map.png**: Verificare imagine map în qs-inventory/html/images/ (userul a copiat manual)
|
||||
- [x] **qb-core post-update recovery**: jobs.lua restaurat, items.lua map adăugat, config.lua driver=false, notify centralizat (2026-04-03)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user