|
| 1 | +--- |
| 2 | +title: it-drugs - Additional Processing Settings |
| 3 | +description: How to add additional settings to the processing system. |
| 4 | +--- |
| 5 | + |
| 6 | +import { Steps } from 'nextra/components' |
| 7 | +import ExternLink from '@components/ExternLink' |
| 8 | +import { IconExternalLink } from '@tabler/icons-react' |
| 9 | +import Accordion from '@components/Accordion' |
| 10 | +import AccordionGroup from '@components/AccordionGroup' |
| 11 | + |
| 12 | +# Additional Processing Settings |
| 13 | + |
| 14 | +## Add custom animation |
| 15 | +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 |
| 16 | + |
| 17 | +<Steps> |
| 18 | +### Get your animation |
| 19 | +A good resource to find animation is: |
| 20 | +<ExternLink |
| 21 | + href="https://forge.plebmasters.de/animations" |
| 22 | + manualTitle="Pleb Masters: Forge - GTA V Animations List | Data Browser | Search and Preview Tool" |
| 23 | + icon={IconExternalLink} > |
| 24 | +</ExternLink> |
| 25 | + |
| 26 | +### Add the animation to the Config |
| 27 | +Add the following code to the recipe you want to change the animation for: |
| 28 | +```lua copy |
| 29 | +animation = { |
| 30 | + dict = 'you animation dict', -- Animation dict |
| 31 | + anim = 'your animation name', -- Animation name |
| 32 | +} |
| 33 | +``` |
| 34 | + |
| 35 | +**Example:** |
| 36 | +```lua |
| 37 | +animation = { |
| 38 | + dict = 'anim@gangops@facility@servers@bodysearch@', -- Animation dict |
| 39 | + anim = 'player_search', -- Animation name |
| 40 | +} |
| 41 | +``` |
| 42 | +</Steps> |
| 43 | + |
| 44 | +<Accordion title="Full Example"> |
| 45 | +```lua |
| 46 | +['weed_processing_table'] = { |
| 47 | + type = 'weed', |
| 48 | + model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a |
| 49 | + recipes = { |
| 50 | + ['joint'] = { |
| 51 | + label = 'Joint', |
| 52 | + showIngrediants = true, |
| 53 | + ingrediants = { |
| 54 | + ['weed_lemonhaze'] = 3, |
| 55 | + ['paper'] = 1 |
| 56 | + }, |
| 57 | + outputs = { |
| 58 | + ['joint'] = 2 |
| 59 | + }, |
| 60 | + processTime = 5, |
| 61 | + failChance = 15, |
| 62 | + animation = { |
| 63 | + dict = 'anim@gangops@facility@servers@bodysearch@', |
| 64 | + anim = 'player_search', |
| 65 | + } |
| 66 | + }, |
| 67 | + } |
| 68 | +} |
| 69 | +``` |
| 70 | +</Accordion> |
| 71 | + |
| 72 | +## Add particles |
| 73 | +A new feature with version **v1.3.0** is the possibility to add particles to a recipe. This can be done via the Config. |
| 74 | + |
| 75 | +<Steps> |
| 76 | +### Get your particle |
| 77 | +A good resource to find particles is: |
| 78 | +<ExternLink |
| 79 | + href="https://www.vespura.com/fivem/particle-list/" |
| 80 | + manualTitle="Particles List" |
| 81 | + icon= {IconExternalLink} > |
| 82 | +</ExternLink> |
| 83 | + |
| 84 | +### Add the particle to the Config |
| 85 | +Add the following code to the recipe you want to add the particle to: |
| 86 | +```lua copy |
| 87 | + particlefx = { |
| 88 | + dict = 'your dict name', |
| 89 | + particle = 'your particle name', |
| 90 | + color = {r = 255, g = 255, b = 255}, |
| 91 | + offset = {x = 0.0, y = 0, z = 0}, |
| 92 | + scale = 0.5, |
| 93 | + }, |
| 94 | +``` |
| 95 | + |
| 96 | +--- |
| 97 | + |
| 98 | +```lua |
| 99 | +color = {r = 255, g = 255, b = 255}, |
| 100 | +``` |
| 101 | +The color of the particle, each value can be between 0 and 255 and represents the RGB color space. |
| 102 | + |
| 103 | +--- |
| 104 | + |
| 105 | +```lua |
| 106 | +offset = {x = 0.0, y = 0, z = 0}, |
| 107 | +``` |
| 108 | + |
| 109 | +The offset of the particle, this can be used to move the particle to a different position. |
| 110 | +Due to the fact that some particles are not centered, it is recommended to play around with the values. |
| 111 | +If you are using the default table props provided by the script, you can use the following values: |
| 112 | + |
| 113 | + |
| 114 | +```lua copy |
| 115 | +offset = {x = 0.0, y = -1.5, z = 1.0}, |
| 116 | +``` |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +```lua |
| 121 | +scale = 0.5, |
| 122 | +``` |
| 123 | +The scale of the particle, this can be used to make the particle bigger or smaller. |
| 124 | + |
| 125 | +</Steps> |
| 126 | + |
| 127 | +<Accordion title="Full Example"> |
| 128 | +```lua |
| 129 | +['weed_processing_table'] = { |
| 130 | + type = 'weed', |
| 131 | + model = 'bkr_prop_weed_table_01a', -- Exanples: bkr_prop_weed_table_01a, bkr_prop_meth_table01a, bkr_prop_coke_table01a |
| 132 | + recipes = { |
| 133 | + ['joint'] = { |
| 134 | + label = 'Joint', |
| 135 | + showIngrediants = true, |
| 136 | + ingrediants = { |
| 137 | + ['weed_lemonhaze'] = 3, |
| 138 | + ['paper'] = 1 |
| 139 | + }, |
| 140 | + outputs = { |
| 141 | + ['joint'] = 2 |
| 142 | + }, |
| 143 | + processTime = 5, |
| 144 | + failChance = 15, |
| 145 | + particlefx = { |
| 146 | + dict = 'scr_ar_planes', |
| 147 | + particle = 'scr_ar_trail_smoke_slow', |
| 148 | + color = {r = 255, g = 255, b = 153}, |
| 149 | + offset = {x = 0.0, y = -1.5, z = 1.0}, |
| 150 | + scale = 0.5, |
| 151 | + }, |
| 152 | + }, |
| 153 | + } |
| 154 | +} |
| 155 | +``` |
| 156 | +</Accordion> |
0 commit comments