
Zitat von
Pac_187
Du müsstest hier schon deinen jetzigen Code reinstellen.
Wir haben keine Glaskugel oder jeglichen Zugriff auf deinen PC

LOL nicht? 
cl_furniture_spawn.lua
Code:
include ("init.lua")
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,150 )
DermaPanel:SetSize( 700, 500 )
DermaPanel:SetTitle( "Spawn Furnitures" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
local DermaButton = vgui.Create( "DButton" )
DermaButton:SetParent( DermaPanel )
DermaButton:SetText( "Table" )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function ()
SpawnTable()
end
init.lua
Code:
local tr = self.Owner:GetEyeTrace()
function SpawnTable()
local table = ents.Create("prop_physics")
table:SetModel("models/props_c17/FurnitureTable002a.mdl")
table:SetPos(tr.HitPos)
table:Spawn()
end