Skip to content

Control:GetLocation

OliverF edited this page Feb 25, 2014 · 1 revision

Gets the location of the control.

Syntax

number,number control:GetLocation()

Returns

  1. number
    X coordinate of location in pixels
  2. number
    Y coordinate of location in pixels

Example

local label = RSAS.GUI.Control("label", "myLabelID")
label:SetLocation(10, 10)
local x,y = label:GetLocation()

Clone this wiki locally