heres a short example of what im trying to do.
[lua]local Veh = vgui.Create(“DModelPanel”);
// setpos and whatever
Veh.Entity:SetColor(Color(255, 0, 0));[/lua]
it doesnt error but it doesnt work either.
i was going over the code for the dmodelpanel and i think this might have something to do with
[lua]self.Entity = ClientsideModel( strModelName, RENDER_GROUP_OPAQUE_ENTITY )[/lua]
the render group part?
im not completely sure so any help would be much appreciated.