> ## 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.

# getactors

> Zwraca array table live Actor Instances rozwiązanych z ScriptContext actor thread list. Function nie przyjmuje arguments. Przechodzi przez actor thread list, odszyfrowuje każdy actor Lua state, zachowuje entries będące valid threads, a następnie odczytuje thread data i the associated Actor weak reference każdego thread. Tylko non-expired actor references są wypychane jako Instances. Entries bez container, bez Actor reference, z reference count <= 0 albo z expired actor reference są pomijane.

<div className="real-function-page">
  ```lua theme={null}
  getactors(): {Instance}
  ```

  ## Zwroty

  <ResponseField name={"actors"} type={"{Instance}"}>
    Array table Actor Instances, których actor weak references są nadal valid.
  </ResponseField>

  ## Przykład

  List live Actor Instances resolved from actor threads.

  ```lua theme={null}
  for _, actor in ipairs(getactors()) do
      print(actor)
  end
  ```
</div>
