# CFX::GET_CURRENT_RESOURCE_NAME

- **Hash:** `0xE5E9EBBB`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetCurrentResourceName`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_CURRENT_RESOURCE_NAME

## Signature

```c
char* GET_CURRENT_RESOURCE_NAME();
```

## Returns

`char*` — The name of the resource.

## Description

*Source: Cfx.re native reference*

Returns the name of the currently executing resource.

## Usage

### Lua

```lua
local retval = GetCurrentResourceName()

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

### JavaScript

```js
const retval = GetCurrentResourceName();

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

### C#

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

*Sources: Cfx.re native reference.*
