Derma help (Beginner)

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

function testframe()
        local frame1 = vgui.Create("DFrame")
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](

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??


Dont care, I have made it working.