v1.1.69 menor
Open shops to everyone when staff are offline, and category restrictions checked at checkout
2cambios

Open shops to everyone when staff are offline, and category restrictions checked at checkout
2cambios

[02] Versión
A new option lets a job-locked shop open to everyone while too few staff are online. Category restrictions are now also checked by the server when paying, so players can no longer buy from a category they have no access to.
staff_fallback column is added to qs_shops automatically when the resource starts. It is also in database/database.sql for new installs.config/ folder as it is.custom/esx/server.lua or custom/qb/server.lua, copy the new framework:getOnlineJobCount function into your version. Without it the new option stays off and the console prints an error.Replace every file in the resource, except what you edited yourself:
server/main.luaserver/modules/creator.luaserver/modules/db/main.luacustom/esx/server.luacustom/qb/server.luadatabase/database.sqltypes.lualocales/*.json — new texts in every language.web/* — the whole folder.fxmanifest.lua — version only.A new Open When Staff Are Offline option on the Access Control panel. Pick a staff job and a minimum number of staff online: while fewer of them are connected, anyone can use the shop, skipping the job, grade and required item checks. Gang and category restrictions still apply.
Category restrictions (job, grade and required items) only hid the category in the shop window. The server now checks them at checkout too, so a player can no longer buy items from a category they have no access to.