# Items Vendors

***

<div><figure><img src="https://752210260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1u1MWhJRMet4cFnh9zzG%2Fuploads%2F2hk8yn1LQ9RODeOod9E6%2Fscrap_bolts.png?alt=media&#x26;token=c894e72d-f3e3-45c7-a515-9107710ebafc" alt=""><figcaption></figcaption></figure> <figure><img src="https://752210260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1u1MWhJRMet4cFnh9zzG%2Fuploads%2FlmM3PFJJUyNkMelfZL7M%2Fck_onions.png?alt=media&#x26;token=f240a4e8-bdd7-443e-8140-0ca017668ceb" alt=""><figcaption></figcaption></figure> <figure><img src="https://752210260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1u1MWhJRMet4cFnh9zzG%2Fuploads%2FpNzZVvPghyGvJmKOIon2%2Fore_iron.png?alt=media&#x26;token=ce88cde3-78e3-4ce8-a5f9-add7f43c10a7" alt=""><figcaption></figcaption></figure> <figure><img src="https://752210260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1u1MWhJRMet4cFnh9zzG%2Fuploads%2FYHtJFTnkjJDJovsDR44F%2Ftrsr_sanddollar.png?alt=media&#x26;token=8e349b97-3527-4872-98ae-07762431903b" alt=""><figcaption></figcaption></figure> <figure><img src="https://752210260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1u1MWhJRMet4cFnh9zzG%2Fuploads%2FsbOPIGw7hJ9pDBUlUhSm%2Fchem_potnitr.png?alt=media&#x26;token=5d56ac25-e0cf-48c3-94f6-6ef991f201d2" alt=""><figcaption></figcaption></figure></div>

Here you can place as many vendors you want to take any item and pay out for any price listed. It takes the total amount of the item in the player's inventory and pays them multiplied by the price you set.

***

*NOTE: Do not touch the data list at the bottom. That is used to count the objects and utilize the list inside it.*

```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 },
        },
    },
```

***
