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

> Zwraca current Luau namecall atom przechowywany w the current namecall method. Function nie przyjmuje arguments i zwraca exactly one value. Jesli the current namecall method istnieje, the current namecall method jest wieksze niz 0 i the current namecall method jest non-null, pushuje te data jako string przez string return. W przeciwnym razie pushuje nil. function nie sprawdza arguments, nie oblicza method name z target object i nie wywoluje zadnej metamethod. get_namecall_method jest alias dla getnamecallmethod.

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

  ## Aliasy

  * `get_namecall_method`

  ## Zwroty

  <ResponseField name={"method"} type={"string | nil"}>
    Current the current namecall method data string, gdy istnieje i jest non-empty; w przeciwnym razie nil.
  </ResponseField>

  ## Przykład

  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>
