> For the complete documentation index, see [llms.txt](https://fuestis-document.gitbook.io/fusti-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fuestis-document.gitbook.io/fusti-docs/fusti_jobcreator/setting-up-the-config/setting-up-actions.md).

# Setting up actions

<pre class="language-lua"><code class="lang-lua"><strong>['actions'] = {
</strong>    type = 'box', -- sphere or box
    boxData = {
        coord = vec3(2414.6523, 4688.2646, 33.5066), 
        size = vec3(70,120,100),
        rotation = 45
    },
    -- sphereData = { -- in case if type is 'sphere'
    --    coord = vec3(2414.6523, 4688.2646, 33.5066), 
    --    radius = 160.0
    -- },
    blip = {
        sprite = 677,
        display = 4,
        scale = 0.5,
        colour = 2,
        text = 'Apple picking',
        radius = {
            colour = 2,
            alpha = 70
        }
    },
    coords = { -- position must be in the zone!
        {position = vec3(2402.4517, 4688.7593, 33.6607), heading = 100.0},
        {position = vec3(2390.4346, 4691.1538, 33.9041), heading = 100.0},
        {position = vec3(2381.8682, 4701.3037, 33.9474), heading = 100.0},
        {position = vec3(2383.6780, 4713.3687, 33.6394), heading = 100.0}
    },
    action = {
        requiredItem = 'water', -- none or item name (example item)

        context = 'Press [E] to start picking apple',

        skillCheckData = { -- false or data
            difficulty = {'easy', 'easy', 'easy', 'easy'},
            inputs = {'w', 'a', 's', 'd'}
        },

        TaskBlipData = { -- false or data
            sprite = 1,
            display = 2,
            scale = 1.0,
            colour = 0,
            text = 'Apple tree',
        },

        prop = nil, -- nil or prop name

        anim = {
            dict = 'amb@prop_human_movie_bulb@idle_a',
            name = 'idle_a'
        },

        progbar = {
            time = 5000,
            label = 'Picking apple..',
            attach = {
                prop = nil, -- nil or prop name
                bone = 57005,
                pos = vec3(0.1, 0.0, 0.0),
                rot = vec3(-90.0, 25.0, 35.0)
            }
        },
    },
    items = {
        {value = 'burger',  label = 'Burger',  count = 1, chance = 9, sellPrice = 10},
        {value = 'garbage', label = 'Garbage', count = 1, chance = 9, sellPrice = 50},
        {value = 'water',   label = 'Water',   count = 1, chance = 9, sellPrice = 85} 
    }
}
</code></pre>

Setting up your job's action part will return as like this:<br>

<figure><img src="https://3081666509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKY9NSFa0Zs4gOM5iWLPl%2Fuploads%2FDru8UZVOiQpK6gEA8p8d%2Fk%C3%A9p_2023-08-30_161324063.png?alt=media&amp;token=7e61d102-1242-497e-b5e3-d6e88eadbf4b" alt=""><figcaption><p>The zone with the given data (box, size, blip and colour)</p></figcaption></figure>

<figure><img src="https://3081666509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKY9NSFa0Zs4gOM5iWLPl%2Fuploads%2Fdzxv5J04mkfewbcR4vpd%2Fimage.png?alt=media&amp;token=b898c332-dc1c-484d-b109-f60a09594bd0" alt=""><figcaption><p>Picking animation with minigame, and item check</p></figcaption></figure>

<figure><img src="https://3081666509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKY9NSFa0Zs4gOM5iWLPl%2Fuploads%2FGaIR3h70EUuRnbnIh9KP%2Fimage.png?alt=media&amp;token=658bf74b-ad3c-465a-a25c-c9763100a920" alt=""><figcaption><p>The items you set in as a reward with the given chance!</p></figcaption></figure>
