!donate command opening Motd formate ? HELP - New

Ok, so simply i want my !donate command to open a motd browser not a Steam browser.

So, here’s the code for the command:
[lua]CATEGORY_NAME = “Donate”

// Donate
function ulx.donate(ply)
local donate = ulx.command( CATEGORY_NAME, “ulx donate”, ulx.donate, “!donate” )
donate:defaultAccess( ULib.ACCESS_ALL )
donate:help( “Description”[/lua]

I want it to open a motd browser form, wich u can open with !motd. Instead im getting the steam browser wich i dont like. So anyone know anything to help me out here? I’m a beginner in lua coding.

What, so do you want some other browser like Chrome or something? I don’t think that’s possible to open within gmod… the closest thing you could get to a ‘different browser’ would probably be a DHTML panel or something, but I have no clue how that panel even works so it probably internally uses the Steam browser or something (also, you can apparently have controls for this panel by using this)

You’ll have to make a separate derma panel more than likely. Or just copy ULX’s derma panel.

local donate = {
    ["URL"] = "http://example.com";
function donate.CreatePanel( )
    local w = 800;  -- Width
    local h = 600;  -- Height
    local p = 8;    -- Padding
    donate.Frame = vgui.Create( "DFrame" );
    donate.Frame:SetTitle( "Donation - Community" );
    donate.Frame:SetSize( w + (p * 2), h + (p * 5) );
    donate.Panel = vgui.Create( "DPanel", donate.Frame );
    donate.Panel:SetPos( 8, 32 );
    donate.Panel:SetSize( w, h );
    donate.HTML = vgui.Create( "HTML", donate.Panel );
    donate.HTML:SetPos( 8, 8 );
    donate.HTML:SetSize( w - (p * 2), h - (p * 2) );
    donate.HTML:OpenURL( donate.URL );
hook.Add( "OnPlayerChat", "donateCommand", function( ePlayer, sText )
	if ( ePlayer ~= LocalPlayer() ) then
    if ( string.StartWith( string.lower( sText ), "!donate" ) ) then
        donate.CreatePanel( );
end );

Adjust the values as you wish but I assume that’s what you’re asking for.

No, that didnt do anything at all

did you put !donate in chat or use the ulx menu? (its only a chat command)

It 100% works. Where did you put the lua file?

I put the lua file in Gmod>lua>autorun>server and made a file named donate.lua