makeing a weapon use a concel code

like if i wanted a weapon to use the concel code “kill” what would i put in the lua to do so?

like if i want it so my alt fire useing concel command “kill”

But for killing the player,


would seem like a better way.

thank you im going to test this to see if it works

also i want to know a lua command that flashes the screen white for all players on the sever for like half a second.

edit: it broke my weapon its not there anymore

any other thing?

Post your code & any errors in your console, otherwise nobody can diagnose problems.

I think this would fill the screen w/ white:

draw.RoundedBox( 2, 0, 0, ScrW(), ScrH(), Color( 255, 255, 255, 255 ) )

I guess you could hook it to hudpaint

And you could use a timer with that, perhaps replacing the color’s alpha with a gradually decreasing variable if you want it to fade out (like a flashbang). I’m sure there are other ways to do it too

Just to note its Console not concel

Simple typo but I didnt make the same mistake three times did I ?


forgot to put the number behind it lol