1. I want to connect two plugins with some global variable. Is that possible? There is another problem — one plugin is on Lua, another - on C#.
     
  2. Wulf

    Wulf Community Admin

    With just variables, not really, the best you can do is have what you want in a hook, and call it via the other plugin. It'd be better if both were C#.
     
  3. If I create my own plugin and add in it some public function, would that functon be available for a lua-plugin in work process?
     
  4. Wulf

    Wulf Community Admin

    You can only call functions in other plugins if you create hooks that the other plugin can call using Oxide. The only other way is an include file, but that's limited to C# only plugins pretty much.
     
  5. Quite don't get it. Can I create (add to oxide, if you like so) my own hook, or I have to use default hooks?
     
  6. Wulf

    Wulf Community Admin

    You can make your own functions in your plugins that you can call with another plugin, this is what i mentioned in my first reply. You do not need to add your own hooks to Oxide itself, just call the method/function in your plugin using Oxide's API. If you have a more specific example with code, I can give you a better idea of what you'd need to do.