1. So i am making a Admin Fly script which when /fly is entered in chat "noclip" will be entered into the client console
    Thanks
     
  2. Wulf

    Wulf Community Admin

    Code:
    rust.RunClientCommand("command args")
     
  3. Wow Wulf you replied :D
    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?
     
  4. 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.
     
  5. How can i do that o_O
    Im pretty new to modding like VERY new :/
     
  6. use

    [C#] player.SendConsoleCommand("noclip");
    [Lua] player:SendConsoleCommand("noclip")

    where player is your BasePlayer who runs the command.
     
  7. o_O my two fave developers :O