Need Help With a Menu

I can’t remember how to use lua tags…
Here is the code, I need a way to set player models with the menu, I can’t figure out how though.

[/lua]function Citizen_Menu()
local model = {}

model[1] = "models/player/hostage/hostage_01.mdl"
model[2] = "models/player/hostage/hostage_02.mdl"
model[3] = "models/player/hostage/hostage_03.mdl"
model[4] = "models/player/hostage/hostage_04.mdl"


local frame = vgui.Create("DFrame")
local IconList = vgui.Create( "DPanelList", frame ) 

frame:Center()
frame:SetSize(220,200)
frame:SetTitle("Player Models")
frame:MakePopup()

IconList:EnableVerticalScrollbar( true ) 
IconList:EnableHorizontal( true ) 
IconList:SetPadding( 4 ) 
IconList:SetPos(10,30)
IconList:SetSize(200, 160)

------------------------------------------------------------ Main Part I Need Help With-----------
for k,v in pairs(model) do
local icon = vgui.Create( “SpawnIcon”, IconList )
icon:SetModel( v )
IconList:AddItem( icon )
icon.DoClick = function( icon ) player:SetModel( “”, v ) end


end

end
concommand.Add( “citizenmodels”, Citizen_Menu )
[lua]

By the way I am using the wiki example for spawn icons…

you have the tags switched up, and you need to define LocalPlayer somewhere, as this script is clientside, so just do [lua]local player = LocalPlayer()[/lua] somewhere in that function