😀・Tipps and Tricks
Additional Processing Settings

Additional Processing Settings

Add custom animation

If you do not want to use the normal animation for a recipe in a processing table, you can also easily change this via the Config

Get your animation

A good resource to find animation is:

Loading...

Add the animation to the Config

Add the following code to the recipe you want to change the animation for:

animation = {
    dict = 'you animation dict', -- Animation dict
    anim = 'your animation name', -- Animation name
}

Example:

animation = {
    dict = 'anim@gangops@facility@servers@bodysearch@', -- Animation dict
    anim = 'player_search', -- Animation name
}
['weed_processing_table'] = {
    type = 'weed',
    model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a
    recipes = {
        ['joint'] = {
            label = 'Joint',
            showIngrediants = true,
            ingrediants = {
                ['weed_lemonhaze'] = 3,
                ['paper'] = 1
            },
            outputs = {
                ['joint'] = 2
            },
            processTime = 5,
            failChance = 15,
            animation = {
                dict = 'anim@gangops@facility@servers@bodysearch@',
                anim = 'player_search',
            }
        },
    }
}

Add particles

A new feature with version v1.3.0 is the possibility to add particles to a recipe. This can be done via the Config.

Get your particle

A good resource to find particles is:

Loading...

Add the particle to the Config

Add the following code to the recipe you want to add the particle to:

    particlefx = {
        dict = 'your dict name',
        particle = 'your particle name',
        color = {r = 255, g = 255, b = 255},
        offset = {x = 0.0, y = 0, z = 0},
        scale = 0.5,
    },

color = {r = 255, g = 255, b = 255},

The color of the particle, each value can be between 0 and 255 and represents the RGB color space.


offset = {x = 0.0, y = 0, z = 0},

The offset of the particle, this can be used to move the particle to a different position. Due to the fact that some particles are not centered, it is recommended to play around with the values. If you are using the default table props provided by the script, you can use the following values:

offset = {x = 0.0, y = -1.5, z = 1.0},

scale = 0.5,

The scale of the particle, this can be used to make the particle bigger or smaller.

['weed_processing_table'] = {
    type = 'weed',
    model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a
    recipes = {
        ['joint'] = {
            label = 'Joint',
            showIngrediants = true,
            ingrediants = {
                ['weed_lemonhaze'] = 3,
                ['paper'] = 1
            },
            outputs = {
                ['joint'] = 2
            },
            processTime = 5,
            failChance = 15,
            particlefx = {
                dict = 'scr_ar_planes',
                particle = 'scr_ar_trail_smoke_slow',
                color = {r = 255, g = 255, b = 153},
                offset = {x = 0.0, y = -1.5, z = 1.0},
                scale = 0.5,
            },
        },
    }
}