I don't need a picture in the button, it's enough if a name is there and the command is executed.
unfortunately, this command doesn't work in the "data.lua"
every time I start the game I get an error message with "attempt to index global' game' (a nil value)
Translated with http://www.DeepL.com/Translator
Code: Select all
game.players[1].gui.top.add{type = "button", caption = "My First Button", name = "ups-up-lite"}