> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/scripting/restore-native.md).

# Restore Native

Restores a hooked native to its previous handler. Returns true when a hook existed. Cheat-owned natives are refused.

## **Syntax**

```lua
refresh.Scripting.RestoreNative(hashOrName) -> Boolean
```

## **Return**

{% hint style="success" %}
Boolean (restored)
{% endhint %}

## Usage Example

```lua
refresh.Scripting.RestoreNative("GetPlayerName")
```
