# SMusicDirectory

**Members** 4

|          |                                 |   |
| -------- | ------------------------------- | - |
| Function | [GetTop100](#gettop100)         | – |
| Function | [GetGenreList](#getgenrelist)   | – |
| Function | [SearchByGenre](#searchbygenre) | – |
| Function | [SearchByText](#searchbytext)   | – |

## Functions

### GetTop100

void GetTop100(Closure onLoad)

Parameters

| Name   | Type    | Default |
| ------ | ------- | ------- |
| onLoad | Closure | –       |

Returns

`void`

Example

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```

### GetGenreList

void GetGenreList(Closure onLoad, int parentId = 0)

Parameters

| Name     | Type    | Default |
| -------- | ------- | ------- |
| onLoad   | Closure | –       |
| parentId | int     | 0       |

Returns

`void`

Example

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```

### SearchByGenre

void SearchByGenre([SGenre](/docs/scripting/client-scripting-api-reference/types/sgenre.md) genre, Closure onLoad)

Parameters

| Name   | Type                                                                     | Default |
| ------ | ------------------------------------------------------------------------ | ------- |
| genre  | [SGenre](/docs/scripting/client-scripting-api-reference/types/sgenre.md) | –       |
| onLoad | Closure                                                                  | –       |

Returns

`void`

Example

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```

### SearchByText

void SearchByText(string search, Closure onLoad)

Parameters

| Name   | Type    | Default |
| ------ | ------- | ------- |
| search | string  | –       |
| onLoad | Closure | –       |

Returns

`void`

Example

**Lua**

```lua
example 1

```

**Lua**

```lua
example 2

```
