Configuration

Config, Lang, NPC, Noti, Veh, Finish = {}, {}, {}, {}, {}, {}
--  $$$$$$\   $$$$$$\  $$\   $$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ $$$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ 
-- $$  __$$\ $$  __$$\ $$$\  $$ |$$  _____|\_$$  _|$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |
-- $$ /  \__|$$ /  $$ |$$$$\ $$ |$$ |        $$ |  $$ /  \__|$$ |  $$ |$$ |  $$ |$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |
-- $$ |      $$ |  $$ |$$ $$\$$ |$$$$$\      $$ |  $$ |$$$$\ $$ |  $$ |$$$$$$$  |$$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |
-- $$ |      $$ |  $$ |$$ \$$$$ |$$  __|     $$ |  $$ |\_$$ |$$ |  $$ |$$  __$$< $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ |
-- $$ |  $$\ $$ |  $$ |$$ |\$$$ |$$ |        $$ |  $$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |
-- \$$$$$$  | $$$$$$  |$$ | \$$ |$$ |      $$$$$$\ \$$$$$$  |\$$$$$$  |$$ |  $$ |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |
-- \______/  \______/ \__|  \__|\__|      \______| \______/  \______/ \__|  \__|\__|  \__|  \__|   \______| \______/ \__|  \__|
-- Use "esx" or "qb"
Config.Framework = "qb"
-- If you are using one of the most recent versidons of ESX, set the script name. Default = "es_extended"
Config.ESXExport = "es_extended"
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
-- Font type for drawtext default text. Default = 4. Set 0 to chinese language
Config.alertTextFont = 4
-- Interaction key to perform some actions
Config.interactionKey = "E"
-- Set the price for each item collected
Config.priceForItem = 100
-- How the male gender is displayed in your database
Config.genderMale = 0
-- How the female gender is displayed in your database
Config.genderFemale = 1
-- Set the cooldown to search garbage in the same bin (in seconds)
Config.cooldown = 120
-- Set true if you want tu use cam when you are with the dumpster
Config.useCam = true
-- Set to true if you want to force to use the job clothes
Config.forceUseClothes = true

-- $$\   $$\ $$$$$$$\   $$$$$$\  
-- $$$\  $$ |$$  __$$\ $$  __$$\ 
-- $$$$\ $$ |$$ |  $$ |$$ /  \__|
-- $$ $$\$$ |$$$$$$$  |$$ |      
-- $$ \$$$$ |$$  ____/ $$ |      
-- $$ |\$$$ |$$ |      $$ |  $$\ 
-- $$ | \$$ |$$ |      \$$$$$$  |
-- \__|  \__|\__|       \______/

-- Location where the NPC is positioned for job selection
NPC.location = vector4(-623.14, -1639.36, 25.97, 150.9)
-- Model of the NPC
NPC.model = "s_m_y_dockwork_01"

-- $$\    $$\ $$$$$$$$\ $$\   $$\ $$$$$$\  $$$$$$\  $$\       $$$$$$$$\ 
-- $$ |   $$ |$$  _____|$$ |  $$ |\_$$  _|$$  __$$\ $$ |      $$  _____|
-- $$ |   $$ |$$ |      $$ |  $$ |  $$ |  $$ /  \__|$$ |      $$ |      
-- \$$\  $$  |$$$$$\    $$$$$$$$ |  $$ |  $$ |      $$ |      $$$$$\    
--  \$$\$$  / $$  __|   $$  __$$ |  $$ |  $$ |      $$ |      $$  __|   
--   \$$$  /  $$ |      $$ |  $$ |  $$ |  $$ |  $$\ $$ |      $$ |      
--    \$  /   $$$$$$$$\ $$ |  $$ |$$$$$$\ \$$$$$$  |$$$$$$$$\ $$$$$$$$\ 
--     \_/    \________|\__|  \__|\______| \______/ \________|\________|

-- Location where the vehicle will spawn when the job is selected
Veh.location = vector4(-634.31, -1657.46, 25.54, 240.96)
-- Model of the vehicle
Veh.model = "trash2"

