> For the complete documentation index, see [llms.txt](https://grootdev.gitbook.io/groot-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://grootdev.gitbook.io/groot-development/assets/g-shopsv2/patch-details.md).

# Patch Details

Find all the necessary details about updates/patches on this page

<details>

<summary>Update v1.5.0</summary>

```diff
+ Added: new purchase function to handle custom logic (e.g. weapon serial registration) when a player buys from the store
```

**Modified files**

* src/server/server.lua
* src/server/sv\_edit.lua
* fxmanifest.lua – version bumped

</details>

<details>

<summary>Update v1.4.1</summary>

```fix
+ Allowed free purchases when total is 0 via job discounts (Config.AllowFreeWithDiscount)
+ Purchase cooldown now triggers only after successful checkout
+ Fixed total cost decimal display (now always shows 2 decimals)
```

**Modified files**

* `src/server/server.lua`
* `src/shared/Config.lua` (new config line added)
* `web/`
* `fxmanifest.lua` – version bumped

</details>

<details>

<summary>Update v1.4.0</summary>

```diff
+ Added: You can now set different discounts for each shop individually
```

```fix
+ Fixed: Discounts applying to all shops even when disabled
```

**Modified files**

* `src/client/client.lua`
* `src/server/server.lua`
* `src/shared/Config.lua`
* `web/`
* `fxmanifest.lua` – bumped version

</details>

<details>

<summary>Update v1.3.0 (Job-restricted item purchases)</summary>

```diff
+ 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

```lua

[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
		},
	},
```

</details>

<details>

<summary>Update v1.2.0</summary>

{% code overflow="wrap" %}

```diff
+ Added a new option: disablePurchase = true (when set in the item table/options, players will not be able to purchase that item).
```

{% endcode %}

**Modified files**

* Web files
* shared/Config.lua

</details>

<details>

<summary> Update v1.1.4</summary>

```diff
+ Added a purchase cooldown feature  
+ Updated missing localizations
```

**Modified files**

* Web files
* src/client/client.lua
* locales/translations/
* shared/Config.lua

</details>

<details>

<summary>Update v1.0.3</summary>

{% code overflow="wrap" %}

```diff
+ Fixed: Issue with money not being added correctly when items were sold in the QBox framework.
```

{% endcode %}

**Modified files**

* bridge/qbox/server.lua
* fxmanifest

</details>

<details>

<summary>Update v1.0.2</summary>

```diff
+ Fixed: Manual quantity input now works correctly in the cart.
```

**Modified files**

* Web UI files

</details>

<details>

<summary>Update v1.0.1</summary>

```diff
+ Fixed illegal shop job check issue  
+ Added version check file  
```

**Modified files**

* client.lua

</details>
