DxGUI/dxGetSize

From Multi Theft Auto: Wiki
Revision as of 14:30, 16 August 2012 by Kacper Karer (talk | contribs) (Created page with "==Syntax== <syntaxhighlight lang="lua"> float w, float h dxGetSize (element dxElement, [bool relative = false]) </syntaxhighlight> ===Required Arguments=== *'''dxElement:''' A dxGUI element. <!-- Only...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

float w, float h  dxGetSize (element dxElement, [bool relative = false])

Required Arguments

  • dxElement: A dxGUI element.

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • relative: This is whether sizes and positioning are relative. If this is true, script give relative w,h.

Returns

  • w: An element width
  • h: An element height