Donation in game code

Hello Everyone,
I am looking for a code that when you write !donate ingame it will bring you to my donate page! I saw another thread like this on here but the code sadly didn’t work! Please tell me a code that will and where to put it!

Thanks
Awesome

In a clientside file:
[lua]
function OpenDonationPage()
url = “insert url between these quotes”
gui.OpenURL( url )
end
concommand.Add(“donate”, OpenDonationPage)
[/lua]

In a serverside file:
[lua]
hook.Add( “PlayerSay”, “SayDonate”, function( ply, text, team )
if ( string.sub( text, 1, 7 ) == “!donate” ) then
ply:ConCommand(“donate”)
end
end )
[/lua]

This will make your page popup in the Steam in-game browser.

What file path is that for both?

If you don’t understand clientside/serverside you’re just better off putting the clientside in cl_init.lua and the serverside in init.lua

where is that