string getElementID(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element to read. |
Returns
The ID, or an empty string if the element has none.
Example
for _, object in ipairs(getElementsByType("object", resourceRoot)) do
outputDebugString(getElementID(object))
end