Problem with DModelPanel

Ok so im making a derma menu there you will see a model of the npc your talking with. But i cant get the model to show up…
What am i doing wrong?

        local TalkFrame = vgui.Create('DFrame')
        TalkFrame:SetSize(500, 200)
        TalkFrame:SetPos((ScrW()/2)-250,ScrH()-250)
        TalkFrame:SetTitle('Talking with Police Officer')
        TalkFrame:SetSizable(false)
        TalkFrame:SetDeleteOnClose(false)
        TalkFrame:ShowCloseButton(false)
        TalkFrame:MakePopup()
        TalkFrame:SetDraggable(false)

        local TalkText = vgui.Create('DLabel')
        TalkText:SetParent(TalkFrame)
        TalkText:SetPos(5, 29)
        TalkText:SetText('Hello, sir. What can i do for you?')
        TalkText:SizeToContents()

        local DButton3 = vgui.Create('DButton')
        DButton3:SetParent(TalkFrame)
        DButton3:SetSize(350, 25)
        DButton3:SetPos(145, 140)
        DButton3:SetText('I would like to join the police force.')
        DButton3.DoClick = function()
            TalkFrame:Close()
            job_police_menu2()
        end

        local DButton4 = vgui.Create('DButton')
        DButton4:SetParent(TalkFrame)
        DButton4:SetSize(350, 25)
        DButton4:SetPos(145, 170)
        DButton4:SetText('Ehh... nothing. (close)')
        DButton4.DoClick = function()
            TalkFrame:Close()
        end
        
        ModelPanel = vgui.Create('DModelPanel', TalkFrame);
        ModelPanel:SetModel(Jobs[2]["model"]);
        
        ModelPanel:SetSize( 140, 160 )
        ModelPanel:SetPos(5, 190)
        ModelPanel:SetCamPos(Vector(14, 0, 62))
        ModelPanel:SetLookAt(Vector(-1, 0, 66))

NOTE: everything except DModelPanel is showing up and working properly

I have this problem too, Apparantly it only works if the size is a perfect square, at least it only worked for me, try setting it to 150 x 150 and see how it turns out

ok i will try

hmmm… try setting the model to the path you want instead of making it form an argument. if it doesn’t work, revert back to the argument, and try a perfect square

It works, thanks a lot
HeavyMtl123 why did you reply with something new when i said “ok i will try”?

Anouther question. How do i make it stop rotating?

Oh, I had something more to add, I guess I accidentally skipped your post, sorry D:

[editline]05:39PM[/editline]

But yeah, it’s a bitch when it will not let you use a size which isn’t a perfect square

ok well do you know how to make it stop rotating?

No I don’t, sorry, but i’ll look through the wiki see what I can find

[editline]05:48PM[/editline]

I havn’t tried this yet, but try using **[DModelPanel.SetAnimated

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=DModelPanel.SetAnimated)**