Here is an explanation on how to add more than one white widow shop using different jobs.
Inside Config.Locations, you can see the default one already added, which supports the whitewidow mlo provided with the script.
{ Job = { name ="whitewidow", autoClock = { enter = true, exit = true, }, -- Turning these on will detect if the person has the job and auto clock them on or off
zones = { -- Clockin/out zonevector2(214.04, -233.81),vector2(198.06, -275.28),vector2(147.99, -256.14),vector2(163.31, -218.23) }, }, Img ="https://i.imgur.com/KTZpqws.png", -- Image of business banner on cashRegister Blip = { enabled = true, name = "White Widow", coords = vector3(193.24, -244.53, 54.07), sprite = 469, color = 52, scale = 1.0, }, -- Blip Settings
Booth = { enabled =true, -- Set false if using external DJ/Music stuff DefaultVolume =0.1, -- 0.01 is lowest, 1.0 is max radius =50, -- The radius of the sound from the booth coords =vector4(189.83, -256.02, 54.07, 75.07), -- Where the booth is located playing =false, -- Do not touch }, Vehicle = { enabled =true, -- Set false if you do not want to use this feature hash ='204sWhiteWidowVan', -- Hash of the vehicle to spawn spawnLocation =vector4(198.45, -277.61, 48.39, 252.49), -- Location at which the vehicle spawns at deposit =100, -- Deposit of borrowing vehicle, given back if returned spawnerLocation = vector4(197.76, -265.13, 50.56, 337.94), -- Where the prop spawns to take out a vehicle when targetted
plate ="WWIDOW", -- The plate number you want the vehicle to have }, Locations = { shop = {vector4(175.43, -239.87, 50.17, 170.0), }, -- Where employees go get ingredients and items cashRegister = {vector4(197.93, -235.71, 54.19, 116.55),vector4(188.02, -243.52, 54.98, 251.71),vector4(188.87, -241.03, 54.99, 253.36), }, cuttingWeed = { vector4(165.81, -235.84, 49.94, 270.0),}, -- Cutting weed into baggies rollingJoints = { vector4(185.65, -241.5, 54.12, 70.72), }, cooking = { vector4(171.88, -234.58, 50.06, 341.65), }, customerStorage = { vector4(188.5, -239.72, 54.12, 70.0) }, -- Trays, etc, Storage anyone can access employeeStorage = { vector4(180.03, -243.29, 53.42, 70.0), }, -- Shared Storage only for employees, for stock snackTable = { vector4(187.12, -247.45, 54.24, 71.12), }, clothing = {vector4(174.17, -235.02, 50.06, 341.65),vector4(184.41, -241.88, 54.07, 341.65), }, clockin = { vector4(182.43, -250.22, 53.87, 135.0)}, plantHarvesting = { ["Skunk"] = { {coords =vector4(164.45, -248.43, 50.06, 340.0), length =10.0, width =1.0, }, }, ["OGKush"] = { {coords =vector4(166.15, -243.68, 50.07, 340.0), length =10.0, width =1.0, }, }, ["WhiteWidow"] = { {coords =vector4(170.62, -241.11, 50.88, 340.0), length =5.0, width =3.0, }, }, ["AK47"] = { {coords =vector4(165.66, -244.79, 50.06, 340.0), length =10.0, width =1.0, }, }, ["Amnesia"] = { {coords =vector4(165.31, -246.07, 50.06, 340.0), length =10.0, width =1.0, }, }, ["PurpleHaze"] = { {coords =vector4(164.94, -247.16, 50.06, 340.0), length =10.0, width =1.0, }, }, ["Gelato"] = { {coords =vector4(164.12, -239.78, 51.02, 340.0), length =5.0, width =1.0, }, }, ["Zkittlez"] = { {coords =vector4(164.95, -237.9, 51.07, 340.0), length =5.0, width =1.0, }, }, } }, PropTable = { -- Spawn props at certain locations, already set for white widow mlo provided. Leave empty if nothing required to spawn!
{ prop ="prop_cooker_03", coords =vector4(171.88, -234.58, 50.06, 341.65) }, -- Cooker in basement to cook edibles },},
What does this mean?
Its quite simple really, all you need to do to create a new location is copy the obove within Config.Locations found within the Config file. Just paste it below any existing locations setup.
From there on, you need to change the Job Settings...
Job = {
name = "whitewidow", -- Job name
autoClock = { enter = true, exit = true, }, -- Turning these on will detect if the person has the job and auto clock them on or off
zones = { -- Clockin/out zone
vector2(214.04, -233.81),
vector2(198.06, -275.28),
vector2(147.99, -256.14),
vector2(163.31, -218.23)
},
},
Change "whitewidow" to the name of the job you want for the location you are adding.
autoClock is a feature which auto clocks the user when within the zone of the mlo/ location, i recommend to have it set to true for both enter and exit, which toggles the players job off, if they leave the shop, and on, if they enter the shop.
You need to set the zone if using autoClock feature, by simply collecting 4 vector2's to create a polyZone box around your mlo. We recommend you have Config.Debug set to true when doing locations.
Then go ahead and edit the blip name, and location...