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"); },
Solved Is the SendReply method deprecated (JS)? (Use Oxide's API)
Discussion in 'Rust Development' started by Henrikmeister, May 10, 2016.
-
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"). -