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

> Tra ve current Luau namecall atom duoc luu trong the current namecall method. Function khong nhan arguments va tra ve exactly one value. Neu the current namecall method ton tai, the current namecall method lon hon 0, va the current namecall method la non-null, no push data do thanh string bang string return. Neu khong, no push nil. function khong inspect arguments, khong tinh method name tu target object, va khong goi metamethod nao. get_namecall_method la alias cua getnamecallmethod.

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

  ## Alias

  * `get_namecall_method`

  ## Giá trị trả về

  <ResponseField name={"method"} type={"string | nil"}>
    Current the current namecall method data string khi co va non-empty; neu khong nil.
  </ResponseField>

  ## Ví dụ

  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>
