> 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/native/invoke.md).

# Invoke

Invokes a native hash with the given arguments and coerces the return automatically: all-zero becomes false, vector results become `{x, y, z}` tables, readable pointers become strings, float bit patterns become numbers, otherwise integers. Off-thread calls marshal through the script thread with a 500 ms timeout.

## **Syntax**

```lua
refresh.Native.Invoke(hash, ...) -> Any
```

## **Return**

{% hint style="success" %}
Any (coerced return)
{% endhint %}

## Usage Example

```lua
local ped = refresh.Native.Invoke(0xD80958FC74E988A6)
```
