v2.0.2 Patch
Server-side permissions, safer books and an update checker
13Änderungen

Server-side permissions, safer books and an update checker
13Änderungen

[02] Release
Only allowed jobs and admins can now create, edit or delete books, and players can only read books they own. Also: safe image links, book size limits, spam protection, a startup self-check, an update checker and several framework fixes.
database.sql no longer contains DROP TABLE, so importing it never deletes your books. The table is also created automatically if it is missing. No manual SQL is required.custom/ or server/custom/, merge your changes by hand instead of overwriting them.Replace every file in the resource, except what you edited yourself:
fxmanifest.luaclient/main.luaclient/modules/creator/main.luaclient/modules/item_menu.luacustom/esx/client.lua, server.luacustom/qb/client.lua, server.luacustom/standalone/client.lua, server.luadatabase/database.sqllocales/locale.luashared/functions.luaserver/custom/inventory/adapters/ox.luaserver/modules/creator.luaserver/modules/db/books.lua, main.luaserver/modules/inventory.luaserver/modules/selfcheck.lua — newserver/modules/throttle.lua — newserver/modules/validation.lua — newserver/modules/updater.lua — newweb/*Only the allowed jobs and admins can create, edit or delete books.
A player can no longer open a book that is not in their inventory.
Cover and page image links are checked for safety before they are shown, and the book menu no longer loads fonts or images from external sites.
Books have limits on page count, text length and total size. Saving and deleting are protected against spam, and two players can no longer edit the same book at once.
On start, the server console warns you if a dependency, the inventory or the database is not set up correctly.
The server console tells you when a new version is available, with its most important changes.
The DROP TABLE was removed, and the table is created automatically if it is missing.
Book data can no longer be written into inventory slots that belong to someone else.
Creator job grades set as a number no longer break the permission check.
The language option and the standalone framework option are now loaded correctly.
Sounds and other game functions now work correctly with the latest FiveM Lua runtime.
The book menu, props and editor state are cleaned up when the script stops or a player logs out.
Database queries in the framework bridges no longer block the server.