# Event Start

#### Description

This event is triggered when an event starts, such as an Airdrop, Patrol Helicopter, Chinook, Cargo Ship or Special Event (Halloween, Christmas, etc)

#### Parameters

```typescript
{ server: IServer, event: string, special: boolean }
```

#### Example

{% tabs %}
{% tab title="TypeScript" %}

```javascript
import { RCEEvent, type IEventStartEventPayload } from "rce.js";

// ...

rce.on(RCEEvent.EventStart, (payload: IEventStartEventPayload) => {
    console.log(`The "${payload.event}" event has started in ${payload.server.identifier}`);
});
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const { RCEEvent } = require("rce.js");

// ...

rce.on(RCEEvent.EventStart, (payload) => {
    console.log(`The "${payload.event}" event has started in ${payload.server.identifier}`);
});
```

{% endtab %}
{% endtabs %}
