Quick question relating to Resource.addfile

I run a DarkRP server, and a scoreboard mod I am using requires me to use Resource.addfile to ensure a client receives a small image. What file, or a new file where, would I add this to so that it works, and clients download the image?

Go to garrysmod/lua/autorun/server/ and make a file called downloads.lua. In there type this:[lua]
if SERVER then
resource.AddFile( “materials/path/to/your/icon.png” )
end[/lua]
Of course you would have to change the file path.

Remove the if SERVER then and end. Why would you have those if you’re putting it in autorun/server?

Thanks guys.