Dolaji's Scripts
StoreDiscordYoutube
  • Our Scripts
  • Resources
    • calibrate-distributor
    • ds-drilling
    • ds-atmrobbery
    • ds-fruitpicker
    • ds-milkjob
    • ds-cutscene
    • ds-mining
    • ds-electrician
    • weazel-news
  • RedM
    • ID Card
Powered by GitBook
On this page
  • Installaction
  • Dependencies
  • Start
  • Configuration
  • Add Items
  1. Resources

ds-milkjob

Advance & Unique Milkjob script and Compatible with any Qbcore and ESX server.

Previousds-fruitpickerNextds-cutscene

Last updated 2 years ago

View on Tebex | | | Discord

Installaction

Dependencies

Dependency
Download
Description

qb-input

qb-input for add input option on sell oranges and pickup oranges.

milk-prop

Custom prop for milk processing

Start

  1. Extract ds-milkjob.zip and place it into your resource folder.

  2. Addensure ds-milkjob to your server start config (place it anywhere below the dependency & framework resources).

Configuration

Please go through all configurable options & settings in config.lua and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.

Add Items

Open qb-core/shared/items.luaand add this lines

["milk"] = {
    ["name"] = "milk",
    ["label"] = "Milk",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "milk.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Milk"
},

["bucket"] = {
    ["name"] = "bucket",
    ["label"] = "Bucket",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "bucket.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Bucket"
},

["rope"] = {
    ["name"] = "rope",
    ["label"] = "Rope",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "rope.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "rope"
},

INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('milk', 'Milk', 1, 0, 1), ('bucket', 'Bucket', 2, 0, 1), ('rope', 'Rope', 1, 0, 1);
INSERT INTO jobs (name, label, whitelisted) VALUES ('farmer', 'Farmer', 0);
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('farmer', 0, 'recruit', 'Recruit', 20, '{}', '{}');

Install and ensure for the resource.

Setupconfig.lua (⚠️see for instructions).

dependencies
#CONFIGURATION
Link
Link
CFX Fourm Post
Youtube Video