---------------------------------------------------------------------- https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
-- Garbage Configuration Options --idclhxcsuuqouzeenanxrrzbllhvurjculobirudl
-- The following options can be changed to make your --https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
-- Garbage job unique and suit your server --vmwqxlvpnmhyqygokksvlnmfexrdrdynqvdngzdulkscjzr
----------------------------------------------------------------------https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
hsuwekmkluntsmfcqwcztncnpvatwjadbvzf
local Garbage_Options = {https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
Boss = {https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
Location = vector4(-319.23, -1545.41, 27.8, 327.55),https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
Model = 's_m_y_garbage',https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
},gtiuxgwhtidvzljdkzui
Sprite = {cbefonujbcnsvueyxzhznvwumdnxdkhfllkazf
icon = 318,nqgswxmlbzeeqrclxbhenawfqbvnnmxbcetzcg
colour = 36,ohtluyjywzjtmiqbmzatwlprisxpvpokwiwrhfpdezxrintumu
name = '垃圾管理公司',https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
},hzmpgttinvvgiunnrvijqiilfwpbjknrjagpuayhhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
Truck = {hdqthmcduicnowgqgtlaw
Spawn = vector4(-320.69, -1527.13, 27.55, 274.8),https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
Type = {uurjnuxkfcknrubwmknsejvevrzzaccux https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
'trash',lowpzyhzmcuxajphaoesz
'trash2',rvwdnnajczcqsnyiabvbgagrxyxflxscsofgbgqe
}https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
},https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
Payment = {jqcnyyxlbrvewnzvpkgadocojqwtdfbmwdauc
flatRate = false,zsblbbsoykeaimqdmfhwduyqjlynw
flatRateAmount = 100,rfwdpqvfhozusiphsijbccrkrdxpsiekoandqijyxi
DistanceMultiplier = 1.8, -- 仅当 flatRate = false 时才适用,根据从接送到下车的距离乘以支付司机。akqhdykyywichiwqmleqcwejpndppgjqqaxuzitxfbzmjw
itemList = {pxeledqegmuxpqs
{name = 'rubber', min = 1, max = 2},zujivyrsoetueuwdfympjgoirlbvakhzfqiapzs
{name = 'metalscrap', min = 1, max = 2},https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
},https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
},https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
SearchGarbage = false,https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
Objects = {yhgskztvtavmfnsngqcdnsslcdoiwyvugbmqbgmv
-1096777189,gdpbilphhesnfwciklzhfcnhokkofnmlqcnzndgvizjnvmwgy
666561306,https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
1437508529,https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
-1426008804,https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
-228596739,dyafesftjkpcpejnpmbmgrgjc
651101403,https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
-58485588,xsnebsfcybsbuveuiihewtuctblugzserfityowwqpykkcftk
218085040,uggssmoegkhhemiktjocadjabsbgijydpevirkmxuuez
},zhurwlzragtnlrzhnsmyiettgmlyg
}ikdkmqsynyuwmiggccniguttrfuvnzlvkogxfyvtwpq
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
local garbagejobOptions = {https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
AllowMarker = true,这是干扰码
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
LocationMarker = 3,你好啊
Location = {oqhindzwqkavouuxwkbegsbudkkumgebxljkpj
vector3(114.83,-1462.31, 29.29508),vkxuuzhlsfnza
vector3(-6.04,-1566.23, 29.209197),amomajraxdpusosznecibcrrkr
vector3(-1.88,-1729.55, 29.300233),https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
vector3(159.09,-1816.69, 27.91234),https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
vector3(358.94,-1805.07, 28.96659),https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
vector3(481.36,-1274.82, 29.64475),https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
vector3(127.9472,-1057.73, 29.19237),nqgswxmlbzeeqrclxbhenawfqbvnnmxbcetzcg
vector3(-1613.123, -509.06, 34.99874),https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
vector3(342.78,-1036.47, 29.19420),https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
vector3(383.03,-903.60, 29.15601), zvotskrehbubipmhfsicldvjwifztgusbjmutdzbftdnjpu
vector3(165.44,-1074.68, 28.90792), https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
vector3(50.42,-1047.98, 29.31497), https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
vector3(-1463.92, -623.96, 30.20619),xxwrdymhocokdlgohczmwjkwiffavuussqkwpweezsoddu
vector3(443.96,-574.33, 28.49450),https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
vector3(-1255.41,-1286.82,3.58411), cbefonujbcnsvueyxzhznvwumdnxdkhfllkazf
vector3(-1229.35, -1221.41, 6.44954),https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
vector3(-31.94,-93.43, 57.24907),https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
vector3(274.31,-164.43, 60.35734),rfwdpqvfhozusiphsijbccrkrdxpsiekoandqijyxi
vector3(-364.33,-1864.71, 20.24249), okgmmzjlawvuveyxrf
vector3(-1239.42, -1401.13, 3.75217),https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
},nkksbbadpzoaundwnnugrffkpkxztayhkjamkaqaaebusergsl
}jqcnyyxlbrvewnzvpkgadocojqwtdfbmwdauc
pswxlpjfxrwisbnvptxfidlksiwhegptzmqkbhttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
----------------------------------------------------------------------https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
-- Garbage Script --ottevvvogyzgktknzkfujyxidbpagyzvrtznpvbwtbdevnsvxx
-- It is NOT recommended to change any of the following --https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
----------------------------------------------------------------------https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
mclrayafhoeprmitixvqkqmffxbevjphmazmzzr
local PedSpawned = falsehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
local garbageOnJob = falsehttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
local garbagebag = nilqcdtjielrfxicosjbutwuicjqzldiypyatskbwv
local searched = {}https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
local searching = falsehttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
local assignedRoute = {}fdnyqzvpoajqbsapumxjrniaqniextvcwibmhwcvxlm
local totaldist = 0https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
你好啊
if Config.GarbageJobOn thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
CreateThread(function()https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
JobBlip(Garbage_Options.Boss.Location, Garbage_Options.Sprite.icon, Garbage_Options.Sprite.colour, Garbage_Options.Sprite.name)https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
Job3DText(Garbage_Options.Boss.Location, 'angelicxs-CivilianJobs:GarbageJob:AskForWork', 'angelicxs-CivilianJobs:GarbageJob:HowTo')rvwdnnajczcqsnyiabvbgagrxyxflxscsofgbgqe
while true dohttps://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
local Pos = GetEntityCoords(PlayerPedId())etgslvljmsdvgvngkccefbwkplltxubcnhvzc
local GarbageBoss = vector3(Garbage_Options.Boss.Location.x, Garbage_Options.Boss.Location.y, Garbage_Options.Boss.Location.z)zvotskrehbubipmhfsicldvjwifztgusbjmutdzbftdnjpu
local Dist = #(Pos - GarbageBoss)vmwqxlvpnmhyqygokksvlnmfexrdrdynqvdngzdulkscjzr
if Dist <= 50 and not PedSpawned thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
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/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
PedSpawned = truegcckvgapnocdnpjimds
elseif PedSpawned and Dist > 50 thenhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
PedSpawned = falsehdqthmcduicnowgqgtlaw
endhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
Wait(2000)wxbwvhzezdvqqdwvorczynljcbaulsv
endhzmpgttinvvgiunnrvijqiilfwpbjknrjagpuayhhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
end)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
xsbehrpuasuuciaanhupfchnqjzvjcfgvgldyb
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:HowTo', function()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_how_to'], Config.LangType['info'])https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
--print(Config.Lang['garbage_how_to'])https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
end)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
pxeledqegmuxpqs
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:AskForWork', function()uneobsgwbqnkyypvorfyfwifdyzdxgzrudgvwmsxdfhcexxhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
if FreeWork or PlayerJob == Config.GarbageJobName thenrwvmcutsygunddz
if not MissionVehicle thenqdcwpsksmdnawoiwwkamm
local ChosenVehicle = Randomizer(Garbage_Options.Truck.Type, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')lqrauizyoyeazedfwndzkltyoupjccxotoonxnmll
TriggerEvent('angelicxs-CivilianJobs:MAIN:CreateVehicle', ChosenVehicle, Garbage_Options.Truck.Spawn, 'angelicxs-CivilianJobs:GarbageJob:AskForWork')aqibakszkrxrxmtf
while not DoesEntityExist(MissionVehicle) dooneqsnhsjuzcd
Wait(25)vkxuuzhlsfnza
endtspgjzxmgkxfygfoohozzokrmcoyvunpmdvwdsijcghttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')nvvfidyrbthmkur
elsennuaexmjfjnzhdisbvp https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
TriggerEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork')dxuuzbgdimvrf
endjiwotgrvksitodwphwhofcnxdjrdwjkfrhuk
elsehttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['wrong_job'], Config.LangType['error'])https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
end)aljctmvrbjldblxjaqtshawmybgmkco
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
RegisterNetEvent('angelicxs-CivilianJobs:GarbageJob:BeginWork', function()jpzmkghxnszpwfq
if not garbageOnJob thenhbopxiyhhqhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
garbageOnJob = truehttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_start'], Config.LangType['info'])https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
local assigned = GarbageRouteMaker()gcckvgapnocdnpjimds
while not assigned do Wait(25) endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
GarbageRouteManager()hdqthmcduicnowgqgtlaw
elsevewoufygqemboxilzlgzcivgaqzylnz https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_on_job'], Config.LangType['error'])aljctmvrbjldblxjaqtshawmybgmkco
end不影响正文阅读
end)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
egoixglidmqiaqffhg
if Garbage_Options.SearchGarbage thenhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
if Config.UseThirdEye thenohtluyjywzjtmiqbmzatwlprisxpvpokwiwrhfpdezxrintumu
CreateThread(function()oeoiotpdbkcvoyjpzywvxcqojwowknpyseggxvkzgnuule
if Config.ThirdEyeName == 'ox_target' thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
local ox_options = {dyafesftjkpcpejnpmbmgrgjc
{https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
name = 'SearchGarbageBin',itqvkngrbbqdzdfufpmdkfpsfrg
onSelect = function()njzxxcxblycezimigqylmhcwtzroequraup
ThirdEyeGarbageSearch()ohtluyjywzjtmiqbmzatwlprisxpvpokwiwrhfpdezxrintumu
end,https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
label = Config.Lang['garbage_search_bin'],https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
canInteract = function(entity)cdluzmsieyukjisfrhbqilrojidqmw
if searching then return false elsehttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
return not searched[entity]https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
endhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
end,https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
},tjjamdovzoeyyqmzzbajsxhvbhsspfeionjarxwq
}oneqsnhsjuzcd
exports.ox_target:addModel(Garbage_Options.Objects, ox_options)qnwkaedwwocrvzkfdkxrjwvorhbiwssngpxgtb
elsehttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
exports[Config.ThirdEyeName]:AddTargetModel(Garbage_Options.Objects, {dsjwrdjyekotqnflkyiqscgekbjbmqxqjgmbjvaofoiwcnim
options = {egoixglidmqiaqffhg
{https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
action = function()https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
ThirdEyeGarbageSearch()https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
end,loznwxvizgvrfhbhiemkglnawiouqaxbo
label = Config.Lang['garbage_search_bin'],https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
canInteract = function(entity)xxwrdymhocokdlgohczmwjkwiffavuussqkwpweezsoddu
if searching then return false elseohtluyjywzjtmiqbmzatwlprisxpvpokwiwrhfpdezxrintumu
return not searched[entity]https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
endxugulldkopxvvnxkonuyxfnnbjbukkmifsdregbsvzor
end,https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
}, https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
},https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
distance = 2https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
}) vkxuuzhlsfnza
end yicnmusoecwvjbwqmkrrkxhvfenok
end)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
function ThirdEyeGarbageSearch()https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
local pos = GetEntityCoords(PlayerPedId())https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
for i=1, #Garbage_Options.Objects doikdkmqsynyuwmiggccniguttrfuvnzlvkogxfyvtwpq
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)aixterxdpxkolglfsotprdxxojipinajwxcapa
if not searched[garbage] thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
searched[garbage] = truelqrauizyoyeazedfwndzkltyoupjccxotoonxnmll
searching = trueohtluyjywzjtmiqbmzatwlprisxpvpokwiwrhfpdezxrintumu
SearchGarbage()https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
breakljhxqrllxpzaywhtehwjndujdesuzclkltibkunikmj
endhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
endhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
endhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
endhttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
if Config.Use3DText thenwusgjaxbzaulpfsbrrldriym
CreateThread(function()https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
while Garbage_Options.SearchGarbage doxzanjuyjebnhvfozjpiqrzdt
local sleep = 1200hyrkywjfrdfbyvlmdznwzayovcfkqajyzbjyxtepwkrufdhic
local ped = PlayerPedId()yhgskztvtavmfnsngqcdnsslcdoiwyvugbmqbgmv
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
if not inVehicle thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
local pos = GetEntityCoords(ped)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
for i=1, #Garbage_Options.Objects dohttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
local garbage = GetClosestObjectOfType(pos, 10.5, Garbage_Options.Objects[i], false, false, false)https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
local propPos = GetEntityCoords(garbage)https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
local dist = #(pos-propPos)https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
if dist <= 10 and not searched[garbage] thenhttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
sleep = 0mgyforusnjzkroptcnwlfzioknfriqfuwdalvudjd
if dist <= 3 thenmgyforusnjzkroptcnwlfzioknfriqfuwdalvudjd
DrawText3Ds(propPos.x, propPos.y, propPos.z, Config.Lang['garbage_search_bin_3D'])https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
if IsControlJustReleased(0, 38) and not searching thenhttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
searched[garbage] = truezvbelmbpbxythcxagvvqzriyljqehlqggrlsenif
searching = truehttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
SearchGarbage()uyghdysionmvrrg
end https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
endhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endottevvvogyzgktknzkfujyxidbpagyzvrtznpvbwtbdevnsvxx
endoxnikizmslpuxnexdxqlxnywoejzhxkvvxdfgdrhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
endhyrkywjfrdfbyvlmdznwzayovcfkqajyzbjyxtepwkrufdhic
Wait(sleep)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
endhunctgslxklslwidnardvewtsvqolqhtkuwdbopyzarkw
end)https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
endhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
endhttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
nfyfgtbyirhocmead
function GarbageRouteMaker()xruuvyspsrrzualpsqsoqumsyozxvqzhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local init = vector3(Garbage_Options.Truck.Spawn.x, Garbage_Options.Truck.Spawn.y, Garbage_Options.Truck.Spawn.z)goeuxfmubdgdtqvvbnamoxuxpenagtrnhviebuzdxfg
local previousLocation = inithttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
for i =1, #garbagejobOptions.Location dodyafesftjkpcpejnpmbmgrgjc
local spot = garbagejobOptions.Location[i]https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
local routeAdd = math.random(1,3) -- 33% to add route to routeqgqirfxounrwkgouzbymcvbkryuslhacoqkf
if routeAdd == 1 thenbnzfyleiekwvjsbwbcabjcqzzzyhgobhcanbmrkrcgmlyo
table.insert(assignedRoute, spot)jpzmkghxnszpwfq
local dist = #(previousLocation-spot)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
previousLocation = spothzxvyrygioxmkukxgobmifcvrpriu
totaldist = totaldist + math.floor(dist)itqvkngrbbqdzdfufpmdkfpsfrg
endikdkmqsynyuwmiggccniguttrfuvnzlvkogxfyvtwpq
endhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
return truexsnebsfcybsbuveuiihewtuctblugzserfityowwqpykkcftk
endhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
ntdjmfdojlixuweagujyascjieiyhagvukeg
function GarbageRouteManager()pjfkeqyrfwprhppkmjcat
local bag = falsenqgswxmlbzeeqrclxbhenawfqbvnnmxbcetzcg
local routenumber = 0ttiavbvvpmhaojzkjwmwgqtsocpzsseml
for i = 1, #assignedRoute dohttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
if not garbageOnJob then return endhttps://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
routenumber = routenumber + 1rtumdjupktbjttpholnxpl
TriggerEvent('angelicxs-CivilianJobs:MAIN:RouteMarker', false, assignedRoute[i], '垃圾位置', 'GarbageRouteManager()')https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
while true dohttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
local sleep = 1100odxbkmmvbriodzqryeufzcejqav
local ped = PlayerPedId()https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
local coord = GetEntityCoords(ped)gzsixtptogtforryiv
local dist = #(coord-assignedRoute[i])https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
local inVehicle = IsPedInAnyVehicle(ped, false)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
if dist <= 50 thenuhyigrbgcbznytdiqqqevxxmleeftdpnlnvrex
sleep = 500uhyigrbgcbznytdiqqqevxxmleeftdpnlnvrex
if dist <= 25 then哈哈
sleep = 0egwdcrjeeafknasvieqierzhwebuuz
if garbagejobOptions.AllowMarker thenhttps://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
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)xnokxejwgkiqdbjylxbtehccqrvttearspbphttps://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
endhcunjwajzjlnbioakqwxcdzxrim
if not garbagebag then https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
if dist <= 5 thenhttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
if not inVehicle then https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
DrawText3Ds(assignedRoute[i].x, assignedRoute[i].y, assignedRoute[i].z, Config.Lang['garbage_get_garbage'])https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
GetGarbage()gcckvgapnocdnpjimds
endgthcibwfxggbnzdicosxaybcwnlgcvniovkx
endmajktynlsnltpltvhabwbkqyqyotjkewkngemup
endhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
elsezusuwauxobrehtlujvteewjlrqxv
local vehiclecoords = GetOffsetFromEntityInWorldCoords(MissionVehicle, 0.0, -4.5, 0.0)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
local vDist = #(coord-vehiclecoords)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
if vDist <= 5 thenhgkikwanhsuvgxexlbsuurjwnzicbpxiviqgeruljohqllo
DrawText3Ds(vehiclecoords.x, vehiclecoords.y, vehiclecoords.z, Config.Lang['garbage_put_garbage'])rtumdjupktbjttpholnxpl
if IsControlJustReleased(0,47) thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
PutGarbage()prhxkqhmtjddbharzjvjyvxb
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_in_truck'], Config.LangType['info'])nfwmnbphqjgpaqlnxapsjhoxufkxczipefcsgrz
breaknkksbbadpzoaundwnnugrffkpkxztayhkjamkaqaaebusergsl
endhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
endcdluzmsieyukjisfrhbqilrojidqmw
enddiixuqxwqdoxfirbmqgwgjrelacowczzliwgyuc
endolvktuqplvwndfrppybdyxlnrbop
enduuosvrxpqaw
Wait(sleep) https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
endqgqirfxounrwkgouzbymcvbkryuslhacoqkf
end rgjwkwwxuootpaewvz
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/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_route_complete'], Config.LangType['success'])https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
if Garbage_Options.Payment.flatRate thenhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
local p = math.floor(routenumber * Garbage_Options.Payment.flatRateAmount)wzcxcdcgzgq
PaymentFlat(tonumber(p), 'Garbage Job - GarbageRouteManager()')fdnyqzvpoajqbsapumxjrniaqniextvcwibmhwcvxlm
elsehttps://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
PaymentFlat((tonumber(totaldist)*tonumber(Garbage_Options.Payment.DistanceMultiplier)), 'Garbage Job - GarbageRouteManager()') -- for distance based paymentsnnuaexmjfjnzhdisbvp https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
endjayxttjnistlthirlaeedog
garbageOnJob = falsehttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
totaldist = 0https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
assignedRoute = {}lowpzyhzmcuxajphaoesz
endakqhdykyywichiwqmleqcwejpndppgjqqaxuzitxfbzmjw
pxeledqegmuxpqs
function GetGarbage()uhyigrbgcbznytdiqqqevxxmleeftdpnlnvrex
local ped = PlayerPedId()oivtjjyrmuxfelmyksgnryvfmiaehttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
local bag = HashGrabber('prop_cs_rub_binbag_01')zusuwauxobrehtlujvteewjlrqxv
FreezeEntityPosition(ped, true)rtumdjupktbjttpholnxpl
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
LoadAnim('missfbi4prepp1')wqofkjdcebmjvvca
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/2C3D4E5F6G7H8I9J0K1L
Wait(math.random(1000,5000))https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
FreezeEntityPosition(ped, false)amupbcebbtmtfohekcraouvkyoshrywslrhmtmnvfz
ClearPedTasks(ped)mwsniupbin
garbagebag = CreateObject(bag, 0, 0, 0, true, true, true)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
AttachEntityToEntity(garbagebag, ped, GetPedBoneIndex(ped, 57005), 0.12, 0.0, -0.05, 220.0, 120.0, 0.0, true, true, false, true, 1, true)ekpcvuffiwaktmugfzpaelsdksgnndiroxujszpbvpmocg
CreateThread(function()https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
while garbagebag dohttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
local player = PlayerPedId()ottevvvogyzgktknzkfujyxidbpagyzvrtznpvbwtbdevnsvxx
if IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man',3) thenuuosvrxpqaw
elseif not IsEntityPlayingAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man',3) thenhttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
ClearPedTasks(ped)jtpvfdxlkbtmywcrqpafqliydndudvhmowhuaffk
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_walk_garbage_man', 6.0, -6.0, -1, 49, 0, 0, 0, 0)https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
endjnkdeeuyibqdiwrxnkjprbv
Wait(0)mlvqqrdtqoekmsfcchfzvyojmlwzxiqjtlzjddctrhd
endhttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
RemoveAnimDict("missfbi4prepp1")tmmaexsjlbowio
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")majktynlsnltpltvhabwbkqyqyotjkewkngemup
end)bfmcvxqtygminafigpfiooyttalzskxuqkwmhnfgtrogsuoy
endhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
wxbwvhzezdvqqdwvorczynljcbaulsv
function PutGarbage()qnwkaedwwocrvzkfdkxrjwvorhbiwssngpxgtb
local ped = PlayerPedId()edpnawyjakzikpoqxussphklyiaoixp
LoadAnim('missfbi4prepp1')https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
TaskPlayAnim(ped, 'missfbi4prepp1', '_bag_throw_garbage_man', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)dsjwrdjyekotqnflkyiqscgekbjbmqxqjgmbjvaofoiwcnim
FreezeEntityPosition(ped, true)xnokxejwgkiqdbjylxbtehccqrvttearspbphttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
SetEntityHeading(ped, GetEntityHeading(MissionVehicle))https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
Wait(1250)yxpazdjgxczphukuuwqelwcruxkrnbamyqnxt
DetachEntity(garbagebag, 1, false)nqgswxmlbzeeqrclxbhenawfqbvnnmxbcetzcg
DeleteObject(garbagebag)aljctmvrbjldblxjaqtshawmybgmkco
TaskPlayAnim(ped, 'missfbi4prepp1', 'exit', 8.0, 8.0, 1100, 48, 0.0, 0, 0, 0)oxnikizmslpuxnexdxqlxnywoejzhxkvvxdfgdrhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
garbagebag = nilhttps://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
FreezeEntityPosition(ped, false)njzxxcxblycezimigqylmhcwtzroequraup
RemoveAnimDict("missfbi4prepp1")klswayisflfloivjovzbkbfxrpgds
endhvcgjnpmppgaiciyzmjeqzixlcubtneai
uhyigrbgcbznytdiqqqevxxmleeftdpnlnvrex
function SearchGarbage()lcggaixpstepdrebjjiqhebgkobfzfpliwrifp
local ped = PlayerPedId()hyrkywjfrdfbyvlmdznwzayovcfkqajyzbjyxtepwkrufdhic
FreezeEntityPosition(ped, true)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
LoadAnim('anim@amb@clubhouse@tutorial@bkr_tut_ig3@')https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
TaskPlayAnim(ped,"anim@amb@clubhouse@tutorial@bkr_tut_ig3@","machinic_loop_mechandplayer",1.0, -1.0, -1, 49, 0, 0, 0, 0)ggpbobqkjklppvwosbj
Wait(math.random(1000,5000))ashiuzsbvtzmr
local getItem = math.random(1,3) -- 33% to actually find itemhttps://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
if getItem == 1 thenhttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_find'], Config.LangType['success'])https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
local item = Randomizer(Garbage_Options.Payment.itemList, 'angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')khxccuzrcvesvsxvn
while not item do Wait(10) endhttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
PaymentItem(item, 'Garbage Job Searching Bin - angelicxs-CivilianJobs:GarbageJob:SearchGarbage()')https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
else https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
TriggerEvent('angelicxs-CivilianJobs:Notify', Config.Lang['garbage_item_nofind'], Config.LangType['info'])https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
endhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
FreezeEntityPosition(ped, false)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
ClearPedTasks(ped)hgkikwanhsuvgxexlbsuurjwnzicbpxiviqgeruljohqllo
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
Wait(1000)https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
searching = falsehttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
enditqvkngrbbqdzdfufpmdkfpsfrg
uneobsgwbqnkyypvorfyfwifdyzdxgzrudgvwmsxdfhcexx https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
AddEventHandler('angelicxs-CivilianJobs:Main:ResetJobs', function()wqofkjdcebmjvvca
if DoesEntityExist(garbagebag) thenzusuwauxobrehtlujvteewjlrqxv
RemoveAnimDict("missfbi4prepp1")https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
RemoveAnimDict("anim@amb@clubhouse@tutorial@bkr_tut_ig3@")tjjamdovzoeyyqmzzbajsxhvbhsspfeionjarxwq
local ped = PlayerPedId()https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
DetachEntity(garbagebag, 1, false)gdpbilphhesnfwciklzhfcnhokkofnmlqcnzndgvizjnvmwgy
DeleteObject(garbagebag)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
ClearPedTasks(ped)ytotlipmcnbeeflxrfhmz
endcdluzmsieyukjisfrhbqilrojidqmw
PedSpawned = falsecrjtrhorqhpvjoitllpsrbcvs
garbageOnJob = falsentkdvvndjnrsosdysneghrqbebbepclcvwgr
garbagebag = nilhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
searched = {}https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
searching = falsegthcibwfxggbnzdicosxaybcwnlgcvniovkx
assignedRoute = {}crjtrhorqhpvjoitllpsrbcvs
totaldist = 0https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
end)wzcxcdcgzgq
endhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
virvnnrmcwo
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
|