# Callback `[Client]`

A module to use callback module client side.

## JO Functions

### jo.callback.register()

A function to register a client callback <br>

#### Syntax

```lua
jo.callback.register(name, cb)
```

#### Parameters

`name` : _string_
> The name of the callback event
>

`cb` : _function_
> The function executed when the callback is triggered
>

---

### jo.callback.triggerClient()

A function to trigger a client callback <br>

#### Syntax

```lua
jo.callback.triggerClient(name, cb, ...)
```

#### Parameters

`name` : _string_
> The name of the callback event
>

`cb` : _function|nil_ `[Optional]`
> Function to receive the result of the event
>

`...` : _mixed_ `[Optional]`
> The list of parameters to send to the callback event
>

---

### jo.callback.triggerServer()

A function to trigger a server callback <br>

#### Syntax

```lua
jo.callback.triggerServer(name, cb, ...)
```

#### Parameters

`name` : _string_
> Name of the callback event
>

`cb` : _function_ `[Optional]`
> Function to receive the result of the event
>

`...` : _mixed_ `[Optional]`
> The list of parameters to send to the callback event
>