-- Function for the delivery of vehicle keys to the user when spawning
function giveVehicleKeys(entity, plate)
    TriggerEvent('vehiclekeys:client:SetOwner', plate)
end

-- $$$$$$$$\ $$$$$$\ $$\   $$\ $$$$$$\  $$$$$$\  $$\   $$\ 
-- $$  _____|\_$$  _|$$$\  $$ |\_$$  _|$$  __$$\ $$ |  $$ |
-- $$ |        $$ |  $$$$\ $$ |  $$ |  $$ /  \__|$$ |  $$ |
-- $$$$$\      $$ |  $$ $$\$$ |  $$ |  \$$$$$$\  $$$$$$$$ |
-- $$  __|     $$ |  $$ \$$$$ |  $$ |   \____$$\ $$  __$$ |
-- $$ |        $$ |  $$ |\$$$ |  $$ |  $$\   $$ |$$ |  $$ |
-- $$ |      $$$$$$\ $$ | \$$ |$$$$$$\ \$$$$$$  |$$ |  $$ |
-- \__|      \______|\__|  \__|\______| \______/ \__|  \__|

Finish.location = vector4(-612.47, -1597.28, 26.46, 265.07)
Finish.markerType = 23
Finish.markerSize = vector3(5.0, 5.0, 5.0)
Finish.markerColor = vector3(0, 100, 58)
Finish.blipType = 67
Finish.blipScale = 0.7
Finish.blipColor = 43
Finish.blipText = "Finish Job"

-- $$\   $$\  $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\  $$$$$$\  
-- $$$\  $$ |$$  __$$\\__$$  __|\_$$  _|$$  _____|\_$$  _|$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |$$  __$$\ 
-- $$$$\ $$ |$$ /  $$ |  $$ |     $$ |  $$ |        $$ |  $$ /  \__|$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |$$ /  \__|
-- $$ $$\$$ |$$ |  $$ |  $$ |     $$ |  $$$$$\      $$ |  $$ |      $$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |\$$$$$$\  
-- $$ \$$$$ |$$ |  $$ |  $$ |     $$ |  $$  __|     $$ |  $$ |      $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ | \____$$\ 
-- $$ |\$$$ |$$ |  $$ |  $$ |     $$ |  $$ |        $$ |  $$ |  $$\ $$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |$$\   $$ |
-- $$ | \$$ | $$$$$$  |  $$ |   $$$$$$\ $$ |      $$$$$$\ \$$$$$$  |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |\$$$$$$  |
-- \__|  \__| \______/   \__|   \______|\__|      \______| \______/ \__|  \__|  \__|   \______| \______/ \__|  \__| \______/

function notifications(notitype, message, time)
    -- Change this trigger for your notification system keeping the variables
    TriggerEvent('codem-notification', message, time, notitype)
end

-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

-- $$$$$$$$\  $$$$$$\  $$$$$$$\   $$$$$$\  $$$$$$$$\ $$$$$$$$\ 
-- \__$$  __|$$  __$$\ $$  __$$\ $$  __$$\ $$  _____|\__$$  __|
--    $$ |   $$ /  $$ |$$ |  $$ |$$ /  \__|$$ |         $$ |   
--    $$ |   $$$$$$$$ |$$$$$$$  |$$ |$$$$\ $$$$$\       $$ |   
--    $$ |   $$  __$$ |$$  __$$< $$ |\_$$ |$$  __|      $$ |   
--    $$ |   $$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |         $$ |   
--    $$ |   $$ |  $$ |$$ |  $$ |\$$$$$$  |$$$$$$$$\    $$ |   
--    \__|   \__|  \__|\__|  \__| \______/ \________|   \__|

-- Function for the use of target on items such as garbage bags, barrels, tires, etc...
function target(elements, event, label)
    exports['qb-target']:AddTargetModel(elements, {
        options = {{
            type = "client",
            event = event,
            icon = "fas fa-box-circle-check",
            label = label
        }},
        distance = 3.0
    })
end

-- Function for the use of the target in entities (e.g., the npc delivering the job).
function entityTarget(entity, event, label)
    exports['qb-target']:AddTargetEntity(entity, {
        options = {{
            type = "client",
            event = event,
            icon = "fas fa-box-circle-check",
            label = label
        }},
        distance = 3.0
    })
