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!


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

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

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