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

> Retorna o current Luau namecall atom armazenado em the current namecall method. A function nao recebe arguments e retorna exactly one value. Se the current namecall method existe, the current namecall method e maior que 0 e the current namecall method e non-null, ela faz push desses data como string com string return. Caso contrario, faz push de nil. A function nao inspeciona arguments, nao calcula um method name a partir de um target object e nao chama nenhuma metamethod. get_namecall_method e um alias para getnamecallmethod.

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

  ## Aliases

  * `get_namecall_method`

  ## Retornos

  <ResponseField name={"method"} type={"string | nil"}>
    Current the current namecall method data string quando presente e non-empty; caso contrario nil.
  </ResponseField>

  ## Exemplo

  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>
