Code: Select all
bad argument #3 of 3 to 'draw_text' (number expected, got table)
So..it's probably the position? But why does it say "number expected" then.Table with the following fields:
text :: LocalisedString: The text to display.
surface :: SurfaceSpecification
target :: Position or LuaEntity
So it would be kinda nice if the messages contained some more information. (Or at least mention somewhere in the doc how argument numbers map to documented arguments (i guess it's the count of mandatory args?)).
Have a nice weekend.