- Documentation
- Server events
- onElementInteriorChange
Event
onElementInteriorChange
An element moved to another interior.
Handler
addEventHandler("onElementInteriorChange", root, function(oldInterior, newInterior) ... end)Parameters
oldInteriorint- Old interior.
newInteriorint- New interior.
Source
source is the element.
Example
addEventHandler("onElementInteriorChange", root, function(old, new)
if getElementType(source) == "player" and new == 0 then outputChatBox("Jesteś na zewnątrz", source) end
end)