v1.0.49 patch
Server-side checks, crafting fixes and MySQL 8 support
17changes

Server-side checks, crafting fixes and MySQL 8 support
17changes

[02] Release
Job, gang and distance checks on crafting tables are now enforced by the server, crafted items are no longer lost or duplicated with a full inventory, and the database installs on MySQL 8.0+. Also adds rate limiting, recipe validation for creator jobs and a startup self-check.
Do not import the [sql] files again on an existing server. Missing tables and columns are created automatically the first time the script starts, and your tables, recipes and queues are kept. The [sql] files no longer drop tables and now work on MySQL 8.0+ as well as MariaDB.
After replacing the files, run refresh before ensure qs-crafting (or restart the server). The resource has new server files, and a plain restart keeps the old file list.
Config.Debug is now false by default, and the debug commands only work for admins.
New option Config.AllowAnyRoutingBucket in config/main.lua. It is true by default, so tables keep working in instanced interiors and any routing bucket. Set it to false to require players to be in the same routing bucket as the table.
Recipes created by jobs with creator access are now checked by the server: they cannot give weapons, be free or craft instantly. Admins are not affected.
On start, the console shows a self-check that warns about missing dependencies or a wrong configuration.
Replace every file in the resource. If you edited any of these, merge your changes into the new version:
config/main.lua (new AllowAnyRoutingBucket option, Debug off)custom/esx/server.lua and custom/qb/server.luaclient/custom/debug.lua and server/custom/debug.luaserver/custom/inventory/qb.lua and server/custom/inventory/qs.luashared/functions.lua and shared/utils.lualocales/* (new texts and locale.lua)[sql]/esx.sql and [sql]/qb.sqlserver/modules/selfcheck.lua and server/modules/throttle.lua are new.
Access to a crafting table is now checked on the server, so players cannot craft at tables they are not allowed to use or from far away.
Stops spam and duplication from sending crafting requests too fast.
Recipes made by jobs with creator access cannot give weapons, be free or craft instantly.
true by default (tables work in any routing bucket). Set to false to require players to be in the same routing bucket as the table.
The console warns on start about missing dependencies or a wrong configuration.
Adding or removing an attachment is undone if something fails.
One compact block per new version with the highlights. Periodic checks only print when something changed.
Items are no longer lost or duplicated when the player's inventory is full.
Removed DROP TABLE and MariaDB-only syntax. The SQL files are now safe to run and work on MySQL 8.0+ and MariaDB.
A missing text in a language now falls back instead of failing.
Sync SQL calls in the ESX and QB bridges were replaced with async ones, so they no longer block the server.