Garry's Mod

Garry's Mod

57 ratings
Spray Manager V2 for SprayMesh
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Realism
File Size
Posted
Updated
409.937 KB
15 Jul, 2019 @ 10:42pm
21 Mar, 2021 @ 2:16pm
10 Change Notes ( view )

Subscribe to download
Spray Manager V2 for SprayMesh

In 1 collection by Sony
SkrubsTTT Workshop Content 2023
24 items
Description
Spray Manager for SprayMesh
Just a simple addon I made that adds a UI that works with SprayMesh to allow users to manage their image collection without having to constantly copy/paste links into console.

New V2 update!
I noticed over 1000 people are using this addon now so I felt I needed to redesign the UI so it doesn't look like complete a** anymore!
The new system uses Bull's HTML draw library so you can see thumbnail images in the list now.
There's even a random spray button for if you're one of those people that adds 400 sprays and can't decide which to use.

Let me show you its features!

- Super simple setup:
Just copy a direct image link into the appropriate box, give it a name and short description to help you find it later and you're done!

- Quick and convenient usage:
Want to change your SprayMesh image quickly?
Just type /sprays into chat, select a new image from your collection and you're good to go.
It takes a matter of seconds and doesn't require you to tab out of the game.

- Very light on servers:
None of the sprays are actually stored on the server.
In fact, 99% of this addon is clientside, so even if your users have a massive collection of images it won't slow your server down at all!

- Search function:
Speaking of a massive collection of images, nobody likes wearing out their scroll wheel trying to find the right meme in a long menu.
The handy-dandy search bar at the bottom of the UI has you covered. It even searches through image descriptions so if you can't quite remember what you called your spray you can still find it.

- Cross-server collections:
Nobody wants to sit there re-adding all their sprays every time they change server.
If the server is running this addon, your image collection will be there for you.

- Spray trading:
Got an image in your collection you want to share with a friend?
Just right-click it in your library and send it to them directly without having to tab out of the game or copy/paste anything!


Search bar demo

FAQ:
How do I use it?
Type /sprays in chat and go from there.

How to I add a new image to my collection?
Open the menu with /sprays and click the icon in the top right.

I messed up, how do I delete something from my collection?
Right click the entry in the /sprays menu and press delete.

Do I need SprayMesh installed on my server for this to work?
Yes, obviously.

I've got errors everywhere and my cat is on fire!
I'm sorry to hear that. Drop me a comment with the error message and I'll see if I can fix it.

----

Server owners
This addon does not add any kind of automatic chat announcements, because they're annoying.
So you will have to manually add some way to let players know to use /sprays.

----

To those more scripting inclined:
I whipped this monstrosity up one morning at 3AM, and I wasn't particularly good at lua to begin with, so I'd like to apologise in advance for how sloppy my code is.

Credits!
As mentioned before this addon's UI wouldn't be nearly as cool without Bull 92's UI library that they generously made freely acquirable on their GitHub[github.com]. Thank you!

If you have any improvements or suggestions for how I can make this addon better please feel free to let me know!
13 Comments
MelonHead269 5 Feb, 2023 @ 1:04pm 
this would be awesome if you could use the sprays you have downloaded on your computer
Onion 27 Nov, 2022 @ 6:28pm 
Just noticed I needed the required addon @Sony, thanks for replying!
Sony  [author] 27 Nov, 2022 @ 5:49pm 
@Onion Does the server have the SprayMesh addon installed?
This is only a UI for SprayMesh, and doesn't do much on its own.
Onion 27 Nov, 2022 @ 2:42pm 
when I spray the image I loaded it doesnt show and the standard gmod spray comes out..
mailonthis 31 Oct, 2021 @ 2:23pm 
Have an above average next 24 hours of your life...
Raylito 12 Jan, 2021 @ 6:20pm 
@Sony Thank You ;)
Sony  [author] 11 Jan, 2021 @ 6:28pm 
@Raylight You can bind a key to the command 'sony_spraymenu' to open the UI without typing anything.
Raylito 11 Jan, 2021 @ 5:15pm 
How do I assign a key to open that spray window without having to type the command?
dickhead_penguin@w.alley 7 Oct, 2020 @ 3:49pm 
@Saint Baron many thanks, appreciate it
Saint Baron 23 Aug, 2020 @ 3:27pm 
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