1. I just tried to make a simple chat command where the command replies the player who runs the command. When i run the command i get "SendReply is not defined". Anyone know what the actual replay method for JavaScript?

    Code:
    WarnChatCommand: function (player, cmd, arg) {
        SendReply(player, "The command worked");
    },
     
  2. Wulf

    Wulf Community Admin

    SendReply is from Rust itself, but I'm pretty sure that isn't show you call it in JavaScript. You'd need to have the correct import and use the full method I believe.

    As an alternative, you could use Oxide's API, rust.SendChatMessage(player, "message").
     
  3. Thanks Wulf, just tested with the use of Oxide's rust.SendChatMessage implementation and it worked perfectly fine. No need to use the native SendReply then :)