Running a client command from chat?
Discussion in 'Rust Development' started by Light2323, Feb 8, 2016.
-
Wulf Community Admin
Code:rust.RunClientCommand("command args") -
Wow Wulf you replied

What is args?
[DOUBLEPOST=1454961417][/DOUBLEPOST]arguments?
[DOUBLEPOST=1454961476][/DOUBLEPOST]Also i got this error Oxide.Game.Rust.Libraries.Rust' does not contain a definition for `RunClientCommand' and no extension method `RunClientCommand' of type `Oxide.Game.Rust.Libraries.Rust' could be found. Are you missing an assembly reference?
[DOUBLEPOST=1454962140][/DOUBLEPOST]Wulf? -
Wulf Community Admin
Mmm, looks like we don't have that for Rust yet, only Rust Legacy. You'd need to find in the Assembly-CSharp.dll how it calls client commands. -
How can i do that

Im pretty new to modding like VERY new :/ -
use
[C#] player.SendConsoleCommand("noclip");
[Lua] player:SendConsoleCommand("noclip")
where player is your BasePlayer who runs the command. -
my two fave developers :O
