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

# getactorthreads

> تعيد array table من Luau threads من actor thread list. لا تأخذ function أي arguments. تقرأ actor list bounds من ScriptContext، وتمشي عبر كل actor state entry، وتفك تشفير stored global state إلى Luau thread، ولا تضيف إلا entries التي تكون valid threads.

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

  ## أسماء بديلة

  * `getactorstates`

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

  <ResponseField name={"threads"} type={"{thread}"}>
    Array table من actor Luau thread values التي يتم push لها كـ Luau threads.
  </ResponseField>

  ## مثال

  List Luau threads from the ScriptContext actor state list.

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