---
title: "setnamecallmethod"
description: "Changes the current thread's namecall atom."
---

```lua
setnamecallmethod(method: string): ()
```

---

## Aliases

None.

---

## Arguments

<ParamField body="method" type="string" required>
  The case-sensitive metamethod or namecall method name.
</ParamField>

---

## Returns

This function returns no values.

Intended for a namecall context. This wrapper does not restore the prior atom automatically.

---

## Example

```lua
local method = getnamecallmethod()
if method then setnamecallmethod(method) end
```
