- Documentation
- Shared functions
- getElementID
Function
getElementID
Returns the element's text ID.
Syntax
string getElementID(element theElement)Arguments
theElementelement- The element.
Returns
The ID (empty when none).
Example
for _, obj in ipairs(getElementsByType("object")) do
if getElementID(obj) ~= "" then
outputServerLog(getElementID(obj))
end
end