https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
----------------------------------------------------------------------pcaqbramqsiujmbqvyiuqgkwnriszawod
-- Garbage Configuration Options --https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
-- The following options can be changed to make your --https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
-- Garbage job unique and suit your server --sctybdaiinibnenwitotsmowqmvmxksqmlo
----------------------------------------------------------------------uvahekhfcbmdfetdhnedoywrk
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
local Garbage_Options = {sgxsyrahnzjufbmgjhjdqtfxkwisds
Boss = {https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
Location = vector4(-319.23, -1545.41, 27.8, 327.55),https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
Model = 's_m_y_garbage',https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
},https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
Sprite = {gurcwwskiovtezuzk
icon = 318,oibjkffhopwojmzeshp
colour = 36,你好啊
name = '垃圾管理公司',https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
},cwsovkliglezicpe
Truck = {jwbsoarqqdyapgllekjdogdssvkgggh
Spawn = vector4(-320.69, -1527.13, 27.55, 274.8),rkckapwpdlfajifizpvnicp
Type = {mwajrootmuxukjhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
'trash',https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
'trash2',https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
}https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
},https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
Payment = {https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
flatRate = false,lqufqnisfyzhzhkvayrkkzrwereggixszsxpfghlfhs
flatRateAmount = 10,https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
DistanceMultiplier = 1.8, -- 仅当 flatRate = false 时才适用,根据从接送到下车的距离乘以支付司机。uvahekhfcbmdfetdhnedoywrk
itemList = {https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
{name = 'rubber', min = 1, max = 2},tyscflayhabldbmxn
{name = 'metalscrap', min = 1, max = 2},iyfucikyinkzbnjlwjzwtqqagumunlhvjmqmvbke
},https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
},https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
SearchGarbage = false,ltyjpcelsjsfnhvsl
Objects = {sbmnzifzrlbtzysueiwgmneirdwjjoacpnppvvpngqgghttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
-1096777189,https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
666561306,yjqzpjopjqmor
1437508529,https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
-1426008804,mywkyowszageobjrptb
-228596739,bcnkiolhfroer
651101403,https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
-58485588,diirjaizehztokfsvowjvz
218085040,https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
},yerhphiqjnuhoundvw
}aziryzcqmhjmilvxyyyexadmrrnlwhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
local garbagejobOptions = {bcnkiolhfroer
AllowMarker = true,https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
LocationMarker = 3,https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
Location = {gkgkxklbsmpp
vector3(114.83,-1462.31, 29.29508),https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
vector3(-6.04,-1566.23, 29.209197),https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
vector3(-1.88,-1729.55, 29.300233),https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
vector3(159.09,-1816.69, 27.91234),dzzbpilqcvegfreq
vector3(358.94,-1805.07, 28.96659),plyvwokbipqcucffxux
vector3(481.36,-1274.82, 29.64475),https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
vector3(127.9472,-1057.73, 29.19237),https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
vector3(-1613.123, -509.06, 34.99874),azqnkrzqeurbywrhhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
vector3(342.78,-1036.47, 29.19420),pbtpvwlbadfyfunguswucnvhjpmtkswa
vector3(383.03,-903.60, 29.15601), https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
vector3(165.44,-1074.68, 28.90792), kxuwoybidqcfbhpkns
vector3(50.42,-1047.98, 29.31497), fyzmctxprpesbmbiyqvrocgl
vector3(-1463.92, -623.96, 30.20619),iorwhwcummcxyqvdhingafsrwcqqwpwfdob
vector3(443.96,-574.33, 28.49450),yoymeaffhktvfpwwhqmfesmmkwfcdie
vector3(-1255.41,-1286.82,3.58411), https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
vector3(-1229.35, -1221.41, 6.44954),https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
vector3(-31.94,-93.43, 57.24907),https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
vector3(274.31,-164.43, 60.35734),elzopgamnlrrltguyloykykuhvxusrjwcjkrqkedwv
vector3(-364.33,-1864.71, 20.24249), https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
vector3(-1239.42, -1401.13, 3.75217),dazfoojsigrqgpikvpboqxz
},rvatkhxvguygqdogyczmrmjsoacdwgknbkg
}xqxqijatkoejmxlmttmbgtpzabweb
yzyebuwhopzahuxnkpenaugbijjfbfyzfwegqaoepnfwh
----------------------------------------------------------------------https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
-- Garbage Script --https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
-- It is NOT recommended to change any of the following --https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
----------------------------------------------------------------------https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
local PedSpawned = falsepqomcqnfwlkqzqkrmftaabjpn
local garbageOnJob = falsejrrnfsiltrvdwwjvvorzvhzjmpwrleuv
local garbagebag = nilhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
local searched = {}https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
local searching = false你好啊
local assignedRoute = {}https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
local totaldist = 0bmxhadzfbzfjmghvhozybnmbs
plyvwokbipqcucffxux
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
if Config.GarbageJobOn thenyoymeaffhktvfpwwhqmfesmmkwfcdie
CreateThread(function()hmmiysyaejrviivxdlypjyf
JobBlip(Garbage_Options.Boss.Location, Garbage_Options.Sprite.icon, Garbage_Options.Sprite.colour, Garbage_Options.Sprite.name)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
Job3DText(Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo')这是干扰码
while true dohttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
local Pos = GetEntityCoords(PlayerPedId())lvectncvyiehpdpfdkxrjk
local GarbageBoss = vector3(Garbage_Options.Boss.Location.x, Garbage_Options.Boss.Location.y, Garbage_Options.Boss.Location.z)aqzjamcpettfgnfjykmqbprxjabkgiigzipzusozmifsvkcuu
local Dist = #(Pos - GarbageBoss)hopsyszubmwobedpiigprtrnonbzzavgplzodzjflftnkxcs
if Dist <= 50 and not PedSpawned thenwazwonejprphmagiwtuediqujwm
TriggerEvent('angelicxs-CivilianJobs:MAIN:SpawnBossNPC', Garbage_Options.Boss.Model, Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo', ' GarbageJob.lua')sxakxsyoajdyqwmjezhcqwxtaqhtmuxfsy
PedSpawned = truetydylwviulronwsiitjgsg
elseif PedSpawned and Dist > 50 thenpqomcqnfwlkqzqkrmftaabjpn
PedSpawned = falsehttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
enduamesvrsnzezybkxphqohwtvydnnxodsppwikoayof
Wait(2000)bikjbcpxovgtujpadvw
endhmmiysyaejrviivxdlypjyf
end)https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
ofnhzicaphlwnnxzrdekglylomkldueszszzacapklmxz
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:HowTo', function()哈哈
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_how_to'], Config.LangType['info'])bmxhadzfbzfjmghvhozybnmbs
--print(Config.Lang['garbage_how_to'])https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
end)https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:AskForWork', function()iorwhwcummcxyqvdhingafsrwcqqwpwfdob
if FreeWork or PlayerJob == Config.GarbageJobName thenhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
if not MissionVehicle thenlvectncvyiehpdpfdkxrjk
local ChosenVehicle = Randomizer(Garbage_Options.Truck.Type, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')kdfxqivoyrsfzfmaker
TriggerEvent('angelicxs-CivilianJobs:MAIN:CreateVehicle', ChosenVehicle, Garbage_Options.Truck.Spawn, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')pmgyemczxlnfujminn
while not DoesEntityExist(MissionVehicle) dohttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
Wait(25)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
endelzopgamnlrrltguyloykykuhvxusrjwcjkrqkedwv
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
else不影响正文阅读
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')fecvsnpjhnngzkbhenztawmiefrkyyvddxzwlo
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
elsehttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['wrong_job'], Config.LangType['error'])xzyicjaloolntffmqki
endyuqrckmvlhsoqmnjotuprcqsn
end)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
ktxctznsttrhqkockammmgjifmuhiyh
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork', function()https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
if not garbageOnJob thenhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
garbageOnJob = truehttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_start'], Config.LangType['info'])yuqrckmvlhsoqmnjotuprcqsn
local assigned = GarbageRouteMaker()jvtuldxxepbpofhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
while not assigned do Wait(25) endjvtuldxxepbpofhttps://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
GarbageRouteManager()https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
elsehttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_on_job'], Config.LangType['error'])cpfghgtjoszkjomqzpiecj
endhttps://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
end)lxbqvvjyttneoaulptmgpqmnylsqnzozwpqrlzpetdjhdessx
dzzbpilqcvegfreq
if Garbage_Options.SearchGarbage thenbikjbcpxovgtujpadvw
if Config.UseThirdEye thenhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
CreateThread(function()https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
if Config.ThirdEyeName == 'ox_target' thenbcnkiolhfroer
local ox_options = {dowvkjuoxwsowwqweplozfreqvknykp
{vhpeqkbtwzjfypmypzsmedpwacmqockjjzozkqtgpdmoty
name = 'SearchGarbageBin',https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
onSelect = function()https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
ThirdEyeGarbageSearch()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
end,https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
label = Config.Lang['garbage_search_bin'],https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
canInteract = function(entity)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
if searching then return false elsehttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
return not searched[entity]https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
endhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
end,oumubsbrvkzntawtedsyrddkysgingkb
},pgctbviloujmeusvrtbpgdkzxcawfhpvnsopnwabrjove
}https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
exports.ox_target:addModel(Garbage_Options.Objects, ox_options)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
elsehttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
exports[Config.ThirdEyeName]:AddTargetModel(Garbage_Options.Objects, {yjqzpjopjqmor
options = {aantweldrxmpplq
{diirjaizehztokfsvowjvz
action = function()https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
ThirdEyeGarbageSearch()xbpmoikzbmimxghuufwdjmgoond
end,https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
label = Config.Lang['garbage_search_bin'],dzzbpilqcvegfreq
canInteract = function(entity)ppxxdfzrjnnsgbmzobven
if searching then return false elsehttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
return not searched[entity]https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
endsgxsyrahnzjufbmgjhjdqtfxkwisds
end,uloorlomvs
}, fxoypyiqyvnjlaqkecneaysftbsbpfpuddsscbjaw
},jrrnfsiltrvdwwjvvorzvhzjmpwrleuv
distance = 2afzbzornbteo
}) https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
end https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
end)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
function ThirdEyeGarbageSearch()https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
local pos = GetEntityCoords(PlayerPedId())https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)dzzbpilqcvegfreq
if not searched[garbage] thenhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
searched[garbage] = truemuyhtktergzchqqyprrvnkczvbcdoi
searching = trueuvahekhfcbmdfetdhnedoywrk
SearchGarbage()xqxqijatkoejmxlmttmbgtpzabweb
breakkzytbavizimhntglweam
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
endwvofmythfhbskxo
enddowvkjuoxwsowwqweplozfreqvknykp
endktxctznsttrhqkockammmgjifmuhiyh
if Config.Use3DText thenhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
CreateThread(function()xqxqijatkoejmxlmttmbgtpzabweb
while Garbage_Options.SearchGarbage dohttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
local sleep = 1200sghzbdmgfudlxvjmxvwrmggczbgoydoqjvplzcrfwvqurzgovd
local ped = PlayerPedId()这是干扰码
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
if not inVehicle thenhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
local pos = GetEntityCoords(ped)zglbfamdgrq
for i=1, #Garbage_Options.Objects dodiirjaizehztokfsvowjvz
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)sgxsyrahnzjufbmgjhjdqtfxkwisds
local propPos = GetEntityCoords(garbage)cakoijygodqpzrlwxastiivycggrsbiuctikchrqkigj
local dist = #(pos-propPos)dovoxrfkwxfjhmtsruulizo
if dist <= 10 and not searched[garbage] thenrkckapwpdlfajifizpvnicp
sleep = 0https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
if dist <= 3 thenbvwzwllltwkvithgapbuuxydkeszsv
DrawText3Ds(propPos.x, propPos.y, propPos.z, Config.Lang['garbage_search_bin_3D'])https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
if IsControlJustReleased(0, 38) and not searching thenhttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
searched[garbage] = truedovoxrfkwxfjhmtsruulizo
searching = truepgctbviloujmeusvrtbpgdkzxcawfhpvnsopnwabrjove
SearchGarbage()irfevlinhjwhneagrkztskjaznx
end https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
endhttps://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
endyoymeaffhktvfpwwhqmfesmmkwfcdie
endwcvocxpzzppjemgkoyhbyo
endproerxipoebxiaflrbjlbzsumnsrfrhvivaztiohmq
Wait(sleep)https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
endhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
end)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
endhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
endhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
nvbtkvjhhvvnechwfdsyobmkuqjpqtudpww
function GarbageRouteMaker()sgxsyrahnzjufbmgjhjdqtfxkwisds
local init = vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z)bmxhadzfbzfjmghvhozybnmbs
local previousLocation = inithttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
for i =1, #garbagejobOptions.Location dohttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
local spot = garbagejobOptions.Location[i]yatgxzsldbdhymqmnsbaiqwdfjjwqploqfvoenaipd
local routeAdd = math.random(1,3) -- 33% to add route to routecpfghgtjoszkjomqzpiecj
if routeAdd == 1 thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
table.insert(assignedRoute, spot)sbmnzifzrlbtzysueiwgmneirdwjjoacpnppvvpngqgghttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
local dist = #(previousLocation-spot)https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
previousLocation = spotkopgquprtfxzwwqkkwgjmcepysijcjymxotojjgcod
totaldist = totaldist + math.floor(dist)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
endzglbfamdgrq
endjvtuldxxepbpofhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
return truehttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
endxbpmoikzbmimxghuufwdjmgoond
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
function GarbageRouteManager()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
local bag = falsehttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
local routenumber = 0lmaagmuehfnscgbsbe
for i = 1, #assignedRoute docymbiuiazidlggfojxccnlgowynpyppancbvwkwwtahagnoqlq
if not garbageOnJob then return endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
routenumber = routenumber + 1https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, assignedRoute[i], '垃圾位置', 'GarbageRouteManager()')aqfrgciaiirmxawprpnchttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
while true dohttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
local sleep = 1100tydylwviulronwsiitjgsg
local ped = PlayerPedId()tydylwviulronwsiitjgsg
local coord = GetEntityCoords(ped)lcixjtsyajfsedrqmkdlsienzyftsslevubfnudodigi
local dist = #(coord-assignedRoute[i])https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
if dist <= 50 thenpgctbviloujmeusvrtbpgdkzxcawfhpvnsopnwabrjove
sleep = 500jvtuldxxepbpof https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
if dist <= 25 theniorwhwcummcxyqvdhingafsrwcqqwpwfdob
sleep = 0https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
if garbagejobOptions.AllowMarker thenuilwoaehvhtchainlblgnubxeepjpaykijhxjlefty
DrawMarker(garbagejobOptions.LocationMarker, assignedRoute[i].x, assignedRoute[i].y, (assignedRoute[i].z+2), 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 2.0, 2.0, 2.0, 100, 200, 50, 255, true, true, 2, 0.0, false, false, false)djcpeyxssouxhvcoudegkfmnhphmwwszfup
endhttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
if not garbagebag then https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
if dist <= 5 thenhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
if not inVehicle then fgeiayviwbiipiecqtceewlgslddoezulecldytzzciokmrb
DrawText3Ds(assignedRoute[i].x, assignedRoute[i].y, assignedRoute[i].z, Config.Lang['garbage_get_garbage'])efofsfyazhnbyiagdrnnoafwsexp
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
GetGarbage()dxakadxnbkgtwrbzlxuebourvnzeocdrzebahzojjudflefwca
endpcaqbramqsiujmbqvyiuqgkwnriszawod
enduizlpqqgcjegqvhfykljrwgbhiu
endbdwxijoauqkvfhljsqjbypkyffhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
elsehttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local vehiclecoords = GetOffsetFromEntityInWorldCoords(MissionVehicle, 0.0, -4.5, 0.0)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
local vDist = #(coord-vehiclecoords)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
if vDist <= 5 thenhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
DrawText3Ds(vehiclecoords.x, vehiclecoords.y, vehiclecoords.z, Config.Lang['garbage_put_garbage'])ppxxdfzrjnnsgbmzobven
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
PutGarbage()jwbsoarqqdyapgllekjdogdssvkgggh
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_in_truck'], Config.LangType['info'])https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
breakhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
endhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
endhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
endhttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
endxlytuqrtbdnhqyuxajpjdclyvplkmcgkofdivvcxzqeqpznp
endhttps://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
Wait(sleep) https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endhttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
end https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z), '垃圾总站', 'GarbageRouteManager()')syvmfpwtzprexrxwprlvediarshbzfurdqeifacfqtkolhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_route_complete'], Config.LangType['success'])djzzqjmrutdnxlmvqtlzogglbzajciffsfeipraklexipkeg https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
if Garbage_Options.Payment.flatRate thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
local p = math.floor(routenumber * Garbage_Options.Payment.flatRateAmount)ktxctznsttrhqkockammmgjifmuhiyh
PaymentFlat(tonumber(p), 'Garbage Job - GarbageRouteManager()')xcobdthkdbg
elsehttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
PaymentFlat((tonumber(totaldist)*tonumber(Garbage_Options.Payment.DistanceMultiplier)), 'Garbage Job - GarbageRouteManager()') -- for distance based paymentstmiygamnzvnipaokthcwzwkdb
endgqakiniypxevekpnzhnjrbvhblqfnzvupwfyjnxylbuhttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
garbageOnJob = falsehttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
totaldist = 0phuhmrcdltdsiywohfasppknbezeiiwyprfciigucjmk
assignedRoute = {}https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
endmuyhtktergzchqqyprrvnkczvbcdoi
hhxdxuibikmtosreamtzdlfcrrcbwtidbgh
function GetGarbage()https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
local ped = PlayerPedId()vrkhjlqunqnic
local bag = HashGrabber('prop_cs_rub_binbag_01')nqhzdabeirblxlvublgpcllqqzrzovqblxapxbugtwr
FreezeEntityPosition(ped, true)aqfrgciaiirmxawprpnc https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
LoadAnim('missfbi4prepp1')uxgjqhvoowrnbtngc
TaskPlayAnim(ped,"anim@amb@clubhouse@tutorial@bkr_tut_ig3@","machinic_loop_mechandplayer",1.0, -1.0, -1, 49, 0, 0, 0, 0)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
Wait(math.random(1000,5000))https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
FreezeEntityPosition(ped, false)lxbqvvjyttneoaulptmgpqmnylsqnzozwpqrlzpetdjhdessx
ClearPedTasks(ped)https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
garbagebag = CreateObject(bag, 0, 0, 0, true, true, true)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)wbzqtbppsxbkcxlsajromwxnjg
AttachEntityToEntity(garbagebag, ped, GetPedBoneIndex(ped, 57005), 0.12, 0.0, -0.05, 220.0, 120.0, 0.0, true, true, false, true, 1, true)https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
CreateThread(function()dovoxrfkwxfjhmtsruulizo
while garbagebag dohttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
local player = PlayerPedId()https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
if IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man',3) thenhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
elseif not IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man',3) thenhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
ClearPedTasks(ped)https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)dowvkjuoxwsowwqweplozfreqvknykp
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
Wait(0)tcmfdmjkmpzcmoibtkdjnfvskkmxcgmvizbmllwyaw
endbgnjjzarugbdspxcubwautclwwvvt https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
RemoveAnimDict("missfbi4prepp1")rvatkhxvguygqdogyczmrmjsoacdwgknbkg
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
end)https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
endyoymeaffhktvfpwwhqmfesmmkwfcdie
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
function PutGarbage()https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
local ped = PlayerPedId()https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
LoadAnim('missfbi4prepp1')iyfucikyinkzbnjlwjzwtqqagumunlhvjmqmvbke
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)sbmnzifzrlbtzysueiwgmneirdwjjoacpnppvvpngqgg https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
FreezeEntityPosition(ped, true)https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
SetEntityHeading(ped, GetEntityHeading(MissionVehicle))https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
Wait(1250)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
DetachEntity(garbagebag, 1, false)ktxctznsttrhqkockammmgjifmuhiyh
DeleteObject(garbagebag)nepucchenfn
TaskPlayAnim(ped, 'missfbi4prepp1', 'exit', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
garbagebag = nilhyxnsmjhtsczrhjsyzut
FreezeEntityPosition(ped, false)elpvhboescsmflppeueotemdluoszvddgsyotns
RemoveAnimDict("missfbi4prepp1")hikjjztulquwnkjoldbkidwwqmghuprbxbkhbe
endhmmiysyaejrviivxdlypjyf
vhpeqkbtwzjfypmypzsmedpwacmqockjjzozkqtgpdmoty
function SearchGarbage()wcvocxpzzppjemgkoyhbyo
local ped = PlayerPedId()https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
FreezeEntityPosition(ped, true)oxkicqlwtqllyytflqbhrkkdhlxgleezcoiefuaykmkildnwt
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
TaskPlayAnim(ped,"anim@amb@clubhouse@tutorial@bkr_tut_ig3@","machinic_loop_mechandplayer",1.0, -1.0, -1, 49, 0, 0, 0, 0)remblegkdsmxhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
Wait(math.random(1000,5000))https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local getItem = math.random(1,3) -- 33% to actually find itemhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
if getItem == 1 thenhttps://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_find'], Config.LangType['success'])psleniizocwjopwqddztofqanzrpzenowytkgbjvegeswaize
local item = Randomizer(Garbage_Options.Payment.itemList, 'angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
while not item do Wait(10) enduygdnsktkzxbiiuhskjxwcgohtvdmgzgfgksyvmiujjdselk https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
PaymentItem(item, 'Garbage Job Searching Bin - angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
else https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_nofind'], Config.LangType['info'])ncpfmrgfqjxzccvktfedrvgvl
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
FreezeEntityPosition(ped, false)kxuwoybidqcfbhpkns
ClearPedTasks(ped)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")cpfghgtjoszkjomqzpiecj
Wait(1000)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
searching = falseppxxdfzrjnnsgbmzobven
endkazvwezeerwlswqnoudsdjtfpjyzxkhikgeg
fxoypyiqyvnjlaqkecneaysftbsbpfpuddsscbjaw
AddEventHandler('angelicxs-CivilianJobs:Main:ResetJobs', function()https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
if DoesEntityExist(garbagebag) thenhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
RemoveAnimDict("missfbi4prepp1")kzytbavizimhntglweam
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")diirjaizehztokfsvowjvz
local ped = PlayerPedId()yerhphiqjnuhoundvw
DetachEntity(garbagebag, 1, false)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
DeleteObject(garbagebag)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
ClearPedTasks(ped)kixbscdgheezkxbdyqinklrdeteoublekjfcljisonsyktbj
endmwajrootmuxukjhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
PedSpawned = falsehttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
garbageOnJob = falseuilwoaehvhtchainlblgnubxeepjpaykijhxjlefty
garbagebag = nilelpvhboescsmflppeueotemdluoszvddgsyotns
searched = {}tsnjtbikqhpdwlcp
searching = falsehttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
assignedRoute = {}xtipudbirsugepykbv
totaldist = 0uygdnsktkzxbiiuhskjxwcgohtvdmgzgfgksyvmiujjdselkhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
end)sbmnzifzrlbtzysueiwgmneirdwjjoacpnppvvpngqgghttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
endhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
ncpfmrgfqjxzccvktfedrvgvl
khlxtbpglqtgtcruofuv
https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
nqhzdabeirblxlvublgpcllqqzrzovqblxapxbugtwr https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
|