mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-23 20:08:35 +00: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:
1 parent
b7a284e051
commit
6a5913230f
2 files changed
+8
-8
No files matched your search
+1
-1
@@ -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