- Documentation
- Client functions
- guiSetSize
Function
guiSetSize
Resizes a control. Fires onClientGUISize.
Syntax
bool guiSetSize(element guiElement, float width, float height, bool relative)Arguments
guiElementelement- The control.
widthfloat- Width.
heightfloat- Height.
relativebool- Relative values.Optional in MTA:SA: bool relative = false
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
guiSetSize(gui-element guiElement, float width, float height, bool relative = false)Returns
true on success.
Example
guiSetSize(win, 500, 400, false)