1. Hello! So i'm new to Oxide modding and would like to grasp the basic concept of how it works to start working on my own fancy mods. so here I go...

    Any reason why this is not working at all?
    Code:
    using System.Collections.Generic;
    using System;
    using System.Reflection;
    using System.Data;using UnityEngine;using Oxide.Core;
    using Oxide.Core.Configuration;
    using Oxide.Core.Plugins;using Oxide.Rust;namespace Oxide.Plugins
    {
        [Info("Testing Rust fuctionality", "Zuen Studio", "1.0.0")]
        public class TestingFunctions : RustPlugin
        {
            [ChatCommand("testme")]
            void TestMecc(BasePlayer player, string command, string[] args)
            {
                MessageAllPlayers("Hello");
            }
        }
    }
    
    In-game tryping "/testme " results in "unknown command 'testme'!"
     
  2. Wulf

    Wulf Community Admin

    Check your logs for errors, that will generally point you in the right direction. From initial glance, you are importing things that you both do not need, and that do not exist, Oxide.Rust being one of those.
     
  3. Derp easy enough fix Thanks!... the using statements was me going mad for it not working initially. So i'm using VS2012 and I added my references but i still don't have the required reference for BasePlayer ... what dll would that be located in exactly?
     
  4. Wulf

    Wulf Community Admin

    using Rust; may do the trick.
     
  5. I must say that the solutions to my problems are so simple I feel really stupid to not see them. Thanks.
     
  6. Wulf

    Wulf Community Admin

    No worries. :)
     
  7. okay so I got the thing pretty much figured out to a point but ... What is the best approach to check what current belt item the player is holding in his hand if he is holding one?
     
  8. Wulf

    Wulf Community Admin

    I'd recommend taking a look at a few of the item related plugins, and if you can't find what you're looking for, create a new thread. ;)