Color Rope Tool

I have limited LUA knowledge, and will be researching while i wait for your input, but I’m looking to basically add on a color selection box to change the rope color. The wire tool has this same system and i was able to add the color box to the rope tool but i don’t know how to make GMod itself implement it on the actual rope.

If its something quick and you wouldn’t mind doing it, thats ideal and i thank you in advance, you could have any and all credit.
Otherwise, if you could point me in the direction of the files i should edit and look at, i can hopefully read the LUA wiki and figure it out from there.