v1.1.41 seguridad
Lockpick bypass fixed, PIN lockout, standalone mode and a stricter creator
17cambios

Lockpick bypass fixed, PIN lockout, standalone mode and a stricter creator
17cambios

[02] Versión
Closes a lockpick bypass that let players open shutters without the item or the minigame, locks a player out for 60 seconds after 5 wrong PIN codes and validates everything the creator sends. Adds standalone mode, routing bucket support and a MySQL 8 schema, and fixes several crashes.
lockpick export. exports['qs-shutter-creator']:lockpick() now consumes one lockpick by itself, on the server, when it succeeds. If one of your scripts calls this export and then removes the item, delete that line, or players will lose two lockpicks per opening. The export now returns true / false instead of 'remove'.qs-shutter-creator/[sql]/database.sql is included (MySQL 8 compatible) if you prefer to import it yourself. Your shutters are kept.config/main.lua has a new option, Config.AllowAnyRoutingBucket (true by default: shutters work in any routing bucket; false limits them to bucket 0). Config.Debug is now false by default.Replace every file in the resource, except what you edited yourself:
fxmanifest.luaconfig/main.lua — new option, see above.client/main.luaclient/modules/creator/main.luaclient/modules/creator/nui.luaclient/modules/raycast.luaclient/modules/scaleform.luacustom/client.luacustom/server.luacustom/esx/client.luacustom/esx/server.luacustom/qb/client.luacustom/qb/server.luacustom/standalone/ — new folder.locales/locale.luaserver/main.luaserver/custom/inventory/tgiann.luaserver/modules/creator.luaserver/modules/db.luaserver/modules/selfcheck.lua — new.server/modules/throttle.lua — new.server/modules/updater.luashared/functions.luashared/utils.lua[sql]/database.sql — new.CHANGELOG.md — new.web/* — the interface.Players could open shutters without the item or the minigame. The server now checks the lockpick on its side: the player must have the item, stand at a point that allows lockpicking, and actually play the minigame.
After 5 wrong attempts, the shutter blocks that player for 60 seconds.
Coordinates, models and interaction points are checked on the server. Teleporting to a shutter from the creator now requires permission.
Each player can only send a limited number of requests per second, and server-only files are no longer sent to the players' game.
The script now works without ESX or QBCore.
New Config.AllowAnyRoutingBucket option: true (default) works in any bucket, false limits shutters to bucket 0.
The table is also created automatically on the first start.
The console reports configuration problems when the resource starts.
exports['qs-shutter-creator']:lockpick() consumes one lockpick on the server when it succeeds and returns true / false instead of 'remove'. Scripts that removed the item themselves must stop doing so.
One short block per new version in the server console, with up to 3 highlights. It stays quiet if nothing changed.
No fonts loaded from the internet, keypad timer cleaned up properly, and safer image and sound URLs. Config.Debug is now false by default.
Lockpicks were sometimes not consumed, or consumed twice.
The script now falls back to English.
Animations could misbehave when several players used the same shutter at once, and getCurrentShutter returned the wrong shutter.
Faster sync on servers with many shutters, and lower idle usage with ox_target / qb-target.