Rust-Kits

Moved

Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018

4.96216/5, 185 likes
  1. in rcon
    ownerid steamid64 "player name" "Owner"
    then type
    server.writecfg
    then relog
     
    Last edited by a moderator: Oct 6, 2016
  2. Thanks for the help, should I just wait for a new rust oxide update?
     
  3. [Error] Failed to call hook 'cmdConsoleKitGui' on plugin 'Kits v3.1.10' (KeyNotFoundException: The given key was not present in the dictionary.)

    (21:13:02) | [Oxide] 20:13 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.Kits+PLayerGUI].get_Item (UInt64 key) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Kits.cmdConsoleKitGui (.Arg arg) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.Kits.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
     
  4. Hi! I deleted a kit! (/kit remove <name>):

    Code:
    (14:06:13) | [Oxide] 13:06 [Error] Failed to call hook 'cmdChatKit' on plugin 'Kits v3.1.11' (KeyNotFoundException: The given key was not present in the dictionary.)
    (14:06:13) | [Oxide] 13:06 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,System.String].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.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
     
  5. Make sure no spaces in the GUI kit name
     
  6. Is there a way to reset the kit cooldowns for example after a wipe? And is there a way to have Admins unaffected by the cooldowns
     
  7. /kit resetdata
     
  8. kit remove not working!

    Code:
    [10/08/2016 06:46:13] [Oxide] 06:46 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,System.String].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.cmdChatKit (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.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 
     
  9. upload your config file and the kits.json from your data folder
     
  10. it data
     

    Attached Files:

  11. Plugin did not load .JSON file. What do i do?
     
  12. ok so what to i write when i try and give myself permission.....grant group admin "permissionname" what goes into the permission name? cause iam stuck on this lol i can see the /kit list...cause its blank tho
     
  13. Kits for Rust not working for me now. Need help.
    I reloaded plugin. Restarted the server and install new one.

    [Oxide] 00:26 [Debug] Reload requested for plugin which is already loading: Kits
    [Oxide] 00:26 [Info] Kits was compiled successfully in 2919ms
    [Oxide] 00:26 [Info] Unloaded plugin Kits v3.1.11 by Reneb
    [Oxide] 00:26 [Info] Loaded plugin Kits v3.1.11 by Reneb
    > reload kits
    [Oxide] 00:27 [Error] Failed to load plugin 'kits' (no source found)
    ???
     
  14. Reneb I am working on a custom mod that includes Kits in a GUI. I made a few hooks and was curious if you wanted to add them? You are welcome to change them if you dont like the format but they seem to work well for my purposes.
    Code:
            [HookMethod("RemainingCooldown")]
            public double RemainingCooldown(ulong ID, string kitname)
            {
                if (GetKitData(ID, kitname).cooldown != 0)
                    return Math.Abs(Math.Ceiling(GetKitData(ID, kitname).cooldown - CurrentTime()));
                else return 0;
            }        [HookMethod("KitCooldown")]
            public int KitCooldown(string kitname) => storedData.Kits[kitname].cooldown;        [HookMethod("KitDescription")]
            public string KitDescription(string kitname) => storedData.Kits[kitname].description;        [HookMethod("KitMax")]
            public int KitMax(string kitname) => storedData.Kits[kitname].max;//USES:
    private object RemainingCooldown(ulong ID, string kitname) => Kits?.Call("RemainingCooldown", ID, kitname);
            public double GetRemainingCooldown(ulong ID, string kitname)
            {
                var CD = RemainingCooldown(ID, kitname);
                if (CD != null)
                {
                    return Convert.ToDouble(CD);
                }
                return 0.0;
            }        private object KitMax(string kitname) => Kits?.Call("KitMax", kitname);
            public int GetKitMax(string kitname)
            {
                var Max = KitMax(kitname);
                if (Max != null)
                {
                        return Convert.ToInt32(Max);
                }
                return 0;
            }        private object KitDescription(string kitname) => Kits?.Call("KitDescription", kitname);
            public string GetKitDescription(string kitname)
            {
                var Desc = KitDescription(kitname);
                if (Desc != null)
                {
                    if (Desc is string)
                    {
                        string dsc = Desc as string;
                        return dsc;
                    }
                }
                return "NONE";
            }        private object KitCooldown(string kitname) => Kits?.Call("KitCooldown", kitname);
            public int GetKitCooldown(string kitname)
            {
                var cooldown = KitCooldown(kitname);
                if (cooldown != null)
                {
                        return Convert.ToInt32(cooldown);
                }
                return 0;
            }
     
  15. There is no need to reload it when it already is loaded and its reload Kits dont forget the K is higher case
     
  16. I am new to Rust Servers and seem to have a problem with the kits that I have created, I can see all the kits under /kit list but when I do /kit none of them show up. I have no idea how to fix it, can someone help me out with that?
     
  17. How to reset the number of Kits issued to one player?
    [DOUBLEPOST=1476295912][/DOUBLEPOST]
    /kit edit "KITNAME" => edit a kit
    hide true/false => hide a kit from the list: /kit (won't hide from the admin command /kit list)
     
  18. Kits | Page 202 | Oxide