end

-- Function for remove of target on items such as garbage bags, barrels, tires, etc...
function removeTarget(element)
    exports['qb-target']:RemoveTargetModel(element)
end

-- $$$$$$$\  $$$$$$$\   $$$$$$\  $$\      $$\ $$$$$$$$\ $$\   $$\ $$$$$$$$\ 
-- $$  __$$\ $$  __$$\ $$  __$$\ $$ | $\  $$ |\__$$  __|$$ |  $$ |\__$$  __|
-- $$ |  $$ |$$ |  $$ |$$ /  $$ |$$ |$$$\ $$ |   $$ |   \$$\ $$  |   $$ |   
-- $$ |  $$ |$$$$$$$  |$$$$$$$$ |$$ $$ $$\$$ |   $$ |    \$$$$  /    $$ |   
-- $$ |  $$ |$$  __$$< $$  __$$ |$$$$  _$$$$ |   $$ |    $$  $$<     $$ |   
-- $$ |  $$ |$$ |  $$ |$$ |  $$ |$$$  / \$$$ |   $$ |   $$  /\$$\    $$ |   
-- $$$$$$$  |$$ |  $$ |$$ |  $$ |$$  /   \$$ |   $$ |   $$ /  $$ |   $$ |   
-- \_______/ \__|  \__|\__|  \__|\__/     \__|   \__|   \__|  \__|   \__|

function drawTxt(key, text, font, centre, x, y, scale, r, g, b, a)
    TriggerEvent("bit-interact:Start", key, text)

    -- default drawtxt: 

    --[[SetTextFont(font)
    SetTextProportional(0)
    SetTextScale(scale, scale)
    SetTextColour(r, g, b, a)
    SetTextDropShadow(0, 0, 0, 0, 255)
    SetTextEdge(1, 0, 0, 0, 255)
    SetTextDropShadow()
    SetTextOutline()
    SetTextCentre(centre)
    SetTextEntry("STRING")
    AddTextComponentString(text)
    DrawText(x, y)]]
end

-- $$\        $$$$$$\  $$\   $$\  $$$$$$\  $$\   $$\  $$$$$$\   $$$$$$\  $$$$$$$$\ 
-- $$ |      $$  __$$\ $$$\  $$ |$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\ $$  _____|
-- $$ |      $$ /  $$ |$$$$\ $$ |$$ /  \__|$$ |  $$ |$$ /  $$ |$$ /  \__|$$ |      
-- $$ |      $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ |  $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\    
-- $$ |      $$  __$$ |$$ \$$$$ |$$ |\_$$ |$$ |  $$ |$$  __$$ |$$ |\_$$ |$$  __|   
-- $$ |      $$ |  $$ |$$ |\$$$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |      
-- $$$$$$$$\ $$ |  $$ |$$ | \$$ |\$$$$$$  |\$$$$$$  |$$ |  $$ |\$$$$$$  |$$$$$$$$\ 
-- \________|\__|  \__|\__|  \__| \______/  \______/ \__|  \__| \______/ \________|

Lang.putInTruck = "Put in the truck"
Lang.pickUp = "Pick up garbage"
Lang.openJobMenu = "Open job menu"
Lang.noJob = "You are not working as a garbage man, you cannot perform this action."
Lang.startJob = "You are now working as a garbage collector"
Lang.finishJob = "You have finished your work as a garbage collector, you have received a payment of"
Lang.noGarbage = "You have not found anything in this garbage can!"
Lang.noClothes = "You don't have the right clothes to start the job"
Lang.noClothesOff = "You must wear your work clothes during the working day."

