[Expression2] How to use set name with a changing value?

I have this little music player E2, and I want to use setName to have the name of the E2 change to whatever string “Filename” is.

I’ve tried - setName(“Now playing” Filename)

But that doesn’t seem to work, any suggestions? I’ve seen it done before, I just don’t know how to do it myself

PS- My motive behind this is that some filenames are too long to be shown on wire text screens properly.



setName("Now playing: " + Filename)


This would be one of the first things you learn when using E2, you should really look at some tutorials for it.

Also on a side note, you should use the Wiremod forums instead as you’ll get better answers over there, as well as this forum is meant for Gmod development.

Thanks!