ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onElementInteriorChange

Event

onElementInteriorChange

ServerElementsIdentical to MTA:SA

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)

See also