Garry's Mod

Garry's Mod

242 ratings
SprayMesh
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Movie
File Size
Posted
Updated
0.008 MB
Feb 16, 2015 @ 10:11pm
Sep 30, 2015 @ 3:02pm
25 Change Notes ( view )

Subscribe to download
SprayMesh

Description
Now your server's players can have sprays again! And BETTER!
If you didn't know, having sv_allowupload and sv_allowdownload on are security holes. Malicious players can gain access to any custom files you have, such as your server.cfg, and can even upload things to your server.
So, if you haven't already, you should set these to 0. This breaks default gmod sprays!

This addon replaces default sprays with a safe version. You should still set the two server convars to 0.
This addon lets your players easily use URLs for images. It creates a map-conforming mesh to display the sprays on. This does not hurt anyone's framerate (with special options for really bad PCs). This supports videos, such as webm, gifv, and even youtube URLs (which are muted).

All you have to do is add this workshop item to your server, or subscribe if you're a user wanting this for singleplayer.
This overrides the spray bind to create a SprayMesh, and informs users how to use it!

http://facepunch.com/showthread.php?t=1451605

Update (August 2016): At this time, Imgur is converting all videos to mp4 instead of webm (masked by the "gifv" extension). The Source engine won't let me use MP4 videos for sprays. The workaround is to download the video off imgur, then go to gfycat.com to upload it. Gfycat will make you a webm URL to use with this mod.
Popular Discussions View All (7)
17
May 12 @ 10:59am
hello
Linus Let Tips
1
Sep 26, 2019 @ 9:00pm
Gif spray stays invisible
mehga mayn! ;hotelmario;
2
Aug 23, 2016 @ 9:04am
Halp!
Drawing Pad
< >
147 Comments
Ranch Jan 14 @ 3:24am 
This addon is great! However, one issue I have is that URLs from ImgBB specifically don't seem to want to work. I made sure I was using a direct spray URL and that the format was compatible, but it only seems to work from imgur, which I unfortunately don't tend to use.
Saint Baron Nov 18, 2020 @ 4:41am 
@Grace everyone has to switch to it for it to work. It is the only solution as the HTML rendering is clientside, not serverside.
mavis Nov 10, 2020 @ 4:09pm 
His suggestion works but not on servers, everyone would have to switch to x86-64
Bletotum  [author] Nov 7, 2020 @ 10:40pm 
try out saint B's suggestion for how to make it work; it's not something that i can fix
but you have to delete the .gma file in your addon directory after unsubscribing on the steam workshop, to remove it
Terence loves @d3adpann Oct 17, 2020 @ 9:01pm 
How do i get rid of this sh!t i can't use any of my regular sprays, also it never worked.
Saint Baron Aug 28, 2020 @ 11:39am 
Yeah I spent literally 10 hours going through the code to see if something regarding render or imesh was deprecated/altered, only to realise that it was something to do with something changing regarding html that wasn't even in the update log.
Bletotum  [author] Aug 27, 2020 @ 2:49pm 
Thanks Saint B! I haven't had the time to get back into gmod development, but I did see that it was broken and simply had no idea why besides that a gmod update was related.
Saint Baron Aug 23, 2020 @ 3:26pm 
FOR THOSE WISHING TO FIX SPRAYMESH: Go into your gmod properties on Steam, and under the "Betas" section, change your version to "x86-64 - Chromium + 64-bit binaries". This will not break anything and will fix any issues with this and another addons that use HTML
 Brota  May 1, 2020 @ 12:37pm 
i think this is broken. it was working last time I played (maybe a month-ish ago) and now sprays just dont show up anymore.
mavis Apr 28, 2020 @ 9:38pm 
This has broken with the new update