# Events

{% hint style="warning" %} <mark style="color:orange;">**INFO**</mark>: In order to use client side events, you need to have **`Config.UseClientEvents`** set to **`true`**
{% endhint %}

## Client Side

<details>

<summary>useNaturalSeed</summary>

```lua
TriggerEvent('pls_weed:useNaturalSeed')
```

***

*Using this event, you will place seed in grass or allowed grass object.*

</details>

<details>

<summary>usePlot</summary>

```lua
TriggerEvent('pls_weed:usePlot')
```

***

*Using this event you can force place a plot on ground.*

</details>

<details>

<summary>useFan</summary>

```lua
TriggerEvent('pls_weed:useFan')
```

***

*Using this event you can force use fan tool.*

</details>

<details>

<summary>useLight1</summary>

```lua
TriggerEvent('pls_weed:useLight1')
```

***

*Using this event you can force use small light.*

</details>

<details>

<summary>useLight2</summary>

```lua
TriggerEvent('pls_weed:useLight1')
```

***

*Using this event you can force use industrial light.*

</details>

## Server side

{% hint style="danger" %} <mark style="color:red;">**WARNING**</mark>**:** All **`source`** params need to be defined
{% endhint %}

{% hint style="danger" %} <mark style="color:red;">**WARNING**</mark>**:** This event's is client sided, consider it as examples how to use on server side
{% endhint %}

{% hint style="info" %} <mark style="color:blue;">**INFO**</mark>**:** All of this events has never been tested, use at own <mark style="color:red;">**risk**</mark>!
{% endhint %}

<details>

<summary>useNaturalSeed</summary>

```lua
TriggerClientEvent('pls_weed:useNaturalSeed', source)
```

***

*Using this event, you will place seed in grass or allowed grass object.*

</details>

<details>

<summary>usePlot</summary>

```lua
TriggerClientEvent('pls_weed:usePlot' source)
```

***

*Using this event you can force place a plot on ground.*

</details>

<details>

<summary>useFan</summary>

```lua
TriggerClientEvent('pls_weed:useFan', source)
```

***

*Using this event you can force use fan tool.*

</details>

<details>

<summary>useLight1</summary>

```lua
TriggerClientEvent('pls_weed:useLight1', source)
```

***

*Using this event you can force use small light.*

</details>

<details>

<summary>useLight2</summary>

```lua
TriggerClientEvent('pls_weed:useLight1', source)
```

***

*Using this event you can force use industrial light.*

</details>
