set visiblility to whole server?

hi im still new at this these things, i want to make a game server and the weapons i have equipted on the character are set to invisible but i want to make it so whenever i have the 2 key pressed the weapon is made visible for the whole server to see, this is the command i have right now thx in advance ,