targets and inventory update
Targets: sphearzone should not take a heading, removed optional debug at the end for individual debugging Inventory: Added OpenPlayerInventory for all inventories. 2 (aka codem and qs) did not have clear documentation. Probably doesnt work
This commit is contained in:
1 parent
fc8da1d528
commit
466e86bfdb
13 files changed
+82
-6
No files matched your search
@@ -189,4 +189,14 @@ Inventory.RegisterShop = function(shopTitle, shopInventory, shopCoords, shopGrou
|
||||
return true
|
||||
end
|
||||
|
||||
Inventory.OpenPlayerInventory = function(src, target)
|
||||
assert(src, "OpenPlayerInventory: src is required")
|
||||
if not target then
|
||||
target = src
|
||||
end
|
||||
local identifier = Framework.GetPlayerIdentifier(target)
|
||||
if not identifier then return false end
|
||||
exports['jpr-inventory']:OpenInventory(src, identifier)
|
||||
end
|
||||
|
||||
return Inventory
|
||||
Reference in new issue
Block a user