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

# getnamecallmethod

> يرجع current Luau namecall atom المخزن في the current namecall method. لا تأخذ function أي arguments وترجع exactly one value. إذا كان the current namecall method موجودا، وكان the current namecall method أكبر من 0، وكان the current namecall method non-null، تدفع ذلك data كـ string باستخدام string return. وإلا تدفع nil. لا تفحص function arguments، ولا تحسب method name من target object، ولا تستدعي أي metamethod. get_namecall_method هو alias لـ getnamecallmethod.

<div className="real-function-page">
  ```lua theme={null}
  getnamecallmethod(): string | nil
  ```

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

  * `get_namecall_method`

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

  <ResponseField name={"method"} type={"string | nil"}>
    Current the current namecall method data string عندما يكون موجودا و non-empty؛ وإلا nil.
  </ResponseField>

  ## مثال

  Read the current L->namecall string when Real is inside namecall handling.

  ```lua theme={null}
  local method = getnamecallmethod()
  print(method)

  local aliasMethod = get_namecall_method()
  print(aliasMethod)
  ```
</div>
