[ESX/QBCORE] Sorter Job

A script by Flov1

No reviews yet.
[ESX/QBCORE] Sorter Job main image

Full Description

Idle = 0.00ms , While using = 0.03ms

STORE:

BUY HERE - Tebex

PREVIEW:

YouTube

FEATURES:

  • Optimized script
  • Open code
  • No IP-Lock
  • Synchronized with other players
  • Custom model

CONFIG:

Keys = {
    ['ESC'] = 322, ['F1'] = 288, ['F2'] = 289, ['F3'] = 170, ['F5'] = 166, ['F6'] = 167, ['F7'] = 168, ['F8'] = 169, ['F9'] = 56, ['F10'] = 57,
    ['~'] = 243, ['1'] = 157, ['2'] = 158, ['3'] = 160, ['4'] = 164, ['5'] = 165, ['6'] = 159, ['7'] = 161, ['8'] = 162, ['9'] = 163, ['-'] = 84, ['='] = 83, ['BACKSPACE'] = 177,
    ['TAB'] = 37, ['Q'] = 44, ['W'] = 32, ['E'] = 38, ['R'] = 45, ['T'] = 245, ['Y'] = 246, ['U'] = 303, ['P'] = 199, ['['] = 39, [']'] = 40, ['ENTER'] = 18,
    ['CAPS'] = 137, ['A'] = 34, ['S'] = 8, ['D'] = 9, ['F'] = 23, ['G'] = 47, ['H'] = 74, ['K'] = 311, ['L'] = 182,
    ['LEFTSHIFT'] = 21, ['Z'] = 20, ['X'] = 73, ['C'] = 26, ['V'] = 0, ['B'] = 29, ['N'] = 249, ['M'] = 244, [','] = 82, ['.'] = 81,
    ['LEFTCTRL'] = 36, ['LEFTALT'] = 19, ['SPACE'] = 22, ['RIGHTCTRL'] = 70,
    ['HOME'] = 213, ['PAGEUP'] = 10, ['PAGEDOWN'] = 11, ['DEL'] = 178,
    ['LEFT'] = 174, ['RIGHT'] = 175, ['TOP'] = 27, ['DOWN'] = 173,
} -- Do not touch

Config = {} -- Do not touch

Config.ResouceName = 'inside-sorter' -- Folder / script name

Config.jobrequirement = false -- Whether work requires a job
Config.jobname = 'warehouse' -- Name of the job that is required

Config.clothesreq = true -- Changing into clothes when we start work

Config.Payment = 600 -- How much will he receive payouts for the entire one course with packages

Config.VehicleSpawn = 10000 -- Time after which the truck will show up when we run the script. I recommend leaving it at 5000. If the vehicle appears in the air, increase this value

Config.warehouse = {
	['Unloading'] = { -- The place of the truck
		Pos = {x = 1198.34, y = -1364.00, z = 35.46, h = 175.35}, -- Location
		Model = 'MULE', -- Vehicle model
        Box = 'prop_cs_cardbox_01', -- Box models in the truck, better leave it
        Box2 = 'prop_boxpile_03a', -- Box models in the truck, better leave it

        UnloadPos = {x = 1198.79, y = -1359.95, z = 35.23, h = 174.93}, -- A place where we can pick up a package from the truck
        Marker = {Type=27, Scale={x=1.0,y=1.0,z=1.0}, Colour={r=51,g=255,b=187,a=140}}, -- Marker configuration
        Blip = {Type=479, Scale=0.8, Colour=0, Name='Truck'}, -- Blip configuration

        Table = {}, -- Do not touch
        Table2 = {}, -- Do not touch
        Table3 = {}, -- Do not touch
	},
    ['Boss'] = { -- The boss's place where we start work
		Pos = {x = 1203.53, y = -1336.78, z = 35.23, h = 20.23}, -- Location
        Blip = {Type=351, Scale=1.0, Colour=0, Name='Warehouse'}, -- Blip configuration
		Model = 'a_m_y_business_01', -- Boss model
        Marker = {Type=32, Scale={x=0.35,y=0.9,z=0.35}, Colour={r=51,g=255,b=187,a=140}}, -- Marker configuration over the boss
        Clothes = {x = 1204.16, y = -1335.10, z = 35.23, h = 260.88}, -- Location
	},
    ['PalletTruck'] = { -- The place where we pick up a hand pallet truck
		Pos = {x = 1217.45, y = -1331.61, z = 35.23, h = 82.11}, -- Location
        Blip = {Type=365, Scale=1.0, Colour=0, Name='Pallet Truck'}, -- Blip configuration
        Marker = {Type=2, Scale={x=0.35,y=0.9,z=0.35}, Colour={r=51,g=255,b=187,a=140}}, -- Marker configuration
        Marker2 = {Type=25, Scale={x=3.0,y=3.0,z=1.0}, Colour={r=51,g=255,b=187,a=200}}, -- Marker configuration
        Center = {x = 1201.21, y = -1329.45, z = 35.23, h = 168.45, maxradius = 50}, -- The middle of the workplace and the distance we can move as far as possible while working(it only works when we go too far with a pallet truck)
	},
}

