getElementInterior | Multi Theft Auto: Wiki Skip to content

getElementInterior

Client-side
Server-side
Shared

Pair: setElementInterior

This function allows you to retrieve the interior of any element. An interior is the current loaded place, 0 being outside.

OOP Syntax Help! I don't understand this!

  • Method:element:getInterior(...)
  • Variable: .interior

Syntax

int|false getElementInterior ( ​element theElement )
Required Arguments
  • theElement: The element of which you'd like to retrieve the interior.

Returns

  • int|false: interior

Returns an int for the interior if element is valid, false otherwise.

Code Examples

client
OOP Required
addCommandHandler('int', function(cmd)
outputChatBox('Your current interior: '..localPlayer.interior)
end)

See Also

Element Functions