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

> تعيد array table من live Actor Instances المحلولة من ScriptContext actor thread list. لا تأخذ function أي arguments. تمشي عبر actor thread list، وتفك تشفير كل actor Lua state، وتبقي entries التي تكون valid threads، ثم تقرأ thread data و the associated Actor weak reference لكل thread. يتم push فقط للـ non-expired actor references كـ Instances. يتم تخطي entries بدون container، أو بدون Actor reference، أو مع reference count <= 0، أو مع expired actor reference.

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

  ## القيم الراجعة

  <ResponseField name={"actors"} type={"{Instance}"}>
    Array table من Actor Instances التي لا تزال actor weak references الخاصة بها valid.
  </ResponseField>

  ## مثال

  List live Actor Instances resolved from actor threads.

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