----------------------------------------------------------------------https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
-- Garbage Configuration Options --klrlgarwcfqulvou
-- The following options can be changed to make your --ndsbozgxlfzlorvgvowpdlbzywovovtcymdnmkkypjkebgkwu
-- Garbage job unique and suit your server --https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
----------------------------------------------------------------------gxjlqdfiyaf
esbktlbgnhuutoglcuwdimisjhkbpfrtyterffxsmrm
local Garbage_Options = {https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
Boss = {lvwzzlgnyqmbtcliqumcspmznesktdaezxeyikmgbzi
Location = vector4(-319.23, -1545.41, 27.8, 327.55),ireemhchhaxxqppzqzknrrtzkcmehmsqdwuqewymx
Model = 's_m_y_garbage',czqbqsaqxqgqxstsvlqnjsvit
},suvyhxmjdrvvhbjxflexonfrjhhhnpggjcfqzsadjvzrxiocus
Sprite = {https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
icon = 318,https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
colour = 36,qqokjjvzwfsrnlyrlxaeyioagqdupwqgneqwnmwkrobeaav
name = '垃圾管理公司',gikvomlecpzdombtviejpnyiwhwiklfrtpnibyneoniczkwv
},nhzufgggxqruyhnogsfjmkxusfgvhj
Truck = {jiaifeebtgthhvfvarsnvixhhtbxdhvnqwvwazxufrcnmijmz
Spawn = vector4(-320.69, -1527.13, 27.55, 274.8),https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
Type = {fsdmpzrowdshxpqsgxhmsourigzmlvdrohdeguscylk
'trash',dfrtgusvfaedlalzjshgkilo
'trash2',https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
}nowhnowhopzvubrqrbcgbehfoamtnqcafyisn
},cufwkzuahxylpwehbeywxnbbvinpgdniytfiszjaxhlmequgu
Payment = {https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
flatRate = false,wooidepffmzfuabpqtkremlz
flatRateAmount = 100,https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
DistanceMultiplier = 1.8, -- 仅当 flatRate = false 时才适用,根据从接送到下车的距离乘以支付司机。ktzaswpykpuffxmeciiagbiybcgenhtybtytqosadm
itemList = {https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
{name = 'rubber', min = 1, max = 2},ivqcjjyxyhbcwgiignchosy
{name = 'metalscrap', min = 1, max = 2},oqgkchfzdabjuagyzl
},https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
},https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
SearchGarbage = false,rdbsircwivipmcfbwmtdsq
Objects = {https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
-1096777189,https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
666561306,https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
1437508529,njcarmnprbybppiarq
-1426008804,zrftlrpabtkbebqwalcxqmepvqcqbtfalktwbjxcch
-228596739,https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
651101403,rbabadqbhrniymssfdkqybkpjlhalcb
-58485588,https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
218085040,https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
},krbrgnnrucfzofeygj
}lyrnypjmlyhfagseteoddennipttlozxmrk
qtgrdarjzrvkfenfvaslrujtjyckpsqgmxy
local garbagejobOptions = {yinaxrsoxq
AllowMarker = true,rtrtuyuvdjhgblchekghetturuvxsvtjokdijxenhltixwq
LocationMarker = 3,dolrebznvnsymswbpknowdotnidylmspbeggfftbtmafew
Location = {https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
vector3(114.83,-1462.31, 29.29508),https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
vector3(-6.04,-1566.23, 29.209197),https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
vector3(-1.88,-1729.55, 29.300233),https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
vector3(159.09,-1816.69, 27.91234),wjhfqajwrddmv
vector3(358.94,-1805.07, 28.96659),https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
vector3(481.36,-1274.82, 29.64475),dasamxabrgodrokttuotogpxxfsucvygv
vector3(127.9472,-1057.73, 29.19237),awhhkkspevvhexhllormo
vector3(-1613.123, -509.06, 34.99874),https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
vector3(342.78,-1036.47, 29.19420),https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
vector3(383.03,-903.60, 29.15601),https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
vector3(165.44,-1074.68, 28.90792),https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
vector3(50.42,-1047.98, 29.31497),alssxkffnbfhdeqiahozdxifyoqm
vector3(-1463.92, -623.96, 30.20619),https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
vector3(443.96,-574.33, 28.49450),https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
vector3(-1255.41,-1286.82,3.58411),jmiqolizccyxdvvpbsnbbyoflwmdpjmzwupkg
vector3(-1229.35, -1221.41, 6.44954),rdclcwptbvqthignpafynsljsgxbiwmazomblc https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
vector3(-31.94,-93.43, 57.24907),ksxzvbfeqa
vector3(274.31,-164.43, 60.35734),https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
vector3(-364.33,-1864.71, 20.24249),fsdmpzrowdshxpqsgxhmsourigzmlvdrohdeguscylk
vector3(-1239.42, -1401.13, 3.75217),https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
},https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
}https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
pcuduurxkezhyhlbrkkwiptqzfqdtfniihlccd
----------------------------------------------------------------------https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
-- Garbage Script --https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
-- It is NOT recommended to change any of the following --rtrtuyuvdjhgblchekghetturuvxsvtjokdijxenhltixwq
----------------------------------------------------------------------https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
ltagxkjrwcf
local PedSpawned = falsehttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local garbageOnJob = falseafhoeqklmtwyynsnaapzouob https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
local garbagebag = nilibgdygdvbjmdwzlgmlhmgqkhhblwwwgeymiwsm
local searched = {}https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
local searching = falsehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
local assignedRoute = {}https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
local totaldist = 0czqbqsaqxqgqxstsvlqnjsvit
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
fointayskyivqhbjyckrgykzdobdblbgzjuskskvrtqhbsqzu
if Config.GarbageJobOn thenhlzaxnkydrtoolsl
CreateThread(function()hakywptoupmzhwtvxrnxsimudbnxhtxotimqxfesvrrdnkzlcm
JobBlip(Garbage_Options.Boss.Location, Garbage_Options.Sprite.icon, Garbage_Options.Sprite.colour, Garbage_Options.Sprite.name)aujxbrrdoul
Job3DText(Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo')pcuduurxkezhyhlbrkkwiptqzfqdtfniihlccd
while true doknkanbzyprpirzldetpxjtudjyahlxdvlnvypvwenmnelyhhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
local Pos = GetEntityCoords(PlayerPedId())saiqpxekgutotqtwcixobyuzierfgxuzxdpmatxhnq
local GarbageBoss = vector3(Garbage_Options.Boss.Location.x, Garbage_Options.Boss.Location.y, Garbage_Options.Boss.Location.z)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
哈哈
local Dist = #(Pos - GarbageBoss)https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
if Dist <= 50 and not PedSpawned thenaaogyvtqjniruiegehxsoawuvpx
TriggerEvent('angelicxs-CivilianJobs:MAIN:SpawnBossNPC', Garbage_Options.Boss.Model, Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo', ' GarbageJob.lua')iasmfcgzcmnpxygrkwxlsftesmskwyueznrepx
PedSpawned = truecsgeubnhqtlecjxhsphcpejbrorlumewekbylofbhrgkahttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
elseif PedSpawned and Dist > 50 thenpedijdutxrvgoyjvdqezuogavdshqgkf
PedSpawned = falsehttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
endnmypzgusnmqyevtoiq
Wait(2000)eznjuattrqerdjlbcexhoexggkqbczqhzdrueknvbs
endhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
end)aaogyvtqjniruiegehxsoawuvpx
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:HowTo', function()inretuhmbuyhvftsjvarm
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_how_to'], Config.LangType['info'])https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
--print(Config.Lang['garbage_how_to'])https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
end)https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:AskForWork', function()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
if FreeWork or PlayerJob == Config.GarbageJobName then这是干扰码
if not MissionVehicle thenhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
local ChosenVehicle = Randomizer(Garbage_Options.Truck.Type, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
TriggerEvent('angelicxs-CivilianJobs:MAIN:CreateVehicle', ChosenVehicle, Garbage_Options.Truck.Spawn, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
while not DoesEntityExist(MissionVehicle) dohttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
Wait(25)gtaboncqgxkvnmvwqqeguawhoqvozsmglmiaalqgiacwnyseo
endaanpznzvzcxfkrwkwkivdfinhjun
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')hivdjhfhxslmn
elsehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')xspehqvwbuovqgpumgddzypxwocedrha
endhttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
elsenicwzucyiewrgyvjjcbfknkm
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['wrong_job'], Config.LangType['error'])https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
endhttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
end)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
jiaifeebtgthhvfvarsnvixhhtbxdhvnqwvwazxufrcnmijmz
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork', function()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
if not garbageOnJob thenzrssgnvqvhrkwjhhaqj
garbageOnJob = truehttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_start'], Config.LangType['info'])https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
local assigned = GarbageRouteMaker()rkrhhpozakwlcbfhurzenxzsxmjcbhgts
while not assigned do Wait(25) endhttps://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
GarbageRouteManager()actzynbpdsqfyskfyzgksubvvgtdzhhzk
elsehttps://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_on_job'], Config.LangType['error'])qbiedkqsrzmpkzjheixzahowflblvfcmgkqkuhcmhpb
endhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
qtgrdarjzrvkfenfvaslrujtjyckpsqgmxy
if Garbage_Options.SearchGarbage thenhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
if Config.UseThirdEye thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
CreateThread(function()https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
if Config.ThirdEyeName == 'ox_target' thenhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
local ox_options = {uhvidywxlfajrncgogmumronkanqfkxzrshv
{https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
name = 'SearchGarbageBin',ixojnqqkoxgkexnoqaime
onSelect = function()qgxnquxyqbdyokhixkwiojghwsafdwlucjh
ThirdEyeGarbageSearch()https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
end,https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
label = Config.Lang['garbage_search_bin'],https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
canInteract = function(entity)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
if searching then return false elsehwfhdpzxqutxowwwdvgeuosumknbheipaowe
return not searched[entity]eoiwecxnpbkaeqjzefqoobcjaelwgmrlbzhfcetrgdsktcj
endhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
end,mopgcbxuzhbwvpsvakbuvfwwztn
},uokhejlzcaisjrdsptopmwmvpxrg
}https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
exports.ox_target:addModel(Garbage_Options.Objects, ox_options)csgeubnhqtlecjxhsphcpejbrorlumewekbylofbhrgka https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
elsebntsgftjhftljumxtyrgqt
exports[Config.ThirdEyeName]:AddTargetModel(Garbage_Options.Objects, {https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
options = {https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
{https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
action = function()krbrgnnrucfzofeygj
ThirdEyeGarbageSearch()https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
end,lvwzzlgnyqmbtcliqumcspmznesktdaezxeyikmgbzi
label = Config.Lang['garbage_search_bin'],https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
canInteract = function(entity)cudsopuhfggtlzdfcekbboajznqanzvqtziipdpvkwowvsc
if searching then return false elsehttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
return not searched[entity]https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
endxkhoidacbkismkcktbzyyagdtduttoaqyifg
end,https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
}, vexhydnnbqah
},knkanbzyprpirzldetpxjtudjyahlxdvlnvypvwenmnelyhhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
distance = 2lwqgmaevwwfpyqbbuvmwecmjfjinxfajcqqorujn
}) pdvncydghnzbpchxygwvhqdktmtwebgtfchhbk
endhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
end)https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
function ThirdEyeGarbageSearch()https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
local pos = GetEntityCoords(PlayerPedId())https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
for i=1, #Garbage_Options.Objects doqeqslaskpzxpfnzwvqc
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)rtrtuyuvdjhgblchekghetturuvxsvtjokdijxenhltixwq
if not searched[garbage] thenqbiedkqsrzmpkzjheixzahowflblvfcmgkqkuhcmhpb
searched[garbage] = truehttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
searching = truehttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
SearchGarbage()ksyqkmtfvcgzbzy
breakhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
end这是干扰码
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
endczqbqsaqxqgqxstsvlqnjsvit
endbdocoxuushnhybkdtwlmkrzhpyunvqyxtnaikuc
if Config.Use3DText thenhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
CreateThread(function()dpnpamhjixlrhkpf
while Garbage_Options.SearchGarbage dohttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
local sleep = 1200https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
local ped = PlayerPedId()https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
local inVehicle = IsPedInAnyVehicle(ped, false)ldpyczdcfzcwaygycucpwtkojanjinquqfst
if not inVehicle thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
local pos = GetEntityCoords(ped)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)hhnhifnwjekuyeomydtoaqu
local propPos = GetEntityCoords(garbage)rfmbfntpxjkzgpqimztwfvcpahlxe
local dist = #(pos-propPos)bsogpcvgcdthm
if dist <= 10 and not searched[garbage] thenhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
sleep = 0ltagxkjrwcf
if dist <= 3 thenhttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
DrawText3Ds(propPos.x, propPos.y, propPos.z, Config.Lang['garbage_search_bin_3D'])uokhejlzcaisjrdsptopmwmvpxrg
if IsControlJustReleased(0, 38) and not searching thenyqxegbacgodzfwtccborrlujmmvixhwvyuafvaico
searched[garbage] = truenhzufgggxqruyhnogsfjmkxusfgvhj
searching = truehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
SearchGarbage()https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
endhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
endrdbmohxyxcvunactuuopcajduhpewqmnuoaiw
endqgxnquxyqbdyokhixkwiojghwsafdwlucjh
endhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
enduudkpeenstlyelyvpgufmgocpbrzpntjhwuwbyktrvrvh
Wait(sleep)https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
endneeojeqguztldmfl https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
end)fjnqsgdcinvkmuinamgdgaxvbotjtavzkiqdptf
endhttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
endhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
aqqlegscvsydajotzsouztrhecvwpjmpacbejtgfme
function GarbageRouteMaker()vrvqwcwdamuulbiaibfsnqpiiuoecyaypwomzlpzxjujlcj
local init = vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z)https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
local previousLocation = initsxhwifezxbnztueubkdsnpgcp
for i =1, #garbagejobOptions.Location doggypsylltbhmqeeeehuqtyqicxdryts不要乱来哦
local spot = garbagejobOptions.Location[i]nntrhnpyjvnheikvnj
local routeAdd = math.random(1,3) -- 33% to add route to routeknkanbzyprpirzldetpxjtudjyahlxdvlnvypvwenmnelyhhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
if routeAdd == 1 thenuokhejlzcaisjrdsptopmwmvpxrg
table.insert(assignedRoute, spot)vexhydnnbqah
local dist = #(previousLocation-spot)rvrnonndmaplrheyvaoqigbeqjlrz https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
previousLocation = spotolystwrudfrjqsumyxyeipp
totaldist = totaldist + math.floor(dist)uvfxsfjyrufebwojequamrgrhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
endhttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
endbntsgftjhftljumxtyrgqt
return truenivloliwzptsvbahbbeomcsewgshzdummpxbbgxa
endpcuduurxkezhyhlbrkkwiptqzfqdtfniihlccd
suvyhxmjdrvvhbjxflexonfrjhhhnpggjcfqzsadjvzrxiocus
function GarbageRouteManager()wernanpuclliaguhkygjndfbfjfxrfhokyckls
local bag = falsehttps://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
local routenumber = 0eznjuattrqerdjlbcexhoexggkqbczqhzdrueknvbs
for i = 1, #assignedRoute dorvcugdggmzosjweybahjgyjqubtynpxfkaardhyqgmjqinoknw
if not garbageOnJob then return endhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
routenumber = routenumber + 1hlzaxnkydrtoolsl
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, assignedRoute[i], '垃圾位置', 'GarbageRouteManager()')https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
while true dohgpdixbwzaryivpobmjakmqwnku
local sleep = 1100https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
local ped = PlayerPedId()uokhejlzcaisjrdsptopmwmvpxrg
local coord = GetEntityCoords(ped)https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
local dist = #(coord-assignedRoute[i])不影响正文阅读
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
if dist <= 50 thenzpeozxhytjvjmtddmnochjtsdoyyixrhnwwnuelnngwza
sleep = 500hwfhdpzxqutxowwwdvgeuosumknbheipaowe
if dist <= 25 thenalssxkffnbfhdeqiahozdxifyoqm
sleep = 0ywqweexkubfkxwqlahh
if garbagejobOptions.AllowMarker thenqbiedkqsrzmpkzjheixzahowflblvfcmgkqkuhcmhpb
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)actzynbpdsqfyskfyzgksubvvgtdzhhzk
endbsogpcvgcdthm
if not garbagebag thenhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
if dist <= 5 thenzpeozxhytjvjmtddmnochjtsdoyyixrhnwwnuelnngwza
if not inVehicle thenhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
DrawText3Ds(assignedRoute[i].x, assignedRoute[i].y, assignedRoute[i].z, Config.Lang['garbage_get_garbage'])https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
GetGarbage()https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
endhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
endoenbrvrpqzahz
endlwokdjakroszufwekhyilnvkq
elsehttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local vehiclecoords = GetOffsetFromEntityInWorldCoords(MissionVehicle, 0.0, -4.5, 0.0)afhoeqklmtwyynsnaapzouob 这是干扰码
local vDist = #(coord-vehiclecoords)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
if vDist <= 5 thenhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
DrawText3Ds(vehiclecoords.x, vehiclecoords.y, vehiclecoords.z, Config.Lang['garbage_put_garbage'])rssyuidejutagomklrumpfavhimnsnrjg
if IsControlJustReleased(0,47) thenyduqkxivrktbllceulbiqqfcxyinx
PutGarbage()ltagxkjrwcf
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_in_truck'], Config.LangType['info'])https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
breakhttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
endyeweyxshrzuidka
endechjzyphnzfpkrhqflhcpgtbojughttps://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
endhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
endltagxkjrwcf
endjkrnmawngxvfyxmdktxiuqhogvghytmieew
Wait(sleep) rzvgimezhg
endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
end https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z), '垃圾总站', 'GarbageRouteManager()')aaogyvtqjniruiegehxsoawuvpx
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_route_complete'], Config.LangType['success'])https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
if Garbage_Options.Payment.flatRate thenkuulfrxilzwsvpvtpxsozdplmdapeguobp
local p = math.floor(routenumber * Garbage_Options.Payment.flatRateAmount)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
PaymentFlat(tonumber(p), 'Garbage Job - GarbageRouteManager()')rbabadqbhrniymssfdkqybkpjlhalcb
elseoenbrvrpqzahz
PaymentFlat((tonumber(totaldist)*tonumber(Garbage_Options.Payment.DistanceMultiplier)), 'Garbage Job - GarbageRouteManager()') -- for distance based paymentsplvxphhqhavynabrnvlsprkvehjbjxoyikwyreoye
endnobumlxstdvsbrrcgxversluqgbrendsbemoqjh
garbageOnJob = falsehttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
totaldist = 0ywqweexkubfkxwqlahh
assignedRoute = {}https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
endvvvpyxdwewttqcfgallshcjlqukcwxlrshhre
czqbqsaqxqgqxstsvlqnjsvit
function GetGarbage()esbktlbgnhuutoglcuwdimisjhkbpfrtyterffxsmrm
local ped = PlayerPedId()bwthdckyjfyfxijmzdnp
local bag = HashGrabber('prop_cs_rub_binbag_01')rbabadqbhrniymssfdkqybkpjlhalcb
FreezeEntityPosition(ped, true)ltagxkjrwcf
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')yqxegbacgodzfwtccborrlujmmvixhwvyuafvaico
LoadAnim('missfbi4prepp1')https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
TaskPlayAnim(ped,"anim@amb@clubhouse@tutorial@bkr_tut_ig3@","machinic_loop_mechandplayer",1.0, -1.0, -1, 49, 0, 0, 0, 0)hggxowlfzoufnllz
Wait(math.random(1000,5000))rkrhhpozakwlcbfhurzenxzsxmjcbhgts
FreezeEntityPosition(ped, false)nntrhnpyjvnheikvnj
ClearPedTasks(ped)eznjuattrqerdjlbcexhoexggkqbczqhzdrueknvbs
garbagebag = CreateObject(bag, 0, 0, 0, true, true, true)https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
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/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
CreateThread(function()cjznbrlmxqzyvhcaykagzzjxipwwf
while garbagebag dovrvqwcwdamuulbiaibfsnqpiiuoecyaypwomzlpzxjujlcj
local player = PlayerPedId()esbktlbgnhuutoglcuwdimisjhkbpfrtyterffxsmrm
if IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man',3) thenhttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
elseif not IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man',3) thenocpfdqazdxefjoltwyrczaepqthlducsxrxbiyblvfrf
ClearPedTasks(ped)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)xspehqvwbuovqgpumgddzypxwocedrha
endheviadwnprgwlaueozgpjhyzqxvlpbqxfl https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
Wait(0)https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
endhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
RemoveAnimDict("missfbi4prepp1")vtettkjpjkatnunpruxbvpirxrucjizecdxwogmxrmregfty
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
end)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
endfointayskyivqhbjyckrgykzdobdblbgzjuskskvrtqhbsqzu
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
function PutGarbage()https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
local ped = PlayerPedId()https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
LoadAnim('missfbi4prepp1')qtgrdarjzrvkfenfvaslrujtjyckpsqgmxy
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)gikvomlecpzdombtviejpnyiwhwiklfrtpnibyneoniczkwv
FreezeEntityPosition(ped, true)ocpfdqazdxefjoltwyrczaepqthlducsxrxbiyblvfrf
SetEntityHeading(ped, GetEntityHeading(MissionVehicle))nivloliwzptsvbahbbeomcsewgshzdummpxbbgxa
Wait(1250)ojhidxkjdkuodcrnoihykewvwodegiouswcvtn
DetachEntity(garbagebag, 1, false)suvyhxmjdrvvhbjxflexonfrjhhhnpggjcfqzsadjvzrxiocus
DeleteObject(garbagebag)eznjuattrqerdjlbcexhoexggkqbczqhzdrueknvbs
TaskPlayAnim(ped, 'missfbi4prepp1', 'exit', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
garbagebag = nilvzakkdttbxgijarhwiidfro
FreezeEntityPosition(ped, false)aaogyvtqjniruiegehxsoawuvpx
RemoveAnimDict("missfbi4prepp1")https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endjmiqolizccyxdvvpbsnbbyoflwmdpjmzwupkg
uhvidywxlfajrncgogmumronkanqfkxzrshv
function SearchGarbage()https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
local ped = PlayerPedId()ltagxkjrwcf
FreezeEntityPosition(ped, true)https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')qbnmwgnbnbgemrqfopechsdihcwcqxfh
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/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
Wait(math.random(1000,5000))https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
local getItem = math.random(1,3) -- 33% to actually find itemalssxkffnbfhdeqiahozdxifyoqm
if getItem == 1 thenojhidxkjdkuodcrnoihykewvwodegiouswcvtn
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_find'], Config.LangType['success'])awhhkkspevvhexhllormo
local item = Randomizer(Garbage_Options.Payment.itemList, 'angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
while not item do Wait(10) endaanpznzvzcxfkrwkwkivdfinhjun
PaymentItem(item, 'Garbage Job Searching Bin - angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
else jkrnmawngxvfyxmdktxiuqhogvghytmieew
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_nofind'], Config.LangType['info'])lwqgmaevwwfpyqbbuvmwecmjfjinxfajcqqorujn
endxmzybaiaozbbyxrswaameqhomwlhonflaekbftcttdurbmkyn
FreezeEntityPosition(ped, false)rtrtuyuvdjhgblchekghetturuvxsvtjokdijxenhltixwq
ClearPedTasks(ped)哈哈
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
Wait(1000)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
searching = falsesuvyhxmjdrvvhbjxflexonfrjhhhnpggjcfqzsadjvzrxiocus
endivqcjjyxyhbcwgiignchosy
rlhtogmwxznyxv https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
AddEventHandler('angelicxs-CivilianJobs:Main:ResetJobs', function()https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
if DoesEntityExist(garbagebag) thenykqfqfjzckvckmatiphjcqkmdb
RemoveAnimDict("missfbi4prepp1")zrssgnvqvhrkwjhhaqj
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")gxjlqdfiyaf
local ped = PlayerPedId()https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
DetachEntity(garbagebag, 1, false)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
DeleteObject(garbagebag)hggxowlfzoufnllz
ClearPedTasks(ped)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
endldpyczdcfzcwaygycucpwtkojanjinquqfst
PedSpawned = falseykqfqfjzckvckmatiphjcqkmdb
garbageOnJob = falsejfeapmixaydghgmygeyjnujerrttmltwryxhlgeleislpejvih
garbagebag = nilhttps://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
searched = {}hzusttdjtudjltlfbuqefocfcwyvdvoluieobhxucbenv
searching = falsekrbrgnnrucfzofeygj
assignedRoute = {}https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
totaldist = 0eeycdoayaqaqnfbtlqwevrewyfsjtnbyrabvobupsufg
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
|