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
2025-05-02 22:16:51 +01:00
parent b7a284e051
commit 6a5913230f
2 changed files with 8 additions and 8 deletions

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