Categories > Coding > C# >

How To Put Pastebin Raw Text To My Monaco Using Textbox And Button?

Posts: 24

Threads: 7

Joined: Oct, 2019

Reputation: 0

Posted

I'm beginner!

  • 0

Posts: 2

Threads: 1

Joined: Nov, 2018

Reputation: 0

Replied

Paste bin online script to lua button:

 

string script = new WebClient().DownloadString(pastebin/ghostbinrawlink); //Stores the string of the online script

api.SendLimitedLuaScript(script); //or SendLimitedLuaScript if you're using API V2, optionally Lua C

 

Maybe this is usefull? 

 

Greetings,

 

STC Mods

  • 0

PoopMaster

SoundInfinity

noticed

Posts: 120

Threads: 23

Joined: Jul, 2019

Reputation: 9

Replied

The following code should do that:

string ScriptSource = "";

using (WebClient wc = new WebClient()){

    ScriptSource = wc.DownloadString("http://www.pastebin.com/raw/1wez9");

}

 

Console.WriteLine(ScriptSource);

  • 0

Proud creator of: WRD+

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )