Derma help (Beginner)

I have started looking at derma and found this tutorial code:


function testframe()
        local frame1 = vgui.Create("DFrame")
 
        frame1:SetPos(100,100)
        frame1:SetSize(200,200)
        frame1:SetTitle("Test")
        frame1:MakePopup()
end
concommand.Add("testframe", testframe)

In which file do I add it?? cl_init or something else?

When im writing “testframe” in console, its not working…

You should prolly read through this first. It’ll tell you where to put everything and all that jazz.

[Lua Tutorial Series

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Lua_Tutorial_Series)

It is not really telling me where to put this code…

Put it in a lua file in garrysmod/lua/autorun/client

I mean, where do I put it for my gamemode??

[editline]11:25PM[/editline]

Dont care, I have made it working.