# Installation

Download the latest release from here: [Releases](https://github.com/Mesa-Indigo/mi_world/releases)

***

## Server CFG

```
## overextended
start oxmysql
start ox_lib
start ox_target
start ox_inventory

## standalone
start mi_items
start mi_world
```

***

## Creating Custom Fields

In the *data/fields.lua*, you can add your own farming fields to collect item(s):

```lua
{
    -- location of farm area
    spawn = vector3(2537.595, 4812.296, 33.806),
    -- prop count / spawn size / label from locale
    count = 15, size = 20, label = 'vegetables',
    -- target sprite / sprite color
    sprite = 'fa-solid fa-carrot', spcolor = '#FF922B',
    -- items to give on progbar completion
    item = {
        'ck_potatoes', 'ck_peppers', 'ck_onions',
        'ck_lettuce', 'ck_tomatoes'
    },
    -- type for animation / min & max amount to give
    type = 'normal', amount = { min = 3, max = 6 },
    -- model to spawn / duration of progbar
    model = 'prop_veg_crop_04_leaf', duration = 5000,
    -- general data for list -! [do not touch] !-
    data = { obj = 0, list = {}, set = nil }
},
```

***

## Creating Custom Vendors

In the *data/vendors.lua*, you can add your own farming fields to collect item(s):

```lua
farmmarket = {
        -- blip active / sprite / color / scale
        blip = true, sprite = 473, color = 24, scale = 0.6,
        -- blip name
        bname = 'Farmer\'s Market',
        -- menu details
        label = 'Farmer\'s Market', icon = 'farm',
        -- location of vendor
        spawn = vec4(1676.142, 4883.424, 42.060, 59.78),
        -- model of vendor / animaiton
        model = 'a_m_m_farmer_01', scen = 'WORLD_HUMAN_CLIPBOARD_FACILITY',
        -- items to be sold
        items = {
            ['ck_potatoes'] =       { label = 'Potatoes',   value = 7 },
            ['ck_peppers'] =        { label = 'Peppers',    value = 9 },
            ['ck_onions'] =         { label = 'Onions',     value = 5 },
            ['ck_lettuce'] =        { label = 'Lettuce',    value = 7 },
            ['ck_tomatoes'] =       { label = 'Tomatoes',   value = 5 },
        },
    },
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mesa-indigo.gitbook.io/midevelopment/m.i.-core/m.i.-world/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
