- Documentation
- Client functions
- guiCreateMemo
Function
guiCreateMemo
Creates a multi-line text field.
Syntax
gui-memo guiCreateMemo(float x, float y, float width, float height, string text, bool relative [, element parent = nil])Arguments
xfloat- X position.
yfloat- Y position.
widthfloat- Width.
heightfloat- Height.
textstring- Initial text.
relativebool- Relative values.Optional in MTA:SA: bool relative = false
parentelement, optional = nil- Parent.
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
guiCreateMemo(float x, float y, float width, float height, string text, bool relative = false, gui-element parent = nil)Returns
The field.
Example
local win = guiCreateWindow(100, 100, 420, 300, "Zasady", false)
local memo = guiCreateMemo(10, 35, 400, 255, "1. Szanuj innych.\n2. Bez cheatów.\n3. Baw się dobrze!", false, win)
guiMemoSetReadOnly(memo, true)