-- $$$$$$\  $$\       $$$$$$\ $$$$$$$$\ $$\   $$\ $$$$$$$$\  $$$$$$\  
-- $$  __$$\ $$ |     $$  __$$\\__$$  __|$$ |  $$ |$$  _____|$$  __$$\ 
-- $$ /  \__|$$ |     $$ /  $$ |  $$ |   $$ |  $$ |$$ |      $$ /  \__|
-- $$ |      $$ |     $$ |  $$ |  $$ |   $$$$$$$$ |$$$$$\    \$$$$$$\  
-- $$ |      $$ |     $$ |  $$ |  $$ |   $$  __$$ |$$  __|    \____$$\ 
-- $$ |  $$\ $$ |     $$ |  $$ |  $$ |   $$ |  $$ |$$ |      $$\   $$ |
-- \$$$$$$  |$$$$$$$$\ $$$$$$  |  $$ |   $$ |  $$ |$$$$$$$$\ \$$$$$$  |
-- \______/ \________|\______/   \__|   \__|  \__|\________| \______/

if Config.Framework == "esx" then
    Clothes = {
        male = {
            ['tshirt_1'] = 59,
            ['tshirt_2'] = 0,
            ['torso_1'] = 56,
            ['torso_2'] = 0,
            ['decals_1'] = 0,
            ['decals_2'] = 0,
            ['arms'] = 41,
            ['pants_1'] = 9,
            ['pants_2'] = 7,
            ['shoes_1'] = 27,
            ['shoes_2'] = 0,
            ['helmet_1'] = 0,
            ['helmet_2'] = 0,
            ['chain_1'] = 0,
            ['chain_2'] = 0,
            ['ears_1'] = 0,
            ['ears_2'] = 0
        },
        female = {
            ['tshirt_1'] = 36,
            ['tshirt_2'] = 1,
            ['torso_1'] = 48,
            ['torso_2'] = 0,
            ['decals_1'] = 0,
            ['decals_2'] = 0,
            ['arms'] = 44,
            ['pants_1'] = 34,
            ['pants_2'] = 0,
            ['shoes_1'] = 27,
            ['shoes_2'] = 0,
            ['helmet_1'] = 45,
            ['helmet_2'] = 0,
            ['chain_1'] = 0,
            ['chain_2'] = 0,
            ['ears_1'] = 2,
            ['ears_2'] = 0
        }
    }
elseif Config.Framework == "qb" then
    Clothesmale = {
        outfitData = {
            ['pants'] = {
                item = 9,
                texture = 0
            },
            ['arms'] = {
                item = 41,
                texture = 0
            },
            ['t-shirt'] = {
                item = 59,
                texture = 0
            },
            ['vest'] = {
                item = 0,
                texture = 0
            },
            ['torso2'] = {
                item = 56,
                texture = 0
            },
            ['shoes'] = {
                item = 27,
                texture = 0
            },
            ['accessory'] = {
                item = 0,
                texture = 0
            },
            ['bag'] = {
                item = 0,
                texture = 0
            },
            ['hat'] = {
                item = 0,
                texture = 0
            },
            ['glass'] = {
                item = 0,
                texture = 0
            },
            ['mask'] = {
                item = 0,
                texture = 0
            }
        }
    }
    Clothesfemale = {
        outfitData = {
            ['pants'] = {
                item = 45,
                texture = 0
            },
            ['arms'] = {
                item = 2,
                texture = 0
            },
            ['t-shirt'] = {
                item = 36,
                texture = 0
            },
            ['vest'] = {
                item = 0,
                texture = 0
            },
            ['torso2'] = {
                item = 30,
                texture = 1
            },
            ['shoes'] = {
                item = 25,
                texture = 0
            },
            ['accessory'] = {
                item = 0,
                texture = 0
            },
            ['bag'] = {
                item = 0,
                texture = 0
            },
            ['hat'] = {
                item = 0,
                texture = 0
            },
            ['glass'] = {
                item = 0,
                texture = 0
            },
            ['mask'] = {
                item = 0,
                texture = 0
            }
        }
    }

end

-- $$$$$$\ $$$$$$$$\ $$$$$$$$\ $$\      $$\  $$$$$$\  
-- \_$$  _|\__$$  __|$$  _____|$$$\    $$$ |$$  __$$\ 
--   $$ |     $$ |   $$ |      $$$$\  $$$$ |$$ /  \__|
--   $$ |     $$ |   $$$$$\    $$\$$\$$ $$ |\$$$$$$\  
--   $$ |     $$ |   $$  __|   $$ \$$$  $$ | \____$$\ 
--   $$ |     $$ |   $$ |      $$ |\$  /$$ |$$\   $$ |
-- $$$$$$\    $$ |   $$$$$$$$\ $$ | \_/ $$ |\$$$$$$  |
-- \______|   \__|   \________|\__|     \__| \______/

