Commit Graph

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
MoskalykA fb4cc3e113 refactor: small optimization 2023-12-21 20:17:32 +01:00
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
David Malchin ce216ad676 🎨 Rename locales and remove notify translation type 2022-08-21 23:48:45 +03:00
ChatDisabled 7aba11da2c server/exports.lua 2022-08-21 18:36:50 +02:00
BerkieBb d88e51ee4f Remove inventory code from the core (#784)
* tweak(config): remove inventory code

* tweak(client/functions): remove inventory code

* cleanup(server/commands): remove inventory command

* cleanup(server/events): remove hasitem callback

* cleanup(server/functions): remove inventory code

* cleanup(server/player): remove inventory code

* feat(server/player): QBCore:Player:SetPlayerData server side

Removed QBCore:Server:PlayerLoaded for PR that will be merged before me that adds it

* feat(server/player): QBCore:Server:OnGangUpdate

* fix(shared/items): remove duplicate snowball

* fix(server/events): warn for exploitable event

* fix(server/functions): startup error

* feat(server/player): some backwards compatibility

* fix(server/events): warn for exploitable event

* feat(server/player): Player.Functions.AddField

* feat(server/exports): SetField and AddField

* fix(server/player): inventory state check
2022-08-19 11:33:38 -05: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
MaximusR9 b726a0cb0c Update exports.lua 2022-06-16 18:43:07 +05:00
Kakarot fd3591e3ee Merge branch 'main' into patch-1 2022-06-15 17:46:14 -07:00
Kakarot 9d3506f5d0 Merge branch 'main' into main 2022-06-15 17:32:51 -07:00
Lionh34rt 8062549f1b fix(server): linting issues 2022-06-08 17:26:49 +02:00
Lionh34rt bc95a864b9 ExploitBan export
This export allows you to use it any script for exploit checks. Instead of having to define the function in multiple scripts like:

exports['qb-core']:ExploitBan(source, "pawn-shop")

https://github.com/qbcore-framework/qb-pawnshop/commit/8e81307cbabc3607fe4a82f88abf13765b35cf2f
2022-06-06 03:34:48 +02:00
almez bdd95c074f Update exports.lua 2022-05-10 21:00:17 +03:00
MaximusR9 dc97e2f7b0 Add Remove and Update export functions
Added remove and update functions to dynamically remove or update jobs/items/gangs without having to restart the server.
2022-04-25 08:44:31 +05:00
BerkieBb db11f3d9cc fix(server/exports): wrong variable 2022-03-13 20:43:26 +01:00
BerkieBb 2e75bdbdb5 fix(server/exports): wrong variable
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
2022-03-12 12:30:13 +01:00
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +01:00
BerkieBb 1412d02db1 tweak(server/exports): Remove unnecessary code 2022-02-23 11:17:16 +01:00
BerkieBb 41f01f842b tweak(core/version/getter): add if statement back for invoking resource 2022-02-19 12:51:13 +01:00
BerkieBb f82fb1a118 style(server/exports): ocd 2022-02-18 19:12:57 +01:00
Idris Dev efd28061e4 feat (server/exports): Added GetCoreVersion to return the manifest version of the core. 2022-02-15 13:51:35 +11:00
Idris e7efdbd509 hotfix (exports): Updated the way functions return, now returns status, message and item (if applicable). 2022-02-13 21:49:59 +11:00
Idris 74f088e451 feat (exports): Added minor validation to the new exports. 2022-02-13 21:28:22 +11:00
Idris ae29c94a40 feat (Shared): Added the ability to dynamically update the shared jobs, items and gangs. 2022-02-13 20:45:49 +11:00