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:SetTitle("Player Models")

IconList:EnableVerticalScrollbar( true ) 
IconList:EnableHorizontal( true ) 
IconList:SetPadding( 4 ) 
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


concommand.Add( “citizenmodels”, Citizen_Menu )

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