# CFX::GET_INVOKING_RESOURCE

- **Hash:** `0x4D52FE5B`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetInvokingResource`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_INVOKING_RESOURCE

## Signature

```c
char* GET_INVOKING_RESOURCE();
```

## Returns

`char*`

## Usage

### Lua

```lua
local retval = GetInvokingResource()

-- always available, by hash
local retval = Citizen.InvokeNative(0x4d52fe5b, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetInvokingResource();

// by hash
const retval = Citizen.invokeNative('0x4d52fe5b', Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0x4d52fe5b);
```

*Sources: Cfx.re native reference.*
