Inventory Viewer

Look into a player's inventory

Total Downloads: 10,011 - First Release: Apr 3, 2015 - Last Update: Apr 19, 2018

4.93103/5, 29 likes
  1. Ah yes, this plugin won't be able to function if that plugin is present because the only way to display a full player inventory properly at all times is to create a corpse that is linked to the player you are inspecting, and that plugin will basically take all the items away instantly from a corpse of a player, and in this case the fake corpse which clones the player's inventory. It would probably be possible to make a little change to the restore upon death plugin to make sure the it doesn't touch any corpses created by this plugin.
     
  2. Yes. I checked without plugin everything works well. You can fix this conflict?
     
  3. Could you try the attached file? I don't have access to my test environment right now.
     

    Attached Files:

  4. Thank you. Now everything is working
     
  5. Okay, glad it works, and thanks for testing it :)
    Going to put the update here in a bit once I update the version number in the plugin.
     
  6. You can add console command to add it into other plugins?
     
  7. I don't plan on doing this, but if another plugin would want to trigger the /viewinv <playername> command they could create their own console command that calls the method ViewInventory(BasePlayer player, BasePlayer target) on the InventoryViewer plugin
     
  8. Whats the command in console to let admins use this. Sorry Im new to this
     
  9. Code:
    grant user [your_name_or_steamid] inventoryviewer.allowed
     
  10. Ty so much
     
  11. great work
     
    Last edited by a moderator: Aug 28, 2016
  12. when I try to use "grant user ******** inventoryviewer.allowed" I get "permission inventoryviewer.allowed doesn't exist"?
     
  13. I get the same message. Does anybody know a fix?
     
  14. The permission `inventoryviewer.allowed` is hardcoded into the plugin, if you get a message that the permission does not exist either the permission in the plugin has been edited or the plugin is not loaded.
     
  15. That seems reasonable. Can you suggest a solution? I certainly do not have the knowledge to edit the plugin, and the plugin is installed on my server already.
     
  16. I would recommend just downloading the plugin from the site again and upload it to the server and make sure it loads up correctly and doesn't throw any errors in the console/oxide logs. And when you see it load correctly you should be able to grant yourself the permission using
    grant user your_name_or_steamid_here inventoryviewer.allowed
     
  17. hi from the last update i think now i have:
    Code:
    [Error] Failed to call hook 'ViewInventoryCommand' on plugin 'InventoryViewer v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
    (18:39:09) | [Oxide] 18:39 [Debug]   at Oxide.Plugins.InventoryViewer.FindPlayersByNameOrId (System.String nameOrId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.InventoryViewer.ViewInventoryCommand (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.InventoryViewer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Sep 25, 2016
  18. It turns out reinstalling it did the trick, thanks!
     
  19. Hi again only me have:
    Code:
    [Error] Failed to call hook 'ViewInventoryCommand' on plugin 'InventoryViewer v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
    (16:43:25) | [Oxide] 16:44 [Debug]   at Oxide.Plugins.InventoryViewer.FindPlayersByNameOrId (System.String nameOrId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.InventoryViewer.ViewInventoryCommand (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.InventoryViewer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    when /prod blablaname?