Bind F1-F4 to a website?

I was wondering whats the code so you can bind a letter so it can pop up my donation website and forums… I would really appreciate it if someone helped me :slight_smile:
Thanks :stuck_out_tongue:

So basically a “make-it-for-me” thread ? Great, haven’t seen these in minutes.

open up an html vgui frame that opens your website

www.coderhire.com, post a job. I’m sure you can get it for just a few dollars.

People need to stop redirecting people to coderhire for simple ass jobs. I bet someone will help him for free. If I knew Lua and trusted my coding skills, I would help him for free. So if you know lua, stop being an ass and help someone out other than being a dick. Everyone starts somewhere at a skill.

http://forum.facepunch.com/showthread.php?t=1257110
^There is the rule on it if you want, we will provide suggestions of variable quality for existing code but we’re not trying to take business away from the good folks over there.

This’ll create a DFrame with HTML to your donation page for your shitty server so you can farm money: It opens with F1. I also made it so it’s sizable and the HTML will resize itself along with it.

This goes in cl_init.lua
[lua]
function LearnSomethingAlready ( )
DonateToKid = vgui.Create ( “DFrame” )
DonateToKid:SetPos ( 380 , 110 )
DonateToKid:SetSize ( ScrW()/3 + 500 , ScrH()/2 + 200 )
DonateToKid:SetTitle ( “I’m gonna use this to farm donations! Whoooooooooooooo” )
DonateToKid:SetVisible ( true )
DonateToKid:SetSizable ( true )
DonateToKid:SetDraggable ( true )
DonateToKid:ShowCloseButton ( true )
DonateToKid:MakePopup ( )

ShittySiteURL = vgui.Create ( "HTML" , DonateToKid )
ShittySiteURL:SetPos ( 5 , 25 )
function ShittySiteURL:Think ( )
ShittySiteURL:SetSize ( DonateToKid:GetWide ( ) - 10 , DonateToKid:GetTall ( ) - 30 )
end
ShittySiteURL:OpenURL ( "http://www.google.com" ) -- ur site goez here for donatinzzz 2 moms paypal

end
usermessage.Hook ( “Stuff” , LearnSomethingAlready )
[/lua]

AND this goes into init.lua
[lua]
function GM:ShowHelp (ply) – Change to GM:ShowTeam for F2, GM:ShowSpare1 for F3, and GM:ShowSpare2 for F4

umsg.Start ("Stuff", ply)
umsg.End ()

end
[/lua]

OR here’s another way to do it. It’ll open the URL in their Steam browser: Opens with F2.

This goes in cl_init.lua
[lua]
function SteamBrowserShit ( )

gui.OpenURL (“http://www.google.com”)

end
usermessage.Hook ( “OtherStuff” , SteamBrowserShit )
[/lua]

AND this goes in init.lua

[lua]
function GM:ShowTeam (ply)

umsg.Start ("OtherStuff", ply)
umsg.End ()

end
[/lua]

There you go. Have fun taking money from people that donate to your “unique and custom” shitty server for admin. Also, so people can stop being all “high and mighty” because they know how to do it and you don’t. Bye-bye. It takes like 2 minutes to make. You’re not “taking business” away from anyone.

I don’t know how to do it. I use coderhire.

Those names. And STOP STEALING MY $2! THIS WAS SUPPOSED TO BE MY JOB ON CODERHIRE