• f4 menu help
    3 replies, posted
im getting this error [ERROR] lua/vgui/spawnicon.lua:104: bad argument #1 to 'SetModel' (string expected, got table) SetModel - [C]:-1 SetModel - lua/vgui/spawnicon.lua:104 Init - addons/vomptof4/lua/vgui/cs_f4_menu.lua:236 Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37 func - addons/vomptof4/lua/autorun/shared.lua:21 unknown - lua/includes/extensions/net.lua:32 line 236 if util.IsValidModel( v.model[1] ) then local models = vgui.Create( "SpawnIcon", jobsbackground) models:Dock(LEFT) models:SetSize( 150, 50 ) models:DockMargin( 5, 5, 5, 5 ) models:SetModel(v.model[1]) else local models = vgui.Create( "SpawnIcon", jobsbackground) models:Dock(LEFT) models:SetSize( 150, 50 ) models:DockMargin( 5, 5, 5, 5 ) models:SetModel(v.model) <- line 236 end
Can you show us the result of this code? PrintTable(v.model) (Put it on line 235)
so it giving another server an error not my server?
Uhh, I don't know what you mean by that but check what appears in your console when you run that piece of code and paste it here.
Sorry, you need to Log In to post a reply to this thread.