function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("getinterior", function()
local interior = getActiveInterior()
sampAddChatMessage("Interior ID: " .. interior, -1)
end)
wait(-1)
end