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

> Retourne le current Luau namecall atom stocke dans the current namecall method. La function ne prend aucun arguments et retourne exactly one value. Si the current namecall method existe, que the current namecall method est superieur a 0 et que the current namecall method est non-null, elle pousse ces data comme string avec string return. Sinon, elle pousse nil. L function n inspecte pas les arguments, ne calcule pas un method name depuis un target object, et n appelle aucune metamethod. get_namecall_method est un alias de getnamecallmethod.

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

  ## Alias

  * `get_namecall_method`

  ## Retours

  <ResponseField name={"method"} type={"string | nil"}>
    Current the current namecall method data string quand il est present et non-empty; sinon nil.
  </ResponseField>

  ## Exemple

  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>
