1. Hi,

    How oxide can develop an function called when players open Her Invetory ?
    Like OnOpenInvetory or when Players press the button to open her inventory


    Thank you in advance
     
  2. Wulf

    Wulf Community Admin

    There are a few threads about this, I don't think a hook is really doable, but you can use Unity to tell when they open it. Take a look at QuickSort as an example.
     
  3. The problem is only when Players open Invetory because when He is looting the players call the fonction OnLootEntity, but when he press TAB, he doesn't call OnLootEntity.
    We can bind a command with oxide api ?
     
  4. Wulf

    Wulf Community Admin

    You can bind a command with Rust itself.
     
  5. Yes, but when you create a Gui in the middle screen you can't destroy, but when you loot something you just need to call the fonction OnLoot and add the right setence to destroy the gui.
     
  6. Like I said, it will most likely be fixed, not worth wasting that much time writing code when you could move the position to align it with the health/food bar.
     
  7. Yeah, I thing to, but in the future, some Plugin need maybe this API.
    If Oxide can add the function that's cool :)