Config.PackagesColours = { -- Max 3 categories
    {
        name = '~w~electronics', -- Name of the first type of packages
        key = '=', -- The key used to pick up the package from the pallet truck
        deposit = { -- Locations to which we can deliver parcels of a given type, maximum 6
            [1] = {x = 1216.79, y = -1345.91, z = 35.22, h = 296.41, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [2] = {x = 1216.15, y = -1353.71, z = 35.22, h = 261.69, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [3] = {x = 1214.75, y = -1360.91, z = 35.23, h = 95.68, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [4] = {x = 1205.87, y = -1363.67, z = 35.23, h = 88.66, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [5] = {x = 1210.22, y = -1351.39, z = 35.23, h = 351.85, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [6] = {x = 1206.66, y = -1343.72, z = 35.23, h = 8.79, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
        },
        Marker = {Type=27, Scale={x=1.0,y=1.0,z=1.0}, Colour={r=51,g=255,b=187,a=140}}, -- Marker configuration
        Blip = {Type=521, Scale=0.5, Colour=38, Name='electronics'}, -- Blip configuration
    },
    {
        name = '~w~chemicals', -- Name of the second type of packages
        key = 'G', -- The key used to pick up the package from the pallet truck
        deposit = { -- Locations to which we can deliver parcels of a given type, maximum 6
            [1] = {x = 1193.68, y = -1336.71, z = 35.17, h = 94.52, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [2] = {x = 1193.99, y = -1342.94, z = 35.20, h = 163.54, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [3] = {x = 1194.49, y = -1355.81, z = 35.21, h = 99.13, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [4] = {x = 1187.95, y = -1360.83, z = 35.03, h = 5.50, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [5] = {x = 1182.70, y = -1353.61, z = 34.89, h = 356.65, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [6] = {x = 1187.36, y = -1341.70, z = 34.97, h = 261.70, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
        },
        Marker = {Type=27, Scale={x=1.0,y=1.0,z=1.0}, Colour={r=51,g=255,b=187,a=140}}, -- Marker configuration
        Blip = {Type=499, Scale=0.5, Colour=43, Name='chemicals'}, -- Blip configuration
    },
    {
        name = '~w~glass', -- Name of the third type of packages
        key = 'E', -- The key used to pick up the package from the pallet truck
        deposit = { -- Locations to which we can deliver parcels of a given type, maximum 6
            [1] = {x = 1209.04, y = -1325.26, z = 35.23, h = 354.82, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [2] = {x = 1216.15, y = -1321.66, z = 35.23, h = 268.54, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [3] = {x = 1214.08, y = -1313.23, z = 35.23, h = 167.25, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [4] = {x = 1220.17, y = -1307.08, z = 35.22, h = 78.37, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [5] = {x = 1219.89, y = -1299.39, z = 35.23, h = 357.80, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
            [6] = {x = 1210.52, y = -1303.60, z = 35.23, h = 178.55, active = false, blip}, -- location, 'active' do not touch, 'blip' do not touch
        },
        Marker = {Type=27, Scale={x=1.0,y=1.0,z=1.0}, Colour={r=51,g=255,b=187,a=140}}, -- Marker configuration
        Blip = {Type=652, Scale=0.5, Colour=0, Name='glass'}, -- Blip configuration
    },
}

Config.TimesEnd = 0  -- Do not touch

Config.Text = { -- 3D TEXT
    [1] = {'To start work, press ~w~[~g~E~w~]','E'}, -- To start work / argument 2 for key
    [2] = {'To finish work, press ~w~[~g~G~w~]','G'}, -- To finish work / argument 2 for key
    [3] = {'You are not employed as ~w~'..Config.jobname}, -- Information when you do not have the required job
    [4] = {'To pull out the hand pallet truck, press ~w~[~g~E~w~]','E'}, --- When you are at the pickup point of the pallet truck / argument 2 for key
    [5] = {'To return a pallet truck, press ~w~[~g~E~w~]','E'}, -- When you return the pallet truck at the point / argument 2 for key
    [6] = {'To release the pallet truck, press ~w~[~g~-~w~]','-'}, -- To release the pallet truck / argument 2 for key
    [7] = {'To grab the pallet truck, press ~w~[~g~-~w~]','-'}, -- To grab the pallet truck / argument 2 for key
    [8] = {'Put the Pallet Truck down next to you to pick up the package'}, -- When we have a pallet truck with us at the truck
    [9] = {'To pick up the package, press ~w~[~g~E~w~]','E'}, -- When we have a pallet truck with us at the truck
    [10] = {'To put the package down, press ~w~[~g~-~w~]','-'}, -- When we put the package back in a pallet truck
    [11] = {'To put the package back to the truck, press ~w~[~g~E~w~]','E'}, -- When we want to return the package to the truck
    [12] = {'To put the package down, press ~w~[~g~E~w~]', 'E'}, -- When we want to put away the package that we picked up from the pallet truck
    [13] = {'To put down the package, press ~w~[~g~-~w~]', '-'}, -- When we want to put the package on the shelf
    [14] = {"This package shouldn't be here"}, -- When we pick up a package and want to return it to the wrong department
    [15] = {"You do not have a package with you, take it from your pallet truck"}, -- When we approach the marker, without the package picked up
    [16] = {"To put on work clothes, press ~w~[~g~-~w~]","-"}, -- When we approach the cupboard with requirement to change into working clothes
    [17] = {"Change into work clothes"}, -- The message above the boss when we start working with the clothes requirement
    [18] = {"To collect your payout, press ~w~[~g~-~w~]","-"}, -- Above the boss to collect your paycheck
}

Config.Notifications = { -- 3 arguments that go to the function below
    [1] = {'inform', "Go left to get the hand pallet truck", 3000}, -- Notification after start job
    [2] = {'inform', "Thanks for the help...", 3000}, -- Notification after finish job
    [3] = {'error', "You left your workplace, the work is finished", 3000}, -- When you get too far away from your workplace
    [4] = {'inform', "Go to the truck to unload the parcels", 3000}, -- Message when we pick up the pallet truck
    [5] = {'inform', "You already put away all the packages, go to the boss for a reward or unload more packages", 4000}, -- When you put down all 6 packs
    [6] = {'error', "Put your pallet truck a little further away from the truck", 3000}, -- When our pallet truck is too close to the package truck
    [7] = {'inform', "Put on your work clothes in the cupboard next to me", 3000}, -- When we start working with the requirement to change into working clothes
}

function notification(type, msg, duration)
    exports['mythic_notify']:DoCustomHudText(type, msg, duration) -- Change to your notifications if you need it. You give all arguments in Config.Notifications
end

Config.Clothes = { -- When Config.clothesreq is enabled, the character changes to this data
    male = {
        ['tshirt_1'] = 59,  ['tshirt_2'] = 1,
        ['torso_1'] = 56,   ['torso_2'] = 0,
        ['decals_1'] = 0,   ['decals_2'] = 0,
        ['arms'] = 0,
        ['pants_1'] = 63,   ['pants_2'] = 0,
        ['shoes_1'] = 14,   ['shoes_2'] = 0,
        ['chain_1'] = 0,    ['chain_2'] = 0,
        ['helmet_1'] = 0,  ['helmet_2'] = 0,
        ['ears_1'] = -1,     ['ears_2'] = 0,
        ['bproof_1'] = 0,  ['bproof_2'] = 0
    },
    female = {
        ['tshirt_1'] = 36,  ['tshirt_2'] = 1,
        ['torso_1'] = 73,   ['torso_2'] = 0,
        ['decals_1'] = 0,   ['decals_2'] = 0,
        ['arms'] = 14,
        ['pants_1'] = 74,   ['pants_2'] = 0,
        ['shoes_1'] = 24,   ['shoes_2'] = 0,
        ['chain_1'] = -1,    ['chain_2'] = 0,
        ['helmet_1'] = 0,  ['helmet_2'] = 0,
        ['bproof_1'] = 0,  ['bproof_2'] = 0
    }
}

Code accessible [Yes]
Subscription based [No]
Lines (approximately) [~1000]
Requirements [model, download in file]
Support [Yes]