Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xd_slaughtererjob

A poultry processing job for QBCore FiveM servers. Catch live chickens at the farm, process and package them at the slaughterhouse, then sell the finished product to a dealer in the city.

Status Platform Framework Language

Archived. Built in 2021 and kept public as a reference. Not actively maintained.

What it does

A four-stage production chain, each stage converting one item into the next:

Stage Location Item produced
Catch Farm, -68.4, 6248.4, 31.2 alivechicken
Process Slaughterhouse, two points around -96.0, 6206.9, 31.0 slaughteredchicken
Package Slaughterhouse, two points around -106.4, 6204.3, 31.0 packagedchicken
Sell Chicken Dealer, -1177.2, -890.7, 13.8 Cash

Two map blips are created automatically: Slaughter House and Chicken Dealer.

Each stage has two interaction points, so more than one player can work the line at the same time.

Requirements

  • A FiveM server
  • QBCore, or any framework exposing a GetObject-style event

Installation

  1. Copy the xd_slaughtererjob folder into your server's resources directory.

  2. Add it to your server.cfg:

    ensure xd_slaughtererjob
  3. Add the three items below to your shared items file.

  4. Add matching images (alivechicken.png, slaughteredchicken.png, packagedchicken.png) to your inventory resource.

  5. Restart the server.

Items

Add these to qb-core/shared/items.lua:

["alivechicken"] = {
    ["name"] = "alivechicken", ["label"] = "Alive Chicken",
    ["weight"] = 4000, ["type"] = "item", ["image"] = "alivechicken.png",
    ["unique"] = false, ["useable"] = false, ["shouldClose"] = false,
    ["combinable"] = nil, ["description"] = "Alive Chicken"
},
["slaughteredchicken"] = {
    ["name"] = "slaughteredchicken", ["label"] = "Slaughtered Chicken",
    ["weight"] = 4000, ["type"] = "item", ["image"] = "slaughteredchicken.png",
    ["unique"] = false, ["useable"] = false, ["shouldClose"] = false,
    ["combinable"] = nil, ["description"] = "Slaughtered Chicken"
},
["packagedchicken"] = {
    ["name"] = "packagedchicken", ["label"] = "Packaged Chicken",
    ["weight"] = 4000, ["type"] = "item", ["image"] = "packagedchicken.png",
    ["unique"] = false, ["useable"] = false, ["shouldClose"] = false,
    ["combinable"] = nil, ["description"] = "Packaged Chicken"
},

Configuration

All coordinates and the framework event live at the top of config.lua:

Framework = "XD:GetObject"  -- change to "QBCore:GetObject" or your core's equivalent

startX, startY, startZ                -- chicken catching point
przetworniaX/Y/Z, przetworniaX2/Y2/Z2 -- processing points 1 and 2
pakowanieX/Y/Z, pakowanieX2/Y2/Z2     -- packaging points 1 and 2
sellX, sellY, sellZ                   -- sale point

Files

File Role
config.lua Coordinates, blips and framework event
client/chicken_c.lua Job logic, markers and prompts
client/framework_cl.lua Client-side framework bootstrap
server/chicken_s.lua Item handling and payouts
server/framework_sv.lua Server-side framework bootstrap

Credits

Built on a Polish-language processing job; internal variable names (przetwornia, pakowanie) keep their original naming.

About

Poultry processing job for QBCore FiveM servers. A four-stage chain from catching live chickens through processing and packaging to selling.

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages