Pivity

Armor Suit 6 Addon

Last read Never
#1

Hello guys, I recently started to do some coding with LUA in Gmod. I'm a newbie, like a NEW-newbie.

I have to face 2 challenges: When I do /dropsuit the player instantly drops the suit, but I want to add a delay of 5 seconds after doing /dropsuit.

Second one is: I want to add camouflage as a ability of the suit. I got absolutley no Idea how (https://steamcommunity.com/sharedfiles/filedetails/?id=308977650&searchtext=camouflage this is the addon I want to use the best thing would be if I could activate it with a button or atleast when I equip the suit I equip the SWEP aswell im frustrated af ;-;).


Guys ANY help is helpful if you have a solution PLEASE tell me im working on this for days now and I didnt achived my goal ;/

Thanks for reading

Have a great day! <3

#2
  1. you might wanna look up timer.simple and timer.Create
  2. Look at the code of the camouflage swep and try to understand so that you can reproduce it for your suits
Agree x 1
#3

I did that timer.simple thing but everything it did was that I couldn't pick the suit up anymore


timer.Simple( 5, function()

ply:removesuit


And I will do the second one, but do you have an idea how I can activate the ability with a button (B for example)?

Users viewing this thread
Nobody