Gamemode Help - Heelp with DModelPanel

Hi there making a team menu and i wanted to show the models over the buttons
but the menu just gets messed up.

[lua]function set_team()

local DLabel1
local DPanel2
local DPanel1
local DButton3
local RunnersButton
local DeathButton
local TeamMenu
local DeathModel

TeamMenu = vgui.Create(‘DFrame’)
TeamMenu:SetSize(1049, 572)
TeamMenu:Center()
TeamMenu:SetTitle(‘BumRun ~ Team Menu’)
TeamMenu:SetDeleteOnClose(false)
TeamMenu:SetBackgroundBlur(true)
TeamMenu:MakePopup()

DLabel1 = vgui.Create(‘DLabel’, TeamMenu )
DLabel1:SetPos(497, 144)
DLabel1:SetText(’ Welcome to BumRun

This is the Team Select menu
')
DLabel1:SizeToContents()
DLabel1:SetTextColor(Color(0, 0, 0, 255))

DButton3 = vgui.Create(‘DButton’, TeamMenu )
DButton3:SetSize(281, 41)
DButton3:SetPos(480, 623)
DButton3:SetText(‘DButton’)
DButton3.DoClick = function()
RunConsoleCommand( “deathrun_spec” )
RunConsoleCommand( “kill” )
TeamMenu:SetVisible ( false )
end

RunnersButton = vgui.Create(‘DButton’, TeamMenu )
RunnersButton:SetSize(178, 81)
RunnersButton:SetPos(215, 553)
RunnersButton:SetText(‘DButton’)
RunnersButton.DoClick = function()
RunConsoleCommand( “deathrun_runners” )
RunConsoleCommand( “kill” )
TeamMenu:SetVisible ( false )
end

DeathButton = vgui.Create(‘DButton’, TeamMenu )
DeathButton:SetSize(178, 81)
DeathButton:SetPos(856, 547)
DeathButton:SetText(‘Deaths’)
DeathButton.DoClick = function()
RunConsoleCommand( “deathrun_deaths” )
RunConsoleCommand( “kill” )
TeamMenu:SetVisible ( false )
end

DeathModel = vgui.Create( “DModelPanel”, TeamMenu )
DeathModel:SetModel( “models/player/death.mdl” )
function model:LayoutEntity( )

self:RunAnimation()

end
DeathModel:SetSize( 249, 312 )
DeathModel:SetCamPos( Vector( 70, 80, 60 ) )
DeathModel:SetLookAt( Vector( 0, 0, 0 ) )
DeathModel:SetPos( 811, 204 )

RunnersModel = vgui.Create( “DModelPanel”, TeamMenu )
RunnersModel:SetModel( LocalPlayer():GetModel() )
function model:LayoutEntity( )

self:RunAnimation()

end
RunnersModel:SetSize( 249, 312 )
RunnersModel:SetCamPos( Vector( 70, 80, 60 ) )
RunnersModel:SetLookAt( Vector( 0, 0, 0 ) )
RunnersModel:SetPos( 180, 209 )

end

concommand.Add( “deathrun_teams”, set_team )
[/lua]

http://img638.imageshack.us/img638/475/ffffffffd.png

Uploaded with ImageShack.us

The model gets shown up in the left corner reaally tiny. Please help me if you can :L

Im guessing you havent parented them, and it looks like you’ve made your buttons SetPos to get out of the picture. You can use DermaDesigner and read more about in the thread.

Used Dermadesigner sir, have no clue why they got messed up, but whats with the model ?

DermaDesigner doesn’t work properly, I wouldn’t advise using it just yet.

It creates the things backwards.

You parented them?

Ofc, DermaDesigner is messing it up i think. Aaaw, Just gonna make a plane Gui with the buttons then. Thnaks for your time.