Causeway and lua for city plot resource detection