mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user