39 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
Mustache Dom 06f7f6e967 Update config.lua 2024-10-22 15:06:17 -07:00
Mustache Dom 36ce1524fb added config option to limit negative amount
No Config option and since bank isn't listed in QBConfig.Money.DontAllowMinus then **any** script that has 

```
if Player.Functions.RemoveMoney('bank'. Value) then
```

will allot them to go 11 characters negative causing massive exploits
2024-10-22 15:03:03 -07:00
Kakarot 435c5335a3 Inventory Update 2024-05-20 05:28:38 -05:00
Kakarot 06f92b657c Update player data format & queries 2024-05-01 02:25:54 -05:00
Kakarot 5c60c94197 Allow defining icon
- Adds warning class
2024-02-17 06:13:47 -06:00
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
Kakarot 1a1640a56d Update notify
Changed styling and icons, updated cdn's
2023-05-28 18:37:55 -05:00
Jellyton c1159dd9ff Update config 2022-12-27 18:46:09 -08:00
Jellyton ec628fb6c7 Add OOC color to main config file 2022-12-28 02:42:00 +00: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
BerkieBb bdba42b649 tweak(config): remove connectqueue config 2022-07-23 21:26:39 +03: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
Pierre Grassin 7250e37e44 Update config.lua
change qb-boss to qb-management in comment
2022-04-24 18:02:40 +02:00
Kakarot dd6c6c4a09 More changes 2022-03-30 01:04:59 -05:00
Kakarot 46a2aae5ce More changes 2022-03-30 00:45:31 -05:00
Kakarot 3bb1023654 WIP permission system 2022-03-28 01:24:40 -05:00
BerkieBb d57218594f feat(config): whitelist config and connectqueue config 2022-03-01 19:41:37 +01:00
BerkieBb c3f114b381 feat(permission/playerdata): system admin permission 2022-02-24 22:13:30 +01:00
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +01:00
darknight2590 430d40db6a feat (player/status): Added isdead check to hunger/thirst check thread 2022-02-16 20:25:53 +11:00
BerkieBb c6b5063aaf feat(config): add duplicate license check config 2022-01-18 14:00:02 +01:00
Brady F 7277b506cc Default to false 2022-01-05 11:50:58 -06:00
bmf1418 9a251cd160 Add paychecks from society account
Added config option for paychecks to be taken from society account when the player is employed by a society.
2022-01-01 15:18:32 -06:00
Jeremy 034b16073a Changed default to 48 players
Changed default to 48 since that's the max player count with a free license using OneSync Infinity.
2021-12-03 03:19:05 -05:00
Mitroxs ca4ede1f67 Follow format of config 2021-12-01 20:10:04 +01:00
Mitroxs 8f0e4438b6 Introduces toggle option for PVP 2021-12-01 20:04:07 +01:00
Chang R 1000200e52 tiny explanation error 2021-10-26 21:01:23 +02:00
izMystic b29e31119d feat(notift): CSS classes 2021-10-22 00:14:18 -04:00
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -04:00
Kakarot 0fb076f07c Typo 2021-10-13 19:30:39 -05:00
Taso e719bc6569 refactor(ui/notify): Cleanup internal code & new config options 2021-10-13 20:19:36 -04:00
Kakarot 923f3d3a31 ⚠️ Major Update ⚠️
- Major cleanup of all files including reformatting & notations
- Added an optional export to add to scripts as an alternative to import.lua
- Added player state to OnPlayerLoaded so no more need for isLoggedIn inside scripts
- Updated all events to the new RegisterNetEvent and got rid of unneeded handlers
- Added the ability for ACE permissions with commands
- Added two new config options for player update interval and status update
- Changed players table to use citizenid column as primary key <-- very important
- Overall sloppy code cleanup, removal of unused code, got rid of nil checks
2021-09-24 22:46:20 -06:00
tastyfish 6cce66c001 Configurable hunger and thirst rate. 2021-09-01 04:07:14 -04:00
GhzGarage 0603076be3 ⚠️⚠️ Steam Ditch ⚠️⚠️ 2021-07-08 19:54:57 -05:00
viruspc2002 24a426cc84 update to vector4 2021-06-26 15:18:11 +05:30
BerkieBb d482274011 Update config.lua 2021-06-18 17:44:14 +02:00
GhzGarage 36a139cc09 easier file management 2021-04-08 19:11:32 -05:00