Add better fallbacks for if no metadata table is found

```lua
                durability = v.info.durability
```
to:
```lua
                durability = v.info and v.info.durability or nil
```
This commit is contained in:
Jim Shield committed 2025-05-02 22:16:51 +01:00
1 parent b7a284e051
commit 6a5913230f
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ function openShop(data)
elseif isStarted(OXInv) then
exports[OXInv]:openInventory('shop', { type = data.shop })
elseif isStarted(QSInv) then
elseif isStarted(QSInv) or isStarted(CodeMInv) then
TriggerServerEvent("inventory:server:OpenInventory", "shop", data.items.label, data.items)
elseif isStarted(TgiannInv) then