# Gardener

{% hint style="warning" %}
**Make sure to add the necessary items, item images and job names required for the job**
{% endhint %}

***

* <mark style="background-color:yellow;">**\["name"]:**</mark> It is the label that will appear in menus or notifications.
* The <mark style="background-color:yellow;">**\[‘menu’]**</mark> variable consists of things related to the location from which the job is to be retrieved
  * <mark style="background-color:orange;">\["job\_menu"]:</mark> <mark style="color:yellow;">@vector3</mark> Accepts. The menu access location of the job.
  * <mark style="background-color:orange;">\["interaction\_distance"]:</mark> <mark style="color:yellow;">@float</mark> Accepts. The player distance controlled to access the menu.

***

## 🚗Gardener Car / Car Settings&#x20;

Contains the details of the operator vehicle. You can enter spawn location and vehicle type.

* <mark style="background-color:orange;">\["model"]:</mark> <mark style="color:yellow;">@string</mark> You can enter the vehicle model here. Be careful to enter a valid vehicle.
* <mark style="background-color:orange;">\["trailer"]:</mark> <mark style="color:yellow;">@string</mark> You can enter the trailer model here. Be careful to enter a valid trailer.
* <mark style="background-color:orange;">\["spawnCoords"]:</mark> <mark style="color:yellow;">@vector4</mark> Accepts. It is the position where the vehicle will emerge. The direction your character is facing is the direction the front of your vehicle will face.
* <mark style="background-color:orange;">\["shopBlip"]:</mark> True and you can see your vehicle on the map.
* <mark style="background-color:orange;">\["cut\_ptfx"]:</mark> Effect content when you mow the lawn with the lawn tractor.
  * <mark style="background-color:red;">\["class"]</mark>: Ptfx is the core name. A kind of class name. [**Alt V - ParticleDB**](https://particles.altv.mp)
  * <mark style="background-color:red;">\["name"]</mark>: Ptfx is the name found in the class. [**Alt V - ParticleDB**](https://particles.altv.mp)
  * <mark style="background-color:red;">\["bone"]:</mark> <mark style="color:yellow;">@number</mark> Select the appropriate one of the bonnets that the vehicle have.
  * <mark style="background-color:red;">\["coords"]:</mark> <mark style="color:yellow;">@vector3</mark> It is the offset to be added to the 0.0 position of the vehicle.
  * <mark style="background-color:red;">\["rotation"]:</mark> <mark style="color:yellow;">@vector3</mark> The location, direction and heading settings of the ptfx when attaching it to the vehicle.

***

## 🧰Entities / Lawn Mover - Tractor / Rake Prop Stuff

You can examine the code below for the features such as prop, tractor etc.

### 🚜 Lawn Tractor

* <mark style="background-color:orange;">\["model"]:</mark> <mark style="color:yellow;">@string</mark> You can enter the vehicle model here. Be careful to enter a valid vehicle.
* <mark style="background-color:orange;">\["car\_attach"]:</mark> Settings for paperclip connection of the grass tractor to vehicle trail.
  * <mark style="background-color:red;">\["bone"]:</mark> <mark style="color:yellow;">@number</mark> Select the appropriate one of the bonnets that the trailer have.
  * <mark style="background-color:red;">\["coords"]:</mark> <mark style="color:yellow;">@vector3</mark> It is the offset to be added to the 0.0 position of the trailer.
  * <mark style="background-color:red;">\["rotation"]:</mark> <mark style="color:yellow;">@vector3</mark> The location, direction and heading settings of the Lawn Tractor when attaching it to the trailer.

### 🧑‍🦯Lawn Mower / Rake

<mark style="background-color:orange;">\["car\_attach"]:</mark> The necessary settings for the prop to be a paperclip for the car boot

* <mark style="background-color:red;">\["bone"]:</mark> <mark style="color:yellow;">@number</mark> Select the appropriate one of the bonnets that the boot have.
* <mark style="background-color:red;">\["coords"]:</mark> <mark style="color:yellow;">@vector3</mark> It is the offset to be added to the 0.0 position of the boot.
* <mark style="background-color:red;">\["rotation"]:</mark> <mark style="color:yellow;">@vector3</mark> The location, direction and heading settings of the Lawn Mower when attaching it to the boot.

<mark style="background-color:orange;">\["player\_attach:]:</mark> Paperclip settings between the prop and the player.

* <mark style="background-color:red;">\["bone"]:</mark> <mark style="color:yellow;">@number</mark> Select the appropriate one of the bonnets that the player have. [**AltV - Ped Bones**](https://docs.altv.mp/gta/articles/ped/bones.html)
* <mark style="background-color:red;">\["coords"]:</mark> <mark style="color:yellow;">@vector3</mark> It is the offset to be added to the 0.0 position of the player.
* <mark style="background-color:red;">\["rotation"]:</mark> <mark style="color:yellow;">@vector3</mark> The location, direction and heading settings of the Lawn Mower when attaching it to the player.
* <mark style="background-color:red;">\["animName"]:</mark> <mark style="color:yellow;">@string</mark> Animation name.
* <mark style="background-color:red;">\["animDict"]:</mark> <mark style="color:yellow;">@string</mark> Animation directory name.

***

## 🏡Gardens

You can find out what the variables in the gardens mean and how you can add new gardens below

* <mark style="background-color:yellow;">**\[index]:**</mark> <mark style="color:yellow;">@number</mark> It is a garden number. The maximum garden number found should be written by adding +1 to it. If there is no garden, it should start from 1
  * <mark style="background-color:green;">**\["reward"]:**</mark>  <mark style="color:yellow;">@number</mark> The fee he will receive for this garden at the end of the work. $0.0.
  * <mark style="background-color:red;">**\["zoneRadius"]:**</mark> <mark style="color:red;">IMPORTANT!</mark> ⇒ <mark style="color:yellow;">@float</mark> You should enter the width for the area to be created after taking the vec3 position from the position you can call the middle of the garden you have determined. This area contains controls related to leaving or entering the area by the player. For the script to work correctly, I suggest you open the `debug` mode and enter a value!
  * <mark style="background-color:red;">**\["coords"]:**</mark> <mark style="color:red;">IMPORTANT!</mark> ⇒ <mark style="color:yellow;">@vector3</mark> It is the vec3 coordinate taken from the centre of the specified garden or from a place where you can specify the area. It is important to enter correctly for player and area controls.
* <mark style="background-color:green;">**\["grass"]:**</mark> It is a table consisting of the positions of the grass in the garden you have added
  * <mark style="background-color:yellow;">**\[index]:**</mark> <mark style="color:yellow;">@number</mark> You must enter a separate number for each grass to be created in the Grass table. You must create a new table by adding +1 to the maximum number of grasses found. As in the example below.
  * <mark style="background-color:yellow;">**\["model"]:**</mark> <mark style="color:red;">IMPORTANT!</mark> ⇒ You can find the props through [**PlebMaster**](https://forge.plebmasters.de)**.**
  * <mark style="background-color:yellow;">**\["coords"]:**</mark> <mark style="color:red;">IMPORTANT!</mark> **⇒ (** *Things to be considered in the Vector3 position to be entered: Subtract -0.95 from the Z, i.e. height coordinate of the Vector3 position you have taken. This will allow you to obtain the height of the floor. In order for the grass not to look too high, subtract another -2.0 from the Height you have obtained (depending on the location). Thus, the ends of the grass will now be visible. As you increase the height, the grass will become more lush and turn into a bush )*

    ```lua
    ["grass"] = {
        [1] = {
            ["model"] = "prop_skunk_bush_01",
            ["coords"] = vec3(1248.99, -593.68, 66.60),
        },
        [2] = {
            ["model"] = "prop_skunk_bush_01",
            ["coords"] = vec3(1250.56, -594.42, 66.60),
        },
    },
    ```
* <mark style="background-color:green;">**\["rubbishes"]:**</mark> Created for rubbish on the ground in some locations in the garden.
  * <mark style="background-color:yellow;">**\["model"]:**</mark> <mark style="color:red;">IMPORTANT!</mark> ⇒ You can find the props through [**PlebMaster**](https://forge.plebmasters.de)**.**
  * <mark style="background-color:yellow;">**\["coords"]:**</mark> <mark style="color:red;">IMPORTANT!</mark> **⇒ (** *Things to be considered in the Vector3 position to be entered: Subtract -0.95 from the Z, i.e. height coordinate of the Vector3 position you have taken. )*
