Clientside Menu problem

  • Hey folks,

    i just tried to make a simple inventory script by sending JSON data to the client for a dynamic menue. The problem i have is that when i use the stuff static it will work. When i create Menuitems with a for loop the buttons wont work. Just check out my code. Maybe i did it the wrong way.

    Thanks for your help!