Gamemode problem§!?

Hey i have started make an game mode! by this tutorial (http://wiki.garrysmod.com/?title=Simple_Gamemode)
but when i will test it, i cant find the gamemod in the game!? please help. i cant test the gamemode…
and did anyone got some more newbie tutorial to help me make more on the gamemode ? o;

That’s about as easy as it gets. It seems you can’t even follow a simple file structure though.
You can try this one out, maybe you can follow the structure easier if not well fuck you.

**

Gamemode From Scratch**

Fair then :wink:
ill mark if it work, and if its not work o;

[editline]12:56AM[/editline]

Okay its work now! thank you!..

but i got a problem with inset a image in det derma/vgui…

i code it as this way


 local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 250,250 )
DermaPanel:SetSize( 600, 600 )
DermaPanel:SetTitle( "Derma Testing Stuff" )
DermaPanel:ShowCloseButton( true )
DermaPanel:SetVisible( true )
DermaPanel:MakePopup()

DermaImage = vgui.Create( "DImage", DermaPanel )
DermaImage:SetPos( 25, 25 )
DermaImage:SetImage( "guide.vtf" ) 
DermaImage:SizeToContents() 

Why would it not show the picture ? its just an pink and black little box! :slight_smile:

“guide”, not “guide.vtf”. You need to reference a material not texture (AFAIK).

Does anyone know here? how to open a derma panel, on F1

[lua]
function KeyThink()
if input.IsKeyDown(KEY_F1) then
OpenDermaMenu()
end
end
hook.Add(“Think”, “ThinkingKeys”, KeyThink)
[/lua]

I’d use GM:ShowHelp and a usermessage, but okay.

What’s the point in using a usermessage when it can be done all clientside?

Where should i put it in?
Cause it dosen’t work.

Cant make that image thing thing…

okay new problem!.


local DermaPanel = vgui.Create( "DFrame" ) 
DermaPanel:SetPos( 50,50 ) 
DermaPanel:SetSize( 360, 350 ) 
DermaPanel:SetTitle( "Menu 1" ) 
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true ) 
DermaPanel:ShowCloseButton( true ) 

local PropertySheet = vgui.Create( "DPropertySheet" )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )
 
local SheetItemOne = vgui.Create( "DCheckBoxLabel" )
SheetItemOne:SetText( "Accept!" )
SheetItemOne:SetConVar( "close" )
SheetItemOne:SetValue( 1 )
SheetItemOne:SizeToContents()
 
local SheetItemTwo = vgui.Create( "DCheckBoxLabel" )
SheetItemTwo:SetText( "Chanelog" )
SheetItemTwo:SetConVar( "some_convar" )
SheetItemTwo:SetValue( 1 )
SheetItemTwo:SizeToContents()

local SheetItemThree = vgui.Create( "DCheckBoxLabel" )
SheetItemThree:SetText( "Rules & Guide" )
SheetItemThree:SetConVar( "some_convar" )
SheetItemThree:SetValue( 1 )
SheetItemThree:SizeToContents()
 
PropertySheet:AddSheet( "Some Menu", SheetItemOne, "gui/silkicons/user", false, false, ".)
PropertySheet:AddSheet( "Super Menu", SheetItemTwo, "gui/silkicons/group", false, false, "..) 
PropertySheet:AddSheet( "Elektro Menu", SheetItemThree, "gui/silkicons/org", false, false, "...")

Now i just need to make.
.1 The menu open when you join the server(Done!)
.2 The menu open when i press F1 (Need Help!)
.3 The remvoe the check, so i get a text box, like html or something(Need Help!)

so i need help to .2 and, .3 :wink:

Being in a gamemode wouldn’t that open the original ShowHelp and his derma menu unless you:



return


Correct me if I’m wrong.

Well yeah if you override the GM:ShowHelp() hook serverside that will stop it sending a usermessage/concommand to the client. All key detection should be done clientside though.