v1.1.72 minor
Safer purchases and boss menu, ak47_inventory support and new Lua runtime fixes
15changes

Safer purchases and boss menu, ak47_inventory support and new Lua runtime fixes
15changes

[02] Release
Purchases, sales and boss menu money are now protected against duplication, with full rollback when something fails halfway. Adds ak47_inventory support, a startup self-check and fixes for the free camera with FiveM's new Lua runtime.
DECIMAL. No manual migration.Config.Debug now defaults to false. A new ak47_inventory entry was added to the inventories table in config/main.lua; if you keep your own config/main.lua, add ['ak47_inventory'] = 'ak47qb', to that table.use_experimental_fxv2_oal 'yes' and dependency '/assetpacks'. Replace it.custom/esx/server.lua, custom/qb/server.lua or server/custom/society/*, take the new versions and re-apply your changes: they changed a lot.AddItemStock, RemoveItemStock and SetItemStock now wait for the database and may return false, 'shop_busy' while another checkout is running on the same shop. Handle 'shop_busy' (retry or notify).Replace every file in the resource, except what you edited yourself:
fxmanifest.luaconfig/main.luadatabase/database.sqlcustom/client.luacustom/esx/server.luacustom/qb/server.luashared/functions.luashared/utils.lualocales/locale.lualocales/*.jsonclient/main.luaclient/custom/target/main.luaclient/modules/bossmenu.luaclient/modules/creator/main.luaclient/modules/creator/nui.luaclient/modules/raycast.luaclient/modules/scaleform.luaclient/modules/shop/main.luaclient/modules/shop/nui.luaserver/main.luaserver/custom/debug.luaserver/custom/inventory/ak47qb.luaserver/custom/society/esx_society.luaserver/custom/society/qb.luaserver/modules/bossmenu.luaserver/modules/creator.luaserver/modules/db/bossmenu.luaserver/modules/db/finance.luaserver/modules/db/main.luaserver/modules/exports_stock.luaserver/modules/selfcheck.lua — newserver/modules/throttle.lua — newCHANGELOG.mdCheckouts, sales and stock exports on the same shop now run one at a time, so items and money can no longer be duplicated.
If a purchase or sale fails partway through, every item, stock change and money movement is undone.
Boss menu withdrawals and ownership changes are now atomic, so the same money cannot be withdrawn twice.
Jobs, gangs, grades and required items are now checked by the server on every shop action, not only when the shop opens. Cart quantities, prices and promotions are validated more strictly.
Shop and boss menu actions are rate limited to stop spam and abuse.
Item images and stock are read from whichever ak47 inventory is running: ak47_inventory or ak47_qb_inventory.
When the resource starts, the console reports problems with the framework, dependencies or database.
Older installs are upgraded automatically on start. Shop balances and finance figures now use DECIMAL, avoiding rounding errors.
AddItemStock, RemoveItemStock and SetItemStock now wait for the database and may return false, 'shop_busy' while another checkout is running on the same shop. Retry or notify in your scripts.
Drawing a shop's area in the creator no longer breaks with FiveM's new Lua runtime.
The boss menu now closes properly when its data fails to load, instead of staying on screen with the cursor active.
Paying with marked bills (black money) now works with ox_inventory on QBCore.
Added the missing invalid payment method and shop not found messages in all 41 languages.
Shop peds, blips and interaction loops use fewer client resources.