1. I need some help with Rust Experimental Lua chat commands, This is what i have

    Code:
    function PLUGIN: init()
    command.AddChatCommand("howru", self.Plugin, "hicmd")
    endfunction PLUGIN: hicmd(player, cmd, args)
    rust.SendChatMessage(player, "Hello")
    end
    
    But the chat command howru does not exist can someone help me? do i have to compile something or add dlls? or do i just save it in notepad++?

    Thanks -Max
     
  2. Wulf

    Wulf Community Admin

    Remove the spaces after PLUGIN: in both instances. Also make sure you have the correct headers that define your plugin; you can find them in the Docs.
     
  3. I fixed the spaces between PLUGIN: and init, but i don't know what headers are and where to find the docs can you give me a exact link please?
     
  4. Wulf

    Wulf Community Admin

    The Docs is linked at the top of every page on the site here, but for your convenience, http://docs.oxidemod.org/rust/.
     
  5. Code:
    PLUGIN.Title       = "hello"
    PLUGIN.Description = "Hello Plugin"
    PLUGIN.Author      = "RusySalt"
    PLUGIN.Version     = V(1, 1, 1)
    PLUGIN.ResourceId  = 979function PLUGIN:init()
    command.AddChatCommand("howru", self.Plugin, "hicmd")
    endfunction PLUGIN: hicmd(player, cmd, args)
    rust.SendChatMessage(player, "HELLO", "Hello how are you?")
    end
    
    I cant find anything that is wrong
     
  6. Wulf

    Wulf Community Admin

    Code:
    PLUGIN.Title       = "Hello"
    PLUGIN.Description = "Hello plugin"
    PLUGIN.Author      = "RusySalt"
    PLUGIN.Version     = V(1, 1, 1)function PLUGIN:Init()
        command.AddChatCommand("howru", self.Plugin, "HiCmd")
    endfunction PLUGIN:HiCmd(player, cmd, args)
        rust.SendChatMessage(player, "HELLO", "Hello how are you?")
    end