`Custom SpawnMenu Issue

Hello there,

I’m currently attempting to create a custom Spawnmenu for my custom SpawnGun. For some reason the props dont show up in the list, and it looks like this: :frowning:

Here is the Lua Code for my script:




if (CLIENT) then
AddCSLuaFile("SmartSpawn.lua")

function Initialize()
DermaPanel = vgui.Create( "DFrame" ) -- Creates the frame itself
DermaPanel:SetPos( 50,50 ) -- Position on the players screen
DermaPanel:SetSize( 1000, 900 ) -- Size of the frame
DermaPanel:SetTitle( "SmartGunMenu" ) -- Title of the frame
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true ) -- Draggable by mouse?
DermaPanel:ShowCloseButton( true ) -- Show the close button?
DermaPanel:MakePopup() -- Show the frame
local PropertySheet = vgui.Create( "DPropertySheet" )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )

    Fill()
    end

function Fill()
ModelList= spawnmenu.GetPropTable()

    for k, v in pairs( ModelList ) do
    PropCategory = vgui.Create( "DCheckBoxLabel" )
    PropCategory:SetText("Use Props?")
    PropCategoryList:SetConVar("some_convar")
    PropCategoryList:SetValue(k)
         PropertySheet:AddSheet( "Some Menu", CategoryList, "gui/silkicons/user", false, false, "WOW It's a text box!!!" )
        
                for i, model in pairs( v ) do
                    self:AddCategoryModel( PropertySheet, model )
        end

end
end
concommand.Add("SmartGunMenu", (Initialize))

end


What am I doing wrong?