> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# getloadedmodules

> Returns a new array table containing live entries from loaded module list. The optional excludeCore argument is read with optional boolean handling and defaults to true when omitted or nil. If excludeCore is true, entries whose instance is a descendant of core packages or CoreGui are skipped. Expired weak entries and locked stored references without a value are skipped. The function pushes each remaining entry with Instance cache at sequential array indexes starting at 1. The function does not check ClassName, does not sort the result, and does not walk the DataModel.

<div className="real-function-page">
  ```lua theme={null}
  getloadedmodules(excludeCore?: boolean): table
  ```

  ## Đối số

  <ParamField path={"excludeCore"} type={"boolean"}>
    Optional boolean. Omitted or nil uses true. When true, entries under core packages or CoreGui are excluded. Non-boolean values are rejected by luaL\_checkboolean.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"modules"} type={"table"}>
    New array table of pushed live entries from loaded module list.
  </ResponseField>
</div>
