Setting up actions

['actions'] = {
    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} 
    }
}

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

The zone with the given data (box, size, blip and colour)
Picking animation with minigame, and item check
The items you set in as a reward with the given chance!

Last updated

Was this helpful?