ds-fruitpicker

Unique and Advanced fruit picker job for qbcore

View on Tebex | CFX Fourm Post | Youtube Video | Discord

Installaction

Dependencies

Dependency
Download
Description

orangeprop

Custom orange prop

qb-input (Optional)

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

qb-target (Optional)

you need eye target script if you don't want to use drawtext

Start

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

  2. Install and ensure dependencies for the resource.

  3. Setupconfig.lua (⚠️see #CONFIGURATION for instructions).

  4. Addensure ds-fruitpickerto your server start config (place it anywhere below the dependency & framework resources).

Configuration

Add Items

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

orange = {
    ["name"] = "orange",
    ["label"] = "Orange",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "orange.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "This is Orange you can eat this"
},
fruit_basket = {
    ["name"] = "fruit_basket",
    ["label"] = "Fruit Basket",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "fruit_basket.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Fruit Basket"
},

Add In qb-radialmenu

replace below code in qb-radialmenu\client\main.lua in SetupRadialMenu function.

local function SetupRadialMenu()
    FinalMenuItems = {}
    if (IsDowned() and IsPoliceOrEMS()) then
        FinalMenuItems = {
            [1] = {
                id = 'emergencybutton2',
                title = Lang:t("options.emergency_button"),
                icon = 'circle-exclamation',
                type = 'client',
                event = 'police:client:SendPoliceEmergencyAlert',
                shouldClose = true,
            },
        }
    else
        SetupSubItems()
        FinalMenuItems = deepcopy(Config.MenuItems)
        for _, v in pairs(DynamicMenuItems) do
            FinalMenuItems[#FinalMenuItems + 1] = v
        end

        local basket = exports['ds-fruitpicker']:Checkbasket()
        if basket == "drop" then
            FinalMenuItems[#FinalMenuItems + 1] = {
                id = "basket",
                title = "Drop Basket",
                icon = "basket-shopping",
                type = 'client',
                event = 'dropbasket',
                shouldClose = true,
            }
        elseif basket == "pickup" then
            FinalMenuItems[#FinalMenuItems + 1] = {
                id = "basket2",
                title = "Pickup Basket",
                icon = "basket-shopping",
                type = 'client',
                event = 'dropbasket',
                shouldClose = true,
            }
        end
    end
end

Add in qb-core

Add below code or replace function in qb-inventory\server\main.lua.

Last updated