bool setElementID(element element, string id)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The element. |
| id | string | The new id. |
Returns
true if it was set, false if the element came from the server and the function runs on a client.
Example
local spawn = createElement("spawnpoint")
setElementID(spawn, "lobby")
local found = getElementByID("lobby")