isElementLocal
Client
Tells whether an element was created by this client rather than by the server.
bool isElementLocal(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element. |
Returns
true if the element belongs to this client, false if it came from the server.
Example
for _, object in ipairs(getElementsByType("object")) do
if isElementLocal(object) then
destroyElement(object)
end
end