So im trying to ad some more InstructionalButtons to my ui.
I call this function
---@param button table
---@return nil
---@public
function UIMenu:AddInstructionButton(button)
print(button)
if type(button) == "table" and #button == 2 then
table.insert(self.InstructionalButtons, button)
end
end
When I send a Table like that
UIMenu:AddInstructionButton({ "INPUT_FRONTEND_LT", "Links drehen" })
UIMenu:AddInstructionButton({ "INPUT_FRONTEND_RT", "Rechts drehen" })
Then this error shows up. Screenshot - bcb717bef037b498917a528156b01395 - Gyazo
Default value from self.InstructionalButtons is {}