📦Patch Details
Find all the necessary details about updates/patches on this page
Update v1.3.0 (Job-restricted item purchases)
+ Added: Job-restricted item purchases (e.g., only Police job players can purchase specific items)
Modified files
src/client/client.lua
src/shared/Config.lua
web files
[2] = {
itemName = "burger",
itemLabel = "Burger",
Price = 250,
VisibleInShops = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 },
Licenses = {},
InfoMessage = "A staple food item to satisfy hunger.",
Category = "food",
canSell = false,
sellPrice = { min = 20, max = 100 },
-- disablePurchase = true, -- if this is true, the item will not be purchasable
-- ---- new fields ----
-- Jobs = {} -- if this is empty, anyone can buy
Jobs = {
["police"] = { 1, 2, 3 }, -- Police players with job grades 1, 2, or 3 can purchase this item
["ambulance"] = { "everyone" }, -- All ambulance job players can purchase this item
},
},
Update v1.2.0
+ Added a new option: disablePurchase = true (when set in the item table/options, players will not be able to purchase that item).
Modified files
Web files
shared/Config.lua
Update v1.1.4
+ Added a purchase cooldown feature
+ Updated missing localizations
Modified files
Web files
src/client/client.lua
locales/translations/
shared/Config.lua
Update v1.0.3
+ Fixed: Issue with money not being added correctly when items were sold in the QBox framework.
Modified files
bridge/qbox/server.lua
fxmanifest
Last updated