local CurrentActionData, handcuffTimer, dragStatus, blipsCops, currentTask = {}, {}, {}, {}, {} nuuisxwvojlhvnarrkhdahfudmaselzsgtayhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
local HasAlreadyEnteredMarker, isDead, isHandcuffed, hasAlreadyJoined, playerInService = false, false, false, false, falsehttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
local LastStation, LastPart, LastPartNum, LastEntity, CurrentAction, CurrentActionMsgphemycnopsxbgwakitfbperjlmgblwlaepncs
dragStatus.isDragged, isInShopMenu = false, falseommcjvgljzbngqwzhlirumwtyhisrxjgjvjtqpeaofo
deatrvfznmoaumiz
RegisterNetEvent('esx:playerLoaded')ayzvuvttakvczoldxcufvrvanyygawqavqvqlo
AddEventHandler('esx:playerLoaded', function(xPlayer)oivtzeuaignmbbvjaunefpdkdniofmyuutntyh
ESX.PlayerData = xPlayeroarqtyhecockcnleisfvypdroxmhfhauiskcqrgtgieiw
ESX.PlayerLoaded = truewizndhtgfparsxbyyubtaifhuvgr
end)wirxgdrikgutaazaetzcliigkewfdweaewxlzpukwpdwpcxtv
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
RegisterNetEvent('esx:onPlayerLogout')cveekwdwkasvgovvsfyujaxplccnmkgpfltqixmtxfpduk
AddEventHandler('esx:onPlayerLogout', function()xlbohtgqyzhcsmceebmsnyfvwenxhmhexitfcz
ESX.PlayerLoaded = falsegreusgaybvkkchoskixxmzjrjks
ESX.PlayerData = {}rwgcofnxnbksizuirbeovyelku
end)nqiovwevifqvhxyyqrhzy
uqkbqqtojoqsavzgnwfkblkbbqwmcfpww
function cleanPlayer(playerPed)pqrgntexvkmwhyrovpgqhfqfkix
SetPedArmour(playerPed, 0)toatpyohbasporfxcccibvgpfjqcmqffe
ClearPedBloodDamage(playerPed)mgztljavinyuuxnyuuaeezuhqaehlmvxtvqfeqbne
ResetPedVisibleDamage(playerPed)zppvoxedknarvyvuncvoormibwixmibmy
ClearPedLastWeaponDamage(playerPed)noqoioipyvpjffckwwyjknuhsbweamlobbcjhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
ResetPedMovementClipset(playerPed, 0)hhmyyubcagnguikhzrbaiihcxdjibxojfbh
endqxmsmnwzhwaashbvtknxkjxlqmsrfbmvzznlmkluhlvaswv
pmbgaysvpmbvgcjjvjc
function setUniform(uniform, playerPed)jfixjurtxmmyfnja
TriggerEvent('skinchanger:getSkin', function(skin)cbigccdepdjcbzauekjxwpkokuaejhrmjzslcwpr
local uniformObjectywtsjekeuux
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
if skin.sex == 0 thenfzcanocgtswbn
uniformObject = Config.Uniforms[uniform].maleouyyxuipylmscqgwyjjftqwcnztbeyzttysrsagqmsjoipkgz
elseffusfngvmweydafeptnzpp
uniformObject = Config.Uniforms[uniform].femaleyyzucggaiyemcslruzeipkmq
endzhqefxaumviqfukbnqbddsgqdlley
srwmiixabtumaggalxymsmeyfqtcfcoyukkdthev
if uniformObject thenvxopixxxginwfewaswcrn
TriggerEvent('skinchanger:loadClothes', skin, uniformObject)yulobkljuetnz
umeqmvlhembywrejqhsldjxznruzjhb
if uniform == 'bullet_wear' thenzaiwunpypvmpiriqshcrjmgssgtcthft
SetPedArmour(playerPed, 100)nuviacwpkeminnwrmngwzigixlhwsxvgrqpstlhdqtmdgivtw
endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
elsesmcbfwjknuivkrjtkpuhhrw
ESX.ShowNotification(TranslateCap('no_outfit'))kxulvzxaoaeuyklifsbkwvvkzcoulqbwnvh
endofvigrvcsgnqodhtuhavurlmcpqthdzwjve
end)ifpdeqeiwehaoofjynrtlso
endmskjvyipznnzghxyypzeglxpafflmefzxpitoqinewmldj
qmmzcaumbpnauttrltufil
function OpenCloakroomMenu()qldujytwrzdfjszzjp
local playerPed = PlayerPedId()upjifjgsefsitreaftlfojnztdcsyzetpobvxhn
local grade = ESX.PlayerData.job.grade_nameqbddewqculgglce
sivrfmovcdafckgmsustrucjnriyzmwrvsiaexvgawmdgtpzn
local elements = {kzelluycffqzbiyhn
{unselectable = true, icon = "fas fa-shirt", title = TranslateCap("cloakroom")},vvmuhakmpqhxt
{icon = "fas fa-shirt", title = TranslateCap('citizen_wear'), value = 'citizen_wear'},sufwczameapeezurezlxwnfvdkigkpccjhzmgaylaopfokx
{icon = "fas fa-shirt", title = TranslateCap('bullet_wear'), uniform = 'bullet_wear'},vaqycddyiofliuefdppcpuqvrikdmbyibogerkdayilhdqhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
{icon = "fas fa-shirt", title = TranslateCap('gilet_wear'), uniform = 'gilet_wear'},hkqaclugspacmptdcikywblmdmjuazoikfimqdtistlfjf
{icon = "fas fa-shirt", title = TranslateCap('police_wear'), uniform = grade}sjypxipiocxcbqhrxyzuuevzlqpiw
}drhpjptgwohcneaawovaoji https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
tiavdbjjgdnoyeqdxgfmuwvu
if Config.EnableCustomPeds thenjemdylhmllqsawsoptwxndvqb
for k,v in ipairs(Config.CustomPeds.shared) dohttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
elements[#elements+1] = {soaqjlklehovoicrwcnoiqqvtdzvirzbga
icon = "fas fa-shirt",qwozvjornjazbmgvhjulcclvvsajaixqflqavesio
title = v.label, uxtfqsqbmumbu
value = 'freemode_ped', detjpplpxktyynyqrgtsfsofoll
maleModel = v.maleModel, vdigacckhkfjvz
femaleModel = v.femaleModelyvvpnhgbfcnpqqzcthlq
}zyzgrhnzzemzhqcfdywczxf
endxqbsiuxqtmrkjvmjethmh
fzcanocgtswbn
for k,v in ipairs(Config.CustomPeds[grade]) dohtlcwvensauvstamwgfvazlmaldr
elements[#elements+1] = {helnriknjeaotdybcshnnqktmaqhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
icon = "fas fa-shirt",qwvkkbkyugefhttpwxbzaurxbxjcgpaxmvhwxrvsyzyfssvpp
title = v.label, cqqgneywxccagcuphixhltxjwjxci
value = 'freemode_ped', bdpgxwjpemlvmbdxgkjqigfpanwrpzkrdzxbvhqaucwgd
maleModel = v.maleModel, fchzshzomrgkcwecdkwgwsjtdctnmafscnsuvrjhjprm
femaleModel = v.femaleModelhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
}ggsmpwnhasjftybhteqjasrzcej
endhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
endqhifhopmfvwwrnw
rvwpaltbaafgdwpyvsuv
ESX.OpenContext("right", elements, function(menu,element)aizeanuardhc
cleanPlayer(playerPed)dcylwfuwkwxyaointfyjmljrhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
local data = {current = element}gstpinhgeqkooqyiphmsckkzrgrvw
rvkkodkjsylpkvypdpruewu
if data.current.value == 'citizen_wear' thenffmvbhgsobcdfoxlkbtrbwtmdernarrgwe
if Config.EnableCustomPeds thenqtnvtogcprruackxjilloocvvlrvlstclhxfvdhlvzgvbqtlz
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)ociabzdhmrzjeuvo
local isMale = skin.sex == 0nqiovwevifqvhxyyqrhzy
hvijobyhmznzgkpfldvcpufpwanzhteopm
TriggerEvent('skinchanger:loadDefaultModel', isMale, function()gafzwfolqavojilfxffnio
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)tmudrjbyifitotwnglwiqxkpayxsrpnlchourqsawbtluqhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
TriggerEvent('skinchanger:loadSkin', skin)feysruwokffxliyctpvipgkfznhxlhhqmgjdaf
TriggerEvent('esx:restoreLoadout')yhbyfczmxyaccflmstjrpwoss
end)xxskqbjzsioexzfndnraxbnxzzwdcekzbck
end)lgswlbwnhqqxib
fabvtsptjwflvhwgbnujzdhtoie
end)trwwtauuemuzehvyzccgkzmekuvrqvojmlgflaaqnuqrcmqbo
elsejgkxqvpzzplpeemxsg
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)ehaanewxvysgltcovgeocnutxlpghaxlhylvcisxgkes
TriggerEvent('skinchanger:loadSkin', skin)jwdfakuhaftyfwgspdlevdgjdvztfxapueuv
end)uiqjgevtnthuqpegmtupxctsylowrzpliguolqhzkpubfhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
endkozzwdsmfuykzdhffaqobujtavrdiofthttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
wekdjltxonsgvacbnelihotn
if Config.EnableESXService thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
ESX.TriggerServerCallback('esx_service:isInService', function(isInService)hkqaclugspacmptdcikywblmdmjuazoikfimqdtistlfjf
if isInService thennfjiisxwcadrlgjp
playerInService = falserubvxrxxuxxqugsvwuxufvyabydkvqymkahhsffnd
dfquaqmfexjoxwxdcitkwqtd
local notification = {tlfcrpwubdfmlbqnhwcijhtbkjxvb
title = TranslateCap('service_anonunce'),ryrzbpxuubnho
subject = '',pfwcqbpljjcrgzspvpdpldmseuvceqiuwew
msg = TranslateCap('service_out_announce', GetPlayerName(PlayerId())),nkcfwlmiwhmsmrentdquyflavrcxrthttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
iconType = 1govvfvonfznwoinvrgebxzxglyoqceujt
}cuefqcscxxoqarbypntsvhvhyhowkwvmqasgckjzixqipshef
mrvudmfbuxddhqsoezhevynvopbsriwdz
TriggerServerEvent('esx_service:notifyAllInService', notification, 'police')kkucwffdqijzpjgcfdrrv
rvtvmcgziilfumjjzmbadjurtucdfwhxr
TriggerServerEvent('esx_service:disableService', 'police')ntqmtinawcawt
TriggerEvent('esx_policejob:updateBlip')ayutkjkmonytjywvphogfquslztvhfkidfbnoladzy
ESX.ShowNotification(TranslateCap('service_out'))https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
enduiqbwekuaazyeuwfv
end, 'police')nxhelbbmkqfpxbpkmdaodvvojmxngdtuaay
endwviarnpyswhlfigfktigsxlhiudedzfhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endbnjvisymjuddnfzqekgjnnwofqsmbvzciixrbwdk
hiksshdiuwazymuxlijysvsagnazkvmsexkxengz
if Config.EnableESXService and data.current.value ~= 'citizen_wear' thennloufvvljbczfrgnpedfmwftosscfawsllmrgicqjfqpwx
local awaitServicetxdkzjjlmvpxlkgdnzdmeiqwfidhwrvpoyaohkzufhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
qxtxvpmqdsbulnxjmp
ESX.TriggerServerCallback('esx_service:isInService', function(isInService)vcauzkmfrmvumkthj https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
if not isInService thenopxhobjzwcjwashebxiydoffzfnkhetvuqdirhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
obrusbjewugkjeszs
if Config.MaxInService ~= -1 thenymrsaagqthmsozoukqfvshmototjlp
ESX.TriggerServerCallback('esx_service:enableService', function(canTakeService, maxInService, inServiceCount)ettcoakchlsclmiusdci
if not canTakeService thenyhbfobqlzddlhbrxutcxiastlwntaiu
ESX.ShowNotification(TranslateCap('service_max', inServiceCount, maxInService))gsmszxvngrkeotyvugqbvduxvotyoxbvp
elsewdugypygkpabtlxuhqarpekvimsft https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
awaitService = truenklutqufkquztsozevragtxuaolxwm
playerInService = truehttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
mwhkdzmyrcgmnsxnuljlxmlauedxrcbey
local notification = {mpanbrltrmhcxxsfetnmxzom
title = TranslateCap('service_anonunce'),oivtzeuaignmbbvjaunefpdkdniofmyuutntyh
subject = '',iaqvdemfurcpjvmidajjbqzmlvnvlyfuyvpbac
msg = TranslateCap('service_in_announce', GetPlayerName(PlayerId())),imkpgsnkgojowsptbvmvallyipqfrag
iconType = 1ahrmabbwqmanozdgyhrmopjrkxaqtbvuj
}saspdgyibhamryszbo
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
TriggerServerEvent('esx_service:notifyAllInService', notification, 'police')fnwhmotxydgblbnnynr
TriggerEvent('esx_policejob:updateBlip')yxhxpybcuazhq
ESX.ShowNotification(TranslateCap('service_in'))atecyuckpqtwlbhorogtdiguribmtybusgwqaybppu
endfabvtsptjwflvhwgbnujzdhtoie
end, 'police')wxrhqkuzdmidjwldrfeunpcxojgk
elsekiwmchwwxtiqzmhyixrpcadwzquujbutkqgmycivwrmwdtvlrm
awaitService = truepldstvpyruigbglwx
playerInService = trueflwvskijlhbkle
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
local notification = {bmiqkbnfbafphqrwzoowggtabrqnguthgby
title = TranslateCap('service_anonunce'),avptcrjoiyexbqziylespeiffddrjbbjwrdzim
subject = '',epgsnvbwwgnvdtqqfblwclymjguvrqlwfsotnpqkwd
msg = TranslateCap('service_in_announce', GetPlayerName(PlayerId())),ggzmlnpzhjxsz
iconType = 1sfdbsmyyxbjgybkvjizvxoqjxqcwvtinzmprynqv
}mgydbzhefnwtijbkmwybxvukresgptpcanfbn
fdnidkcppxvsdblpzigizmruvvexrulwyyfbiiryf
TriggerServerEvent('esx_service:notifyAllInService', notification, 'police')nwmpgjjjhoudaadttymspgizmxnpbvrp
TriggerEvent('esx_policejob:updateBlip')rcivqnrysnsuqwaymapoitwnlstzmzzebizsvrqoeiivejtrki
ESX.ShowNotification(TranslateCap('service_in'))https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
endzrkshrrkcj
chvofmglrltlscwqfandpeldgpecvmbyuxnzjtlbfemxhjonkc
elsegwjxqksktfqctyjxrpozvkoamuqdqqlwmuucf
awaitService = truebnjvisymjuddnfzqekgjnnwofqsmbvzciixrbwdk
endhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
end, 'police')ixlzotyeblutjayjldipdxfghckaikcq
minkwlohtcuzwxdxeaytrsdvkrpnt
while awaitService == nil dolawrnzsuhzvtufiilvqenpsqrdkphkctlzkyzcsh
Wait(0)lwfvierntqzbykexdflbiziugfrhp
endufjngenatxftyrdujccwtptynqn
不影响正文阅读
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
-- if we couldn't enter service don't let the player get changedbizbmwocagus
if not awaitService thenupjifjgsefsitreaftlfojnztdcsyzetpobvxhn
returnkodpwtnldirgppvghwhfq
endvdigacckhkfjvz
endkkucwffdqijzpjgcfdrrv
mrvudmfbuxddhqsoezhevynvopbsriwdz
if data.current.uniform thenyxhxpybcuazhq
setUniform(data.current.uniform, playerPed)gtquvwykyuk
elseif data.current.value == 'freemode_ped' thencqqgneywxccagcuphixhltxjwjxci
local modelHashzqfpqergtltuhnjuwfbijopfixoxeygdpltfp https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
dwytmqejckjyjrworlkormqpvkvrna
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)byacmwhsweuurczrqdmwywnpauwvpgjqfktshbkdg
if skin.sex == 0 thenbskgduejzfkdtsmyajiubcso
modelHash = joaat(data.current.maleModel)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
elserrxvopdqewzbaigvlqylatmnchtrtgekxbfmrjcw
modelHash = joaat(data.current.femaleModel)avptcrjoiyexbqziylespeiffddrjbbjwrdzim
endmlhtpnzweqjmihxmpzdfvxmshurutl
bhkbfmjqqltlywitwkkzsvsauw
ESX.Streaming.RequestModel(modelHash, function()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
SetPlayerModel(PlayerId(), modelHash)hsrjuoumplacg
SetModelAsNoLongerNeeded(modelHash)cjykrgvsgivuwifkpcujzpiymqw
SetPedDefaultComponentVariation(PlayerPedId())fxntpcbgiclizrwkhwfwgnillnrywf
lmdajtmlhvlevxzoicbvntujdgxsfydrlgruadg
TriggerEvent('esx:restoreLoadout')vhtyouhfrkiwuehpexnooqinjxflcljxsdwhxempovljztzeq
end)zidvbgxpvwhjzacgjpbr
end)nuviacwpkeminnwrmngwzigixlhwsxvgrqpstlhdqtmdgivtw
endrieftrpdhdtztbrnsf
end, function(menu)sezspwflbnqeadlvlfnxobqqjgkakuxcyxvnuazvnpaotljf
CurrentAction = 'menu_cloakroom'ypfoqimzchgkynuwyzsyapvwvyyeqccpsiejqqitxpewdysbyhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
CurrentActionMsg = TranslateCap('open_cloackroom')gpuujqmwqbvdhaiqwccfjwlvzpxjrcuysoscef
CurrentActionData = {}utxzwgbsvbfiamiupvfrdlawgtxnmzo
end)vxthczzbcdgocqfdzbfdmhuyyvdcqpylmrsprsquwxjyoob https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
endbvjpenhalgqvpsjyjctjbfotimrboeopzxeelmews
nibecnbfbmwguotvuhpwlkyuctcexvxkdzpgmqmndjtyy
function OpenArmoryMenu(station)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
local elementsrbjxxyoaapomukqxxoruqrdvrfhvgckxduvbsjbsyq
if Config.OxInventory thenerhwzwiabzntn
exports.ox_inventory:openInventory('stash', {id = 'society_police', owner = station})bbquxklatcnaqcrbrbt
return ESX.CloseContext()puwgglnouwwhsajancnodidadqzogjxvetckf
elseenjvwqflirxehnlsjowpldwbyqszdlnhyxdunigwa
elements = {gjnhgetgrifvoecgqqvz https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
{unselectable = true, icon = "fas fa-gun", title = TranslateCap('armory')},https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
{icon = "fas fa-gun", title = TranslateCap('buy_weapons'), value = 'buy_weapons'}nrimimtiphhrdditvvt
xufgfmbtntkxaoyiusmgtelfedlyekpbeuhkhjdvcnt
}yvvpnhgbfcnpqqzcthlq
rjmsrbosuwpvmft
if Config.EnableArmoryManagement thenxnitudrkcdkljnnogqncpnvuuovwwimtvunqyeabhlm
table.insert(elements, {icon = "fas fa-gun", title = TranslateCap('get_weapon'), value = 'get_weapon'})nklutqufkquztsozevragtxuaolxwm
table.insert(elements, {icon = "fas fa-gun", title = TranslateCap('put_weapon'), value = 'put_weapon'})hkqaclugspacmptdcikywblmdmjuazoikfimqdtistlfjf
table.insert(elements, {icon = "fas fa-box", title = TranslateCap('remove_object'), value = 'get_stock'})ooeiwbdqezzrddenxlqykwcmsutfspig
table.insert(elements, {icon = "fas fa-box", title = TranslateCap('deposit_object'), value = 'put_stock'})mkrtebfbczafdvzlqcfx
endytthycoeraicuyoifabywuwlfxzjmynls
enddrexsqyhlnerzamhcapdcs
cpexvrtwzinagbhpkuwakpl
ESX.OpenContext("right", elements, function(menu,element)nirwjecwkpcvuptwkwcblpo
local data = {current = element}gqfcexblwigbmvqsejciopcayiounnotdtwhrytngaoswf
if data.current.value == 'get_weapon' thenociabzdhmrzjeuvo
OpenGetWeaponMenu()bikeutslvsmiszwspu
elseif data.current.value == 'put_weapon' thenfukmeczxfyemdsyaqnbugldgwhdbjrkpmubr https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
OpenPutWeaponMenu()suzlgulvixsvhfgoafjvqaiabomxezlxuljafuwns
elseif data.current.value == 'buy_weapons' thenqdzsexpwzujicg
OpenBuyWeaponsMenu()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
elseif data.current.value == 'put_stock' thenhpyvatwapssllxtbbczzuzhknnprvps
OpenPutStocksMenu()ltufcblopdarfhvvptqzzwesrykquzhgtclwdxksakkg
elseif data.current.value == 'get_stock' thenmopuqftcjnnajqkvcbnfwekhcuotwjkjyzeofxrpleq
OpenGetStocksMenu()mtlnxdmwdgzjmzskefnwqeqpizftmwezppmntzj
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
end, function(menu)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
CurrentAction = 'menu_armory'wnhgihdpgfhadhmhokyvdgjtklfkxw
CurrentActionMsg = TranslateCap('open_armory')ujarbhltmuz
CurrentActionData = {station = station}ckeafcraelc
end)bqfunhsfqdobddojolnqlajw
endxcgewyzjzeuzveidycefruwhtbus
zwcwqqpgfzlviypgyghrnruoyjmgxpdxmfudvjjbjvxrtmxs
function OpenPoliceActionsMenu()-------------------bgdrkhxaymcrvhgcxvumcwj
local elements = {cbznkrsculmkgimmiea
{unselectable = true, icon = "fas fa-police", title = "警察菜单"},mlllbqxgwptkopwnejlntbsxhazmiryvdjgfael
{icon = "fas fa-user", title = TranslateCap('citizen_interaction'), value = 'citizen_interaction'},gckzwndxvrujwbirfpwdtrlhxruoytsfw
{icon = "fas fa-car", title = TranslateCap('vehicle_interaction'), value = 'vehicle_interaction'},tckgykmwedhvefcoebtbhlggfwrnqobkqmqpwdlbg
{icon = "fas fa-user", title = TranslateCap('object_spawner'), value = 'object_spawner'},vebfcdnqnyofkjzxmmuzjaztq
{icon = "fas fa-user", title = '通缉系统', value = 'wanted_menu'},opdzxmqpoutu
{icon = "fas fa-user", title = '监狱系统', value = 'jail_menu'},dgpzwgomtqf
{icon = "fas fa-user", title = 'NPC任务', value = 'copsrun'},alhirscddgaxizyrdcccokxyhics https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
{icon = "fas fa-scroll", title = TranslateCap('search'), value = 'search'},cerftrndamtcgwkynpa
{icon = "fas fa-user", title = '抢劫结束后清理太平洋内部', value = 'pdpacific'},gykphxgszkeuzoqtfnymbzmbjcqujgkpeveltlesvjn
{icon = "fas fa-user", title = '抢劫结束后清理珠宝店内部', value = 'pdvangelico'}xngkhgqlqxsckajbqyweyuwpgqbmmjdkxkverlphjik
}uxtfqsqbmumbu
qpnbawjslmkzbonbxtpany
ESX.OpenContext("right", elements, function(menu,element)mibpcfdhjytv
local data = {current = element}wpjejrtrjuuc
ugdemjgifbuwsdxhalylqwnxicfiysxtybylketqgn
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()pfyfnsbspozbnpwoxxpxomnixohwhkqwpocdhevwsvxfl https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
if closestPlayer ~= -1 and closestDistance <= 3.0 then哈哈
qbddewqculgglce
if data.current.value == 'search' thenkwdcanskvrutbh
OpenBodySearchMenu(closestPlayer)hfdjuxappiasvbqedfkhwukxttibxyoeesoypooex
ESX.CloseContext()sgbogpxodjvsizhyhpvehivfrakdsuqlbszhhwwl https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
endqhbpasqlvhjwvriouxlgbuczoesdqcdgkfwkxnvsufppwxervq
endqhgtstkkomuzhlkgxcmoxcfailyyucglknfc
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
if data.current.value == 'pdvangelico' thenvcsicyljfxwqitdbqnjyfgmujmuohnsdql
ExecuteCommand('pdvangelico')qiorhjmlpqmskxjoeaxtzyviyqcbilvyukpbtbmjszbcxk
endqybuorgtluwpj
savncpzddncqbmggtdviccgjhjoowpro
if data.current.value == 'pdpacific' thenhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
ExecuteCommand('pdpacific')nxhelbbmkqfpxbpkmdaodvvojmxngdtuaay
endeszkirslqoyw
htarndglqioacmbgyergkdtuwaddndzvwamjdtvubjudwwju
if data.current.value == 'jail_menu' thenbjpucjcqhtgapcmvyphteroht
TriggerEvent("esx-qalle-jail:openJailMenu")pelomjipvlfgcbumsjxhlkvmizrirczhhlvtudjppow
endlglyzvitmcjhxwov
wolkqyfvrsdmdbltfoutvbteolborajopuyftebkxfxagi
if data.current.value == 'wanted_menu' thenrjmsrbosuwpvmft
TriggerEvent("esx_wanted:openWantedMenu")voambpktmsfrbmxlfgsydeflyjqbiw
endxlbohtgqyzhcsmceebmsnyfvwenxhmhexitfcz
gkwffgvnnlifgmpmwwzldoypfbavnamtljzqquedgni
if data.current.value == 'copsrun' thenmsaethijagzxjvq
ExecuteCommand('copsrun')ydygqligabvhutraawrulyneyctekwyjzxqpiyviarpukg
endhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
jdbdkpqmhdndqakikxabyoutlkpypiyzlacvpsixwwanwlvhivhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
if data.current.value == 'citizen_interaction' thenhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
local elements2 = {mtcehhsciqrjsbdvdcabozxktsxhpqmbk
{unselectable = true, icon = "fas fa-user", title = element.title},yhbyfczmxyaccflmstjrpwoss
{icon = "fas fa-scroll", title = TranslateCap('id_card'), value = 'identity_card'},https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
--{icon = "fas fa-scroll", title = TranslateCap('search'), value = 'search'},zeazazfdbszpxkyccwfcfvo
{icon = "fas fa-scroll", title = TranslateCap('handcuff'), value = 'handcuff'},https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
{icon = "fas fa-scroll", title = TranslateCap('drag'), value = 'drag'},jxofzoxzmwfdetcdxp
{icon = "fas fa-scroll", title = TranslateCap('put_in_vehicle'), value = 'put_in_vehicle'},ypmhtqbxlecbwnqrdutidqphxhqeotlnixvc
{icon = "fas fa-scroll", title = TranslateCap('out_the_vehicle'), value = 'out_the_vehicle'},qbddewqculgglce
{icon = "fas fa-scroll", title = '自定义社区服务', value = 'zdysqfw'},ghsadlsxrmavyftjeownvontrnddelxltplwbeusquopai
{icon = "fas fa-scroll", title = '自定义罚单', value = 'zdyfine'},bdlvtowzwylexcbhjxngdaopmcgky
{icon = "fas fa-scroll", title = TranslateCap('fine'), value = 'fine'},jcaccaittqfmefayp
{icon = "fas fa-scroll", title = TranslateCap('unpaid_bills'), value = 'unpaid_bills'}ssbgqquaecgfsoumicdunoawtmvjiplahttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
}dwytmqejckjyjrworlkormqpvkvrna
wpjejrtrjuuc
if Config.EnableLicenses thenneolrtrixihwyyhuwaqypiztbxqysnxgslrjeiscrzypyfkugb
elements2[#elements2+1] = {ztvnyvfhggi
icon = "fas fa-scroll",https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
title = TranslateCap('license_check'),vgzvtbtttmmpcvwmegvhnpauuklclnkgujcn
value = 'license'mmxtlfevkovlfhzlxomuw
}sibgxwwylxizojiknxtzacjchpeustnkbpryloxwlfvzphttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
endnirwjecwkpcvuptwkwcblpo
ehaanewxvysgltcovgeocnutxlpghaxlhylvcisxgkes
ESX.OpenContext("right", elements2, function(menu2,element2)kypvsvognmslbyjagwgwiyqhrjtjxq
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()akgrrtvpqssstzuoocxlki
if closestPlayer ~= -1 and closestDistance <= 3.0 thennwzmmfjrlfxgezcyfbpyajo
local data2 = {current = element2}jlarbpkcxarwviwcfobfpwrfqraprtxaexsg
local action = data2.current.valuehttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
if action == 'identity_card' theneupcaglvameykiiujxiuymntf
OpenIdentityCardMenu(closestPlayer)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
elseif action == 'search' thenafliqblbsewqmrwjmejvvfnytnblzcezipiyrtakyxakp
OpenBodySearchMenu(closestPlayer)nxsqdbousrktct
ESX.CloseContext()rbvrvxjzuhthcgdgiyyviebsiyyrnkzemuwhs
elseif action == 'handcuff' thentioczcsoycyilfcgdlnjdcnauuyqk
TriggerServerEvent('esx_policejob:handcuff', GetPlayerServerId(closestPlayer))llkkjciulbwaexkhtjojrglk
elseif action == 'drag' thentltknmgmcoebakdmbnkeizzeknpl
TriggerServerEvent('esx_policejob:drag', GetPlayerServerId(closestPlayer))https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
elseif action == 'put_in_vehicle' thenmhsbykgrqqjdzzlghklldofygqaudvzpcs
TriggerServerEvent('esx_policejob:putInVehicle', GetPlayerServerId(closestPlayer))ohfkfzlwjbikqpnfinkuxgor
elseif action == 'out_the_vehicle' thenrjocyokewjrnemiikadv
TriggerServerEvent('esx_policejob:OutVehicle', GetPlayerServerId(closestPlayer))kfaamkwrzimqmwfyxpjxk
elseif action == 'fine' thennbvsksbtkhhuzpzeirumyxfxqhpdau
OpenFineMenu(closestPlayer)elrgyhlwonve
elseif action == 'license' thenualrsqiyivfqvvldtcxygywhi
ShowPlayerLicense(closestPlayer)fusmagdeimehfhyatrti
elseif action == 'unpaid_bills' thenhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
OpenUnpaidBillsMenu(closestPlayer)grwyuepmoinsdruesjepuxirfxhrzsgfjcedhtpvbd
elseif action == 'zdyfine' thenywwqidchhngoguvlgfknjzeychkaeupdqltzpwhwk
OpenFineMenus(closestPlayer)fohcrjwuvrbdldpniassrowdrurpjhq
elseif action == 'zdysqfw' thentxqwkgkdtoqmurk
OpenCommunityMenu(closestPlayer)vegpgqkmxachmtxtprrboapqqkx
endkuaniugplm
elsezmjagetlmnrwtmlapxbtocbzq
ESX.ShowNotification(TranslateCap('no_players_nearby'))ifgrtiduzvwkksvf
endorkwkoueijzesbyebeqbxtrqgpeqpus
end, function(menu)upicragkcrlsisswywepqlfuoddppdijtqmkrtvtkhmtz
OpenPoliceActionsMenu()https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
end)amvgnwbhorbxngjjngpptkztogmco
elseif data.current.value == 'vehicle_interaction' thenrinbhwdafegtyogqpuuejucoynbdjuybdlclhfmnkshihnz
local elements3 = {https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
{unselectable = true, icon = "fas fa-car", title = element.title}ahopzzqnfjxicfmqbnemottu
}uguhbfogrpeo
local playerPed = PlayerPedId()fkiancendmjgycxnsy
local vehicle = ESX.Game.GetVehicleInDirection()trwwtauuemuzehvyzccgkzmekuvrqvojmlgflaaqnuqrcmqbo
echheylnxasojapixednkoiaaefwowpszxadwlrtmjivj
if DoesEntityExist(vehicle) thenwothlpmefovdnaanmw
elements3[#elements3+1] = {icon = "fas fa-car", title = TranslateCap('vehicle_info'), value = 'vehicle_infos'}msaztttzcntiydnvfwrehj
elements3[#elements3+1] = {icon = "fas fa-car", title = TranslateCap('pick_lock'), value = 'hijack_vehicle'}vxrmgogcfhgqkvetwwlnli
elements3[#elements3+1] = {icon = "fas fa-car", title = TranslateCap('impound'), value = 'impound'}grwyuepmoinsdruesjepuxirfxhrzsgfjcedhtpvbd
endmorjoldkrtsbge
hzxvxrqywuyqcorgvctrzmnprrfsfjsnipighyfdtduvrlbnnu https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
elements3[#elements3+1] = {eyeehcjnbfhigkuclglkhwecggobmekrdpwkrf
icon = "fas fa-scroll",fchzshzomrgkcwecdkwgwsjtdctnmafscnsuvrjhjprm
title = TranslateCap('search_database'), jjdsgqaikueobvgpaqhvmkkskbnfroebyhtfxuniprxqndgnt
value = 'search_database'vundieyxqwwzcnnbtlbarbqpupjnmwxhqlkypi
}nolicranwogvkabacwdxuylnwakyvamjpyrrpsfmg
mgoyepphhxxrmqyjefmsk
ESX.OpenContext("right", elements3, function(menu3,element3)hgsysqdigtviusrmddwcflq
local data2 = {current = element3}fjmeesjmmgfraixyjkbdgxmmsstvudvzmherzoelukdusbtblu
local coords = GetEntityCoords(playerPed)nhvckhzoafgps
vehicle = ESX.Game.GetVehicleInDirection()dervxbgabntbkgjyha
action = data2.current.valuenythedvkhjlagqtfixaradntsgrgxfekdxsibotixejeudjdhttps://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
lyfoytzbqcvwynrybqxhquyqpplgaaqmzvbxpb
if action == 'search_database' thenuxqrhfnmmwjfrwweaxqyppvxepnxwzy
LookupVehicle(element3)kcrwghftaqulzbvxrqmqqbcffgsdz
elseif DoesEntityExist(vehicle) thenkbkxpmfsqiylgcoqyfqkwtujdeqvqutbvdykqedgnbsudhkc
if action == 'vehicle_infos' theniapuviishfqskovlwfjjlmkacxcjhavqbkkwttpa
local vehicleData = ESX.Game.GetVehicleProperties(vehicle)wknoiaeepfhdhtmsouzgqxijmmzxkxvgiivrjavzfccmwofki
OpenVehicleInfosMenu(vehicleData)srzyumxyzchpzmxduuupk
elseif action == 'hijack_vehicle' thennywmzonxjjpeefhcfis
if IsAnyVehicleNearPoint(coords.x, coords.y, coords.z, 3.0) thenlbofqfemtpzecuousgkimzdzxumeufdggslxxqjqgividjcwq
TaskStartScenarioInPlace(playerPed, 'WORLD_HUMAN_WELDING', 0, true)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
Wait(20000)https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
ClearPedTasksImmediately(playerPed)zeazazfdbszpxkyccwfcfvo
lbofqfemtpzecuousgkimzdzxumeufdggslxxqjqgividjcwq
SetVehicleDoorsLocked(vehicle, 1)uhbhuhpmtcrtvdae
SetVehicleDoorsLockedForAllPlayers(vehicle, false)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
ESX.ShowNotification(TranslateCap('vehicle_unlocked'))tfbylcvfbaxgqmwtadc
endqbcwqvvagirfbkxorkjfdfd
elseif action == 'impound' thenhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
if currentTask.busy thenpiswulyfyhaqldzqvpsnpevgmqcpgbfvjyrejqjhyky
returnhypfbajjsplumxxbbhjmzwf
endwkuewcvqpskozshrpqyzlhsbxx
tioczcsoycyilfcgdlnjdcnauuyqk
ESX.ShowHelpNotification(TranslateCap('impound_prompt'))ogfuaxvjszf
TaskStartScenarioInPlace(playerPed, 'CODE_HUMAN_MEDIC_TEND_TO_DEAD', 0, true)fwbzmoyisosfxzdkpcnuylgqt
gskdokcyfixbswiuoogpkgclfvtwjiqpbbtpmvorelswib
currentTask.busy = truexcgewyzjzeuzveidycefruwhtbus
currentTask.task = ESX.SetTimeout(10000, function()zhnplxzwwknmayejbjjv
ClearPedTasks(playerPed)ddvdnxuwsakdmaenvmlsykiionegoczsgvwutqqmqapdb
ImpoundVehicle(vehicle)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
Wait(100)lglyzvitmcjhxwov
end)gnigovbycoblyaknqmogijjhmwdchntnabupwvnzkpk
pldstvpyruigbglwx
CreateThread(function()mgydbzhefnwtijbkmwybxvukresgptpcanfbn
while currentTask.busy dowmtxkhhrxnpdazevt
Wait(1000)https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
ijvjwuaeatctjgbqaxyupqgstdvyomfxvag
vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 3.0, 0, 71)amvgnwbhorbxngjjngpptkztogmco
if not DoesEntityExist(vehicle) and currentTask.busy thenyzstrtwghaktlnkysppzlpvtqxsdqgfo
ESX.ShowNotification(TranslateCap('impound_canceled_moved'))joqeracrtlblpnqiuqkexjejvxfvenlnccstdukwgmi
ESX.ClearTimeout(currentTask.task)wpbnetdxrdxnsjtefdeauifoiacwpydlofzs
ClearPedTasks(playerPed)rvadznzfjrixcxifezsrmjyumldcupzmkaqkopqyhyvjvdpad
currentTask.busy = falseqhmczixobgsiwhxdxrhrvmrlhkpgs
breakzaojtcsyyvtinbtpgrzeoadluuscxtgwt
endhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
endbcwjstuitsfmkvzwyhksyblzxmtih
end)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
endchvofmglrltlscwqfandpeldgpecvmbyuxnzjtlbfemxhjonkc
elselexyukffblbofgbkzadxfyhibxvpafrl
ESX.ShowNotification(TranslateCap('no_vehicles_nearby'))vehctzkstkohirpjugyilsiixgncduozyvbrvmko
endixptyaljkvhpdnnvbnmpeslmdpnabxjjvzdtz
end, function(menu)odcsudumhzywilaajbhvpskmsgqqesr https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
OpenPoliceActionsMenu()krimrkxiscikmpgogs https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
end)kozzwdsmfuykzdhffaqobujtavrdioft https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
elseif data.current.value == "object_spawner" thenqzbcphikloefher
local elements4 = {xxkypqaazaixqrniyrozpqhiz
{unselectable = true, icon = "fas fa-object", title = element.title},jobijcqqcnzcxpnahhwwgoqousugpswyhyhrbxidkhf
{icon = "fas fa-cone", title = TranslateCap('cone'), model = 'prop_roadcone02a'},https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
{icon = "fas fa-cone", title = TranslateCap('barrier'), model = 'prop_barrier_work05'},https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
{icon = "fas fa-cone", title = TranslateCap('spikestrips'), model = 'p_ld_stinger_s'},https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
{icon = "fas fa-cone", title = TranslateCap('box'), model = 'prop_boxpile_07d'},xhgqjubwlylz
{icon = "fas fa-cone", title = TranslateCap('cash'), model = 'hei_prop_cash_crate_half_full'}gckzwndxvrujwbirfpwdtrlhxruoytsfw
}hnuuwaoebthxciuzztsauglvbtmayaygotaluppwixtlfolfhd
ifwpnfnpimyubmibyk
ESX.OpenContext("right", elements4, function(menu4,element4)eupcaglvameykiiujxiuymntf
local data2 = {current = element4}https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
local playerPed = PlayerPedId()lztdivpljvmtwsutzqvucfhfmcguacklbdojyeuiahb
local coords, forward = GetEntityCoords(playerPed), GetEntityForwardVector(playerPed)vdomutdcojsatywacmctew
local objectCoords = (coords + forward * 1.0)ahopzzqnfjxicfmqbnemottu
hypfbajjsplumxxbbhjmzwf
ESX.Game.SpawnObject(data2.current.model, objectCoords, function(obj)eawgzwbzdmmrbenrwqwnpbykhz
SetEntityHeading(obj, GetEntityHeading(playerPed))jgytyjumpmbtnaahfybsh
PlaceObjectOnGroundProperly(obj)llkkpvwfdryc
end)yjqwblnsdziklzdhnebdaflblywzhkrfticutpmxpvha
end, function(menu)ymqvdkjcvqqgn
OpenPoliceActionsMenu()hprgfoovxdyufzlnqilqcgvyggovpkdwaucf
end)bqpkvuopegagpcliuylodbitpb
endrwbcisqlpkdscdtmhxwsratlhkzhhhlyd
end)ouyyxuipylmscqgwyjjftqwcnztbeyzttysrsagqmsjoipkgz
endxecudwipgzfdrhuydn
gvidlvfmggubqhczqolthfpeqxbegzomvwpgsv
function OpenIdentityCardMenu(player)ytthycoeraicuyoifabywuwlfxzjmynls
ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(data)vvmuhakmpqhxt
local elements = {wjkhehxlvkwgbbthtodgmaddzdhwiutfedmjkjvgurmvtgdmhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
{icon = "fas fa-user", title = TranslateCap('name', data.name)},xjqrybiprhlbkhrq
{icon = "fas fa-user", title = TranslateCap('job', ('%s - %s'):format(data.job, data.grade))}https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
}kpkofvlvhmitepzodtnqihmebxde
eqhmezzixsuggebokwicfgywgraatloycwkhvkptc
if Config.EnableESXIdentity thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
elements[#elements+1] = {icon = "fas fa-user", title = TranslateCap('sex', TranslateCap(data.sex))}yzohnxyujjgowdwirpgqsnreofr
elements[#elements+1] = {icon = "fas fa-user", title = TranslateCap('sex', TranslateCap(data.sex))}rhduvfpbsukxccoeshfuoegscyumlbjcinxdsnfkhqhjswok
elements[#elements+1] = {icon = "fas fa-user", title = TranslateCap('height', data.height)}vegpgqkmxachmtxtprrboapqqkx
endlybugrifozhypsckcadzrccwmvwlfloq https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
mgxjvkvsisyhb
if Config.EnableESXOptionalneeds and data.drunk thenhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
elements[#elements+1] = {title = TranslateCap('bac', data.drunk)}vfkjfpddzolfhnpejloincdytevhacqvibfori
endzxzwuzhyngoshoovpboakorajvdpjmcikcffbndp https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
rykzqjcuofzdfogofucukkeypuarmfjeetdvdfpskpvq https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
if data.licenses thenrgopqsbuiwuudwindenjugdazfecwrhnxv
elements[#elements+1] = {title = TranslateCap('license_label')}fdpbrwmawidx
rieftrpdhdtztbrnsf
for i=1, #data.licenses, 1 dohttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
elements[#elements+1] = {title = data.licenses[i].label}https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
endezwiktshqpsbhqoyurahwsyaaulquzvzzs
endpwdvnsvltwqspasgvjwonoqynqt
lypgoyltbvqyuaihvpawmexhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
ESX.OpenContext("right", elements, nil, function(menu)pszilolrvvosiehppphpueuefzpuseyiw
OpenPoliceActionsMenu() wjtpkrgjjugpmsgvxpnzgnxwldhgjiafstvckcmtwsjjkq
end)hwcrlmoyieasgmzaz
end, GetPlayerServerId(player))nehsagieyxclehsfbbxmdo
endjcbwjqqwttseegi
ctbqmiovccksbcnyfjarwmkuxpg
function OpenBodySearchMenu(player)fevpudhvzt
if Config.OxInventory thenzpfycebmbwuzzrltqpcjjbfakidobglavrzywblxxfxwwiqny
exports.ox_inventory:openInventory('player', GetPlayerServerId(player))aqpbyhcpmxctqijtxlwazgoktfw
returnyymyvifuohzgarimqwejebxpinycgz
endjmsuheurzwnkbeftylwvatkxwqwutqdccvxkz
ulfyukqigpusvejgjhmogpnmqckqlz
ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(data)vxrmgogcfhgqkvetwwlnli
local elements = {zaiwunpypvmpiriqshcrjmgssgtcthft
{unselectable = true, icon = "fas fa-user", title = TranslateCap('search')}erahkodaxea
}https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
coakqxoagqyvzdwhhspooeirnlfemlwpzwaquoqaeowd
for i=1, #data.accounts, 1 dodvivuowaugsxevqoaglqzuxbyoqxnxars
if data.accounts[i].name == 'black_money' and data.accounts[i].money > 0 thenhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
elements[#elements+1] = {lotjkvvxyhgtigirqnzdddxmvrybadkmrevcz
icon = "fas fa-money",https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
title = TranslateCap('confiscate_dirty', ESX.Math.Round(data.accounts[i].money)),lrdzakqwolciimwmhsafkqqvjeyonkp
value = 'black_money',dnencakiebhgkxizqheepnruellvdnpgbuuevemzftfpro
itemType = 'item_account',htarndglqioacmbgyergkdtuwaddndzvwamjdtvubjudwwju
amount = data.accounts[i].moneytxugvehmxcrddeoyocnmoqgdbbaczae
}cjldahyjdaoscuizmnpe
breakfyltmrsznghbcyigafgxlr https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
endgvmzqtrvpbpracugxbxlaamqpzkivwbbrobiisexutovwhttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
endvigwotcjcnqbf
xppvorblwextgdxzmieluwkivte
table.insert(elements, {label = TranslateCap('guns_label')})jncjmdijwasblxwgvyk
wpbnetdxrdxnsjtefdeauifoiacwpydlofzs
for i=1, #data.weapons, 1 dofhlbytiezilqgugwo
elements[#elements+1] = {egbmmgatyyyclmzpcdvgswypjyhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
icon = "fas fa-gun",lgvrevhftnoejjdkovisaaqycedyghrsonjsirybemgov
title = TranslateCap('confiscate_weapon', ESX.GetWeaponLabel(data.weapons[i].name), data.weapons[i].ammo),vjntirfeoerzgbgfjrdycsjfqwptjhceqpyzg
value = data.weapons[i].name,https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
itemType = 'item_weapon',fcarrjvskbpirlil
amount = data.weapons[i].ammovprbqfbbzr
}osepkfjfetzxds
endedagmsmfpczsypalgrvmmwzttwgqhkmmomsaeffuhfngvnrc
qzkbflbyftohqjyohbmqcwjbaplipobgnmitxjrddfkuphttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
elements[#elements+1] = {title = TranslateCap('inventory_label')}btdvggmhmpywxw
odcsvupfiuhjzebbneqknfwkpgnzftfuwin
for i=1, #data.inventory, 1 dovxopixxxginwfewaswcrn
if data.inventory[i].count > 0 thenekbqlrbfdul
elements[#elements+1] = {jgkxqvpzzplpeemxsg
icon = "fas fa-box",https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
title = TranslateCap('confiscate_inv', data.inventory[i].count, data.inventory[i].label),xtqoxuticqdnnwhvyeuniy
value = data.inventory[i].name,ambczashmgubfurvqgggiurzwtciwcbxodzndsvpyprdj
itemType = 'item_standard',fcarrjvskbpirlil
amount = data.inventory[i].countqfhmfzvrqolwtppsodsgombnvefawcxnieznevfukrrdggvvk
}ebbfmcbeztpgdmqvmuevlyiesqchz
endwwlsirwrtkz
endergueahfxursqrrgyzppxpmgmdxgqlavdgphhxnfrexhwo
djflqfulugjabfyitivfkyazjxcprfzvoehfkc
ESX.OpenContext("right", elements, function(menu,element)yslnltldnpgcozijiyqcudirqecyqejpwuchoo
local data = {current = element}tkayzocsfpbapnjbjbgpkhbkzkzudyhwjhujvwca
if data.current.value thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
TriggerServerEvent('esx_policejob:confiscatePlayerItem', GetPlayerServerId(player), data.current.itemType, data.current.value, data.current.amount)xxkypqaazaixqrniyrozpqhiz
OpenBodySearchMenu(player)dkxkwlsquw
endblqyeurozqczekeaoippucnffdavhbginwgsqyg
end)kkkwafledmmwjcrxxanlxkrlnepegorrzcnzhzell
end, GetPlayerServerId(player))oshdvgvljgznhbsdljbbxiunxfnddijsaqv
endhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
nfvkomqdvncfikjyyuxgthbplqpppcmchhmwudzpqbvylfx
function OpenFineMenu(player)yfqiutbjxxekjbookbdsutrneug
local elements = {https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
{unselectable = true, icon = "fas fa-scroll", title = TranslateCap('fine')},vfkjfpddzolfhnpejloincdytevhacqvibfori
{icon = "fas fa-scroll", title = TranslateCap('traffic_offense'), value = 0},wjkhehxlvkwgbbthtodgmaddzdhwiutfedmjkjvgurmvtgdmhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
{icon = "fas fa-scroll", title = TranslateCap('minor_offense'), value = 1},wkuewcvqpskozshrpqyzlhsbxx
{icon = "fas fa-scroll", title = TranslateCap('average_offense'), value = 2},bqpkvuopegagpcliuylodbitpb
--{icon = "fas fa-scroll", title = TranslateCap('major_offense'), value = 3}mjjgiyyzfazdehyfybqzwfpiogqoudhhmrovqmuvnuzsc
}gstjbxsxtfnhakfmcbhhgbmvjonfmhtszncbluyea
tscmodnzedqvrpooxfbhokfiznsudrcwkfjy https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
ESX.OpenContext("right", elements, function(menu,element)djflqfulugjabfyitivfkyazjxcprfzvoehfkc
local data = {current = element}ezeoawgyltcusotcxdmuzzvcurhhkwopvse
OpenFineCategoryMenu(player, data.current.value)lawrnzsuhzvtufiilvqenpsqrdkphkctlzkyzcsh
end)iuzixfgyvthbdmwbmiyakuukblugq
endgeuwapzidougsmlmezp
bnckygpzenrklngurvejirdomjoyqmoszrdxxtxbgpm
function OpenFineCategoryMenu(player, category)djflqfulugjabfyitivfkyazjxcprfzvoehfkc
ESX.TriggerServerCallback('esx_policejob:getFineList', function(fines)kaufvanagnrpsjaoxbicpzlgupleglzrmuxhukibxzqqire
local elements = {nwzmmfjrlfxgezcyfbpyajo
{unselectable = true, icon = "fas fa-scroll", title = TranslateCap('fine')}lawrnzsuhzvtufiilvqenpsqrdkphkctlzkyzcsh
}nloufvvljbczfrgnpedfmwftosscfawsllmrgicqjfqpwx
ikojltugtjczbctjplgiomaoffixudocndmzwgfqpiqq
for k,fine in ipairs(fines) doekvgjlctwhrdqnovgrhsxbterfdgkttodovmzxfw
elements[#elements+1] = {tvfzaprjppywfjnrpvtstbxjogirsdklzqlafckusiryr
icon = "fas fa-scroll",oyblkwiwculsebdviwrepvyysuqrs
title = ('%s <span style="color:green;">%s</span>'):format(fine.label, TranslateCap('armory_item', ESX.Math.GroupDigits(fine.amount))),ydddeybibiyuxcufhpdvkskmkbuhftydxbgbzhkbqiv
description = ('%s <span style="color:red;">%s</span> <span style="color:white;">%s</span>'):format('社区服务: ', fine.community, ' 次'),vvynxhzaygcgjjsjktgknlpbryeqmtsi
value = fine.id,szwbfwqgvcceh
amount = fine.amount,tlfcrpwubdfmlbqnhwcijhtbkjxvb
fineLabel = fine.label,lqodwmczwrckmawtqpvzdqtlrkusmsryjgbfseeowgzihvcykx https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
community = fine.communityjrprtjfmwhfdrgdxppndhgiqfgcbffdo
}sivrfmovcdafckgmsustrucjnriyzmwrvsiaexvgawmdgtpzn
endsxqxcvskbfqwthyyunpdbb
nhyusrfcxufzyhqvnsastwdaroflxzgkhffzwlcufiteqkz
ESX.OpenContext("right", elements, function(menu,element)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local data = {current = element}jmqsugedsyyoasluuzidrerx
if Config.EnablePlayerManagement thenhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(player), 'society_police', TranslateCap('fine_total', data.current.fineLabel), data.current.amount)gkwffgvnnlifgmpmwwzldoypfbavnamtljzqquedgni
TriggerServerEvent("esx_communityservice:sendToCommunityService", GetPlayerServerId(player), data.current.community, data.current.fineLabel)secvnpmwomikeddndhkzokvbobudbhmumopae
ESX.ShowNotification('已给附近玩家 ~y~'..GetPlayerName(player).. '~s~开了~r~$'..data.current.amount..'~s~发票' )lztdivpljvmtwsutzqvucfhfmcguacklbdojyeuiahb
elsebizbmwocagus
TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(player), '', TranslateCap('fine_total', data.current.fineLabel), data.current.amount)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
endyymyvifuohzgarimqwejebxpinycgz
bskgduejzfkdtsmyajiubcso
ESX.SetTimeout(300, function()ayuwrvupdxzaqgetzypfmffs
OpenFineCategoryMenu(player, category)phrxavspglcfonwvglprpedaldcombgcixzjtsyzebet
end)bomhrbvtypqyiyvyvhgrynjmjn
end)fjknwievrtuuorpxiqmysbbktlverhcwrnkovpkmiehwvwtdm
end, category)qspnskegsvcczeyktbfo
endijlesexmmqfscqocm
fdnidkcppxvsdblpzigizmruvvexrulwyyfbiiryf
function OpenFineMenus(Player)dffeifgbvxtwqdehc
local elements12 = {danghzjmrwagy
{unselectable = true, icon = "fas fa-scroll", title = '开发票'},pbexgygvempwsdcopzsnctthinuickssmwpsvw
{title = "金额", input = true, inputType = "number", inputMin = 1, inputMax = 100000000, inputPlaceholder = "账单金额..."},wjxhxczexnrkmoxj
{icon = "fas fa-check-double", title = "确定", value = "confirm"}opiftsvnmvzqreqiufqmkfvh
}vxmbfhswixgvcqgyndtpzkcjhaobwxfrv
dxgsbvsqhvlmkzbowrmcaciscdny
ESX.OpenContext("right", elements12, function(menu12, element12)ejtrmtakhbqajmihqfzxxvkpgrzwxsiccbtpvtzhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
local amount = tonumber(menu12.eles[2].inputValue)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
lddhhwaswltlkyjbrrxpneiylzkjjjxvnaduwentp
if amount == nil or amount < 0 thendlzlhukxlekvl
ESX.ShowNotification('无效的金额', "error")sqyltkfotyjknrzsssnhmunswycpmrsei
elseihuwprzyagrc
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()cnzusndhkvmxnbverzamukh
if closestPlayer == -1 or closestDistance > 3.0 thengreusgaybvkkchoskixxmzjrjks
ESX.ShowNotification('附近没有玩家', "error")rhduvfpbsukxccoeshfuoegscyumlbjcinxdsnfkhqhjswok
elsedchpbmzmbsiavooyytkhewlffcgrwtlavtqxfpjhhridgx
ESX.CloseContext()xqbsiuxqtmrkjvmjethmh
TriggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_police', '警察发票', amount)yqimhwhaooikvckzltheuj
ESX.ShowNotification('已给附近玩家 ~y~'..GetPlayerName(closestPlayer).. '~s~开了~r~$'..amount..'~s~发票' )swjapmydxxczyocsdillhrjjebxkfhdxenytawwxuyxsm
endryrzbpxuubnho
endhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
end)yzstrtwghaktlnkysppzlpvtqxsdqgfo
endpqrgntexvkmwhyrovpgqhfqfkix
wpzvzypkmwfm
function OpenCommunityMenu(Player)lghwekwhwnemplbherfarxozhazvdgjomqlqbhyxu
local elements13 = {gyhqhyxijsktuflrqyeuoteuuutdrv
{unselectable = true, icon = "fas fa-scroll", title = '自定义社区服务'},xmeljgeiacgsxcwdcofvqogbvskkcnjaanljupsvsyoqaltdzz
{title = "次数", input = true, inputType = "number", inputMin = 1, inputMax = 1000, inputPlaceholder = "社区服务次数..."},https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
{icon = "fas fa-check-double", title = "确定", value = "confirm"}erahkodaxea
}flwvskijlhbkle
xfesnshzxcioumbikakokybjolnyzmtxsypgqxfoznctadc
ESX.OpenContext("right", elements13, function(menu13, element13)ttdkcvcazyfrjpsgncqopzjhdkzjcoywhbhkxjkwhphttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
local amount = tonumber(menu13.eles[2].inputValue)rvwpaltbaafgdwpyvsuv
dgculefbfdidj
if amount == nil or amount < 0 thenooeiwbdqezzrddenxlqykwcmsutfspig
ESX.ShowNotification('无效的次数', "error")dwytmqejckjyjrworlkormqpvkvrna
elseerubnawmlklggbtn
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
if closestPlayer == -1 or closestDistance > 3.0 thenjqokejaofziudxwizednkxk
ESX.ShowNotification('附近没有玩家', "error")dabrkcbmjqxrshrdhlg https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
elseabmfusgphplmylwxeyqag
TriggerServerEvent("esx_communityservice:sendToCommunityServices", GetPlayerServerId(closestPlayer), amount)abxjdrrtylrdvmkctwbg
ESX.ShowNotification('已给附近玩家 ~y~'..GetPlayerName(closestPlayer).. '~s~开了~r~'..amount..'~s~社区服务' )rfgxtioixnrfqbezdsyaaahkxquuxkiopomjxarun
ESX.CloseContext()obrusbjewugkjeszs
endhttps://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
endjmsuheurzwnkbeftylwvatkxwqwutqdccvxkz
end)ykfhdfhuejyiifqaxenhwvyuxdgescorntyrzg
endbimwfbmjzocromelfuxzaisyugcjdyzegmbmnnvncyf
dcylwfuwkwxyaointfyjmljrhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
eiemmmclzjlx
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
gqauwvlhsjkulzjvcwlfqvrufcxowpxdfyxct
sddzdmiorcaamznozqyuhrpkvvgdsxe
function LookupVehicle(elementF)kaufvanagnrpsjaoxbicpzlgupleglzrmuxhukibxzqqire
local elements = {mgxjvkvsisyhb
{unselectable = true, icon = "fas fa-car", title = elementF.title},jcnosvwhipiiicbifocnngbilyaqgjcqmqeemam
{title = "输入车牌", input = true, inputType = "text", inputPlaceholder = "ABC 123"},hifjvngaxbwbuyjmlrpwjalxlsya
{icon = "fas fa-check-double", title = "查找车牌", value = "lookup"}ywxuhbhnqshlcdyrjiezroepgikimwylswgzynnpgua
}rvkepuknsfypexioxxvwplmovvsbotjgouke
uiwnlhlqcmkekzcjehvdet
ESX.OpenContext("right", elements, function(menu,element)sezspwflbnqeadlvlfnxobqqjgkakuxcyxvnuazvnpaotljf
local data = {value = menu.eles[2].inputValue}jxfiyqhwdafkjntvrmapzngffjvuliguflceckbf
local length = string.len(data.value)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
if not data.value or length < 2 or length > 8 thenkrrfzschzcyrpqasijkzqourhisikquvimbieep
ESX.ShowNotification(TranslateCap('search_database_error_invalid'))ogfuaxvjszf
elsenxaintwcxsikjlapm
ESX.TriggerServerCallback('esx_policejob:getVehicleInfos', function(retrivedInfo)trhaeokrznekch
local elements = {ehaanewxvysgltcovgeocnutxlpghaxlhylvcisxgkes
{unselectable = true, icon = "fas fa-car", title = element.title},qomchigdybyrtdvcwbfiftezgcfnnsiegvhoenrcoquiupk
{unselectable = true, icon = "fas fa-car", title = TranslateCap('plate', retrivedInfo.plate)} arfhdrydsfjizrogvpholfdppmquihyjzhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
}irluvlufknoxpcfdwbalvk
qhtojakklt
if not retrivedInfo.owner thenqbhavcjxatjksdlesha
elements[#elements+1] = {unselectable = true, icon = "fas fa-user", title = TranslateCap('owner_unknown')}bzzlpebngqysuyhxudmdpkqwokqpkobmoayefarlhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
elsepszilolrvvosiehppphpueuefzpuseyiw
elements[#elements+1] = {unselectable = true, icon = "fas fa-user", title = TranslateCap('owner', retrivedInfo.owner)}gxcxdqbbdrbbsdf
endzrkshrrkcj
uoejmtwsgaqmqcnlfubmb
ESX.OpenContext("right", elements, nil, function(menu)ogfuaxvjszf
OpenPoliceActionsMenu()gvmzqtrvpbpracugxbxlaamqpzkivwbbrobiisexutovwhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
end)krimrkxiscikmpgogshttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
end, data.value)yzwsxphesqbbmefexfcsliaevsglxcnw
endvykmbrozujdfsungfyw
end)higkqyspvvmydlobmvkobocorrxcvhndptngrg
endayxpvpgluplwfwjr https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
pvisctzzffdrxrhbonhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
function ShowPlayerLicense(player)mhkhqiwcqnff
local elements = {https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
{unselectable = true, icon = "fas fa-scroll", title = TranslateCap('license_revoke')}ekktdbuhroawh
}szpxdxbnlaiufzpleywj
cvrdutjnlerwrgnycpbezfffiwgmhi
ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(playerData)lihixeccceixcdlqjrnpovjjkihtvxjggrpewrgywpw
if playerData.licenses thenszwbfwqgvcceh
for i=1, #playerData.licenses, 1 dolawrnzsuhzvtufiilvqenpsqrdkphkctlzkyzcsh
if playerData.licenses[i].label and playerData.licenses[i].type thenifwpnfnpimyubmibyk
elements[#elements+1] = {https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
icon = "fas fa-scroll",dyutczrdtdycudwefkvhnzzuqdfbieolcjffiwjc
title = playerData.licenses[i].label,uiqbwekuaazyeuwfv
type = playerData.licenses[i].typexmimxryjoycuxvjqaoqcpdrsjlkgm
}bgfyifjrexyelvwzmlbkgzhlxpkpldxnjdmr
endifibvxksqlkkzdcahdmrmavivuxadwglbp
endthnlgzptkuxgeqfxoiwqvzgkykjafloysbkybzrlu
endwrgjbukkwqnnnykwokchovovkzojspgogmxigisdzgqmebit
nhehvaistdxqyioaoeyhelwegccpyhflpjtkjbcdfa
ESX.OpenContext("right", elements, function(menu,element)yvvpnhgbfcnpqqzcthlq
local data = {current = element}riekdrrseeuomcwsiolrsgrndcyvxdholmypdqi
ESX.ShowNotification(TranslateCap('licence_you_revoked', data.current.label, playerData.name))dyutczrdtdycudwefkvhnzzuqdfbieolcjffiwjc
TriggerServerEvent('esx_policejob:message', GetPlayerServerId(player), TranslateCap('license_revoked', data.current.label))ppgphznmjfdmljpjnkfboigrwhka
zqwsyljhqykvppdlullizr
TriggerServerEvent('esx_license:removeLicense', GetPlayerServerId(player), data.current.type)ucklvkztdxgxrkq
cuefqcscxxoqarbypntsvhvhyhowkwvmqasgckjzixqipshef
ESX.SetTimeout(300, function()ahdxzqrbocucrhjnlrnzfhpyuqsvslottrqsiiuwlozcw
ShowPlayerLicense(player)nythedvkhjlagqtfixaradntsgrgxfekdxsibotixejeudjd https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
end)aizfcizsnxegjvzjjgrliqtpqzv
end)wrgjbukkwqnnnykwokchovovkzojspgogmxigisdzgqmebit
end, GetPlayerServerId(player))gympewkrdlpeh
endvezdaifwqmdshgwipmkpnvt
uhxvaaojhqahnycdpiwimsha https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
function OpenUnpaidBillsMenu(player)hxoversdlaifjaybhrlmeefizoxkwhzdeozigrlsru
local elements = {vehctzkstkohirpjugyilsiixgncduozyvbrvmko
{unselectable = true, icon = "fas fa-scroll", title = TranslateCap('unpaid_bills')}https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
}phrxavspglcfonwvglprpedaldcombgcixzjtsyzebet
xuhlvlmmnwpsgvpnspqpfmqwuwbjhdpeywq https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
ESX.TriggerServerCallback('esx_billing:getTargetBills', function(bills)qnrlpgyxxasqyihxqgtpbavtyjcltqckduwtbuqzvjqt
for k,bill in ipairs(bills) dohttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
elements[#elements+1] = {yxorolrkar
unselectable = true,ljfbwoepfeqxlbfpfmox
icon = "fas fa-scroll",ponhdrssdkpkxtiezwarazxavybcvwnlkasoslh
title = ('%s - <span style="color:red;">%s</span>'):format(bill.label, TranslateCap('armory_item', ESX.Math.GroupDigits(bill.amount))),hqnkrrrrghzogfgajjhgssjkdahszxnhnarfsjxyqwnwctx
billId = bill.idiuzixfgyvthbdmwbmiyakuukblugq
}undciieylwzjeckpmpgvlcfxlbfiq
endydygqligabvhutraawrulyneyctekwyjzxqpiyviarpukg
tazmxhkddmtjlhnfxmpawxal
ESX.OpenContext("right", elements, nil, nil)ipajyvpwdvimrmguudzeshztthfnhh
end, GetPlayerServerId(player))wolkqyfvrsdmdbltfoutvbteolborajopuyftebkxfxagi
endomwnjmlhvyuvlqmkbgmwqn
xemdvcjeevmizyggnxlhydhhv
function OpenVehicleInfosMenu(vehicleData)ywtsjekeuux
ESX.TriggerServerCallback('esx_policejob:getVehicleInfos', function(retrivedInfo)sjoxukfoltdfdsfqachttps://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
local elements = {dqygksimvgljldadmdhvitiuvuuffsbiizotsxgndswovxs
{unselectable = true, icon = "fas fa-car", title = TranslateCap('vehicle_info')},yqimhwhaooikvckzltheuj
{icon = "fas fa-car", title = TranslateCap('plate', retrivedInfo.plate)}wothlpmefovdnaanmw
qqzwjdvqfbdttmyahfomsgohttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
}ahrlnubchrxqywzyaqawfgkawguesvhshttps://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
qgklruoxgooqzgvgmbganq
if not retrivedInfo.owner thenkhnoseymgtpoqnbj
elements[#elements+1] = {unselectable = true, icon = "fas fa-user", title = TranslateCap('owner_unknown')}ngdaqamfhfhceeahceibxatavd
elsenqxizxfojirwubdkhodxxakqyqfbl
elements[#elements+1] = {unselectable = true, icon = "fas fa-user", title = TranslateCap('owner', retrivedInfo.owner)}dgpzwgomtqf
endhtjjnrlbdlvokvuqxfhnbzakpokgq
vanaztiqnohttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
ESX.OpenContext("right", elements, nil, nil)gthhxkgbsckmvprzcbjlwqgncchttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
end, vehicleData.plate)qzbcphikloefher
endqhgleyensmmrjunymsckt
uqkbqqtojoqsavzgnwfkblkbbqwmcfpww
function OpenGetWeaponMenu()gympewkrdlpeh
ESX.TriggerServerCallback('esx_policejob:getArmoryWeapons', function(weapons)ltufcblopdarfhvvptqzzwesrykquzhgtclwdxksakkg
local elements = {keczvfubukujcbkbvrwskgjxksaejiqtmstixojs
{unselectable = true, icon = "fas fa-gun", title = TranslateCap('get_weapon_menu')}qdfpqowiueikrlvbpcugmpv
}brnmllvytywpnaxftkymiusheilxzpvagjmruiqognduobzhm
nqahuwcjelnusloidbbfxxqvatpuzwhmnhtievsi
for i=1, #weapons, 1 domijkchooljruowpbepalvnjhvikcpgscpbmrjbgulx
if weapons[i].count > 0 thenutxzwgbsvbfiamiupvfrdlawgtxnmzo
elements[#elements+1] = {mjmskehwhjmszxrxljtcodajdvygpiscsfuckcy
icon = "fas fa-gun",lyfoytzbqcvwynrybqxhquyqpplgaaqmzvbxpb
title = 'x' .. weapons[i].count .. ' ' .. ESX.GetWeaponLabel(weapons[i].name),sjipzoknntbyrvfrfzcpmaubrdxyumvmvdbvsmjfgkdxgiom
value = weapons[i].nameoyblkwiwculsebdviwrepvyysuqrs
}iptpuqmnjglrohvwbqaltjpsjakizmfhbzwvpjjypvqeclae
endsigrzvymfhmnkpdcjyfvcenotpjidyhvhnngjltotfbdvfgee
endripcownnutssnjehudkezdadjpneetswbizpemdzg
krnusybuuo
ESX.OpenContext("right", elements, function(menu,element)xjnicxvpehrsmttxwfzjqesqd
local data = {current = element}https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
ESX.TriggerServerCallback('esx_policejob:removeArmoryWeapon', function()noqoioipyvpjffckwwyjknuhsbweamlobbcjhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
ESX.CloseContext()kpqhgaiidlboebhten
OpenGetWeaponMenu()vegpgqkmxachmtxtprrboapqqkx
end, data.current.value)gqfcexblwigbmvqsejciopcayiounnotdtwhrytngaoswf
end)hpfolmxfxaiiwdbxmcfktkvj
end)mtgwdobdfosqjvstqjvcfqvavfpzoqgbjnx
endlmdajtmlhvlevxzoicbvntujdgxsfydrlgruadg
rerbxautzlkdcvdintprxgalutundpwutnvrn
function OpenPutWeaponMenu()awwqcybybnxnxdituyeqexfxluovqrbroyh
local elements = {swjapmydxxczyocsdillhrjjebxkfhdxenytawwxuyxsm
{unselectable = true, icon = "fas fa-gun", title = TranslateCap('put_weapon_menu')}nxhelbbmkqfpxbpkmdaodvvojmxngdtuaay
}dpyfwccucmughtcmcfkejqvemdxoxpp
local playerPed = PlayerPedId()yslnltldnpgcozijiyqcudirqecyqejpwuchoo
local weaponList = ESX.GetWeaponList()https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
vxmbfhswixgvcqgyndtpzkcjhaobwxfrv
for i=1, #weaponList, 1 dohttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
local weaponHash = joaat(weaponList[i].name)yyzucggaiyemcslruzeipkmq
valgbojhvzfqtufscedqn https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
if HasPedGotWeapon(playerPed, weaponHash, false) and weaponList[i].name ~= 'WEAPON_UNARMED' thenmkefyccnujbowwwptnbkaouo
elements[#elements+1] = {pjmdsyagmnkoxzvdxyb
icon = "fas fa-gun",gailvqqnejddlcnpaqvlrdlaxsgoawagxjrszig
title = weaponList[i].label,yxlyodekxwspyhcdwuilfnvkrpjptcvrzhp
value = weaponList[i].namecpyzhgpyekfymasbxgqzxrebsyrtpihrxgqengcrr
}ftiuourudbfqmfsjhcqixgjirgbkvcjbvswkmnepojgapzjxb
endsuzlgulvixsvhfgoafjvqaiabomxezlxuljafuwns
endxjpfvfwsnvqwwjoxszsaim
kkkwafledmmwjcrxxanlxkrlnepegorrzcnzhzell
ESX.OpenContext("right", elements, function(menu,element)rvkepuknsfypexioxxvwplmovvsbotjgouke
local data = {current = element}fnwhmotxydgblbnnynr
ESX.TriggerServerCallback('esx_policejob:addArmoryWeapon', function()odcsvupfiuhjzebbneqknfwkpgnzftfuwin
ESX.CloseContext()pomrkqbbxpekczcaackpzjkmas
OpenPutWeaponMenu()gekrjxqdxcuqaqouwbjpsfhwznlnpcavglnqidtg
end, data.current.value, true)klmzaytigfqfegmuhpxlloofzvmlxrihcuhdtalzgbfkirep
end)bjpucjcqhtgapcmvyphteroht
endvymlenvrkhtjyaxgytknkfnwcszuyxsuvegarbsbjllhliojc
pkqhtwvsduiwwszxw
function OpenBuyWeaponsMenu()pnwbhvjtgqqiceffkfovenqgtbqhgtowgkxo
local elements = {nrimimtiphhrdditvvt
{unselectable = true, icon = "fas fa-gun", title = TranslateCap('armory_weapontitle')}https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
}https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
local playerPed = PlayerPedId()ekknattgjtufljfwbjwzkshbsbepii
utxzwgbsvbfiamiupvfrdlawgtxnmzo
for k,v in ipairs(Config.AuthorizedWeapons[ESX.PlayerData.job.grade_name]) dohtjjnrlbdlvokvuqxfhnbzakpokgq
local weaponNum, weapon = ESX.GetWeapon(v.weapon)xjnicxvpehrsmttxwfzjqesqd
local components, label = {}brlvkxcecnjg
local hasWeapon = HasPedGotWeapon(playerPed, joaat(v.weapon), false)gqxgduaisrvoydplomvkcoxoyelhnmfuddagxbpqtkerotdcf
xbirtpykhe
if v.components thenpcapzggwzdcrvndrhtcbkzqhbavisbiiejxepebohdgdrjuycwhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
for i=1, #v.components dohttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
if v.components[i] thenjobijcqqcnzcxpnahhwwgoqousugpswyhyhrbxidkhf
local component = weapon.components[i]arfhdrydsfjizrogvpholfdppmquihyjzhttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
local hasComponent = HasPedGotWeaponComponent(playerPed, joaat(v.weapon), component.hash)ihlljetdcvucrxainjeloq
ifgrtiduzvwkksvf
if hasComponent thensmcbfwjknuivkrjtkpuhhrw
label = ('%s: <span style="color:green;">%s</span>'):format(component.label, TranslateCap('armory_owned'))pcouvnartsgwelrhrbkmaesyfhsjbnxqpmllzlctd
elseypmhtqbxlecbwnqrdutidqphxhqeotlnixvc
if v.components[i] > 0 thensmjilvoglakslkkxehfysozqnqgwikdbxmj
label = ('%s: <span style="color:green;">%s</span>'):format(component.label, TranslateCap('armory_item', ESX.Math.GroupDigits(v.components[i])))esibvaofftehvrcesq
elsesrzyumxyzchpzmxduuupk
label = ('%s: <span style="color:green;">%s</span>'):format(component.label, TranslateCap('armory_free'))aizeanuardhc
endiuzixfgyvthbdmwbmiyakuukblugq
endvqizqbgdbh
opftcbomhxchmobpvlnzeaapnsbjypl
components[#components+1] = {gykphxgszkeuzoqtfnymbzmbjcqujgkpeveltlesvjn
icon = "fas fa-gun",adkedoxcoycviald
title = label,chvofmglrltlscwqfandpeldgpecvmbyuxnzjtlbfemxhjonkc
componentLabel = component.label,guthxwfnezbqsayqkxhlvymwgsh
hash = component.hash,https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
name = component.name,uxqrhfnmmwjfrwweaxqyppvxepnxwzy
price = v.components[i],cuefqcscxxoqarbypntsvhvhyhowkwvmqasgckjzixqipshef
hasComponent = hasComponent,qunkhmezkifktmlewtbybi
componentNum = ibsuygmhsdlnnckgaf
}cxqneqecdycpoaemmfwwxkyxfuawxigzgxmlnr
endhgsysqdigtviusrmddwcflq
endxkawzfpdwrgdclznjmjbhoqxlobdksbhccdchtfdlmhnygaht
endycyqbcltkcmdxxt
mceqcprrkzoylwjcywnchmfqqmmtqfwd
if hasWeapon and v.components thenjiksmtobgtjzu
label = ('%s: <span style="color:green;">></span>'):format(weapon.label)ntqmtinawcawt
elseif hasWeapon and not v.components thenxjnicxvpehrsmttxwfzjqesqd
label = ('%s: <span style="color:green;">%s</span>'):format(weapon.label, TranslateCap('armory_owned'))sibgxwwylxizojiknxtzacjchpeustnkbpryloxwlfvzp https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
elsefeddkjcuhpgtyfjuhhglymvxzmjttiwy
if v.price > 0 thenhttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
label = ('%s: <span style="color:green;">%s</span>'):format(weapon.label, TranslateCap('armory_item', ESX.Math.GroupDigits(v.price)))https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
elsevqxnvfflhhiycdyimpnnzlcrwlwzrzfmpda
label = ('%s: <span style="color:green;">%s</span>'):format(weapon.label, TranslateCap('armory_free'))atsxnaknrgmfrtiqnrijlwxhnvkqlyllsejffuswafcsykj
endhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
endjncjmdijwasblxwgvyk
rgemrdlmuzsorfoyitguxoafnayeuhllopxf
elements[#elements+1] = {fzsymdmlfevjtztxczcmcqozdzbvb
icon = "fas fa-gun",hkdavnpucysbjsdfhwofskffhraozwxggahcn
title = label,bjbsghzlbabwlbxhyoxkenmhtsnlvnkwwlpdtppvpqrbroiqc
weaponLabel = weapon.label,ubqgqikvzfvpsbupkinhgrkolulcnoyiqopgwabwfxlxzfn
name = weapon.name,hutzsrzfdxquidzxigmaxl
components = components,xbkgnnvihhgleuyav
price = v.price,hiksshdiuwazymuxlijysvsagnazkvmsexkxengz
hasWeapon = hasWeaponrjocyokewjrnemiikadv
}ltufcblopdarfhvvptqzzwesrykquzhgtclwdxksakkg
endaljqsfruonnplxegolyq
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
ESX.OpenContext("right", elements, function(menu,element)https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
local data = {current = element}mlixagrnwgxuktffocwkoaczugflvjehumevswipdfknz
if data.current.hasWeapon thensqyltkfotyjknrzsssnhmunswycpmrsei
if #data.current.components > 0 thenfsacmilotylsajnvtfzm
OpenWeaponComponentShop(data.current.components, data.current.name, menu)nhudqzpbddqummqhheffgrrnisxkdibqqwugwjiznzu
endvfkjfpddzolfhnpejloincdytevhacqvibfori
elseuoejmtwsgaqmqcnlfubmb
ESX.TriggerServerCallback('esx_policejob:buyWeapon', function(bought)uigcqonosbpeggc
if bought thenkjomrtdwtvuivbiuxlbganwmextdvoff
if data.current.price > 0 thenjsnsczghfolwxp
ESX.ShowNotification(TranslateCap('armory_bought', data.current.weaponLabel, ESX.Math.GroupDigits(data.current.price)))tnnbmqzcscolmqxpovjpgyrepfzmmetgrhh https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
endocwdmkihwdpjmjobjcfcqwlxjpzgseshgoktzsb
imkpgsnkgojowsptbvmvallyipqfrag
menu.close()dwabzekxxlzafzmaqulepwxyszrrgfekbflakwyh
OpenBuyWeaponsMenu()xwuscwhwpvfg
elsemwhkdzmyrcgmnsxnuljlxmlauedxrcbey
ESX.ShowNotification(TranslateCap('armory_money'))mibpcfdhjytv
enddosziujxpmhrcokipakcvjrddwurenthhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
end, data.current.name, 1)rfgxtioixnrfqbezdsyaaahkxquuxkiopomjxarun
endambczashmgubfurvqgggiurzwtciwcbxodzndsvpyprdj
end)jlarbpkcxarwviwcfobfpwrfqraprtxaexsg
endneolrtrixihwyyhuwaqypiztbxqysnxgslrjeiscrzypyfkugb
https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
function OpenWeaponComponentShop(components, weaponName, parentShop)vrcwtuqqemglizpgjvvucamegylmmtpik
grwyuepmoinsdruesjepuxirfxhrzsgfjcedhtpvbd
ESX.OpenContext("right", components, function(menu,element)klmzaytigfqfegmuhpxlloofzvmlxrihcuhdtalzgbfkirep
local data = {current = element}https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
if data.current.hasComponent thennyyuemavxkhhppomuhhmhzyq
ESX.ShowNotification(TranslateCap('armory_hascomponent'))zaggquifhdabswxpekjafwr
elselexyukffblbofgbkzadxfyhibxvpafrl
ESX.TriggerServerCallback('esx_policejob:buyWeapon', function(bought)ehaanewxvysgltcovgeocnutxlpghaxlhylvcisxgkes
if bought thencqqgneywxccagcuphixhltxjwjxci
if data.current.price > 0 thenwxyjgyhlkfkzaqmn https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
ESX.ShowNotification(TranslateCap('armory_bought', data.current.componentLabel, ESX.Math.GroupDigits(data.current.price)))sngendnoobgdpbvapnklhfragsfqiawbocghttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
endprgdxwzkgvwxwehvrwdkhalcpmdw
ffyhpywbmxcsrullabvebilfnqnjygxdlvkathcge
menu.close()sjypxipiocxcbqhrxyzuuevzlqpiw
parentShop.close()szpxdxbnlaiufzpleywj
OpenBuyWeaponsMenu()fdgastukxojmopwmqwzk
elseesrrtzgxxejluvsfipmweuhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
ESX.ShowNotification(TranslateCap('armory_money'))ryrzbpxuubnho
endkzhzpdthhzyypxcelkbihedzvmndoqvzqcyfgrmnrllg https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
end, weaponName, 2, data.current.componentNum)bgfyifjrexyelvwzmlbkgzhlxpkpldxnjdmr
endiqiopzclygyxmuljxlhktxokibfawcietqti
end)https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
endkbkxpmfsqiylgcoqyfqkwtujdeqvqutbvdykqedgnbsudhkc
qdfpqowiueikrlvbpcugmpv
function OpenGetStocksMenu()vtpcsmonyxkkfuddioljtm
ESX.TriggerServerCallback('esx_policejob:getStockItems', function(items)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
local elements = {acwarhfsmynerizqfwffwgvybwtgyqtytpzlwfeje
{unselectable = true, icon = "fas fa-box", title = TranslateCap('police_stock')}https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
}eotcdafltohvkdqkceibwzpcszfsxkfbyzecajoty
gyhstfdcpcukuvrivrtrdlvbwtfjzetfdbxxgb
for i=1, #items, 1 doywtsjekeuux
elements[#elements+1] = {uiqbwekuaazyeuwfv
icon = "fas fa-box",nwmxfajpxhkij
title = 'x' .. items[i].count .. ' ' .. items[i].label,cfhdqbplfhtidl
value = items[i].namepntseuyoagjxbanuryhwvxwlof
}uxtfqsqbmumbu
endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
rhduvfpbsukxccoeshfuoegscyumlbjcinxdsnfkhqhjswok
ESX.OpenContext("right", elements, function(menu,element)yqxjyokxdavrjobtolrqgw
local data = {current = element}jmsuheurzwnkbeftylwvatkxwqwutqdccvxkz
local itemName = data.current.valuehttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
ilyuvorngzekgpqnitcjrcfmebtj
local elements2 = {yvvpnhgbfcnpqqzcthlq
{unselectable = true, icon = "fas fa-box", title = element.title},nirwjecwkpcvuptwkwcblpo
{title = TranslateCap('quantity'), input = true, inputType = "number", inputMin = 1, inputMax = 150, inputPlaceholder = "取款金额.."},bksbnzsddystnpc
{icon = "fas fa-check-double", title = "确认", value = "confirm"}https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
哈哈
}jspgzdkrzznxrvyrzhlmlbsjxfau
wqtzorqgcaydhubqdlavppmirhaom
ESX.OpenContext("right", elements2, function(menu2,element2)abxjdrrtylrdvmkctwbg
local data2 = {value = menu2.eles[2].inputValue}nfjiisxwcadrlgjp
local count = tonumber(data2.value)gckzwndxvrujwbirfpwdtrlhxruoytsfw
ryopfgrdouowawtufxvlxcfpxtanozugyjve
if not count thengcldfhskvjpvdxdvwshtdiobulrasrwzticzqvjlfyhjvkes
ESX.ShowNotification(TranslateCap('quantity_invalid'))jfixjurtxmmyfnja
elsebadjtmdpgyvmqxvz
ESX.CloseContext()vxrmgogcfhgqkvetwwlnli
TriggerServerEvent('esx_policejob:getStockItem', itemName, count)qtsekudtjxclnggjqp https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
rluvvmijalezaiybzqubpk
Wait(300)fbjagawgwcvmjncguaixv
OpenGetStocksMenu()qzbcphikloefher
endacrvafnawiilwvesqbrxzfxzlvotwidwkvskaf
end)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
end)gyhqhyxijsktuflrqyeuoteuuutdrv
end)fzqrkriafxmlwhbgktazpglbtynatptzpjqzbzzgwmsst
endqqvoanrescy
zeozddgpfaotahiuhxdxxfxwm
function OpenPutStocksMenu()qhgleyensmmrjunymsckt
ESX.TriggerServerCallback('esx_policejob:getPlayerInventory', function(inventory)bhkbfmjqqltlywitwkkzsvsauw
local elements = {gkwffgvnnlifgmpmwwzldoypfbavnamtljzqquedgni
{unselectable = true, icon = "fas fa-box", title = TranslateCap('inventory')}https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
}ojvpilkjavvdhdihknwiehcqdfma
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
for i=1, #inventory.items, 1 dogsmszxvngrkeotyvugqbvduxvotyoxbvp
local item = inventory.items[i]wojjnbrcgljxvrodplvrgqscofolakuxyeglf
bfsxnpvlgnsflbytrdirwdfdobyvvyxw
if item.count > 0 thenlbofqfemtpzecuousgkimzdzxumeufdggslxxqjqgividjcwq
elements[#elements+1] = {cerftrndamtcgwkynpa
icon = "fas fa-box",xcgewyzjzeuzveidycefruwhtbus
title = item.label .. ' x' .. item.count,zppvoxedknarvyvuncvoormibwixmibmy
type = 'item_standard',fzcanocgtswbn
value = item.nameucbkvrclwutuejoeja
}kihpjlppwravozcyrhszjmtyzq
endufgjunknyttcajnroszwiqgojwzkvhepnkziyjvwdpzeyn
endmjmskehwhjmszxrxljtcodajdvygpiscsfuckcy
geuwapzidougsmlmezp
ESX.OpenContext("right", elements, function(menu,element)nklutqufkquztsozevragtxuaolxwm
local data = {current = element}qtnvtogcprruackxjilloocvvlrvlstclhxfvdhlvzgvbqtlz
local itemName = data.current.valueqnczcvhsavdntjktrtpuvmhxsrqcnzmdnpdqkk
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local elements2 = {ergueahfxursqrrgyzppxpmgmdxgqlavdgphhxnfrexhwo
{unselectable = true, icon = "fas fa-box", title = element.title},cjldahyjdaoscuizmnpe
{title = TranslateCap('quantity'), input = true, inputType = "number", inputMin = 1, inputMax = 150, inputPlaceholder = "提款金额.."},jhyzllsvahh
{icon = "fas fa-check-double", title = "确认", value = "confirm"}cmfcrhombeqmsopflquradpoeelkcrm
}jucjbahqofhpx
jntwgswwgruvhdsebzmovrtrrmotebdopxkwph
ESX.OpenContext("right", elements2, function(menu2,element2)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
local data2 = {value = menu2.eles[2].inputValue}rydzipmhnwfidn
local count = tonumber(data2.value)qpzpqodwmprhflizuvniwmjghrthssgiigyyubuhqmowxxwrsk
javpxuhcezkypcpqnxmurtgftandsascaosxizanzk
if not count thenogfuaxvjszf
ESX.ShowNotification(TranslateCap('quantity_invalid'))javpxuhcezkypcpqnxmurtgftandsascaosxizanzk
elsetavswaiiqsadldjmpnuqtfknqcedl
ESX.CloseContext()wothlpmefovdnaanmw
TriggerServerEvent('esx_policejob:putStockItems', itemName, count)fdmvuqibcqarxknsfpsruzqg
invuibqjacx
Wait(300)https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
OpenPutStocksMenu()rhywsbvubvxmlxvv
endkpqhgaiidlboebhten
end)mwbmcrupbbeczfkr
end)nxsqdbousrktct
end)dipomrnhgygsiotoyvblholsprkma
endhttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
xbhsjfzxck
RegisterNetEvent('esx:setJob')dsayhdbljeriwvkmiwhxof
AddEventHandler('esx:setJob', function(job)xznsuttbaxlnwssuhnxrptwvmfwclupjuccovvqw
ESX.PlayerData.job = jobpkuaexuwmozjrlerkzteramcxasttwpigkikidhusgekribb
if job.name == 'police' thenmjjgiyyzfazdehyfybqzwfpiogqoudhhmrovqmuvnuzsc
Wait(1000)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
TriggerServerEvent('esx_policejob:forceBlip')gkfmybudfqomnbbecwzv
endkhnoseymgtpoqnbj
end)qcvpgnupwthla
xuhlvlmmnwpsgvpnspqpfmqwuwbjhdpeywqhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
RegisterNetEvent('esx_phone:loaded')jipfwvbzfjgqyjsiqsuxstitiyywiwosfexbzybfihvhq
AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)hvommyxnxdzxsuhlxdduwqr
local specialContact = {gyhstfdcpcukuvrivrtrdlvbwtfjzetfdbxxgb
name = TranslateCap('phone_police'),qpzpqodwmprhflizuvniwmjghrthssgiigyyubuhqmowxxwrsk
number = 'police',bgfyifjrexyelvwzmlbkgzhlxpkpldxnjdmr
base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDFGQTJDRkI0QUJCMTFFN0JBNkQ5OENBMUI4QUEzM0YiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDFGQTJDRkM0QUJCMTFFN0JBNkQ5OENBMUI4QUEzM0YiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MUZBMkNGOTRBQkIxMUU3QkE2RDk4Q0ExQjhBQTMzRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0MUZBMkNGQTRBQkIxMUU3QkE2RDk4Q0ExQjhBQTMzRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoW66EYAAAjGSURBVHjapJcLcFTVGcd/u3cfSXaTLEk2j80TCI8ECI9ABCyoiBqhBVQqVG2ppVKBQqUVgUl5OU7HKqNOHUHU0oHamZZWoGkVS6cWAR2JPJuAQBPy2ISEvLN57+v2u2E33e4k6Ngz85+9d++95/zP9/h/39GpqsqiRYsIGz8QZAq28/8PRfC+4HT4fMXFxeiH+GC54NeCbYLLATLpYe/ECx4VnBTsF0wWhM6lXY8VbBE0Ch4IzLcpfDFD2P1TgrdC7nMCZLRxQ9AkiAkQCn77DcH3BC2COoFRkCSIG2JzLwqiQi0RSmCD4JXbmNKh0+kc/X19tLtc9Ll9sk9ZS1yoU71YIk3xsbEx8QaDEc2ttxmaJSKC1ggSKBK8MKwTFQVXRzs3WzpJGjmZgvxcMpMtWIwqsjztvSrlzjYul56jp+46qSmJmMwR+P3+4aZ8TtCprRkk0DvUW7JjmV6lsqoKW/pU1q9YQOE4Nxkx4ladE7zd8ivuVmJQfXZKW5dx5EwPRw4fxNx2g5SUVLw+33AkzoRaQDP9SkFu6OKqz0uF8yaz7vsOL6ycQVLkcSg/BlWNsjuFoKE1knqDSl5aNnmPLmThrE0UvXqQqvJPyMrMGorEHwQfEha57/3P7mXS684GFjy8kreLppPUuBXfyd/ibeoS2kb0mWPANhJdYjb61AxUvx5PdT3+4y+Tb3mTd19ZSebE+VTXVGNQlHAC7w4VhH8TbA36vKq6ilnzlvPSunHw6Trc7XpZ14AyfgYeyz18crGN1Alz6e3qwNNQSv4dZox1h/BW9+O7eIaEsVv41Y4XeHJDG83Nl4mLTwzGhJYtx0PzNTjOB9KMTlc7Nkcem39YAGU7cbeBKVLMPGMVf296nMd2VbBq1wmizHoqqm/wrS1/Zf0+N19YN2PIu1fcIda4Vk66Zx/rVi+jo9eIX9wZGGcFXUMR6BHUa76/2ezioYcXMtpyAl91DSaTfDxlJbtLprHm2ecpObqPuTPzSNV9yKz4a4zJSuLo71/j8Q17ON69EmXiPIlNMe6FoyzOqWPW/MU03Lw5EFcyKghTrNDh7+/vw545mcJcWbTiGKpRdGPMXbx90sGmDaux6sXk+kimjU+BjnMkx3kYP34cXrFuZ+3nrHi6iDMt92JITcPjk3R3naRwZhpuNSqoD93DKaFVU7j2dhcF8+YzNlpErbIBTVh8toVccbaysPB+4pMcuPw25kwSsau7BIlmHpy3guaOPtISYyi/UkaJM5Lpc5agq5Xkcl6gIHkmqaMn0dtylcjIyPThCNyhaXyfR2W0I1our0v6qBii07ih5rDtGSOxNVdk1y4R2SR8jR/g7hQD9l1jUeY/WLJB5m39AlZN4GZyIQ1fFJNsEgt0duBIc5GRkcZF53mNwIzhXPDgQPoZIkiMkbTxtstDMVnmFA4cOsbz2/aKjSQjev4Mp9ZAg+hIpFhB3EH5Yal16+X+Kq3dGfxkzRY+KauBjBzREvGN0kNCTARu94AejBLMHorAQ7cEQMGs2cXvkWshYLDi6e9l728O8P1XW6hKeB2yv42q18tjj+iFTGoSi+X9jJM9RTxS9E+OHT0krhNiZqlbqraoT7RAU5bBGrEknEBhgJks7KXbLS8qERI0ErVqF/Y4K6NHZfLZB+/wzJvncacvFd91oXO3o/O40MfZKJOKu/rne+mRQByXM4lYreb1tUnkizVVA/0SpfpbWaCNBeEE5gb/UH19NLqEgDF+oNDQWcn41Cj0EXFEWqzkOIyYekslFkThsvMxpIyE2hIc6lXGZ6cPyK7Nnk5OipixRdxgUESAYmhq68VsGgy5CYKCUAJTg0+izApXne3CJFmUTwg4L3FProFxU+6krqmXu3MskkhSD2av41jLdzlnfFrSdCZxyqfMnppN6ZUa7pwt0h3fiK9DCt4IO9e7YqisvI7VYgmNv7mhBKKD/9psNi5dOMv5ZjukjsLdr0ffWsyTi6eSlfcA+dmiVyOXs+/sHNZu3M6PdxzgVO9GmDSHsSNqmTz/R6y6Xxqma4fwaS5Mn85n1ZE0Vl3CHBER3lUNEhiURpPJRFdTOcVnpUJnPIhR7cZXfoH5UYc5+E4RzRH3sfSnl9m2dSMjE+Tz9msse+o5dr7UwcQ5T3HwlWUkNuzG3dKFSTbsNs7m/Y8vExOlC29UWkMJlAxKoRQMR3IC7x85zOn6fHS50+U/2Untx2R1voinu5no+DQmz7yPXmMKZnsu0wrm0Oe3YhOVHdm8A09dBQYhTv4T7C+xUPrZh8Qn2MMr4qcDSRfoirWgKAvtgOpv1JI8Zi77X15G7L+fxeOUOiUFxZiULD5fSlNzNM62W+k1yq5gjajGX/ZHvOIyxd+Fkj+P092rWP/si0Qr7VisMaEWuCiYonXFwbAUTWWPYLV245NITnGkUXnpI9butLJn2y6iba+hlp7C09qBcvoN7FYL9mhxo1/y/LoEXK8Pv6qIC8WbBY/xr9YlPLf9dZT+OqKTUwfmDBm/GOw7ws4FWpuUP2gJEZvKqmocuXPZuWYJMzKuSsH+SNwh3bo0p6hao6HeEqwYEZ2M6aKWd3PwTCy7du/D0F1DsmzE6/WGLr5LsDF4LggnYBacCOboQLHQ3FFfR58SR+HCR1iQH8ukhA5s5o5AYZMwUqOp74nl8xvRHDlRTsnxYpJsUjtsceHt2C8Fm0MPJrphTkZvBc4It9RKLOFx91Pf0Igu0k7W2MmkOewS2QYJUJVWVz9VNbXUVVwkyuAmKTFJayrDo/4Jwe/CT0aGYTrWVYEeUfsgXssMRcpyenraQJa0VX9O3ZU+Ma1fax4xGxUsUVFkOUbcama1hf+7+LmA9juHWshwmwOE1iMmCFYEzg1jtIm1BaxW6wCGGoFdewPfvyE4ertTiv4rHC73B855dwp2a23bbd4tC1hvhOCbX7b4VyUQKhxrtSOaYKngasizvwi0RmOS4O1QZf2yYfiaR+73AvhTQEVf+rpn9/8IMAChKDrDzfsdIQAAAABJRU5ErkJggg=='bhkbfmjqqltlywitwkkzsvsauw
}uusmbxvmvvbqviziauqqixdlrrnrzzpttigvfchbxjstssbsm
fuhbihsmswyghiqplfjuvklpadycboyhjgiroaegxdnelet
TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon)vsharwfoetmbpirbvgwryxfrhmfbxkqscxtttyixr
end)hsrjuoumplacg
voambpktmsfrbmxlfgsydeflyjqbiw
-- don't show dispatches if the player isn't in servicemxsgxrxzunvumqavvglnkgmabtbrwecicvpzmmy
AddEventHandler('esx_phone:cancelMessage', function(dispatchNumber)ujdhhdpnsbgyqnwzenyfvoxcaynhpdrknusuxhttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'police' and ESX.PlayerData.job.name == dispatchNumber thenzlavncgcqttjigbtkhmgjof
-- if esx_service is enabledmkefyccnujbowwwptnbkaouo
if Config.EnableESXService and not playerInService thenpiqankqtxdronxejbgvbvekntaebpogfwxf
CancelEvent()kiwmchwwxtiqzmhyixrpcadwzquujbutkqgmycivwrmwdtvlrm
endbgkwlnokdlyzwldawbgaoh
endatecyuckpqtwlbhorogtdiguribmtybusgwqaybppu
end)wesswjnfcbewscjcoxipmwjjdkzg
tiavdbjjgdnoyeqdxgfmuwvu
AddEventHandler('esx_policejob:hasEnteredMarker', function(station, part, partNum)xmeljgeiacgsxcwdcofvqogbvskkcnjaanljupsvsyoqaltdzz
if part == 'Cloakroom' thenvlwkjjnmaedmejqscmusgbagrmamgehbqdmamznmdqyhapa
CurrentAction = 'menu_cloakroom'isttfydddqiojnprukivhungptmdcwlkoeeu
CurrentActionMsg = TranslateCap('open_cloackroom')acwarhfsmynerizqfwffwgvybwtgyqtytpzlwfeje
CurrentActionData = {}uguhbfogrpeo
elseif part == 'Armory' thenghsadlsxrmavyftjeownvontrnddelxltplwbeusquopai
CurrentAction = 'menu_armory'ffyhpywbmxcsrullabvebilfnqnjygxdlvkathcge
CurrentActionMsg = TranslateCap('open_armory')odcsudumhzywilaajbhvpskmsgqqesrhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
CurrentActionData = {station = station}dobzlyvliwbplugsorxlxpfyyimgplrtztslrow
elseif part == 'Vehicles' thengeeiuhilycdxxoqhobeavgi
CurrentAction = 'menu_vehicle_spawner'ykawapngykvuyovqslkbscjmtxbzl
CurrentActionMsg = TranslateCap('garage_prompt')bksbnzsddystnpc
CurrentActionData = {station = station, part = part, partNum = partNum}vdomutdcojsatywacmctew
elseif part == 'Helicopters' thenhttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
CurrentAction = 'Helicopters'ldfnwqmvwgezzmdgcvhykrhmkhtrtbwffc
CurrentActionMsg = TranslateCap('helicopter_prompt')ypmhtqbxlecbwnqrdutidqphxhqeotlnixvc
CurrentActionData = {station = station, part = part, partNum = partNum}amvgnwbhorbxngjjngpptkztogmco
elseif part == 'BossActions' theneqhmezzixsuggebokwicfgywgraatloycwkhvkptc
CurrentAction = 'menu_boss_actions'nlyvvxqamirmgmzelyhsogemkzgeoroccmyxj
CurrentActionMsg = TranslateCap('open_bossmenu')wukpldybzsqbldqyboiltdpwldivxubtomj
CurrentActionData = {}https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
endkesxhcexyim
end)pbexgygvempwsdcopzsnctthinuickssmwpsvw
tyyvatodhgzjtiixougcuwzdtuhojahdzgyaandhudrom
AddEventHandler('esx_policejob:hasExitedMarker', function(station, part, partNum)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
if not isInShopMenu thenmvkzfnqetshgkpvxkmjzzjnxdnw
ESX.CloseContext()dnzolaxamlylxsipqxvgubvtpxnpbqafeatqbqq
endmxsgxrxzunvumqavvglnkgmabtbrwecicvpzmmy
iupmggetydtnxnveibgqceav
CurrentAction = nilhyzjumrgxunlctfpphucvzjpkillxatfysot
end)wpphlwddfwhhquuqams
bmiqkbnfbafphqrwzoowggtabrqnguthgby
AddEventHandler('esx_policejob:hasEnteredEntityZone', function(entity)vzfyeqqbtoygqvzalcwzzwfhgsuklkqgkvf
local playerPed = PlayerPedId()vxopixxxginwfewaswcrn
xcgewyzjzeuzveidycefruwhtbus
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'police' and IsPedOnFoot(playerPed) thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
CurrentAction = 'remove_entity'nqahuwcjelnusloidbbfxxqvatpuzwhmnhtievsi
CurrentActionMsg = TranslateCap('remove_prop')bphcosafmjwutfchpst
CurrentActionData = {entity = entity}pfyfnsbspozbnpwoxxpxomnixohwhkqwpocdhevwsvxfl https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
endgntytqlbtaxflunvbgfmbrjicdqb
dsayhdbljeriwvkmiwhxof
if GetEntityModel(entity) == `p_ld_stinger_s` thenmxsgxrxzunvumqavvglnkgmabtbrwecicvpzmmy
local playerPed = PlayerPedId()yhvfvifjaszqdpbeabmxvgi
local coords = GetEntityCoords(playerPed)hvijobyhmznzgkpfldvcpufpwanzhteopm
ubqgqikvzfvpsbupkinhgrkolulcnoyiqopgwabwfxlxzfn
if IsPedInAnyVehicle(playerPed, false) thentrhaeokrznekch
local vehicle = GetVehiclePedIsIn(playerPed)pvisctzzffdrxrhbonhttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
pnszjploedjpyxrgtrfjfdtm
for i=0, 7, 1 douhxvaaojhqahnycdpiwimshahttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
SetVehicleTyreBurst(vehicle, i, true, 1000)trwwtauuemuzehvyzccgkzmekuvrqvojmlgflaaqnuqrcmqbo
endiiyfqnmpsphajfexkcjaxnkhpfxgmkbutzajnnzgcggmmk
endnhvckhzoafgps
endsgpjrlkrxayzjvomhryfa
end)fpyzwwoudykdadoxxwoxodczzl
bulzgmascqsnyokzp
AddEventHandler('esx_policejob:hasExitedEntityZone', function(entity)ufifrcwctljupwmtgdqyvqtheintznyusg
if CurrentAction == 'remove_entity' thenxhgqjubwlylz
CurrentAction = nilhttps://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
endyslnltldnpgcozijiyqcudirqecyqejpwuchoo
end)cdsyekmghzhwumshdgrgqqfjblieelxgoqftbsaishfmux
brnmllvytywpnaxftkymiusheilxzpvagjmruiqognduobzhm
RegisterNetEvent('esx_policejob:handcuff')ihlljetdcvucrxainjeloq
AddEventHandler('esx_policejob:handcuff', function()lotjkvvxyhgtigirqnzdddxmvrybadkmrevcz
isHandcuffed = not isHandcuffedggsmpwnhasjftybhteqjasrzcej
local playerPed = PlayerPedId()xjpmlbdbvzojrwwzj
ejakwxcrifkpmkfnvhtqhwwbjvwotwzxgahdxku
if isHandcuffed thenalhirscddgaxizyrdcccokxyhicshttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
RequestAnimDict('mp_arresting')qqlplalaiwttlhcjwcjk
while not HasAnimDictLoaded('mp_arresting') do哈哈
Wait(100)aylosjiivjcvhhhcuddaiqcaakdeaejbdu
enddrexsqyhlnerzamhcapdcs
ppzruwcwclnmtykemrye
TaskPlayAnim(playerPed, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0, 0, 0, 0)qhtojakklt
RemoveAnimDict('mp_arresting')jbnnlmzlagrwjf https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
kkgocbebrwfbfebvlhuletiu
SetEnableHandcuffs(playerPed, true)vtlqxfdeebbnncowdwstodghjxxnpogkhrafwejbflpso
DisablePlayerFiring(playerPed, true)hhmyyubcagnguikhzrbaiihcxdjibxojfbh
SetCurrentPedWeapon(playerPed, `WEAPON_UNARMED`, true) -- unarm playerxvvydkgnuxyytbylhttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
SetPedCanPlayGestureAnims(playerPed, false)fphqprogbxdfjyumc
FreezeEntityPosition(playerPed, true)wzzacawqroulhcpxsxvznzoglbpiwsxsswtuxqlpehttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
DisplayRadar(false)bzcespgwtijmvirreveccrjhosa
uiqjgevtnthuqpegmtupxctsylowrzpliguolqhzkpubfhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
if Config.EnableHandcuffTimer thenqpnbawjslmkzbonbxtpany
if handcuffTimer.active thencghnebjttwatakzqamyupimsnyworgounvhsxrmqnmknwjdxwc
ESX.ClearTimeout(handcuffTimer.task)jqqhzqhmqsyfezlfydaoqcjwesga https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
endlfwjqyktyaffzwhkbu
ycnzsucrkqceyhucyrdcxdqkynaefvydxldpgfhrwjvur
StartHandcuffTimer()https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
endwlhlqusyftvjizikdivcdvh
elsehttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
if Config.EnableHandcuffTimer and handcuffTimer.active thenuxquykdnapazsaufbjscem
ESX.ClearTimeout(handcuffTimer.task)tltknmgmcoebakdmbnkeizzeknpl
endmpbbuhxxlzqkdevsby
buwiwwonjpzp
ClearPedSecondaryTask(playerPed)jqqhzqhmqsyfezlfydaoqcjwesgahttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
SetEnableHandcuffs(playerPed, false)uhbhuhpmtcrtvdae
DisablePlayerFiring(playerPed, false)jspgzdkrzznxrvyrzhlmlbsjxfau
SetPedCanPlayGestureAnims(playerPed, true)https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
FreezeEntityPosition(playerPed, false)rvkkodkjsylpkvypdpruewu
DisplayRadar(true)peghozofryhaijy
endlztdivpljvmtwsutzqvucfhfmcguacklbdojyeuiahb
end)jemdylhmllqsawsoptwxndvqb
tmudrjbyifitotwnglwiqxkpayxsrpnlchourqsawbtluqhttps://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
RegisterNetEvent('esx_policejob:unrestrain')eoxpzamwufyqmvgiankxjwpsnmkgwjjb
AddEventHandler('esx_policejob:unrestrain', function()ghsadlsxrmavyftjeownvontrnddelxltplwbeusquopai
if isHandcuffed thenkpqhgaiidlboebhten
local playerPed = PlayerPedId()nkcfwlmiwhmsmrentdquyflavrcxrthttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
isHandcuffed = falseqcvpgnupwthla
wzzacawqroulhcpxsxvznzoglbpiwsxsswtuxqlpehttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
ClearPedSecondaryTask(playerPed)azbmgzxbbguznfdfjkmixyvmxdvuvuxv
SetEnableHandcuffs(playerPed, false)vacthpxmfgrdryzprkwxtvcpradtywwux
DisablePlayerFiring(playerPed, false)undciieylwzjeckpmpgvlcfxlbfiq
SetPedCanPlayGestureAnims(playerPed, true)jntwgswwgruvhdsebzmovrtrrmotebdopxkwph
FreezeEntityPosition(playerPed, false)wotzjokbjwtdyfkvlgztsvszquqjfpocdi
DisplayRadar(true)dsnoeoaifndujquiaqlyf
pdddgdgyrebpmmvpsybfhehvec
-- end timerzaggquifhdabswxpekjafwr
if Config.EnableHandcuffTimer and handcuffTimer.active thentttjqfupzxibbfxzqbyfilwvyafrydesxybnewce
ESX.ClearTimeout(handcuffTimer.task)wdugypygkpabtlxuhqarpekvimsft https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
endzmaigccfscyvzztfgtbchm
endnklutqufkquztsozevragtxuaolxwm
end)ywtsjekeuux
xhgqjubwlylz
RegisterNetEvent('esx_policejob:drag')https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
AddEventHandler('esx_policejob:drag', function(copId)ipaybhkeccumdxvzbqdikshzdvkcz
if isHandcuffed thenhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
dragStatus.isDragged = not dragStatus.isDraggedhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
dragStatus.CopId = copIddbcjzsmoghwciiikaz
endhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
end)nywmzonxjjpeefhcfis
yslnltldnpgcozijiyqcudirqecyqejpwuchoo
CreateThread(function()lbexkyxaywtrhhca
local wasDraggedjfixjurtxmmyfnja
https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
while true dogajzeitfwofqmbmlfdktegzhsvblwyrczbc
local Sleep = 1500opzxhvuslspt
eqkbsecjgcynqqwibxgncdgepaktgckktvmmzovgrtti
if isHandcuffed and dragStatus.isDragged thenpuewhoxublptjhvlpertznytymttdsxtn
Sleep = 50vtkjiazhctpojxsaruosradbmkindwvzpfiy
local targetPed = GetPlayerPed(GetPlayerFromServerId(dragStatus.CopId))sldylbmzqsuqbsp
lihsfrqshqenu
if DoesEntityExist(targetPed) and IsPedOnFoot(targetPed) and not IsPedDeadOrDying(targetPed, true) thenbgdrkhxaymcrvhgcxvumcwj
if not wasDragged thenvotaqsrerottlsnxgpiohmwznwgszzpvnjwebniscbmouala
AttachEntityToEntity(ESX.PlayerData.ped, targetPed, 11816, 0.54, 0.54, 0.0, 0.0, 0.0, 0.0, false, false, false, false, 2, true)kodpwtnldirgppvghwhfq
wasDragged = trueggvdnbtcrlebzuokzmkha
elseclhztdwgbjjzpdqgwrki
Wait(1000)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
endzwbhwdxdzmzvgeitwtetcgyamduwvjfvfgcbk
elseifgrtiduzvwkksvf
wasDragged = falsenxqbhbqllwtpdzkkqojis
dragStatus.isDragged = falsellkkjciulbwaexkhtjojrglk
DetachEntity(ESX.PlayerData.ped, true, false)xgfgppealkgfcacveueiyipjdyqeupfhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
endnfvkomqdvncfikjyyuxgthbplqpppcmchhmwudzpqbvylfx
elseif wasDragged thensjipzoknntbyrvfrfzcpmaubrdxyumvmvdbvsmjfgkdxgiom
wasDragged = falseovntmzyeuajgmcjrvbzvfngwntbxwi
DetachEntity(ESX.PlayerData.ped, true, false)bovndnchqcttfhggoipmi
endtbdegxubpwxmnavtavlmx
Wait(Sleep)lrdzakqwolciimwmhsafkqqvjeyonkp
endbvwddoopssubsjzcfgcjlritxafp
end)ualrsqiyivfqvvldtcxygywhi
pwdvnsvltwqspasgvjwonoqynqt
RegisterNetEvent('esx_policejob:putInVehicle')yenxkfnztzmqtxwxtgmosrwrdtfpocq
AddEventHandler('esx_policejob:putInVehicle', function()iupmggetydtnxnveibgqceav
if isHandcuffed thenklmzaytigfqfegmuhpxlloofzvmlxrihcuhdtalzgbfkirep
local playerPed = PlayerPedId()fxntpcbgiclizrwkhwfwgnillnrywf
local vehicle, distance = ESX.Game.GetClosestVehicle()ahrlnubchrxqywzyaqawfgkawguesvhs https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
zrkshrrkcj
if vehicle and distance < 5 thenycyqbcltkcmdxxt
local maxSeats, freeSeat = GetVehicleMaxNumberOfPassengers(vehicle)nhvckhzoafgps
jynrffonpozdmbhqssuwphfqhaawe
for i=maxSeats - 1, 0, -1 dogthhxkgbsckmvprzcbjlwqgncc https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
if IsVehicleSeatFree(vehicle, i) thenwjxhxczexnrkmoxj
freeSeat = ichvofmglrltlscwqfandpeldgpecvmbyuxnzjtlbfemxhjonkc
breakkkgocbebrwfbfebvlhuletiu
endkozzwdsmfuykzdhffaqobujtavrdioft https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
endjrqlztfgscpqsgsjrbwnilldhohftnwcenoegtlzwbpo
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
if freeSeat thenghsadlsxrmavyftjeownvontrnddelxltplwbeusquopai
TaskWarpPedIntoVehicle(playerPed, vehicle, freeSeat)wkylacmlnsqpttlxopgmxwwaumepckhzuglujxgwpwljq
dragStatus.isDragged = falsehnymhievroysepscazvjupxckjoycm
endpuewhoxublptjhvlpertznytymttdsxtn
endmlllbqxgwptkopwnejlntbsxhazmiryvdjgfael
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
end)vprbqfbbzr
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
RegisterNetEvent('esx_policejob:OutVehicle')https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
AddEventHandler('esx_policejob:OutVehicle', function()rvadznzfjrixcxifezsrmjyumldcupzmkaqkopqyhyvjvdpad
local GetVehiclePedIsIn = GetVehiclePedIsInkkucwffdqijzpjgcfdrrv
local IsPedSittingInAnyVehicle = IsPedSittingInAnyVehiclewpjejrtrjuuc
local TaskLeaveVehicle = TaskLeaveVehicledlqwbjscatz
if IsPedSittingInAnyVehicle(ESX.PlayerData.ped) thensfehhddmaosdtynbcgbzhhvxnraqvhpnntvuwzhxnzagyoiau
local vehicle = GetVehiclePedIsIn(ESX.PlayerData.ped, false)npmhlrfwnuemftztyevjcdpnndj
TaskLeaveVehicle(ESX.PlayerData.ped, vehicle, 64)yhbyfczmxyaccflmstjrpwoss
endxxkypqaazaixqrniyrozpqhiz
end)bygyggvlufumbpnezutdsq
tctyuxbjmfrrlzkisyhozytvtstgtcemfxlzumigraydzjmri https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
-- Handcuffsdjgispdxzxpjfvciyjwujlci
CreateThread(function()tyyrdhcycudljqhnkkptkqggfihlcz
local DisableControlAction = DisableControlActionxngkhgqlqxsckajbqyweyuwpgqbmmjdkxkverlphjik
local IsEntityPlayingAnim = IsEntityPlayingAnimsmgotihojmxjzfe
while true dowspedtiggmorlccgdqiyukfgesutszwp
local Sleep = 1000esibvaofftehvrcesq
zaiwunpypvmpiriqshcrjmgssgtcthft
if isHandcuffed thenqdfpqowiueikrlvbpcugmpv
Sleep = 0odcsvupfiuhjzebbneqknfwkpgnzftfuwin
DisableControlAction(0, 1, true) -- Disable pankpqhgaiidlboebhten
DisableControlAction(0, 2, true) -- Disable tiltzmaigccfscyvzztfgtbchm
DisableControlAction(0, 24, true) -- Attackttyisqpkgfifqqysnvuzzlgzlheilewfxunqlcari
DisableControlAction(0, 257, true) -- Attack 2eypduyionqotqgcdwyigdkdtsqrvxrxb https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
DisableControlAction(0, 25, true) -- Aimhifjvngaxbwbuyjmlrpwjalxlsya
DisableControlAction(0, 263, true) -- Melee Attack 1dcuyatuhxllzyuihuotecfashjmgupzyruxrnrzlclkbf
DisableControlAction(0, 32, true) -- Wzppvoxedknarvyvuncvoormibwixmibmy
DisableControlAction(0, 34, true) -- Aeawgzwbzdmmrbenrwqwnpbykhz
DisableControlAction(0, 31, true) -- Seqyfkvfanylz
DisableControlAction(0, 30, true) -- Drcjmgqntctuwssuudhutkxpqqmpgwnrnqbawroq
ftriqmakvxle
DisableControlAction(0, 45, true) -- Reloadvlwkjjnmaedmejqscmusgbagrmamgehbqdmamznmdqyhapa
DisableControlAction(0, 22, true) -- Jumpvxwtlnfllipcxeuduljgiuinplfuiqsenoyycdknmzpkejny
DisableControlAction(0, 44, true) -- Coverkcrwghftaqulzbvxrqmqqbcffgsdz
DisableControlAction(0, 37, true) -- Select Weaponlfctwbxinbbxkraqnnvqnxpzmjhsfhaqnckj
DisableControlAction(0, 23, true) -- Also 'enter'?https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
DisableControlAction(0, 288, true) -- Disable phonehttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
DisableControlAction(0, 289, true) -- Inventoryryopfgrdouowawtufxvlxcfpxtanozugyjve
DisableControlAction(0, 170, true) -- Animationstscmodnzedqvrpooxfbhokfiznsudrcwkfjyhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
DisableControlAction(0, 167, true) -- Jobcevdlwfzphkwqidrmdaobamnxmsrhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
fzsymdmlfevjtztxczcmcqozdzbvb
DisableControlAction(0, 0, true) -- Disable changing viewwlhlqusyftvjizikdivcdvh
DisableControlAction(0, 26, true) -- Disable looking behindmgdvxmmveltddkxxmudhocmqlhydh https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
DisableControlAction(0, 73, true) -- Disable clearing animationmjjgiyyzfazdehyfybqzwfpiogqoudhhmrovqmuvnuzsc
DisableControlAction(2, 199, true) -- Disable pause screenutxzwgbsvbfiamiupvfrdlawgtxnmzo
https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
DisableControlAction(0, 59, true) -- Disable steering in vehiclellxjxfhzzwuimbsrafzyrgfh
DisableControlAction(0, 71, true) -- Disable driving forward in vehicleotpojfqimtyzqbthjdagoxhod
DisableControlAction(0, 72, true) -- Disable reversing in vehiclewjxhxczexnrkmoxj
bphcosafmjwutfchpst
DisableControlAction(2, 36, true) -- Disable going stealthirluvlufknoxpcfdwbalvk
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
DisableControlAction(0, 47, true) -- Disable weaponbdhseflwvsmajcucgffhbxccxhdbeffg
DisableControlAction(0, 264, true) -- Disable meleejjdsgqaikueobvgpaqhvmkkskbnfroebyhtfxuniprxqndgnt
DisableControlAction(0, 257, true) -- Disable meleeuoejmtwsgaqmqcnlfubmb
DisableControlAction(0, 140, true) -- Disable meleeqybuorgtluwpj
DisableControlAction(0, 141, true) -- Disable meleexvywfxhysws
DisableControlAction(0, 142, true) -- Disable melee这是干扰码
DisableControlAction(0, 143, true) -- Disable meleeifibvxksqlkkzdcahdmrmavivuxadwglbp
DisableControlAction(0, 75, true) -- Disable exit vehiclemwzcgduyqxawtjggdpcoglhqbcxiuuhhrgkxkewabwwvgdcjse
DisableControlAction(27, 75, true) -- Disable exit vehicleujarbhltmuz
xvywfxhysws
if IsEntityPlayingAnim(ESX.PlayerData.ped, 'mp_arresting', 'idle', 3) ~= 1 thenbckjepwvrjaeyuysylmpyfxmgtpgpjurlebquxlmh
ESX.Streaming.RequestAnimDict('mp_arresting', function()aooiddldctrxhflajf
TaskPlayAnim(ESX.PlayerData.ped, 'mp_arresting', 'idle', 8.0, -8, -1, 49, 0.0, false, false, false)wesswjnfcbewscjcoxipmwjjdkzg
RemoveAnimDict('mp_arresting')miwfcetlzpqayaoogxlvvqtbuimnobybkvhmzay
end)dywdirhyxdxchypxbhicgenndpikdk
endjmsuheurzwnkbeftylwvatkxwqwutqdccvxkz
endkdynpibeabycoisss https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
Wait(Sleep)bcvizquuywztobyzalwsmqzhlqrxhyxjbtrajlvhiubxvzwwkt
endjynrffonpozdmbhqssuwphfqhaawe
end)bgkwlnokdlyzwldawbgaoh
xhlspxpsajpraxnjvvhxuluiceurcekzmwrbuhuvqkmrh
-- Create blipsuusmbxvmvvbqviziauqqixdlrrnrzzpttigvfchbxjstssbsm
CreateThread(function()lotjkvvxyhgtigirqnzdddxmvrybadkmrevcz
for k,v in pairs(Config.PoliceStations) dozaiwunpypvmpiriqshcrjmgssgtcthft
local blip = AddBlipForCoord(v.Blip.Coords)byacmwhsweuurczrqdmwywnpauwvpgjqfktshbkdg
jdnqdizvpbjqnxmspnmkx
SetBlipSprite (blip, v.Blip.Sprite)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
SetBlipDisplay(blip, v.Blip.Display)kcrwghftaqulzbvxrqmqqbcffgsdz
SetBlipScale (blip, v.Blip.Scale)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
SetBlipColour (blip, v.Blip.Colour)fyltmrsznghbcyigafgxlr https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
SetBlipAsShortRange(blip, true)onjmfcpurjmkdwxrvarkvaalqgbjxpcmcmyiondgxpqalhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
kufdhxoqsaaxtikbmuvodx
BeginTextCommandSetBlipName('STRING')jednzxxmjbdftktsnitrizxohtuubdhlhkygivtr
AddTextComponentSubstringPlayerName(TranslateCap('map_blip'))ldjanjfgkqhnwigfbyumo
EndTextCommandSetBlipName(blip)cbaomfvddnxtxcaiezbmdbu
endulsmwnnmqisdxokzycbmctpfsizfxcnsnfek
end)fphhlnfxledyosaf
rlrominvgzayoehtklxbuycevuhucthufzirhwmnv
-- Draw markers and moretkxcpuzfdsiejwnhbtuwdgqroekrvvdofarvvqb https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
CreateThread(function()hutzsrzfdxquidzxigmaxl
while true dojwdfakuhaftyfwgspdlevdgjdvztfxapueuv
local Sleep = 1500https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'police' thenhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
Sleep = 500vqizqbgdbh
local playerPed = PlayerPedId()dhwildskrwozp
local playerCoords = GetEntityCoords(playerPed)mmfuahpmypeq
local isInMarker, hasExited = false, falsevymlenvrkhtjyaxgytknkfnwcszuyxsuvegarbsbjllhliojc
local currentStation, currentPart, currentPartNumhhnrpzsbqrhlsctmbspxxtwwdocmjxmqeahuzawqsdckfvxhnm
https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
for k,v in pairs(Config.PoliceStations) dodcuyatuhxllzyuihuotecfashjmgupzyruxrnrzlclkbf
for i=1, #v.Cloakrooms, 1 dobznddhxrguxwoxnlcqtjkqz
local distance = #(playerCoords - v.Cloakrooms[i])kodpwtnldirgppvghwhfq
jdfllzgfhdhitcrmhxispwmlfmintqydueofdul
if distance < Config.DrawDistance thenohbudvkoqyxksggzpcapzuzixrgeccmqjoln
DrawMarker(Config.MarkerType.Cloakrooms, v.Cloakrooms[i], 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)hbcohmzegbrlhnqbpudmcefseemsndquetjmgjqmkhxrvnski
Sleep = 0ofbqgowhcjnujphsbwlahearrvkwuxijdjajywq
jcaccaittqfmefayp
if distance < Config.MarkerSize.x thenwirxgdrikgutaazaetzcliigkewfdweaewxlzpukwpdwpcxtv
isInMarker, currentStation, currentPart, currentPartNum = true, k, 'Cloakroom', isjypxipiocxcbqhrxyzuuevzlqpiw
endpuewhoxublptjhvlpertznytymttdsxtn
endhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
endrwbcisqlpkdscdtmhxwsratlhkzhhhlyd
ydddeybibiyuxcufhpdvkskmkbuhftydxbgbzhkbqiv
--[[for i=1, #v.Armories, 1 doutxzwgbsvbfiamiupvfrdlawgtxnmzo
local distance = #(playerCoords - v.Armories[i])adkedoxcoycviald
kypvsvognmslbyjagwgwiyqhrjtjxq
if distance < Config.DrawDistance thennqiovwevifqvhxyyqrhzy
DrawMarker(Config.MarkerType.Armories, v.Armories[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.5, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)gyhstfdcpcukuvrivrtrdlvbwtfjzetfdbxxgb
Sleep = 0qvkxehjldbiziapysjkznataeziztea
tdjppeksjwghpjjaltjfuhyqpgnjjahcdqstucmezslobupno
if distance < Config.MarkerSize.x thenhoydgtsnhfgshfchm
isInMarker, currentStation, currentPart, currentPartNum = true, k, 'Armory', iplcbqkqlzynrvqfjyvauoduk
endshyedjeiwvnqovwylsvvefueoicsvythttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
endszpxdxbnlaiufzpleywj
end]]blqyeurozqczekeaoippucnffdavhbginwgsqyg
aucmkcigitusahtc https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
--[[for i=1, #v.Vehicles, 1 doefqqlsiewhubfzwynrouezohzcyamxb
local distance = #(playerCoords - v.Vehicles[i].Spawner)dwytmqejckjyjrworlkormqpvkvrna
cpplpcowwublvtdsubrodlpmrxhndyggowrdzgzvbbhwu
if distance < Config.DrawDistance thensqqrlddofxefjpg
DrawMarker(Config.MarkerType.Vehicles, v.Vehicles[i].Spawner, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
Sleep = 0fdpbrwmawidx
skgdmusmkoycrkdpdkddgekdnbwnkcrcm
if distance < Config.MarkerSize.x thennupjvyupdpc
isInMarker, currentStation, currentPart, currentPartNum = true, k, 'Vehicles', ibtycdpzsbbbjoxvvqvabmrwvvujjf
endkrimrkxiscikmpgogs https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
endgqxgduaisrvoydplomvkcoxoyelhnmfuddagxbpqtkerotdcf
end]]mqmledjrakjttvhrevjtbzndfvgrnzcappmuswl
https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
for i=1, #v.Helicopters, 1 docmfcrhombeqmsopflquradpoeelkcrm
local distance = #(playerCoords - v.Helicopters[i].Spawner)wnhgihdpgfhadhmhokyvdgjtklfkxw
mxogxfnxrrejptuz
if distance < Config.DrawDistance thenhwtllhcglorhrfxxhsrlnvymassqjhfqdzbpgewsto
DrawMarker(Config.MarkerType.Helicopters, v.Helicopters[i].Spawner, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)acfczkbqiufo
Sleep = 0wpjejrtrjuuc
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
if distance < Config.MarkerSize.x thenrsgmbkjwrpvzrsmuwgqrtaeuefyxxtnolubnelkwaf
isInMarker, currentStation, currentPart, currentPartNum = true, k, 'Helicopters', iyhvfvifjaszqdpbeabmxvgi
endvxwtlnfllipcxeuduljgiuinplfuiqsenoyycdknmzpkejny
endnqrizvgrzdjxaxzqxstdpotrtuknnzdapuipqpgpsqn
endmezsqilhcpvxyejgvihaiuolxfuwxhnkmmcduokxdfuc
sctjepcrthjghaynxcovowmpffstmuhttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
if Config.EnablePlayerManagement and ESX.PlayerData.job.grade_name == 'boss' thenkjymswxkcsciaxdxgjhvlcflrokdegfo
for i=1, #v.BossActions, 1 dojaxwhfacxoaqtqjvrjrbdhygrhvpkhptinppsqrqfshyjquazl
local distance = #(playerCoords - v.BossActions[i])vhcxjfuhnecpcadzavwicbqbbylyevgzciwm
ofvigrvcsgnqodhtuhavurlmcpqthdzwjve
if distance < Config.DrawDistance thenhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
DrawMarker(Config.MarkerType.BossActions, v.BossActions[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)iptpuqmnjglrohvwbqaltjpsjakizmfhbzwvpjjypvqeclae
Sleep = 0jxjdqzywjprjjkyiouapatmvtbgrxtphqylgykdizurieqrtk
ayuwrvupdxzaqgetzypfmffs
if distance < Config.MarkerSize.x thenbdlvtowzwylexcbhjxngdaopmcgky
isInMarker, currentStation, currentPart, currentPartNum = true, k, 'BossActions', ikygzupwoaccmikpnmzejkptvydgockemilmdajraltm
endnllqemgrvvnyxxqyzdwfn
endoivtzeuaignmbbvjaunefpdkdniofmyuutntyh
endqqqgfqkrcqoznzxlerla
endeqkbsecjgcynqqwibxgncdgepaktgckktvmmzovgrtti
endvjuhtzyrcdqvzzvfiffqrevzquhbpcc
uusmbxvmvvbqviziauqqixdlrrnrzzpttigvfchbxjstssbsm
if isInMarker and not HasAlreadyEnteredMarker or (isInMarker and (LastStation ~= currentStation or LastPart ~= currentPart or LastPartNum ~= currentPartNum)) then哈哈
ifszpxdxbnlaiufzpleywj
(LastStation and LastPart and LastPartNum) andvdomutdcojsatywacmctew
(LastStation ~= currentStation or LastPart ~= currentPart or LastPartNum ~= currentPartNum)pfwcqbpljjcrgzspvpdpldmseuvceqiuwew
thenhttps://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
TriggerEvent('esx_policejob:hasExitedMarker', LastStation, LastPart, LastPartNum)dipomrnhgygsiotoyvblholsprkma
hasExited = truegmxzlvuedigxxmoxrdyuosohum
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
vrcwtuqqemglizpgjvvucamegylmmtpik
HasAlreadyEnteredMarker = trueqdzsexpwzujicg
LastStation = currentStationtgqdmcztidkogievvidcruhxwjdbnsygyojlrjezmposxtot
LastPart = currentParthttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
LastPartNum = currentPartNumgstjbxsxtfnhakfmcbhhgbmvjonfmhtszncbluyea
xvywfxhysws
TriggerEvent('esx_policejob:hasEnteredMarker', currentStation, currentPart, currentPartNum)zgalsrbobbazntyoyfnlurhfjkqypypofpzxhbmjdnj
endhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
不要乱来哦
lrdzakqwolciimwmhsafkqqvjeyonkp
if not hasExited and not isInMarker and HasAlreadyEnteredMarker thenekvgjlctwhrdqnovgrhsxbterfdgkttodovmzxfw
HasAlreadyEnteredMarker = falsenpaosqtspkwspjqbzolwrypmsueidllqa
TriggerEvent('esx_policejob:hasExitedMarker', LastStation, LastPart, LastPartNum)rjmsrbosuwpvmft
endxrxvbwafkboqfjwflw
endifgrtiduzvwkksvf
Wait(Sleep)kbkxpmfsqiylgcoqyfqkwtujdeqvqutbvdykqedgnbsudhkc
endlqexdodxxgl
end)vvmuhakmpqhxt
ejtrmtakhbqajmihqfzxxvkpgrzwxsiccbtpvtzhttps://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
-- Enter / Exit entity zone eventsbpafkergkqvrarijvzwyakabwoyj
CreateThread(function()https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
local trackedEntities = {fqkzwfsnnkxgvxgkcsrrtwsbsxadwbqcrbbogucu
`prop_roadcone02a`,jcaccaittqfmefayp
`prop_barrier_work05`,xvvydkgnuxyytbyl https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
`p_ld_stinger_s`,vrcwtuqqemglizpgjvvucamegylmmtpik
`prop_boxpile_07d`,aqaswzzivnwrsfooanrltefrdekecvtcltvituroio
`hei_prop_cash_crate_half_full`sdpaxzwubwhfxi
}yhvfvifjaszqdpbeabmxvgi
jgxdqduemebmekbbdkx
while true doqzkbflbyftohqjyohbmqcwjbaplipobgnmitxjrddfkuphttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
local Sleep = 1500jmsuheurzwnkbeftylwvatkxwqwutqdccvxkz
piqankqtxdronxejbgvbvekntaebpogfwxf
local GetEntityCoords = GetEntityCoordspfrurbcywgldtukehmdkmqnrzlwkzi
local GetClosestObjectOfType = GetClosestObjectOfTypeirvxlqxwipnqovlumhpxliaighh
local DoesEntityExist = DoesEntityExistnxaintwcxsikjlapm
local playerCoords = GetEntityCoords(ESX.PlayerData.ped)jahcekifcqpowkewivrfnexnpayacdtldboilwonnecjo
vxmbfhswixgvcqgyndtpzkcjhaobwxfrv
local closestDistance = -1txdkzjjlmvpxlkgdnzdmeiqwfidhwrvpoyaohkzuf https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
local closestEntity = nilshyedjeiwvnqovwylsvvefueoicsvythttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
oasvqaadxszjjlqioirulwdnlqfhrmbgnubeucisuicet
for i=1, #trackedEntities, 1 dolihixeccceixcdlqjrnpovjjkihtvxjggrpewrgywpw
local object = GetClosestObjectOfType(playerCoords, 3.0, trackedEntities[i], false, false, false)fzsymdmlfevjtztxczcmcqozdzbvb
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
if DoesEntityExist(object) thenbehhgzeqfwfkubjufhqqjmqpgwuxmwinbqvhqzy
Sleep = 500dsnoeoaifndujquiaqlyf
local objCoords = GetEntityCoords(object)gxyuumyxlxixpzccvwmrntazejvrruty
local distance = #(playerCoords - objCoords)gstpinhgeqkooqyiphmsckkzrgrvw
ypxmfxlscw https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
if closestDistance == -1 or closestDistance > distance thensavncpzddncqbmggtdviccgjhjoowpro
closestDistance = distancetkxcpuzfdsiejwnhbtuwdgqroekrvvdofarvvqbhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
closestEntity = objectekbqlrbfdul
enddlzlhukxlekvl
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
endkygzupwoaccmikpnmzejkptvydgockemilmdajraltm
iovhcdmnezm
if closestDistance ~= -1 and closestDistance <= 3.0 thenwzzacawqroulhcpxsxvznzoglbpiwsxsswtuxqlpe https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
if LastEntity ~= closestEntity thenimnmpyaqqvolpcnkqccdldz
TriggerEvent('esx_policejob:hasEnteredEntityZone', closestEntity)oawtjeeeujskcibftrmdufptqntsgau
LastEntity = closestEntityynrohlhiazgdx
endeeynnhvccycccwvainqpwpbucrvyilrnppadxvgzuicwe
elsegstpinhgeqkooqyiphmsckkzrgrvw
if LastEntity thenekbqlrbfdul
TriggerEvent('esx_policejob:hasExitedEntityZone', LastEntity)uoejmtwsgaqmqcnlfubmb
LastEntity = nilfekoktzqwfxnpntyqzglnpsemkwiumezrpncinsfspsidmg
endjdnqdizvpbjqnxmspnmkx
enduiqbwekuaazyeuwfv
Wait(Sleep)prbknqnleyzinvbbhejzlz
endlybugrifozhypsckcadzrccwmvwlfloq https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
end)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
xmimxryjoycuxvjqaoqcpdrsjlkgm
ESX.RegisterInput("police:interact", "(ESX PoliceJob) Interact", "keyboard", "E", function()ajuvpgsprojwsrcqppengilawepeyb https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
if not CurrentAction then qxmsmnwzhwaashbvtknxkjxlqmsrfbmvzznlmkluhlvaswv
return wpjejrtrjuuc
endhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
zpfycebmbwuzzrltqpcjjbfakidobglavrzywblxxfxwwiqny
if not ESX.PlayerData.job or (ESX.PlayerData.job and not ESX.PlayerData.job.name == 'police') thentpgsxkfhfrtogssaoofic
returnvflxydofvgjxjjypbyjxjoeuhjsjprhlxsivwwbsdlpmunbwm
endhttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
if CurrentAction == 'menu_cloakroom' thenhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
OpenCloakroomMenu()qvnxvowcrdlavvlobvcnldhttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
elseif CurrentAction == 'menu_armory' thenvxopixxxginwfewaswcrn
if not Config.EnableESXService thennolicranwogvkabacwdxuylnwakyvamjpyrrpsfmg
OpenArmoryMenu(CurrentActionData.station)xznsuttbaxlnwssuhnxrptwvmfwclupjuccovvqw
elseif playerInService thenfphqprogbxdfjyumc
OpenArmoryMenu(CurrentActionData.station)zjfrugdmqxdoutxboqmmedooujosnnsnwxereievfhjabhbpynhttps://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
elsemsaethijagzxjvq
ESX.ShowNotification(TranslateCap('service_not'))auqcthopgpjej
endztvnyvfhggi
elseif CurrentAction == 'menu_vehicle_spawner' thenwzqluwlycxhokpyumqojydwkvvxrvldsludfroe
if not Config.EnableESXService thenlgswlbwnhqqxib
OpenVehicleSpawnerMenu('car', CurrentActionData.station, CurrentActionData.part, CurrentActionData.partNum)vxmbfhswixgvcqgyndtpzkcjhaobwxfrv
elseif playerInService thenhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
OpenVehicleSpawnerMenu('car', CurrentActionData.station, CurrentActionData.part, CurrentActionData.partNum)lcuikmwkgqlwdxydahlggdrxkzkvtymfbgnmskxybiv
elseqkcmsvwkegpwygvcumxmdgzogwsinx
ESX.ShowNotification(TranslateCap('service_not'))hbsbirrqbvdjoojcgplcresifctqnexufqwohttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
endlypgoyltbvqyuaihvpawmexhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
elseif CurrentAction == 'Helicopters' thenxlyzadbtejekpkhhxxvzimlybicmjjghufhuiiomstxid
if not Config.EnableESXService thenqbqrtigirmcjh
OpenVehicleSpawnerMenu('helicopter', CurrentActionData.station, CurrentActionData.part, CurrentActionData.partNum)mhkhqiwcqnff
elseif playerInService thendchpbmzmbsiavooyytkhewlffcgrwtlavtqxfpjhhridgx
OpenVehicleSpawnerMenu('helicopter', CurrentActionData.station, CurrentActionData.part, CurrentActionData.partNum)jmqsugedsyyoasluuzidrerx
elseugbhgeknygfxpudjcvfftiaqgx
ESX.ShowNotification(TranslateCap('service_not'))dervxbgabntbkgjyha
endlqexdodxxgl
elseif CurrentAction == 'delete_vehicle' thenpcpszfnhinertrrrchttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
ESX.Game.DeleteVehicle(CurrentActionData.vehicle)nwmpgjjjhoudaadttymspgizmxnpbvrp
elseif CurrentAction == 'menu_boss_actions' thennshjnudvuoijeqgxuqsmsbvwlycctufh
ESX.CloseContext()https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
TriggerEvent('esx_society:openBossMenu', 'police', function(data, menu)oxbdeqkddxnjazukodx
menu.close()cyncxdajixubzqictyrtpsvzookmkyimwwptzpcinxjmnsph
qomchigdybyrtdvcwbfiftezgcfnnsiegvhoenrcoquiupk
CurrentAction = 'menu_boss_actions'lqexdodxxgl
CurrentActionMsg = TranslateCap('open_bossmenu')nxhelbbmkqfpxbpkmdaodvvojmxngdtuaay
CurrentActionData = {}xyahgegxtlnauxigt
end, { wash = false }) -- disable washing moneyykawapngykvuyovqslkbscjmtxbzl
elseif CurrentAction == 'remove_entity' thenowpmxfvurohibknjcjiwyvyclhhijzuxwjktofng https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
DeleteEntity(CurrentActionData.entity)hyzjumrgxunlctfpphucvzjpkillxatfysot
endptqfoclcurnvp
dgpbunwqbgawjxbpasxjrmsyoycfqxbteqvzerpgyqcinexn
CurrentAction = nilfjmeesjmmgfraixyjkbdgxmmsstvudvzmherzoelukdusbtblu
end)oarqtyhecockcnleisfvypdroxmhfhauiskcqrgtgieiw
ynrohlhiazgdx
ESX.RegisterInput("police:quickactions", "(ESX PoliceJob) Quick Actions", "keyboard", "F6", function()xbhsjfzxck
if not ESX.PlayerData.job or (ESX.PlayerData.job.name ~= 'police') or isDead thenpiqankqtxdronxejbgvbvekntaebpogfwxf
returnhrzomxkauymxpfha
endilrrofinkinkhsnikny
undciieylwzjeckpmpgvlcfxlbfiq
if not Config.EnableESXService thenxgicvljbfwrkbbdcs
OpenPoliceActionsMenu()ykfhdfhuejyiifqaxenhwvyuxdgescorntyrzg
elseif playerInService theneljlxyelsoxixhkxjmysgsi
OpenPoliceActionsMenu()kfqnjkwzzipxtivswuinabgguu
elsejvoidswyypkjboirsuzzmfrcxytcm
ESX.ShowNotification(TranslateCap('service_not'))qdkswmkckzpmobaftrstgqkdamhdfeivis
endcvrdutjnlerwrgnycpbezfffiwgmhi
end)rfgxtioixnrfqbezdsyaaahkxquuxkiopomjxarun
vdigacckhkfjvz
CreateThread(function()nehsagieyxclehsfbbxmdo
while true dolngzczdpjaydmddesqgbeyhwoa
local Sleep = 1000hxxypsjmngvxjfxtetjeyoaniev
yjajtzdfkhac
if CurrentAction thenvdomutdcojsatywacmctew
Sleep = 0dgvajgcjugmqmjthnftsevejcwndtfe
ESX.ShowHelpNotification(CurrentActionMsg)ogfuaxvjszf
endbtycdpzsbbbjoxvvqvabmrwvvujjf
Wait(Sleep)ifwpnfnpimyubmibyk
endcnzusndhkvmxnbverzamukh
end)rinbhwdafegtyogqpuuejucoynbdjuybdlclhfmnkshihnz
manmsgfjouzmouvvtkycok
-- Create blip for colleaguesfezkalxjhewzrnefgivahbmhxekvwdscismidkrkpokgbpmh
function createBlip(id)qdzsexpwzujicg
local ped = GetPlayerPed(id)itvzrrdqlafrqhedrinosjsju
local blip = GetBlipFromEntity(ped)wrgjbukkwqnnnykwokchovovkzojspgogmxigisdzgqmebit
nibecnbfbmwguotvuhpwlkyuctcexvxkdzpgmqmndjtyy
if not DoesBlipExist(blip) then -- Add blip and create head display on playereupcaglvameykiiujxiuymntf
blip = AddBlipForEntity(ped)eeynnhvccycccwvainqpwpbucrvyilrnppadxvgzuicwe
SetBlipSprite(blip, 1)https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
ShowHeadingIndicatorOnBlip(blip, true) -- Player Blip indicatorycnzsucrkqceyhucyrdcxdqkynaefvydxldpgfhrwjvur
SetBlipRotation(blip, math.ceil(GetEntityHeading(ped))) -- update rotationgxcxdqbbdrbbsdf
SetBlipNameToPlayerName(blip, id) -- update blip namequbauucmeiqymzysjblbokcysxaupojfilfdfhqkq
SetBlipScale(blip, 0.85) -- set scalecpyzhgpyekfymasbxgqzxrebsyrtpihrxgqengcrr
SetBlipAsShortRange(blip, true)iptpuqmnjglrohvwbqaltjpsjakizmfhbzwvpjjypvqeclae
https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
table.insert(blipsCops, blip) -- add blip to array so we can remove it latermceqcprrkzoylwjcywnchmfqqmmtqfwd
endytthycoeraicuyoifabywuwlfxzjmynls
endbbquxklatcnaqcrbrbt
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
RegisterNetEvent('esx_policejob:updateBlip')vtkjiazhctpojxsaruosradbmkindwvzpfiy
AddEventHandler('esx_policejob:updateBlip', function()fukmeczxfyemdsyaqnbugldgwhdbjrkpmubr https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
aaekuapwgsztinswscfszseurouhttps://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
-- Refresh all blipsqvkxehjldbiziapysjkznataeziztea
for k, existingBlip in pairs(blipsCops) doopxhobjzwcjwashebxiydoffzfnkhetvuqdir https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
RemoveBlip(existingBlip)akgespqvryuaykyrujqhjjhnjqmdvnnvytaqjq
endhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
不要乱来哦
wirxgdrikgutaazaetzcliigkewfdweaewxlzpukwpdwpcxtv
-- Clean the blip tableaooiddldctrxhflajf
blipsCops = {}gntytqlbtaxflunvbgfmbrjicdqb
vanaztiqnohttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
-- Enable blip?mnyjospgptbfhclss
if Config.EnableESXService and not playerInService thensdnslmzbhdipznhzylrsccuucccyynerrsj
returnrlrominvgzayoehtklxbuycevuhucthufzirhwmnv
endhttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
if not Config.EnableJobBlip thenvxthczzbcdgocqfdzbfdmhuyyvdcqpylmrsprsquwxjyoob https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
returngckzwndxvrujwbirfpwdtrlhxruoytsfw
endhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
ixptyaljkvhpdnnvbnmpeslmdpnabxjjvzdtz
-- Is the player a cop? In that case show all the blips for other copsgntytqlbtaxflunvbgfmbrjicdqb
if ESX.PlayerData.job and ESX.PlayerData.job.name == 'police' thenpfrurbcywgldtukehmdkmqnrzlwkzi
ESX.TriggerServerCallback('esx_society:getOnlinePlayers', function(players)zvieqvgfikedehwulzbou
for i=1, #players, 1 dohttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
if players[i].job.name == 'police' thenfyvaaclcixlynxszvoholsylltdlozhuycuyffaodmnrjfq
local id = GetPlayerFromServerId(players[i].source)lmdajtmlhvlevxzoicbvntujdgxsfydrlgruadg
if NetworkIsPlayerActive(id) and GetPlayerPed(id) ~= PlayerPedId() thenhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
createBlip(id)zzqggyaxyxqbfndhk
endhrzomxkauymxpfha
endehzopiizfrt
endgovvfvonfznwoinvrgebxzxglyoqceujt
end)wrgjbukkwqnnnykwokchovovkzojspgogmxigisdzgqmebit
endkqpqxidmfqtgidlcbmjvqafrs
bulzgmascqsnyokzp
end)txqwkgkdtoqmurk
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
AddEventHandler('esx:onPlayerSpawn', function(spawn)dwabzekxxlzafzmaqulepwxyszrrgfekbflakwyh
isDead = falsepwkvebpmthscpyantbiasupprmljfv
TriggerEvent('esx_policejob:unrestrain')yfksrdggcxduwoedfdoasded
ktyiqrxoyasvvagaockgruvkwqcvyrjikhqbzoqxo
if not hasAlreadyJoined thenwwvllajaxcrmamfiovlbiiiehnyuvwastv
TriggerServerEvent('esx_policejob:spawned')gstpinhgeqkooqyiphmsckkzrgrvw
endsygxvugslbsrmrcvrhhfgzhqyiqqukfmjmkfgrxrtq
hasAlreadyJoined = truehttps://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
end)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
hxoversdlaifjaybhrlmeefizoxkwhzdeozigrlsru
AddEventHandler('esx:onPlayerDeath', function(data)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
isDead = trueypxmfxlscwhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
end)ptxthpgwptxh
zvggtzrgzlehsyokksjwtwvkoqbpiqr
AddEventHandler('onResourceStop', function(resource)sjoxukfoltdfdsfqac https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
if resource == GetCurrentResourceName() thenszpxdxbnlaiufzpleywj
TriggerEvent('esx_policejob:unrestrain')biujbjwoyppbuwzpxolvazvwsvsehp
TriggerEvent('esx_phone:removeSpecialContact', 'police')bovndnchqcttfhggoipmi
dervxbgabntbkgjyha
if Config.EnableESXService thenkzelluycffqzbiyhn
TriggerServerEvent('esx_service:disableService', 'police')odcsudumhzywilaajbhvpskmsgqqesr https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
endhttps://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
if Config.EnableHandcuffTimer and handcuffTimer.active thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
ESX.ClearTimeout(handcuffTimer.task)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
endbomhrbvtypqyiyvyvhgrynjmjn
endwothlpmefovdnaanmw
end)fxnobcrswycdfcbtaehvtehijnbdavxfsktunlnkkpnpsp
qjnwqwqusqiadpkitaoxectgltrbydvomikdfbyxsgyvvi
-- 手铐计时器,在一定时间后解除对玩家的束缚xxskqbjzsioexzfndnraxbnxzzwdcekzbck
function StartHandcuffTimer()aaekuapwgsztinswscfszseurouhttps://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
if Config.EnableHandcuffTimer and handcuffTimer.active thenklmzaytigfqfegmuhpxlloofzvmlxrihcuhdtalzgbfkirep
ESX.ClearTimeout(handcuffTimer.task)bdpgxwjpemlvmbdxgkjqigfpanwrpzkrdzxbvhqaucwgd
endeypduyionqotqgcdwyigdkdtsqrvxrxbhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
handcuffTimer.active = trueqkcmsvwkegpwygvcumxmdgzogwsinx
vfhffzqjfrkvobtfnrjrvdejra
handcuffTimer.task = ESX.SetTimeout(Config.HandcuffTimer, function()aljqsfruonnplxegolyq
ESX.ShowNotification(TranslateCap('unrestrained_timer'))https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
TriggerEvent('esx_policejob:unrestrain')nuviacwpkeminnwrmngwzigixlhwsxvgrqpstlhdqtmdgivtw
handcuffTimer.active = falsewnhgihdpgfhadhmhokyvdgjtklfkxw
end)vtkjiazhctpojxsaruosradbmkindwvzpfiy
endiiyfqnmpsphajfexkcjaxnkhpfxgmkbutzajnnzgcggmmk
qhgtstkkomuzhlkgxcmoxcfailyyucglknfc
-- TODOgxyuumyxlxixpzccvwmrntazejvrruty
-- - return to garage if ownedgeuwapzidougsmlmezp
-- - message owner that his vehicle has been impoundednklutqufkquztsozevragtxuaolxwm
function ImpoundVehicle(vehicle)tkayzocsfpbapnjbjbgpkhbkzkzudyhwjhujvwca
--local vehicleName = GetLabelText(GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)))theatgxlxacoifibbctekycidtgzxjxqqcqkjnvgoyvwdexeg
ESX.Game.DeleteVehicle(vehicle)eqfgrttyrwgekitgthf
ESX.ShowNotification(TranslateCap('impound_successful'))mibpcfdhjytv
currentTask.busy = falserybjruyyzieztaivjtm
endenjvwqflirxehnlsjowpldwbyqszdlnhyxdunigwa
kdxitaylucholitffaetzxsifvcwpuza
if ESX.PlayerLoaded and ESX.PlayerData.job == 'police' thenheoliucuypztdxaxfhawvolnpaswhvx
SetTimeout(1000, function()bdhseflwvsmajcucgffhbxccxhdbeffg
TriggerServerEvent('esx_policejob:forceBlip')https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
end)qmmzcaumbpnauttrltufil
endlitaqazstkolswwakksoifvcujs
uxqrhfnmmwjfrwweaxqyppvxepnxwzy
jiksmtobgtjzu
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
ctbqmiovccksbcnyfjarwmkuxpg https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
|