Overview
- 3x sifted: the YF-Kush pollen goes through the sieve twice more, then to the press.
- Frozen sift: freezing the buds, washing in a filter bag, drying on a rack, scraping, then the press.
- Cutting and capsule filling shared by both products, played by hand.
- Placeable freezer and drying rack with screens, running in real time even when the player is offline.
- Each station sits on a storage cabinet.
- The equipment is added to the YF-Kush vendor.
- French and English included.
YF-Filtrer does not work on its own: it plugs into the sieve, press, tables and vendor of YF-Kush, version 1.1.0 or later.
Requirements
| Resource | Role |
|---|---|
YF-Kush 1.1.0+ | Sieve, press, cutting tables and vendor. |
ox_lib | Menus, inputs, notifications. |
ox_inventory | Items, cabinet storage, images. |
ox_target | Interactions with the stations and tables. |
oxmysql | Saves the placed freezers and racks. |
OneSync enabled and game build 2545 or higher, as for YF-Kush.
Installation
Seven steps, in this order.
Install YF-Kush 1.1.0
If you have 1.0.0, update it first: see the YF-Kush documentation.
Add the resource
Get YF-Filtrer from the Cfx.re portal (see Getting your purchases). Copy the
YF-Filtrerfolder into your resources, without renaming it, and start it after YF-Kush.server.cfgensure ox_lib ensure oxmysql ensure ox_inventory ensure ox_target ensure YF-Kush ensure YF-FiltrerCreate the SQL table
Run
install/install.sqlon your database. It createsyf_filtrer_stationsand is safe to run again.Declare the items
Paste the content of
install/items_en.lua(English labels) orinstall/items.lua(French) at the end ofox_inventory/data/items.lua, before the last closing brace.Copy the images
Copy the 45
yf_*.pngimages frominstall/imagesintoox_inventory/web/images.Adjust the config
Open
shared/config.lua: language, durations, yields, equipment prices. Details in Configuration.Restart the server
A full restart is needed the first time. The console shows
12 passe(s) enregistree(s)and6 article(s) chez le vendeur: the products are plugged into YF-Kush.
Items
50 items: the equipment, then every step of both chains for the four YF-Kush strains. The full block is provided in install/items_en.lua.
| Item | Role | Weight |
|---|---|---|
Freezeryf_congelateur | Placeable station: freezing | 25,000 g |
Drying Rackyf_claie | Placeable station: drying | 8,000 g |
Filter Bagyf_sac_filtrant | Washing on a YF-Kush table, wears out | 300 g |
Dry Ice Packyf_glace_carbo | 2 per freezing cycle | 1,000 g |
Ice Wateryf_eau_glacee | 1 per 20 frozen weed washed | 1,000 g |
Empty Capsuleyf_capsule_vide | One per filled capsule | 2 g |
2x Sifted Pollen [strain]yf_pollen_x2_<strain> | 3x: 2nd pass through the sieve | 50 g |
3x Sifted Pollen [strain]yf_pollen_x3_<strain> | 3x: 3rd pass, goes to the press | 50 g |
3x Sifted Hash Slab [strain]yf_plaque_x3_<strain> | Comes out of the press | 100 g |
Frozen Weed [strain]yf_weed_glacee_<strain> | Comes out of the freezer, thaws in 30 min | 2 g |
Ice-o-lator [strain]yf_iceolator_<strain> | Comes out of the filter bag | 50 g |
Frozen Sift [strain]yf_frozen_sift_<strain> | Comes out of the rack, goes to the press | 50 g |
Frozen Sift Slab [strain]yf_plaque_frozen_<strain> | Comes out of the press | 100 g |
Piece [strain]yf_morceau_x3_<strain> · yf_morceau_frozen_<strain> | 20 per slab | 5 g |
Capsule [strain]yf_capsule_x3_<strain> · yf_capsule_frozen_<strain> | Final product, ready to sell | 7 g |
Configuration
shared/config.lua is the only file to edit. Gestures, positions and animations are fixed in the script.
| Setting | Default | Effect |
|---|---|---|
Config.locale | 'fr' | Language of the texts: 'fr' or 'en'. |
Config.filtrage | 10 · 2 · 5 | For each 3x pass: pollen to load into the sieve, pollen used per sifted pollen, stick strikes per sifted pollen. |
Config.congelateur | 100 · 2 · 15 | Maximum buds per load, dry ice packs to start, duration in minutes. |
Config.claie | 10 | Drying time, in minutes. |
Config.sacFiltrant | 40 · 20 · 3 · 10 | Frozen weed per ice-o-lator, frozen weed per ice water, maximum ice-o-lator per wash, bag wear in % per wash. |
Config.meubles | 20 · 50 kg | Slots and weight of each cabinet. |
Config.shop | Equipment added to the YF-Kush vendor: see The equipment. | |
Config.values | Suggested resale prices: see Selling. | |
Config.maxPlaced | 60 | Maximum freezers and racks placed, of each type. |
Config.maxDistance | 5.0 | Maximum distance between the player and a station, in metres. |
Config.locale = 'en'
Config.filtrage = {
x2 = { capacity = 10, perPollen = 2, clicks = 5 },
x3 = { capacity = 10, perPollen = 2, clicks = 5 },
}
Config.congelateur = { capacity = 100, glace = 2, minutes = 15 }
Config.claie = { minutes = 10 }
Config.sacFiltrant = { perOutput = 40, perWater = 20, lots = 3, wear = 10 }
Config.meubles = { slots = 20, weight = 50000 }The production chains
Both products start from 80 buds and end as 20 capsules of 5 g. The rates are the same for all four strains.
3x sifted
Frozen sift
The stations
The freezer and the drying rack are placed from the inventory, like the YF-Kush stations. They come on a cabinet whose storage ("Open the cabinet") can hold your goods, and stay in place after a restart. A station can only be picked up when it is empty and its cabinet too.
Freezer
- "Load the freezer": you need 2 dry ice packs and 1 to 100 buds of one strain.
- The glass door opens: drag the ice and the buds from the trays to their spots, then close it.
- The screen shows the temperature dropping and the time left: 15 min, in real time.
- "Collect": take the frozen buds out onto the tray.
- Frozen weed thaws after 30 min: after that, it can no longer be washed.
Filter bag
- Played on a YF-Kush table: "Wash in the filter bag".
- By batches of 40 frozen weed, 3 batches at most; 1 ice water per 20.
- Bag into the bucket, frozen buds, ice water, then stirring: circle the cursor around the bucket at a steady pace.
- Move the bucket aside and pour the ice-o-lator onto the tray.
- The bag loses 10% per wash. Esc abandons without using anything.
Drying rack
- "Load": up to 20 ice-o-lator, on 4 trays slid one by one into the rails.
- The fan spins; the screen shows temperature, humidity and time left: 10 min.
- "Collect": take the trays out, scrape the crust and slide the frozen sift into the bowl.
Cutting and capsules
- On a YF-Kush table: "Cut premium hash".
- Bring the blade onto each line and hold it: 1 slab → 20 pieces.
- "Fill capsules": piece on the scale, capsule in the middle, piece inside, lid, then screw it shut by circling the cursor.
- Backspace stops: what is done is kept, the rest stays in the inventory.
The equipment
The equipment is added to the YF-Kush vendor, in its currency and opening hours. Prices and stock are set in YF-Filtrer's Config.shop.
| Item sold | Default price |
|---|---|
Freezeryf_congelateur | $20,000 |
Drying Rackyf_claie | $6,000 |
Filter Bagyf_sac_filtrant | $2,500 |
Dry Ice Packyf_glace_carbo | $150 |
Ice Wateryf_eau_glacee | $20 |
Empty Capsuleyf_capsule_vide | $5 |
Selling
Like the YF-Kush bags, capsules are not bought back by the script: plug them into your dealing script. Suggested price of one capsule, balanced with YF-Kush:
| Capsule | OG Kush · Purple Haze | White Widow · Blue Dream |
|---|---|---|
3x siftedyf_capsule_x3_* | $115 | $230 |
Frozen siftyf_capsule_frozen_* | $175 | $315 |
Languages
Every text is in locales/. To add a language, copy locales/en.lua, replace Locales['en'] with the language code, translate while keeping the %d and %s, then set Config.locale. Item names are translated in items.lua.
Troubleshooting
The pollen or frozen sift does not show up at the sieve or press
Check that YF-Kush is version 1.1.0 and started before YF-Filtrer, and that the items are declared in ox_inventory. At startup, the console should show 12 passe(s) enregistree(s).
YF-Filtrer stopped after restarting YF-Kush
YF-Filtrer depends on YF-Kush: start it again with ensure YF-Filtrer after restart YF-Kush.
Frozen weed can no longer be washed
It has thawed: frozen weed only stays cold for 30 minutes after leaving the freezer.
The freezer or rack cannot be picked up
The station must be empty (nothing running, nothing to collect) and so must its cabinet. You also need room in your inventory.
The equipment is not at the vendor
The YF-Kush vendor must be enabled (Config.shop.enabled in YF-Kush) and the items declared in ox_inventory.
Items have no image in the inventory
Check that the 45 yf_*.png files are in ox_inventory/web/images, then clear the FiveM cache.
Editable files
The script is protected by the Cfx.re escrow. These stay readable and editable: shared/config.lua, the locales/ folder and the install/ folder.