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

> the current namecall method에 저장된 current Luau namecall atom을 반환합니다. 이 function은 arguments를 받지 않고 exactly one value를 반환합니다. the current namecall method이 존재하고, the current namecall method이 0보다 크며, the current namecall method가 non-null이면 해당 data를 string return으로 string으로 push합니다. 그렇지 않으면 nil을 push합니다. function은 arguments를 검사하지 않고, target object에서 method name을 계산하지 않으며, metamethod를 호출하지 않습니다. get_namecall_method는 getnamecallmethod의 alias입니다.

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

  ## 별칭

  * `get_namecall_method`

  ## 반환값

  <ResponseField name={"method"} type={"string | nil"}>
    존재하고 non-empty일 때 current the current namecall method data string; 그렇지 않으면 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>
