# CFX::GET_RESOURCE_PATH

- **Hash:** `0x61DCF017`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetResourcePath`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_RESOURCE_PATH

## Signature

```c
char* GET_RESOURCE_PATH(char* resourceName);
```

## Parameters

- `resourceName` (`char*`) — The name of the resource.

## Returns

`char*` — The resource directory name, possibly without trailing slash.

## Description

*Source: Cfx.re native reference*

Returns the physical on-disk path of the specified resource.

## Usage

### Lua

```lua
local retval = GetResourcePath(resourceName)

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

### JavaScript

```js
const retval = GetResourcePath(resourceName);

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

### C#

```csharp
string retval = Function.Call<string>((Hash)0x61dcf017, resourceName);
```

*Sources: Cfx.re native reference.*
