Results 1 to 4 of 4
  1. #1
    FoldedHam's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    fridge
    Posts
    110
    Reputation
    10
    Thanks
    28
    My Mood
    Hot

    http.Fetch loader

    anyone know why this shit doesn't work?

    Code:
    local fetcher = {}
    
    function fetcher.Get( url )
        http.Fetch( url, function( body )
            code = body
            pcall( CompileString( code, math.random( 1, 99 ) ) )
            chat.AddText( Color( 200, 100, 100, 255 ), "Script successfully fetched." )
        end, function( error )
            chat.AddText( Color( 200, 100, 100, 255 ), "Got sum errors gettin yo script mayne." )
            chat.AddText( Color( 200, 100, 100, 255 ), "Make sure your script is formatted to plain text, fgt." )
        end)
    end
    
    local frame = vgui.Create( "DFrame" )
    frame:SetPos( (ScrW()/2) - 200, (ScrH()/2) - 50 )
    frame:SetSize( 200, 50 )
    frame:SetTitle( "Script Loader" )
    
    local url_box = vgui.Create( "DTextEntry", frame )
    url_box:SetPos( 10, 25 )
    
    local confirm = vgui.Create( "DButton", frame )
    confirm:SetPos( 120, 24 )
    confirm:SetText( "Run" )
    confirm.DoClick = function()
        fetcher.Get( url_box:GetValue() )
        frame:Close()
    end
    
    frame:MakePopup()
    Last edited by Hunter; 02-26-2016 at 03:32 PM.

  2. #2
    eth0s's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    1,887
    Does it say "Script successfully fetched." when you load the correct url?

  3. #3
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    /Moved to the correct section.

  4. #4
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    1 week has passed and no further replies have been made by the OP. Assuming solved.

    /Closed.

Similar Threads

  1. [Solved] http.Fetch()
    By Breeee in forum Garry's Mod Server Exploits & Help
    Replies: 5
    Last Post: 02-24-2016, 09:04 AM
  2. Load a .dll in a http for my loader...
    By God601 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 06-02-2010, 09:08 PM
  3. https://www.hackthissite.org
    By SpiderByte in forum General Hacking
    Replies: 15
    Last Post: 02-27-2008, 08:17 AM
  4. [Tutorials] https://www.hackthissite.org
    By SpiderByte in forum General Hacking
    Replies: 7
    Last Post: 02-17-2008, 12:34 PM