After the recent gmod update, the DModelPanel no longer works for me? I'm not getting any lua errors, but the model is not showing.
[code]
local icon = vgui.Create( "DModelPanel", PrimaryWeaponFrame )
icon:SetSize( 200,200 )
icon:SetPos(-53,-10)
icon:SetModel( "models/player/slow/tau_commander/slow_tau_commander.mdl" )
[/code]
This code worked before the update. I even tried with a standard gmod blue barrel. That does not show either.
Well im not sure why you are setting the position so far into the negatives, maybe that's why? If you are trying to set the position of the model and not the DModelPanel i would strongly suggest using icon:SetCamPos instead (it takes a vector).
[QUOTE=G4MB!T;45366212]Well im not sure why you are setting the position so far into the negatives, maybe that's why? If you are trying to set the position of the model and not the DModelPanel i would strongly suggest using icon:SetCamPos instead (it takes a vector).[/QUOTE]
Even changing them both to 0 did not fix the problem. It does still not show.
I haven't witnessed any problems since the update so I can't help unfortunately. What model are you using?
I have no issues with my DModelPanel, so try using the SetCamPos instead as thats what i use and it works fine. Also i believe that you are just sending the camera to far out and that you should use positive values.
Sorry, you need to Log In to post a reply to this thread.