----------------------------------------------------------------------https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
-- Garbage Configuration Options --vegpftiiflxeafzpyblyecmp https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
-- The following options can be changed to make your --不要乱来哦
-- Garbage job unique and suit your server --https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
----------------------------------------------------------------------zemagtnxkgdvzoc
bspuryijgfqvaowxecmixqpzonoeqwxrommglvpragnbu
local Garbage_Options = {uuwntbiebywlweiksgfplhcnvbsaxzqrtnfmooqqmnb
Boss = {https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
Location = vector4(-319.23, -1545.41, 27.8, 327.55),ezzplkgmnjzqfyanalkxrcdxdexcvabzzbpklvxyfwokvpywbi
Model = 's_m_y_garbage',cxszxplgprllasmgndbnutvibhwsypdanwzkll
},不要乱来哦
Sprite = {xfngggcjiawfkaaqbqnkhfpkwpkcpcsmiftomvyvwub
icon = 318,https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
colour = 36,aencsmanaobxmumtmtwjhgmtkdk
name = '垃圾管理公司',https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
},tosegzkmicrjjftovwjlsuilmodre
Truck = {epunfsfckmhzxuryqt
Spawn = vector4(-320.69, -1527.13, 27.55, 274.8),hxxxtrzjvvawdlgyilcqsfnccirn
Type = {https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
'trash',哈哈
'trash2',https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
}qbwxtasqtknfazemwhnwuslmtqv
},https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
Payment = {ojtnajbmecazqtesdhwphrmesg
flatRate = false,keumiuwmfqnrbwxnzbqqppmtmaaodhsom
flatRateAmount = 100,https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
DistanceMultiplier = 1.8, -- 仅当 flatRate = false 时才适用,根据从接送到下车的距离乘以支付司机。https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
itemList = {https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
{name = 'rubber', min = 1, max = 2},gzzhbbjwtjxvucmygxicuwcmmshttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
{name = 'metalscrap', min = 1, max = 2},https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
},ojtnajbmecazqtesdhwphrmesg
},zrnhmaotyxsfsvfcvglvbhrobvmnqedpwqxirlcqjvw
SearchGarbage = false,https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
Objects = {fdvarftegcgtgiufznksrsohzfueyalddhdv
-1096777189,nvlxvplilxbewmayffdyzjci
666561306,lufqczwmwzghhzaiybqvmjutlghkcvonphttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
1437508529,nrxssfrcllhtskjxvavdugyhzcxclypzqmrirjlc
-1426008804,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
-228596739,cmwpuhmwzpfjadgl
651101403,soukkjnshlolowy
-58485588,jjxhlceyccdhgchpepr
218085040,soukkjnshlolowy
},gawpaidoakawdaeg
}https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
nrxssfrcllhtskjxvavdugyhzcxclypzqmrirjlc
local garbagejobOptions = {lkidjfyukddomfxlphtuvxnmmwmcibiumrx
AllowMarker = true,xauxolwkfoeidofwqrkttkryahsduwssxmpmymwdb
LocationMarker = 3,你好啊
Location = {ngtyeukapsjxhxonyvxecncnzefvg
vector3(114.83,-1462.31, 29.29508),xjiruxlscipvkooqzbdupdpksohumiwj
vector3(-6.04,-1566.23, 29.209197),这是干扰码
vector3(-1.88,-1729.55, 29.300233),ubwmsckhqknrqcnffbbgnrrsg
vector3(159.09,-1816.69, 27.91234),oksddeoaouvmdrhdrrjeotibmyteljaztsdwxrxmmszqkgu
vector3(358.94,-1805.07, 28.96659),https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
vector3(481.36,-1274.82, 29.64475),https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
vector3(127.9472,-1057.73, 29.19237),https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
vector3(-1613.123, -509.06, 34.99874),https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
vector3(342.78,-1036.47, 29.19420),escecbdqchrqsbfaiphfmqvmbq
vector3(383.03,-903.60, 29.15601),jdjekjerlfahykfueigcpelryiukumteqdja
vector3(165.44,-1074.68, 28.90792),qbnrznhkrolhteqlvjgqlqkjhxuxxmlooygomnydcj
vector3(50.42,-1047.98, 29.31497),https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
vector3(-1463.92, -623.96, 30.20619),https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
vector3(443.96,-574.33, 28.49450),https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
vector3(-1255.41,-1286.82,3.58411),https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
vector3(-1229.35, -1221.41, 6.44954),mceevgaudxbfzdwhhfiibdzlilvk
vector3(-31.94,-93.43, 57.24907),https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
vector3(274.31,-164.43, 60.35734),https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
vector3(-364.33,-1864.71, 20.24249),https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
vector3(-1239.42, -1401.13, 3.75217),kaukoubmscldpzo
},https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
}https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
avgxhmnveorbcrdshshultumiytamfmmbtkifxej
----------------------------------------------------------------------https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
-- Garbage Script --https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
-- It is NOT recommended to change any of the following --skhqebrbnkeyruiemz
----------------------------------------------------------------------rxlkcsjmespvbybunwrxhksqveey
ymxfhyccqnipdezppueqqmdvakobmgxksupzsrcjflyiqyy
local PedSpawned = falseavgxhmnveorbcrdshshultumiytamfmmbtkifxej
local garbageOnJob = falseivnggxiyhudzkzaiavwwntexlus
local garbagebag = nilhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local searched = {}https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
local searching = falsemywtmedjdchymsjchkomijkrgxkzifjudgoqls
local assignedRoute = {}liytpzoupxcwhijpxgbnqeqfxqvto
local totaldist = 0tfenvlldlb
bdozsiekemsyhwmqdciicapb
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
if Config.GarbageJobOn thenhipcrymmilmjhfezjidoylgxvfwuwtgecwgtvtgd
CreateThread(function()https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
JobBlip(Garbage_Options.Boss.Location, Garbage_Options.Sprite.icon, Garbage_Options.Sprite.colour, Garbage_Options.Sprite.name)https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
Job3DText(Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo')bccmdvykiclwxfsfgabzyqd
while true dohttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
local Pos = GetEntityCoords(PlayerPedId())fubpegufywxea
local GarbageBoss = vector3(Garbage_Options.Boss.Location.x, Garbage_Options.Boss.Location.y, Garbage_Options.Boss.Location.z)onesdgekpjmgyjwuloxnqkylzmlpafhosmhwsmgiwspu
local Dist = #(Pos - GarbageBoss)zzlgjjpxrxshfokmsavchsqtcyxqjlsj
if Dist <= 50 and not PedSpawned thenbnzffvbiznqeyoebzemuhkzlziqcbmadazjgukotyfxwtbys
TriggerEvent('angelicxs-CivilianJobs:MAIN:SpawnBossNPC', Garbage_Options.Boss.Model, Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo', ' GarbageJob.lua')aencsmanaobxmumtmtwjhgmtkdk
PedSpawned = truemeprbfjlzc
elseif PedSpawned and Dist > 50 thenqpdbikzigxeovoduofvpb
PedSpawned = falsetvtxgbafnhxgerzoskfcdxaskazhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
endhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
Wait(2000)你好啊
endhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
end)raycifkkqnlaajvnjumlciusjprznhufisiryscofnpgxku
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:HowTo', function()https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_how_to'], Config.LangType['info'])etfphbivdwndkqhccppaucrzwvlfeidjciyjkhfnesrojzqlp
--print(Config.Lang['garbage_how_to'])rfigrynvkpdhaooi
end)gnswochxywechmetjunrgkqvqawthhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:AskForWork', function()https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
if FreeWork or PlayerJob == Config.GarbageJobName thenhttps://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
if not MissionVehicle thenopaotormbszbg
local ChosenVehicle = Randomizer(Garbage_Options.Truck.Type, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')phasirfkmtsiruhfitbarenghdlbauiqbjjj
TriggerEvent('angelicxs-CivilianJobs:MAIN:CreateVehicle', ChosenVehicle, Garbage_Options.Truck.Spawn, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
while not DoesEntityExist(MissionVehicle) dohttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
Wait(25)oksddeoaouvmdrhdrrjeotibmyteljaztsdwxrxmmszqkgu
endyisepvhgowwx
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
elsexjiruxlscipvkooqzbdupdpksohumiwj
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')sesxncpfychulse
endaiffunfctswnupnjvaxdqvxbgr
elsekjiybdrtsnjjqzeox
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['wrong_job'], Config.LangType['error'])https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
endwlonohvgppsjkfriysvefigzsoeqtocpzrcoyxun
end)https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork', function()https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
if not garbageOnJob thenhttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
garbageOnJob = truehttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_start'], Config.LangType['info'])maqsbsytyvrgrfnkqfibnqizzppyvmximoaogzifvzmmeaxvgf
local assigned = GarbageRouteMaker()pysbyspdcllcgqxmkmmhxggqscnsbdorcgsazhectpezfcl
while not assigned do Wait(25) endhttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
GarbageRouteManager()https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
elsezrnhmaotyxsfsvfcvglvbhrobvmnqedpwqxirlcqjvw
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_on_job'], Config.LangType['error'])https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
end)https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
ufycrtbywgnsndgygbqnhkuhmriyytktyivqcxo
if Garbage_Options.SearchGarbage thenhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
if Config.UseThirdEye thenezzplkgmnjzqfyanalkxrcdxdexcvabzzbpklvxyfwokvpywbi
CreateThread(function()tvtxgbafnhxgerzoskfcdxaskaz https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
if Config.ThirdEyeName == 'ox_target' thenyubuwxzpzmptxchsezvhgmswoswodfgbzhwwfwlfibzf
local ox_options = {你好啊
{eiyvgcbiadkcplxvrjaxwqffyvmnygscor
name = 'SearchGarbageBin',ojymdjapvucqewqahlkuxedihdxjwuplen
onSelect = function()https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
ThirdEyeGarbageSearch()https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
end,https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
label = Config.Lang['garbage_search_bin'],eigzjkavkniwjzepgbfitgjxctlittbybixksygcmozvn
canInteract = function(entity)rzsqtiqhcfffcmnmbksdyihooffkyttqslgmt
if searching then return false elsehttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
return not searched[entity]yphbpmhfgevolrhvqoufnbanfknqybcwrkxgwfl
endmceevgaudxbfzdwhhfiibdzlilvk
end,ubxvskgzqvjmlup
},https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
}https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
exports.ox_target:addModel(Garbage_Options.Objects, ox_options)vnbgjknavdkflhaifnutbtapfnoipxtlluruef
elsehttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
exports[Config.ThirdEyeName]:AddTargetModel(Garbage_Options.Objects, {https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
options = {wvcwfbjhncwmlzanrikavaojzrvynrjknlgtnq
{https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
action = function()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
ThirdEyeGarbageSearch()rzsqtiqhcfffcmnmbksdyihooffkyttqslgmt
end,https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
你好啊
label = Config.Lang['garbage_search_bin'],qqykibhgtesgxsxhyrjwwpjuexfsf
canInteract = function(entity)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
if searching then return false elsegiepgypbrgkwkamjeujphttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
return not searched[entity]flvciswargvngsrrzpaksrdyffanwobczwfiobigh
endjjxhlceyccdhgchpepr
end,https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
}, https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
},ksziiseqjhpwzvzvdeczxsgmnhjjgedqxdygvdwelmbkia
distance = 2hzjyyobdboljphhjhwxiqzkuyuiw
}) https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
endhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
end)mpmanaqyyby
function ThirdEyeGarbageSearch()oumhmvzgcfpwgqnkdusgfthacxblgk
local pos = GetEntityCoords(PlayerPedId())qwkpgtrnalstrploxkgghcwqxa
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)rgvgiankbtdutksggfjsfagnj
if not searched[garbage] thenqqykibhgtesgxsxhyrjwwpjuexfsf
searched[garbage] = truecxszxplgprllasmgndbnutvibhwsypdanwzkll
searching = truehttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
SearchGarbage()https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
breakhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
endwhnengtacr
endhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
endyphbpmhfgevolrhvqoufnbanfknqybcwrkxgwfl
if Config.Use3DText thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
CreateThread(function()hipcrymmilmjhfezjidoylgxvfwuwtgecwgtvtgd
while Garbage_Options.SearchGarbage dokjiybdrtsnjjqzeox
local sleep = 1200https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local ped = PlayerPedId()pindztnqperlxyspnnzxxmqexfplbofqwsuwlimbmdmjc
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
if not inVehicle thenskhqebrbnkeyruiemz
local pos = GetEntityCoords(ped)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)yegmyonknhp
local propPos = GetEntityCoords(garbage)tvfsvuhuqtrygfzvmydstdeghfdcljzefewazeupymnesnaf
local dist = #(pos-propPos)https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
if dist <= 10 and not searched[garbage] thentfenvlldlb
sleep = 0lkidjfyukddomfxlphtuvxnmmwmcibiumrx
if dist <= 3 thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
DrawText3Ds(propPos.x, propPos.y, propPos.z, Config.Lang['garbage_search_bin_3D'])https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
if IsControlJustReleased(0, 38) and not searching thenhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
searched[garbage] = truelejkccqppxyzeccuaftgbwdghphsxizinit
searching = truewvcwfbjhncwmlzanrikavaojzrvynrjknlgtnq
SearchGarbage()uoscwacqnlgtjrbt
endkjiybdrtsnjjqzeox
endezzplkgmnjzqfyanalkxrcdxdexcvabzzbpklvxyfwokvpywbi
endhttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
endlkidjfyukddomfxlphtuvxnmmwmcibiumrx
Wait(sleep)lkidjfyukddomfxlphtuvxnmmwmcibiumrx
endopaotormbszbg
end)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
endhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
endoksddeoaouvmdrhdrrjeotibmyteljaztsdwxrxmmszqkgu
eigzjkavkniwjzepgbfitgjxctlittbybixksygcmozvn
function GarbageRouteMaker()rxlkcsjmespvbybunwrxhksqveey
local init = vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z)rxlkcsjmespvbybunwrxhksqveey
local previousLocation = initxatzgmgpgmouwhlowtnc
for i =1, #garbagejobOptions.Location doubxvskgzqvjmlup
local spot = garbagejobOptions.Location[i]nwytohrhcwnkcmdrqtke https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
local routeAdd = math.random(1,3) -- 33% to add route to routeykxlycdmcjyggdnjpcretkdlhghclcajnxvmzzyciwipavyqxq
if routeAdd == 1 thenhttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
table.insert(assignedRoute, spot)yubuwxzpzmptxchsezvhgmswoswodfgbzhwwfwlfibzf
local dist = #(previousLocation-spot)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
previousLocation = spothttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
totaldist = totaldist + math.floor(dist)ouhnhzxjghytqhdiobtokyyebetrqlqefysmxpwexuxocbwrdp
endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
endbqltbypimgypigahohftv
return truehttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
endhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
function GarbageRouteManager()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
local bag = falsehttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
local routenumber = 0https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
for i = 1, #assignedRoute dohttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
if not garbageOnJob then return endhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
routenumber = routenumber + 1keumiuwmfqnrbwxnzbqqppmtmaaodhsom
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, assignedRoute[i], '垃圾位置', 'GarbageRouteManager()')https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
while true dohttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
local sleep = 1100https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
local ped = PlayerPedId()kdyivaxbomilxcrcikkxwlvzctpbklivohek
local coord = GetEntityCoords(ped)qpdbikzigxeovoduofvpb
local dist = #(coord-assignedRoute[i])https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
if dist <= 50 thengzzhbbjwtjxvucmygxicuwcmmshttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
sleep = 500https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
if dist <= 25 thendnbrhxinqoozclyww
sleep = 0https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
if garbagejobOptions.AllowMarker thentnxngzqjyayzpkehapetjrrsvvcjtyrnlpas
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)dsquubpnirleqgwihjboddlbvoy
endmywtmedjdchymsjchkomijkrgxkzifjudgoqls
if not garbagebag theneigzjkavkniwjzepgbfitgjxctlittbybixksygcmozvn
if dist <= 5 thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
if not inVehicle thenhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
DrawText3Ds(assignedRoute[i].x, assignedRoute[i].y, assignedRoute[i].z, Config.Lang['garbage_get_garbage'])tnwlfvbfgtxjrcosplhqohntpbvxicbcq
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
GetGarbage()mverymygnsnysxfrwpgpebckooikvfthayzyk
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
endhttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
elseuuwntbiebywlweiksgfplhcnvbsaxzqrtnfmooqqmnb
local vehiclecoords = GetOffsetFromEntityInWorldCoords(MissionVehicle, 0.0, -4.5, 0.0)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
local vDist = #(coord-vehiclecoords)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
if vDist <= 5 thenetfphbivdwndkqhccppaucrzwvlfeidjciyjkhfnesrojzqlp
DrawText3Ds(vehiclecoords.x, vehiclecoords.y, vehiclecoords.z, Config.Lang['garbage_put_garbage'])https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
PutGarbage()dcrrgypnzfbgpvocnwamplfotaewxhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_in_truck'], Config.LangType['info'])ubxvskgzqvjmlup
breakgtbfhiqepgynhbqsttqclusgcyvyusrbmtgtcwyrdwfly
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
endatxnfwosowcorddbduwciolscwzvkqw
endoesvpjxmzanejwhzvfvgupawltzslvxzzp
endhttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
endhttps://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
Wait(sleep) zptynqldujikvjzaavsvredefphszjyyzrx
endwlonohvgppsjkfriysvefigzsoeqtocpzrcoyxun
end https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z), '垃圾总站', 'GarbageRouteManager()')dezkjrjxkudm
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_route_complete'], Config.LangType['success'])rbdmhohjwzyxukllpoalfxuxjxnssku
if Garbage_Options.Payment.flatRate thenhttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
local p = math.floor(routenumber * Garbage_Options.Payment.flatRateAmount)sktkqyzbgcpbehcbgtszgymvmdmzroijybtpa
PaymentFlat(tonumber(p), 'Garbage Job - GarbageRouteManager()')https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
elsehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
PaymentFlat((tonumber(totaldist)*tonumber(Garbage_Options.Payment.DistanceMultiplier)), 'Garbage Job - GarbageRouteManager()') -- for distance based paymentsyisepvhgowwx
endhttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
garbageOnJob = falsecmwpuhmwzpfjadgl
totaldist = 0kjfahdzlgcggiznjwqpefxxdfwmtefiponpwrphxro
assignedRoute = {}https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
pufleyqflrsrvnnutyiphyplcsfr
function GetGarbage()https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local ped = PlayerPedId()awxdonyjpnwyfhcvozdvjekmivndkle
local bag = HashGrabber('prop_cs_rub_binbag_01')dxfgclohprsyrxdwuev
FreezeEntityPosition(ped, true)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
LoadAnim('missfbi4prepp1')https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
TaskPlayAnim(ped,"anim@amb@clubhouse@tutorial@bkr_tut_ig3@","machinic_loop_mechandplayer",1.0, -1.0, -1, 49, 0, 0, 0, 0)giepgypbrgkwkamjeujp https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
Wait(math.random(1000,5000))https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
FreezeEntityPosition(ped, false)tnxngzqjyayzpkehapetjrrsvvcjtyrnlpas
ClearPedTasks(ped)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
garbagebag = CreateObject(bag, 0, 0, 0, true, true, true)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)xjiruxlscipvkooqzbdupdpksohumiwj
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/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
CreateThread(function()https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
while garbagebag dohttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
local player = PlayerPedId()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
if IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man',3) thenmverymygnsnysxfrwpgpebckooikvfthayzyk
elseif not IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man',3) thenaencsmanaobxmumtmtwjhgmtkdk
ClearPedTasks(ped)hakgmrmfmoqonrouwrftfbjnwzullzzsajznblsoz
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
endflvciswargvngsrrzpaksrdyffanwobczwfiobigh
Wait(0)https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
endhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
RemoveAnimDict("missfbi4prepp1")cmwpuhmwzpfjadgl
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
end)skhqebrbnkeyruiemz
enddnbrhxinqoozclyww
tnxngzqjyayzpkehapetjrrsvvcjtyrnlpas
function PutGarbage()ebnbmgdvvzfknwjpaeedupvi
local ped = PlayerPedId()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
LoadAnim('missfbi4prepp1')mnlsvalhhhauniqfyl
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)aiffunfctswnupnjvaxdqvxbgr
FreezeEntityPosition(ped, true)dmnmjqhokzsevtyemlcsrjojzlnnshmvtzicppqaojfkddoppr
SetEntityHeading(ped, GetEntityHeading(MissionVehicle))rfigrynvkpdhaooi
Wait(1250)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
DetachEntity(garbagebag, 1, false)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
DeleteObject(garbagebag)kjfahdzlgcggiznjwqpefxxdfwmtefiponpwrphxro
TaskPlayAnim(ped, 'missfbi4prepp1', 'exit', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
garbagebag = nilhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
FreezeEntityPosition(ped, false)wevklcugdcqhognbfpjjoeuwzdjytueqzab
RemoveAnimDict("missfbi4prepp1")mywtmedjdchymsjchkomijkrgxkzifjudgoqls
endhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
function SearchGarbage()rfigrynvkpdhaooi
local ped = PlayerPedId()avgxhmnveorbcrdshshultumiytamfmmbtkifxej
FreezeEntityPosition(ped, true)jdjekjerlfahykfueigcpelryiukumteqdja
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')oqpfhdcqtpqiwkwhynhkxhqtxaddkr
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/4W5X6Y7Z8A9B0C1D2E3F
Wait(math.random(1000,5000))https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
local getItem = math.random(1,3) -- 33% to actually find itemivnggxiyhudzkzaiavwwntexlus
if getItem == 1 thenoksddeoaouvmdrhdrrjeotibmyteljaztsdwxrxmmszqkgu
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_find'], Config.LangType['success'])ajultvrpttbdczkobomerqlxstmxjeejnyv
local item = Randomizer(Garbage_Options.Payment.itemList, 'angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
while not item do Wait(10) end这是干扰码
PaymentItem(item, 'Garbage Job Searching Bin - angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')essbepakwhjxqhzhdmqyfcfmnhibvxuapnbtcbezjoxaw
else https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_nofind'], Config.LangType['info'])mverymygnsnysxfrwpgpebckooikvfthayzyk
endmverymygnsnysxfrwpgpebckooikvfthayzyk
FreezeEntityPosition(ped, false)fqwacxycnvaigbuepjih
ClearPedTasks(ped)pduqwlxsrfsfqt
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")qbwxtasqtknfazemwhnwuslmtqv
Wait(1000)icowpmffacefjhbygftqkecszqvkcaukcihsvm
searching = falsehttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
endhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
AddEventHandler('angelicxs-CivilianJobs:Main:ResetJobs', function()sdxjqberlssxzphskwscoulugkcxjbebebk
if DoesEntityExist(garbagebag) thenbccmdvykiclwxfsfgabzyqd
RemoveAnimDict("missfbi4prepp1")https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")hxxxtrzjvvawdlgyilcqsfnccirn
local ped = PlayerPedId()mywtmedjdchymsjchkomijkrgxkzifjudgoqls
DetachEntity(garbagebag, 1, false)dsquubpnirleqgwihjboddlbvoy
DeleteObject(garbagebag)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
ClearPedTasks(ped)jjxhlceyccdhgchpepr
endhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
PedSpawned = false这是干扰码
garbageOnJob = falsehttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
garbagebag = niltosegzkmicrjjftovwjlsuilmodre
searched = {}dsquubpnirleqgwihjboddlbvoy
searching = falsegtbfhiqepgynhbqsttqclusgcyvyusrbmtgtcwyrdwfly
assignedRoute = {}nndroilgzwxdcvhttps://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
totaldist = 0https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
|