# CFX::SCAN_RESOURCE_ROOT

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

## Signature

```c
void SCAN_RESOURCE_ROOT(char* rootPath, func callback);
```

## Parameters

- `rootPath` (`char*`) — The resource directory to scan.
- `callback` (`func`) — A callback that will receive an object with results.

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Scans the resources in the specified resource root. This function is only available in the 'monitor mode' process and is
not available for user resources.

## Usage

### Lua

```lua
ScanResourceRoot(rootPath, callback)

-- always available, by hash
Citizen.InvokeNative(0x636f097f, rootPath, callback)
```

### JavaScript

```js
ScanResourceRoot(rootPath, callback);

// by hash
Citizen.invokeNative('0x636f097f', rootPath, callback);
```

### C#

```csharp
Function.Call((Hash)0x636f097f, rootPath, callback);
```

*Sources: Cfx.re native reference.*
