24 Commits

Author SHA1 Message Date
Kakarot 74ac036d4a Refactor core structure and notification UI
Major refactor to centralize QBCore and replace the web UI stack:

- Move QBConfig into a unified QBCore.Config and initialize QBCore.PlayerData; add shared/functions.lua.
- Remove legacy client/main.lua and server/main.lua exports and update fxmanifest to include shared/functions and drop those main scripts.
- Update client event handling: adapt player data events to QBCore:Client:OnPlayerUpdated and trigger job/gang update events; remove deprecated exploitable handlers.
- Web UI rewrite: remove Vue/Quasar dependency and config module; implement a lightweight vanilla JS notification system (html/js/app.js) with updated html and css assets, plus drawtext tweaks.
- CSS overhaul for notification styling and animations; HTML head/meta/font cleanup.
- Server fixes: use QBCore.Shared.Locations in teleport command and strengthen numeric parsing/validation for coords.
- Add .gitattributes for consistent text/eol handling and small code cleanups (thread/comment removal).

These changes consolidate config/shared logic under QBCore, simplify the frontend dependencies, and fix a few parsing/event issues.
2026-05-19 18:13:35 -05:00
Kakarot fe654facee Styling update 2025-03-13 15:50:32 -05:00
Kakarot 5c60c94197 Allow defining icon
- Adds warning class
2024-02-17 06:13:47 -06:00
Kakarot 1a1640a56d Update notify
Changed styling and icons, updated cdn's
2023-05-28 18:37:55 -05:00
R0adRa93 29d159cab1 Revert "Fix drawtext error (#938)" (#944)
This reverts commit 14340bb374.
2023-02-10 17:49:56 +00:00
worapol.pan.buraphan 14340bb374 Fix drawtext error (#938)
1. Start QB-Core on a slow or low-spec computer
2. Access the Debug UI page (localhost:13172)
3. Encounter an error in the drawtext.js file
4. The issue stems from the script loading successfully but any resource call function (hideText) and sending an event message before index.html of all resources are fully loaded on NUI it make
`html
<div className="text" />` is not loaded.
2023-01-31 23:59:36 +00:00
David Malchin 8b5f5b2b37 Fix styling, docs, and a possible bug (#762)
* 🎨 Fix spacing and indentation

* 🎨 Use single quotes over backticks

* 📝 Fix docs

* 🐛 Make replace function clear and extend locales correctly

* Revert "🎨 Use single quotes over backticks"

* Update config.lua
2022-07-22 12:14:02 +03:00
David Malchin 7fab401ed2 Fix Styling (#758)
* style: ensure consistent indentation

* style: add spacing

* style: add newlines

* style: simplify html

* fix: update javascript indent size in contribution guidelines
2022-07-18 23:45:46 +03:00
Kakarot 9c2a0a9905 Merge pull request #666 from JackBro2022/patch-2
Additional fixes to 4K scaling
2022-06-15 17:44:30 -07:00
JackBro 11c42be08e Additional fixes to 4K scaling 2022-04-26 18:35:40 +10:00
JackBro ad410edd23 Better support for 4k screens 2022-04-26 00:17:22 +10:00
jnccloud 2f0c82d5f9 Update HTML to reflect new location of assets 2022-03-01 13:19:41 -05:00
darknight2590 3b61e13854 feat (html): Organised html file - Darknight2590
* Rename html/app.js to html/js/app.js
* Rename html/config.js to html/js/config.js
* Rename html/drawtext.js to html/js/drawtext.js
* Rename html/testing.js to html/js/testing.js
* Rename html/utils.js to html/js/utils.js
* Rename html/style.css to html/css/style.css
* Rename html/drawtext.css to html/css/drawtext.css
* Update fxmanifest.lua
2022-02-17 19:35:01 +11:00
Idris 2723d67744 feat (drawtext): Added IdrisDose/qb-drawtext to core to hopefully slow down the usage of drawtext3d. 2022-02-13 17:26:17 +11:00
Kakarot bb8e73827a Notif style 2021-11-30 21:44:30 -06:00
izMystic b29e31119d feat(notift): CSS classes 2021-10-22 00:14:18 -04:00
Kakarot da8da214e4 Update utils.js 2021-10-13 20:42:39 -05:00
Kakarot c82fbbd2fe Merge pull request #267 from TasoOneAsia/fix/gh-265
fix(ui/notify): fix wrapper definition for fetchNui
2021-10-13 19:42:20 -06:00
Taso 28ba599019 fix(ui/notify): fix wrapper definition for fetchApi 2021-10-13 21:41:22 -04:00
GhzGarage 1552fe9206 hotfix(utils.js): Resource Name 2021-10-13 20:24:56 -05:00
Taso e719bc6569 refactor(ui/notify): Cleanup internal code & new config options 2021-10-13 20:19:36 -04:00
Kakarot be4f57410b feat(html): New Notify System
-Replaces old notification system but is also backwards compatible so no changes necessary
- Now allows for the use of sending a table with text and caption
- Can add as many types of notifications as wanted/needed
- Configure position and icons in app,js (google icons or fontawesome)
2021-09-28 23:39:11 -06:00
vanillaa 430ae71cc9 clean 2021-08-17 09:29:38 +03:00
GhzGarage 36a139cc09 easier file management 2021-04-08 19:11:32 -05:00