This is producing a LUA Error?


resource.AddWorkshop( '150404359' ) -- GMod Tower: Player Model Pack
resource.AddWorkshop( '148364870' ) -- [ Marked Incompatible ]  TTT Map Pack (20 maps)
resource.AddWorkshop( '534491717' ) -- ttt_rooftops_2016
resource.AddWorkshop( '157420728' ) -- ttt_waterworld
resource.AddWorkshop( '253297309' ) -- ttt_airbus_b3
resource.AddWorkshop( '131667838' ) -- ttt_community_bowling
resource.AddWorkshop( '154177743' ) -- ttt_aircraft_v1b
resource.AddWorkshop( '253328815' ) -- ttt_skyscraper
resource.AddWorkshop( '118623480' ) -- ttt_community_pool
resource.AddWorkshop( '254061379' ) -- ttt_ski_resort_a4
resource.AddWorkshop( '285096240' ) -- TTT Huge Map Pack #2
resource.AddWorkshop( '238855334' ) -- obama

Why is this producing a LUA error?
[ERROR] lua/autorun/resources.lua:1: attempt to call field ‘AddWorkshop’ (a nil value)

  1. unknown - lua/autorun/resources.lua:1

You are trying to call serverside only function on client…

Should I move this from /lua/autorun to /lua/autorun/server to fix the issue?

You shouldn’t be asking about things you can try in 1 second and see for yourself if it works.