[ERROR] lua/vgui/dmodelpanel.lua:54: bad argument #1 to 'ClientsideModel' (string expected, got ni

Hello there. I been making a script and i have a table that contains the model. But i keep getting this error:

[ERROR] lua/vgui/dmodelpanel.lua:54: bad argument #1 to ‘ClientsideModel’ (string expected, got nil)

[LUA]
TRAILERRENT_STARTTIME = 1800
TRAILERRENT_STARTTIMEM = “30 minutes”
TRAILERRENT_ADDTIME = 1800
TRAILERRENT_ADDTIMEM = “30 minutes”
TRAILERRENT_PRICE = 150

TrailerList = {}

TrailerList[1] = {
Name = “Profiliner Trailer”,
Colour = Color( 255, 255, 255 ),
Model = “models/lonewolfie/trailers/trailer_profiliner.mdl”,
Price = 8000,
SpawnVector = Vector(-928.450928, 670.532166,-139.968750)
}

TrailerList[2] = {
Name = “Trailer two”,
Model = “models/props_interiors/Furniture_Couch01a.mdl”,
Price = 8000,
SpawnVector = Vector(-928.450928, 670.532166,-139.968750)
}
[/LUA]

[LUA]
for _,v in pairs(TrailerList) do
local v = vgui.Create( “DModelPanel”, Frame )
v:SetSize( 200, 200)
v:SetPos( 50, savepos )
v:SetModel( v.Model )
savepos = savepos + 100
end
[/LUA]

[del]print(v.Model) before setting it. Somewhere you are giving it a nil, not a string.[/del]

I am blind.

No it’s not that, he’s overriding the v defined in the loop with the v that holds the panel reference (not really overriding, but it’s simplier to say it this way), just call the local variable something else or it’ll keep conflicting.

Yea, I saw it right after the post x)
Sorry!