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

# setnamecallmethod

> Replaces the current namecall method string when a current namecall method exists. The method argument must be a string. If no current namecall method exists, the call returns no values and does not create one. set_namecall_method is an alias.

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

  ## Alias

  * `set_namecall_method`

  ## Đối số

  <ParamField path={"method"} type={"string"} required>
    String used to replace the current namecall method when one exists.
  </ParamField>

  ## Ví dụ

  Replace L->namecall when a namecall atom already exists.

  ```lua theme={null}
  setnamecallmethod("FindFirstChild")
  print(getnamecallmethod())

  set_namecall_method("WaitForChild")
  print(get_namecall_method())
  ```
</div>