streetTrash = {
    [-1738103333] = { -- prop_barrel_01a
        isBin = false,
        isDumpster = false,
        x = 0.0,
        y = 0.4,
        z = -0.5
    },
    [575699050] = { -- prop_rub_carpart_05
        isBin = false,
        isDumpster = false,
        x = 0.0,
        y = 0.6,
        z = -1.0
    },
    [1004070522] = { -- prop_rub_monitor
        isBin = false,
        isDumpster = false,
        x = 0.0,
        y = 0.4,
        z = -0.1
    },
    [-1570565546] = { -- prop_wheel_tyre
        isBin = false,
        isDumpster = false,
        x = 0.0,
        y = 0.4,
        z = -0.1
    },
    [1388308576] = { -- prop_rub_binbag_05
        isBin = false,
        isDumpster = false,
        x = 0.0,
        y = 0.4,
        z = -0.5
    },
    [1948359883] = { -- prop_rub_binbag_03b
        isBin = false,
        isDumpster = false,
        x = 0.5,
        y = 0.9,
        z = -0.3
    },
    [1098827230] = { -- prop_rub_binbag_06
        isBin = false,
        isDumpster = false,
        x = 0.5,
        y = 0.9,
        z = -0.3
    },
    [600967813] = { -- prop_rub_binbag_04
        isBin = false,
        isDumpster = false,
        x = -0.1,
        y = 0.6,
        z = -0.7
    },
    [-466572284] = { -- prop_rub_boxpile_10
        isBin = false,
        isDumpster = false,
        x = 0.0,
        y = 0.7,
        z = -0.1
    },
    [1437508529] = { -- prop_bin_01a
        isBin = true,
        isDumpster = false
    },
    [-2096124444] = { -- prop_bin_12a
        isBin = true,
        isDumpster = false
    },
    [-468629664] = { -- prop_bin_07b
        isBin = true,
        isDumpster = false
    },
    [-5943724] = { -- prop_bin_beach_01d
        isBin = true,
        isDumpster = false
    },
    [234941195] = { -- prop_bin_beach_01a
        isBin = true,
        isDumpster = false
    },
    [-1426008804] = { -- prop_bin_07c
        isBin = true,
        isDumpster = false
    },
    [1143474856] = { -- prop_bin_06a
        isBin = true,
        isDumpster = false
    },
    [-1187286639] = { -- prop_bin_07d
        isBin = true,
        isDumpster = false
    },
    [-93819890] = { -- prop_bin_04a
        isBin = true,
        isDumpster = false
    },
    [1614656839] = { -- prop_bin_02a
        isBin = true,
        isDumpster = false
    },
    [-130812911] = { -- prop_bin_03a
        isBin = true,
        isDumpster = false
    },
    [1329570871] = { -- prop_bin_05a
        isBin = true,
        isDumpster = false
    },
    [218085040] = { -- prop_dumpster_01a
        isBin = false,
        isDumpster = true,
        x = 0.00,
        y = 0.78,
        z = -1.00,
        rotX = 180.0,
        rotY = 180.0,
        rotZ = 0.0
    },
    [666561306] = { -- prop_dumpster_02a
        isBin = false,
        isDumpster = true,
        x = 0.00,
        y = 0.78,
        z = -1.00,
        rotX = 180.0,
        rotY = 180.0,
        rotZ = 0.0
    },
    [-58485588] = { -- prop_dumpster_02b
        isBin = false,
        isDumpster = true,
        x = 0.00,
        y = 0.78,
        z = -1.00,
        rotX = 180.0,
        rotY = 180.0,
        rotZ = 0.0
    },
    [-206690185] = { -- prop_dumpster_3a
        isBin = false,
        isDumpster = true,
        x = 0.00,
        y = 0.78,
        z = -1.00,
        rotX = 180.0,
        rotY = 180.0,
        rotZ = 0.0
    }
}

Last updated