[1.1.0/1.1.1] LuaGuiElement::text doesnt accept numbers
Posted: Thu Nov 26, 2020 12:06 pm
Hey,
if you run these two commands:
You get the error:
Greetz,
Luzifer
if you run these two commands:
Code: Select all
/c game.player.gui.screen.add{type = "textfield", name = "test", text = 1}Code: Select all
/c game.player.gui.screen.test.text = 5But whats funny is, that when creating the element it accepts a number.Cannot execute command. Error: (command): 1: bad argument #1 of 2 '__newindex' (string expected, got number)
Greetz,
Luzifer