bllbshuucqcatbdbqvtrmcunvuobz
----------------------------------------------------------------------https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
-- Garbage Configuration Options --https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
-- The following options can be changed to make your --https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
-- Garbage job unique and suit your server --pymypkdionugkdyjkmlmhuptcdvthmjxlvvagzjvndb
----------------------------------------------------------------------cafhsjpuvlqdmusrtamviabjjhnxkbqmbwuugjpbuffha
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
local Garbage_Options = {https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
Boss = {rfcqkutmesbfteavxciwhxkjzpvyhegzjjptd
Location = vector4(-319.23, -1545.41, 27.8, 327.55),https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
Model = 's_m_y_garbage',https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
},https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
Sprite = {tgixuimsxmdiattajvrkuvmtlzqivazohhmcqyvnkyv
icon = 318,https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
colour = 36,ynyedamqtutcnbjffereqqgamfonrgfpueuxegoxahao
name = '垃圾管理公司',https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
},https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
Truck = {mifpftxbdpcysplwbyjxwttinhamcbhokneqgbskqvjjkug
Spawn = vector4(-320.69, -1527.13, 27.55, 274.8),https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
Type = {lnmnjoccjxukaqrnu
'trash',https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
'trash2',https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
}qikpicszxjweamhykizgwzugtzkpeotuw
},dlyxyhqrbjftwmmfrynbdxqvrzzmyxfbieyhmpynyehvq https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
Payment = {agtylstkhfjcyybglfqhqkbvqbiwovtpbmnmfhxmmhokfqqrhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
flatRate = false,dniifpmsixfefmpsapbjdrxladdivdwzrfhwuupdsu
flatRateAmount = 10,edotickjzdwxkvzvijabppiwvszrgohksvebyokxrh
DistanceMultiplier = 1.8, -- 仅当 flatRate = false 时才适用,根据从接送到下车的距离乘以支付司机。hsavfgzdybteoyltxppozpduxbrxgssnlsjrzivxkpcyno
itemList = {sefweuxquoccrqxnvgatttcznwbonnhgrncwiamcpofgf
{name = 'rubber', min = 1, max = 2},不影响正文阅读
{name = 'metalscrap', min = 1, max = 2},edotickjzdwxkvzvijabppiwvszrgohksvebyokxrh
},chgtioquwzlqfwvjsvhbmps
},https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
SearchGarbage = false,https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
Objects = {https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
-1096777189,czyxqzzxlwtbidhalvgzogijwgopgdiidgguggrscltko
666561306,qaqagmpxwodebhpcallogesmnqsulljblzcsmrpjgs
1437508529,https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
-1426008804,nceasifwwqtxiralpskbfjwzwqtrszefcjguslrp https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
-228596739,https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
651101403,https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
-58485588,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
218085040,quqzenswbpezxmlsuhdghdtzwzhttiwjc
},chgtioquwzlqfwvjsvhbmps
}https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
ncxuywlzgzndhxijtqgnxkyrvyydprhdthttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
local garbagejobOptions = {aabgujhxxmopeofjnldpfrumdgncrkmrknyfxf
AllowMarker = true,mmfsdhblwwhbdpeyivcinfajfendn https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
LocationMarker = 3,https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
Location = {tqjpkcyxkzkmasblffcmhuxyqghabonuewjpzinj
vector3(114.83,-1462.31, 29.29508),https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
vector3(-6.04,-1566.23, 29.209197),yugzajrapemjysqnppbegkmonequjzyit
vector3(-1.88,-1729.55, 29.300233),https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
vector3(159.09,-1816.69, 27.91234),https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
vector3(358.94,-1805.07, 28.96659),hjezzwfdtwyngqxjvedizfnq
vector3(481.36,-1274.82, 29.64475),https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
vector3(127.9472,-1057.73, 29.19237),hltsimgvnyiwbrhgeghilkuhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
vector3(-1613.123, -509.06, 34.99874),tgixuimsxmdiattajvrkuvmtlzqivazohhmcqyvnkyv
vector3(342.78,-1036.47, 29.19420),fkzmglxskxmvulqkhilzxqoff
vector3(383.03,-903.60, 29.15601), ivqbajatzmnnlxhqjkk
vector3(165.44,-1074.68, 28.90792), khlavrxmxbqdcbdpmgnxgxbyoamhxjpiqbjm
vector3(50.42,-1047.98, 29.31497), https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
vector3(-1463.92, -623.96, 30.20619),https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
vector3(443.96,-574.33, 28.49450),mmfsdhblwwhbdpeyivcinfajfendnhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
vector3(-1255.41,-1286.82,3.58411), ksjfuxjokbsltyobfaaywuuwhyqisx
vector3(-1229.35, -1221.41, 6.44954),https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
vector3(-31.94,-93.43, 57.24907),https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
vector3(274.31,-164.43, 60.35734),https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
vector3(-364.33,-1864.71, 20.24249), https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
vector3(-1239.42, -1401.13, 3.75217),https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
},aabgujhxxmopeofjnldpfrumdgncrkmrknyfxf
}https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1 https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
----------------------------------------------------------------------roephojzjsw
-- Garbage Script --https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
-- It is NOT recommended to change any of the following --epqbiwlijrtgkedwaxiqiqzupxlec
----------------------------------------------------------------------https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
你好啊
local PedSpawned = falsehttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
local garbageOnJob = falsepxsssggmceohdselnlfcubw
local garbagebag = niltqjpkcyxkzkmasblffcmhuxyqghabonuewjpzinj
local searched = {}llpzdayioluuhhszoo
local searching = falsehttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
local assignedRoute = {}https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
local totaldist = 0jldmsportdgluakuhxjsbsmeapalzr
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
if Config.GarbageJobOn thengkuqemovkhlypngnxnbxmqggajotwicctxtxj https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
CreateThread(function()fplhosikgiksxiwzvrmryzscwgvzkofpeqw
JobBlip(Garbage_Options.Boss.Location, Garbage_Options.Sprite.icon, Garbage_Options.Sprite.colour, Garbage_Options.Sprite.name)kkyqcjjxbnejrwamagwsbvwiycycipssaqicasabgel
Job3DText(Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo')哈哈
while true dohttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
local Pos = GetEntityCoords(PlayerPedId())https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local GarbageBoss = vector3(Garbage_Options.Boss.Location.x, Garbage_Options.Boss.Location.y, Garbage_Options.Boss.Location.z)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
local Dist = #(Pos - GarbageBoss)nceasifwwqtxiralpskbfjwzwqtrszefcjguslrphttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
if Dist <= 50 and not PedSpawned thentbitucnxcbudpirxoikretrrvgganmdh https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
TriggerEvent('angelicxs-CivilianJobs:MAIN:SpawnBossNPC', Garbage_Options.Boss.Model, Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo', ' GarbageJob.lua')https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
PedSpawned = truehttps://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
elseif PedSpawned and Dist > 50 thenhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
PedSpawned = falsecafhsjpuvlqdmusrtamviabjjhnxkbqmbwuugjpbuffha
endclpiyddatkqhocnngjp
Wait(2000)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
endhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
end)cdrbnfqqauxgosxzznf
qlcfegqdwflhrxxrbxqjmb
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:HowTo', function()https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_how_to'], Config.LangType['info'])ldtfabhdufwsofhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
--print(Config.Lang['garbage_how_to'])cjcfuuvabwfkgxozzccjiskduqvegkjjulp https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
qaqagmpxwodebhpcallogesmnqsulljblzcsmrpjgs
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:AskForWork', function()snmwacyvcthhcpykqjppylgwjryftdjlrw
if FreeWork or PlayerJob == Config.GarbageJobName thenhttps://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
if not MissionVehicle thenkhjvmlmpstibhzveyhv
local ChosenVehicle = Randomizer(Garbage_Options.Truck.Type, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')kjywtoxuflojp
TriggerEvent('angelicxs-CivilianJobs:MAIN:CreateVehicle', ChosenVehicle, Garbage_Options.Truck.Spawn, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
while not DoesEntityExist(MissionVehicle) doorrehzzfxwgfuusuurnlhygaapfeiwkxnbc
Wait(25)rostvrayexzyauykbdlvtlycqrbaktb
endyipobqmulguoqllt
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')aajjkwaojr
elsehsavfgzdybteoyltxppozpduxbrxgssnlsjrzivxkpcyno
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
endmifpftxbdpcysplwbyjxwttinhamcbhokneqgbskqvjjkug
elserubulphtmu
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['wrong_job'], Config.LangType['error'])aexmljaszjuto
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
end)nmzwabfsgwgpkupdp
splcldmfyzykyptuqt
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork', function()zydscjijjmreig
if not garbageOnJob thenahsojvmzrezqrxoxyxbxenndb
garbageOnJob = trueedotickjzdwxkvzvijabppiwvszrgohksvebyokxrh
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_start'], Config.LangType['info'])https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local assigned = GarbageRouteMaker()ttpfsfsysqmtnyku https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
while not assigned do Wait(25) endrwmuolzbimvjlkjgrmrpmex
GarbageRouteManager()https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
elsehttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_on_job'], Config.LangType['error'])eecmkpewtyh
endmmfsdhblwwhbdpeyivcinfajfendnhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
end)woramsnrpbcwulcu
zrwurtbzahmegzzsdrvqxgrpdyybawnankufdved
if Garbage_Options.SearchGarbage then不要乱来哦
if Config.UseThirdEye thenkuoolsecyfodtcvahkulfsqlgnmnoavyukmgc
CreateThread(function()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
if Config.ThirdEyeName == 'ox_target' thenhttps://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
local ox_options = {https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
{hihycigvwqqjpinoyem
name = 'SearchGarbageBin',azstxzlflextqeoecxaeoilsotbzdwvevnytnjyynvseahj https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
onSelect = function()djyhothpdjqolrlyumdumd
ThirdEyeGarbageSearch()urbvzszesbenjulbquxenfumittusorngtiflikejostidvzy
end,https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
label = Config.Lang['garbage_search_bin'],jldmsportdgluakuhxjsbsmeapalzr
canInteract = function(entity)ootvycfydwivgtojwtyqabgiu
if searching then return false elseltqoypeoqbwsnyhybkmkesfphhfkdwnp
return not searched[entity]ldnhrjbsvtyyuavnwru
endhttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
end,bbayxhdscwnxoaivzpwzebdnynklpnhqoiomqsesprqdszz
},retcodjfpbvcfsjqp
}https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
exports.ox_target:addModel(Garbage_Options.Objects, ox_options)jndturllxvawgaxaivkqofseiwalkkwtxzmsqydhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
elsehttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
exports[Config.ThirdEyeName]:AddTargetModel(Garbage_Options.Objects, {rostvrayexzyauykbdlvtlycqrbaktb
options = {gdxqvtkskdegumvbfqevqgvi
{eecmkpewtyh
action = function()pymypkdionugkdyjkmlmhuptcdvthmjxlvvagzjvndb
ThirdEyeGarbageSearch()epqbiwlijrtgkedwaxiqiqzupxlec
end,https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
label = Config.Lang['garbage_search_bin'],djyhothpdjqolrlyumdumd
canInteract = function(entity)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
if searching then return false elsenqmmcciczclethgrltvrdgidsqvdgjsuzehcgpefr
return not searched[entity]vnniifabkedpaedqagrhxecxgazruwnqkbytgzurexgecjv
endcgvhgiaomvwdahrefabzuipxrwiwnshqzdyglzv
end,kkyqcjjxbnejrwamagwsbvwiycycipssaqicasabgel
}, https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
},https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
distance = 2https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
}) agtylstkhfjcyybglfqhqkbvqbiwovtpbmnmfhxmmhokfqqrhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
end udlbdjbmflctquyzrykbihvfhiyygbnbfzcjievnqy
end)syrrvtstjsdnhwulcagdsafm
function ThirdEyeGarbageSearch()dniifpmsixfefmpsapbjdrxladdivdwzrfhwuupdsu
local pos = GetEntityCoords(PlayerPedId())tjonephlktzbchwzknkcmtxkxakjpgzipnwucefnxfhttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)lcuyzhpngpmxrlvwjtgwzrbknowikebvhwuhekukzhiqs
if not searched[garbage] thengkuqemovkhlypngnxnbxmqggajotwicctxtxj https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
searched[garbage] = trueqaqagmpxwodebhpcallogesmnqsulljblzcsmrpjgs
searching = truehttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
SearchGarbage()kjywtoxuflojp
breakhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
endhttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
endrwmuolzbimvjlkjgrmrpmex
endhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
endqikpicszxjweamhykizgwzugtzkpeotuw
if Config.Use3DText thenusrjxgoguakjgbdsejgharusbhrhexjy
CreateThread(function()https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
while Garbage_Options.SearchGarbage dohttps://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
local sleep = 1200https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
local ped = PlayerPedId()vnniifabkedpaedqagrhxecxgazruwnqkbytgzurexgecjv
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
if not inVehicle thenhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
local pos = GetEntityCoords(ped)https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)cgvhgiaomvwdahrefabzuipxrwiwnshqzdyglzv
local propPos = GetEntityCoords(garbage)ysrzxqcgzgcmwbudvajgeatqzciftzjsr
local dist = #(pos-propPos)https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
if dist <= 10 and not searched[garbage] thenhttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
sleep = 0https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
if dist <= 3 thenhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
DrawText3Ds(propPos.x, propPos.y, propPos.z, Config.Lang['garbage_search_bin_3D'])https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
if IsControlJustReleased(0, 38) and not searching then你好啊
searched[garbage] = trueudlbdjbmflctquyzrykbihvfhiyygbnbfzcjievnqy
searching = trueqaqagmpxwodebhpcallogesmnqsulljblzcsmrpjgs
SearchGarbage()znkzxyjzlcxvaxgkmmjvbwswywcmuhbtvlstkctwfq
end https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
endaajjkwaojr
endzrwurtbzahmegzzsdrvqxgrpdyybawnankufdved
Wait(sleep)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
end)ltqoypeoqbwsnyhybkmkesfphhfkdwnp
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
endlgdzhmmvczsblxwwvzctmywnntlgbnhttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
function GarbageRouteMaker()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
local init = vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z)dniifpmsixfefmpsapbjdrxladdivdwzrfhwuupdsu
local previousLocation = initdrnwmuyykqkuy
for i =1, #garbagejobOptions.Location doevjpxoatzhydxbldrmiksczhdzye
local spot = garbagejobOptions.Location[i]https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
local routeAdd = math.random(1,3) -- 33% to add route to routehttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
if routeAdd == 1 thenvnniifabkedpaedqagrhxecxgazruwnqkbytgzurexgecjv
table.insert(assignedRoute, spot)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
local dist = #(previousLocation-spot)https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
previousLocation = spotfkzmglxskxmvulqkhilzxqoff
totaldist = totaldist + math.floor(dist)https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
return truehttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
endpxsssggmceohdselnlfcubw
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
function GarbageRouteManager()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
local bag = falsejfpeitzmjnbcdpahqmkvcdthunqn
local routenumber = 0https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
for i = 1, #assignedRoute dohttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
if not garbageOnJob then return endfkzmglxskxmvulqkhilzxqoff
routenumber = routenumber + 1https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, assignedRoute[i], '垃圾位置', 'GarbageRouteManager()')llpzdayioluuhhszoo
while true donukmcwzxzyqbjnygjxidjhzwuthauvghqru
local sleep = 1100https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
local ped = PlayerPedId()https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
local coord = GetEntityCoords(ped)lwwluwclspfgafi
local dist = #(coord-assignedRoute[i])jldmsportdgluakuhxjsbsmeapalzr
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
if dist <= 50 thensplcldmfyzykyptuqt
sleep = 500https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
if dist <= 25 thenhttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
sleep = 0https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
if garbagejobOptions.AllowMarker thenozvmbirsfcztedogubisxohyki
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)hzmsahicqfqlyfnktapaxbmfqxkhncdvbqncyvfoawazcoj
endjfpeitzmjnbcdpahqmkvcdthunqn
if not garbagebag then ainhwtbxdkdfowkxdsyumrwtidygmxvnfiuccvzggd
if dist <= 5 thenzydscjijjmreig
if not inVehicle then udlbdjbmflctquyzrykbihvfhiyygbnbfzcjievnqy
DrawText3Ds(assignedRoute[i].x, assignedRoute[i].y, assignedRoute[i].z, Config.Lang['garbage_get_garbage'])https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
GetGarbage()https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
endzrwurtbzahmegzzsdrvqxgrpdyybawnankufdved
endhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
endhzmsahicqfqlyfnktapaxbmfqxkhncdvbqncyvfoawazcoj
elsehttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
local vehiclecoords = GetOffsetFromEntityInWorldCoords(MissionVehicle, 0.0, -4.5, 0.0)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
local vDist = #(coord-vehiclecoords)https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
if vDist <= 5 thenqbdtlzihkxashdnyiyxpgtceoqhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
DrawText3Ds(vehiclecoords.x, vehiclecoords.y, vehiclecoords.z, Config.Lang['garbage_put_garbage'])zydscjijjmreig
if IsControlJustReleased(0,47) thendmimnpxijriobqmkgblwogh
PutGarbage()https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_in_truck'], Config.LangType['info'])pjoewijssysalbiixqyu
breakhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
endhuvdlvbpsbotwnexqptkarmrjosthuu
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
endevjpxoatzhydxbldrmiksczhdzye
enduzwscprxbjturwtyjqt
endhzmsahicqfqlyfnktapaxbmfqxkhncdvbqncyvfoawazcoj
Wait(sleep) qqqlhspadojlzglropfnxeknkdqpshhjxyueqkfuzofy
endhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
end oqszmupfveyrrcpisistzelitdbaxwplmilzcbeyfchttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z), '垃圾总站', 'GarbageRouteManager()')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_route_complete'], Config.LangType['success'])awhhggmeymvmdrcnglarwgjycx
if Garbage_Options.Payment.flatRate thenhzmsahicqfqlyfnktapaxbmfqxkhncdvbqncyvfoawazcoj
local p = math.floor(routenumber * Garbage_Options.Payment.flatRateAmount)gkpigusnrhmrkpashlvcbrgicqrwcgljraryvklnsx
PaymentFlat(tonumber(p), 'Garbage Job - GarbageRouteManager()')https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
elsenermuggqbhmthcjtigreulymybjwznams
PaymentFlat((tonumber(totaldist)*tonumber(Garbage_Options.Payment.DistanceMultiplier)), 'Garbage Job - GarbageRouteManager()') -- for distance based paymentshttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
endhttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
garbageOnJob = falseubazssffqugbt
totaldist = 0wqkapvhywafb
assignedRoute = {}wnhdxcigbjucqjfv
endzydscjijjmreig
kkyqcjjxbnejrwamagwsbvwiycycipssaqicasabgel
function GetGarbage()https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
local ped = PlayerPedId()vnniifabkedpaedqagrhxecxgazruwnqkbytgzurexgecjv
local bag = HashGrabber('prop_cs_rub_binbag_01')https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
FreezeEntityPosition(ped, true)dmimnpxijriobqmkgblwogh
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
LoadAnim('missfbi4prepp1')huozuddhmbzdposqtyagnoldjuchcwlkq
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/3M4N5O7P8Q9R0S1T2U3V
Wait(math.random(1000,5000))agtylstkhfjcyybglfqhqkbvqbiwovtpbmnmfhxmmhokfqqr https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
FreezeEntityPosition(ped, false)lfkvwcenskzeom
ClearPedTasks(ped)fplhosikgiksxiwzvrmryzscwgvzkofpeqw
garbagebag = CreateObject(bag, 0, 0, 0, true, true, true)tbitucnxcbudpirxoikretrrvgganmdh https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)syrrvtstjsdnhwulcagdsafm
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/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
CreateThread(function()uwfhhcvsqdascsvadexjf
while garbagebag doomfdyscqfnehez
local player = PlayerPedId()ozbsvcqlfzjnodvehfuvrlgpfstafxitwjms
if IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man',3) thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
elseif not IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man',3) thenavkmhdckqlxdbvmlmvzolmzrnkobrvwrqgeykhjbsgfucr
ClearPedTasks(ped)nkdvynvuvljwicqhvlzhkwjfamsheuhrelndyjxtugpdjglerk
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)ynyedamqtutcnbjffereqqgamfonrgfpueuxegoxahao
endhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
Wait(0)cdrbnfqqauxgosxzznf
endgazcegrsbwpihqrruhfepemhymzp
RemoveAnimDict("missfbi4prepp1")https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
end)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
endhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
znkzxyjzlcxvaxgkmmjvbwswywcmuhbtvlstkctwfq
function PutGarbage()pljvbneumrdasfdiglytwtwzmdtauh
local ped = PlayerPedId()afwkmofqadbwfbyhbvnzaloxecnumvhmbdxnscdt
LoadAnim('missfbi4prepp1')ltqoypeoqbwsnyhybkmkesfphhfkdwnp
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)rhvxteouwmphxdzvhbimwcdny https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
FreezeEntityPosition(ped, true)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
SetEntityHeading(ped, GetEntityHeading(MissionVehicle))https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
Wait(1250)hageeujfwxkvmwbdsbwfkvndyuxhjagqbmufgelcbvxoszrkan
DetachEntity(garbagebag, 1, false)llpzdayioluuhhszoo
DeleteObject(garbagebag)bllbshuucqcatbdbqvtrmcunvuobz
TaskPlayAnim(ped, 'missfbi4prepp1', 'exit', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)lfkvwcenskzeom
garbagebag = nillgdzhmmvczsblxwwvzctmywnntlgbnhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
FreezeEntityPosition(ped, false)dmimnpxijriobqmkgblwogh
RemoveAnimDict("missfbi4prepp1")https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
endhttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
function SearchGarbage()utcvwzewecfbcykuxsdgqhaeiuvoenhyhjueiybnbhpd
local ped = PlayerPedId()https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
FreezeEntityPosition(ped, true)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
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/5X6Y7Z8A9B0C1D2E3F4G
Wait(math.random(1000,5000))pqwnjmyooymjhlmpguwhygmtenawmgyc
local getItem = math.random(1,3) -- 33% to actually find itemhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
if getItem == 1 thenrostvrayexzyauykbdlvtlycqrbaktb
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_find'], Config.LangType['success'])https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
local item = Randomizer(Garbage_Options.Payment.itemList, 'angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
while not item do Wait(10) endrmpeeenkxasxdcxrymmzuuntuvcf
PaymentItem(item, 'Garbage Job Searching Bin - angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
else qbetgtopbzqapk
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_nofind'], Config.LangType['info'])vcryfnxmtayoavhckyamhthzqaxz
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
FreezeEntityPosition(ped, false)https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
ClearPedTasks(ped)orrehzzfxwgfuusuurnlhygaapfeiwkxnbc
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
Wait(1000)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
searching = falsehttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
endhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
AddEventHandler('angelicxs-CivilianJobs:Main:ResetJobs', function()tjonephlktzbchwzknkcmtxkxakjpgzipnwucefnxfhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
if DoesEntityExist(garbagebag) thenhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
RemoveAnimDict("missfbi4prepp1")https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")lnmnjoccjxukaqrnu
local ped = PlayerPedId()gfouazpcndfyqpbwhbmcplddnitgvlobqdwqhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
DetachEntity(garbagebag, 1, false)khjvmlmpstibhzveyhv
DeleteObject(garbagebag)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
ClearPedTasks(ped)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
PedSpawned = falsefkzmglxskxmvulqkhilzxqoff
garbageOnJob = falsehttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
garbagebag = nilhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
searched = {}https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
searching = falsewuyfrdbjzpbbcubtcnyepnbcfmysi
assignedRoute = {}ldnhrjbsvtyyuavnwru
totaldist = 0https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
end)rxuyfppvnhnfourrzfycydom
endgazcegrsbwpihqrruhfepemhymzp
splcldmfyzykyptuqt
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
|