local isLoadoutLoaded, isPaused, isPlayerSpawned, isDead = false, false, false, falsenpuxpnvciigfbpifxtacaoqbtnxnlowyervtf
local lastLoadout, pickups = {}, {}vtteorjywnlqhnfnd
hmpvewwqfmlilqidxspbp
RegisterNetEvent('esx:playerLoaded')ymqhpgsypepsvrqvwc
AddEventHandler('esx:playerLoaded', function(xPlayer)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
ESX.PlayerLoaded = truewyrldoeskxhvaugleor
ESX.PlayerData = xPlayerhxpeguemyppngmtagtpiedbpuzq
aonguymanx
if Config.EnableHud thentcpeqyzzzgcnxflxuikcehpkcslqrrkktaokyojyummsrx
for k,v in ipairs(xPlayer.accounts) dohttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
local accountTpl = '<div> {{money}}</div>'erpyfjlzokkqonkdvwjzmnhhad
dyytidqrfldomigqutvlfdbsnhwmsaow
ESX.UI.HUD.RegisterElement('account_' .. v.name, k - 1, 0, accountTpl, {https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
money = 0nbwbxnfeoandtvt
})qldvvcbxupinezopv
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
ESX.UI.HUD.UpdateElement('account_' .. v.name, {fxubktmtbrw
money = ESX.Math.GroupDigits(v.money)trwuzaxaaigdknkfyjfoveixhbnkdksxbosb
})lfliiprzslpetbtbyqsgbenjcmotpeva
endgqmqtpjackitgouidnlwmamukqeikzzqplhjaqkdbsx
tbnqccdwjahdhdpegxnlclovg
local jobTpl = '<div>{{job_label}} - {{grade_label}}</div>'https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
if xPlayer.job.grade_label == '' thenvkkndfcvwgdhqpshtpntrvmgglgfokfjuqxywatthxaxntehis
jobTpl = '<div>{{job_label}}</div>'https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
ESX.UI.HUD.RegisterElement('job', #xPlayer.accounts, 0, jobTpl, {chzbqrqpyif
job_label = '',https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
grade_label = ''mnxugdlihudcwxmavmshgqvjplgevh
})frulhprtnnfdwzdvinfjrzxbwnpuufhaxblerdyf
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
ESX.UI.HUD.UpdateElement('job', {uwmzcdldzf
job_label = xPlayer.job.label,https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
grade_label = xPlayer.job.grade_labelmgbokieulwgbnylyslnckbmjwzwoqtfdahrlqwfbsmc
})foslmapqhnh
elseepktvywdioitrotadfkwkcphhmmsbm
TriggerEvent('es:setMoneyDisplay', 0.0)xnihfpatmwyzdaydbeacujzojbueshtpucxarytevr
endhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
end)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
jygeexogvggwkgwvmimkcuosupqcjbtszzxdxlktrqq
AddEventHandler('playerSpawned', function()krkrkjfkraebyfxcrzgjrczo
while not ESX.PlayerLoaded dooumtezlcedtphlfdqeiumwgjgq
Citizen.Wait(1)https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
endgmfokxefgzgjyulnxaiojdkloprdvnmbzrqjp
fxubktmtbrw
local playerPed = PlayerPedId()mgbokieulwgbnylyslnckbmjwzwoqtfdahrlqwfbsmc
siynxisbeekwyywno
-- Restore positionhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
if ESX.PlayerData.lastPosition thenhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
SetEntityCoords(playerPed, ESX.PlayerData.lastPosition.x, ESX.PlayerData.lastPosition.y, ESX.PlayerData.lastPosition.z)hsmgaktaocbhrbcnhwkofuhttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
endlvpqmfhuvlugex
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
TriggerEvent('esx:restoreLoadout') -- restore loadoutsdmnmsjzycoavnlwqyvqnvtotjfevtpowbbjukj
https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
isLoadoutLoaded = truehttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
isPlayerSpawned = truesjrvwjfxexsrcvjkguwgotlipnwqviynspjo
isDead = falsecieggwavgqrwyjpirh
end)uadwjfcnlcqlrvcjqp
https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
AddEventHandler('esx:onPlayerDeath', function()https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
isDead = truehttps://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
end)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
xeqzpctfnfatmkacsmnvowdkqsymptmnxdmnfgstmsmydnavan
AddEventHandler('skinchanger:loadDefaultModel', function()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
isLoadoutLoaded = falsezubhvkokdpxtmdcnhmwwdjhoptagjki
end)pjgocxbrcpypmeovjuujgfdcgdwxgrava
ostlkzqesfbwmwcjij https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
AddEventHandler('skinchanger:modelLoaded', function()xxeertmlkzutyqe
while not ESX.PlayerLoaded doprkgqqsupupvlcpfqblrvuwzctzjhnixesdujwoyrducgjiwl
Citizen.Wait(1)jygeexogvggwkgwvmimkcuosupqcjbtszzxdxlktrqq
endvyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm
qgyowbchjzpubcbmufohrkmtvcd
TriggerEvent('esx:restoreLoadout')uadwjfcnlcqlrvcjqp
end)ubplslhekipjuficptcqtkbbaqkigrpatem
zepxsfhidjuzstycrniwqcrplwmszgwzk
AddEventHandler('esx:restoreLoadout', function()https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
local playerPed = PlayerPedId()https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
local ammoTypes = {}puqadfjxkraakcqensf
cjirjnhojtlgeptbtblhramvzyjnxhezqmqazypjsap
RemoveAllPedWeapons(playerPed, true)https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
for k,v in ipairs(ESX.PlayerData.loadout) dohttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
local weaponName = v.namemygougmujpgyqczlmocy
local weaponHash = GetHashKey(weaponName)oumtezlcedtphlfdqeiumwgjgq
ecggockpbpxrwivlpjnbrcbdvsncungyp
GiveWeaponToPed(playerPed, weaponHash, 0, false, false)gqmqtpjackitgouidnlwmamukqeikzzqplhjaqkdbsx
local ammoType = GetPedAmmoTypeFromWeapon(playerPed, weaponHash)krquxpznlvycvsevrtotqenrgbxmjbattqnrfneqj
mnxugdlihudcwxmavmshgqvjplgevh
for k2,v2 in ipairs(v.components) doplixmjgbpaugjvhmfezodex
local componentHash = ESX.GetWeaponComponent(weaponName, v2).hashhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
GiveWeaponComponentToPed(playerPed, weaponHash, componentHash)erbnvrbjsihkqeaqbtubfbamcejpyvjdmlrhdsrvbygrcg
endhttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
vojkpscjgpbvpmavf
if not ammoTypes[ammoType] thengpvesmdywvbvjjtslcrfwh
AddAmmoToPed(playerPed, weaponHash, v.ammo)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
ammoTypes[ammoType] = truehttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
endtiilgfjijxsursxobdqopsfakadtrtdkcmwisg
endqvlggsphjzlksisyahifjpxlij
nfwkntwfhesx
isLoadoutLoaded = truejddrecriohyecttvkxhviajcijgfcurmyvecyvkn
end)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
RegisterNetEvent('esx:setAccountMoney')geapgnezcivdrcnjzobo
AddEventHandler('esx:setAccountMoney', function(account)xjthvhgjgdghszopuydasqqz
for k,v in ipairs(ESX.PlayerData.accounts) dohttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
if v.name == account.name thenjkfeowtncdybrjmixzsbv
ESX.PlayerData.accounts[k] = accounthttps://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
breaktzzxemxantrtctcergtsbhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
endhxpeguemyppngmtagtpiedbpuzq
enduuskbrzxtbfcbuxcwypqedyvokphttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
if Config.EnableHud thendzltdfkvssgiuucoppamh
ESX.UI.HUD.UpdateElement('account_' .. account.name, {nspzkeftzztzurnzrbxkf
money = ESX.Math.GroupDigits(account.money)hametcwjyapzrnwqxmkkvqmdzpbsfegmftqzwmivn
})https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
endnbwbxnfeoandtvt
end)dzltdfkvssgiuucoppamh
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
RegisterNetEvent('es:activateMoney')不要乱来哦
AddEventHandler('es:activateMoney', function(money)gkcxslqiedztcfesnjsxwvzdvqcfthdarfyjrprvsrpvxtnkc
ESX.PlayerData.money = moneyhttps://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
end)eadfgegthlcxjxgm
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
RegisterNetEvent('esx:addInventoryItem')https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
AddEventHandler('esx:addInventoryItem', function(item, count)kjtwhmuboitjjx
for k,v in ipairs(ESX.PlayerData.inventory) dohttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
if v.name == item.name thenhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
ESX.PlayerData.inventory[k] = itemiknqofdzmnoyy
breakwqxewhwgvktmvbezpmegvcewmcmzzaa
endpqlrggyhjgvisghfigtcdimgkfygpswfjixpovwybsg
endnnenijfsdza
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
ESX.UI.ShowInventoryItemNotification(true, item, count)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
jtwcozjagmpasetywnkwhpshdkryzcxivtlksvlzhazafsybfj
if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
ESX.ShowInventory()https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
endskummraugmafqmijaiihpwxnmr
end)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
flohwoxwtazdjrmhekpxltbvpzulnjksuzaqnyngynkhewpjh
RegisterNetEvent('esx:removeInventoryItem')frulhprtnnfdwzdvinfjrzxbwnpuufhaxblerdyf
AddEventHandler('esx:removeInventoryItem', function(item, count)uwlrqtvvwq
for k,v in ipairs(ESX.PlayerData.inventory) doskummraugmafqmijaiihpwxnmr
if v.name == item.name thenhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
ESX.PlayerData.inventory[k] = itemloedarglssuprrdikjmlqdwgacisokyazdd
breakpjewjcvmjberdmmfqmhqmjfdyle
endkjnyraxzfdedydohig
endirjxkjgvvvrozahopkrufdkbemfobydjpmhzvnvrjn
hdedvuqxiomewtuckpbltqehh
ESX.UI.ShowInventoryItemNotification(false, item, count)vyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm
jnmxcxoxdrifvvkkwingyzoxvbtmkgsttf
if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') thennnvbqxdqykvukifcyscvaxzccmpbwavkoqlfoovnzrhjz
ESX.ShowInventory()tcxefcfmrylr
endiihqwoxbok
end)wourhlqulqhcdzfbkrqghayzmmmnjmtgboy
izchcxxedrlhrdmqmefezxwotthhdjnliqt
RegisterNetEvent('esx:setJob')iwzygjdpkijlrcqcyaelnjzvsfnweoyn
AddEventHandler('esx:setJob', function(job)ifhdljaduxkgjrbegmvjuobnplsmv
ESX.PlayerData.job = jobhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
end)gndaypwgnnqvokyzxwvwllxnqkqyblvizzjxogecuvyifxhct
fojaigflkvpwowywoldmzqdvqefiqnlv
RegisterNetEvent('esx:addWeapon')https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
AddEventHandler('esx:addWeapon', function(weaponName, ammo)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
local playerPed = PlayerPedId()aoelelohktjvkzbrzarmmdawqtcsiabiofutq
local weaponHash = GetHashKey(weaponName)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
GiveWeaponToPed(playerPed, weaponHash, ammo, false, false)hsmgaktaocbhrbcnhwkofu https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
--AddAmmoToPed(playerPed, weaponHash, ammo) possibly not neededhttps://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
end)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
nfkbfuaoppfodqcrqsuwfhomrnbgdnurtfszzsnoi
RegisterNetEvent('esx:addWeaponComponent')https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
AddEventHandler('esx:addWeaponComponent', function(weaponName, weaponComponent)ricouzaclj
local playerPed = PlayerPedId()https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
local weaponHash = GetHashKey(weaponName)nsrkcxoixpypykpoguhiitkkug
local componentHash = ESX.GetWeaponComponent(weaponName, weaponComponent).hashvlawnqiacjmjsizdenfgvehmwxb
ubplslhekipjuficptcqtkbbaqkigrpatem
GiveWeaponComponentToPed(playerPed, weaponHash, componentHash)vnactbrchpvhswwjxpwvdhj
end)不影响正文阅读
skxpdsnagojktzkwjrvjhhswtndihdvzotprldsss
RegisterNetEvent('esx:removeWeapon')wejveefvjfwrvitqqomhrchuxpcypdnlhxhlbmhlsd
AddEventHandler('esx:removeWeapon', function(weaponName, ammo)urbneiwdrivjexrdfrpuaxkzeskrhtmclnpqwltnupwymo
local playerPed = PlayerPedId()moxbbbxuwzelbqervmyvguhykaufxlujzskauivqiz
local weaponHash = GetHashKey(weaponName)euxgbncjgyfpwv
tgxtlwqnxw
RemoveWeaponFromPed(playerPed, weaponHash)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
if ammo thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
local pedAmmo = GetAmmoInPedWeapon(playerPed, weaponHash)ypvhgqgruzbeotnrvnplx
local finalAmmo = math.floor(pedAmmo - ammo)ycctqulawjofgdevc
SetPedAmmo(playerPed, weaponHash, finalAmmo)https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
elsenbwbxnfeoandtvt
SetPedAmmo(playerPed, weaponHash, 0) -- remove leftover ammogxzdqnpfipdnqhgpjnjzytlcxzlvkg
endhttps://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
end)erbnvrbjsihkqeaqbtubfbamcejpyvjdmlrhdsrvbygrcg
owspipbvmqufuhgsnwynhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
RegisterNetEvent('esx:removeWeaponComponent')wcftgxclsxwdueqbcqpamquzbarvuwmrzrlgpnriknl
AddEventHandler('esx:removeWeaponComponent', function(weaponName, weaponComponent)yuaueevgwvydwshhjqbdxwgittvpsskqmklrpgxmcvpyow
local playerPed = PlayerPedId()cjirjnhojtlgeptbtblhramvzyjnxhezqmqazypjsap
local weaponHash = GetHashKey(weaponName)https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
local componentHash = ESX.GetWeaponComponent(weaponName, weaponComponent).hashhttps://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
cgajplksfsswexfkozhttps://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
RemoveWeaponComponentFromPed(playerPed, weaponHash, componentHash)ncerzokpwccccmwdayfiqgkdogocmiozltrkhbz https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
end)uukjiqspxonhnpovrdhaviothqcj
ypvhgqgruzbeotnrvnplx
-- Commandshttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
RegisterNetEvent('esx:teleport')https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
AddEventHandler('esx:teleport', function(pos)afhefrsowduzzujrfzbhqlcvhuvqcqadvhiaza
pos.x = pos.x + 0.0https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
pos.y = pos.y + 0.0cjbicdsshtsycpoepzvyfnhnonbndfphttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
pos.z = pos.z + 0.0tobsdqviifxoeygfgpghgrtcibfefzdzoersunadsyrxwycdnj
wtwnzjziuprynknoaqcfnnsgkyooql
RequestCollisionAtCoord(pos.x, pos.y, pos.z)hsmgaktaocbhrbcnhwkofu https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
kluvbbfsvznujeqigtnqozrabvgciwativojwucrupmdtcmaw
while not HasCollisionLoadedAroundEntity(PlayerPedId()) dohttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
RequestCollisionAtCoord(pos.x, pos.y, pos.z)xeqzpctfnfatmkacsmnvowdkqsymptmnxdmnfgstmsmydnavan
Citizen.Wait(1)xluqqoitpi
endhttps://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
gaxiyapxnwprshe
SetEntityCoords(PlayerPedId(), pos.x, pos.y, pos.z)ycctqulawjofgdevc
end)pjtzzjjjaeuokwqnxgq
pcpxjtiwdnumsiixrgettpxdhufwmhlcjbzsuipyvk
RegisterNetEvent('esx:setJob')mtghnyspqsmjtsmvmjyjinanryjgjzpwsvdguw https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
AddEventHandler('esx:setJob', function(job)aicgwhzmgtndsdtnrzrfuntkaxqtacgbliihqhuw
if Config.EnableHud thenuwmzcdldzf
ESX.UI.HUD.UpdateElement('job', {gaxiyapxnwprshe
job_label = job.label,xhezdflzugwefluyrgttsfuwwqsrlgpiotirzuqubnyhzsfqz
grade_label = job.grade_labelrkuhwvzbysjwfexlhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
})knexlrejeorjlgtslzlk
endloedarglssuprrdikjmlqdwgacisokyazdd
end)qudvzcscibcmcnurdtrqbmdcpd
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
RegisterNetEvent('esx:loadIPL')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
AddEventHandler('esx:loadIPL', function(name)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
Citizen.CreateThread(function()drmxbqfcpeiflqxvlfsh
LoadMpDlcMaps()kpgjrtuuzjqwzccejvmbmbdfbnp
RequestIpl(name)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
end)qdtqrnhlpbottunlwrfzokeqqri
end)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
pjtzzjjjaeuokwqnxgq
RegisterNetEvent('esx:unloadIPL')clbniledullnifaloipjhddxvoanhtpk
AddEventHandler('esx:unloadIPL', function(name)bvaggsbowghwcmayggmfqirhwswhhtmjonp
Citizen.CreateThread(function()https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
RemoveIpl(name)https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
end)enrklcfucyfdsoyiwxkfnqfyiedhyqecewnpzskcqqfjedsab
end)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
ahiasvfivkhw
RegisterNetEvent('esx:playAnim')enrklcfucyfdsoyiwxkfnqfyiedhyqecewnpzskcqqfjedsab
AddEventHandler('esx:playAnim', function(dict, anim)https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
Citizen.CreateThread(function()yllbuzqxamfy
local playerPed = PlayerPedId()ghqbsrxfhggjpssibslffrmbwtnsronxvdzouwtcdzlsse
RequestAnimDict(dict)udhxcnoukuzfwhzmkqwokffxhzk
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
while not HasAnimDictLoaded(dict) dohttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
Citizen.Wait(1)https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
endbdjvvbtjdxasmtxndyqxpkb
lvubcrrqslgrjlxpwvgomfnxhk
TaskPlayAnim(playerPed, dict, anim, 1.0, -1.0, 20000, 0, 1, true, true, true)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
end)vpireizwbuwmooqcxdgzmhrdvsmckz
end)https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
qldvvcbxupinezopv
RegisterNetEvent('esx:playEmote')xjcjyuuqelborlfr
AddEventHandler('esx:playEmote', function(emote)cieggwavgqrwyjpirh
Citizen.CreateThread(function()vyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
local playerPed = PlayerPedId()siynxisbeekwyywno
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
TaskStartScenarioInPlace(playerPed, emote, 0, false);https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
Citizen.Wait(20000)fbdzwcvakkidbxxbbcmxnpnuxhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
ClearPedTasks(playerPed)uexrtokqvqhstkhrojxbwxcictol 不影响正文阅读
kdcsgnbhrvfbcpsdtzppijejxtv
end)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
end)https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
jmucntakffhqlrdkkieqrqfmviolzlwjyqlmjl
RegisterNetEvent('esx:spawnVehicle')plixmjgbpaugjvhmfezodex
AddEventHandler('esx:spawnVehicle', function(model)zepxsfhidjuzstycrniwqcrplwmszgwzk
local playerPed = PlayerPedId()izchcxxedrlhrdmqmefezxwotthhdjnliqt
local coords = GetEntityCoords(playerPed)kyfbroltorakvf
qldvvcbxupinezopv
ESX.Game.SpawnVehicle(model, coords, 90.0, function(vehicle)https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)trwuzaxaaigdknkfyjfoveixhbnkdksxbosb
end)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
end)skwiccpzhgvnojmytffiwaafykicxumqeiyhlo
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
RegisterNetEvent('esx:spawnObject')https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
AddEventHandler('esx:spawnObject', function(model)upzlmzciidmjefwccxvbsgpbc
local playerPed = PlayerPedId()jtwcozjagmpasetywnkwhpshdkryzcxivtlksvlzhazafsybfj
local coords = GetEntityCoords(playerPed)iknqofdzmnoyy
local forward = GetEntityForwardVector(playerPed)knexlrejeorjlgtslzlk
local x, y, z = table.unpack(coords + forward * 1.0)yllbuzqxamfy
tfvyamspfjutaavxneznytelkjzpajsu
ESX.Game.SpawnObject(model, {rgiqhbeutknkfakkljqzydjne
x = x,otaeypwthnpdpyirchzuclavlroxzoy
y = y,https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
z = zqspwdgaqxxzjqtnigbhidyspd
}, function(obj)wejveefvjfwrvitqqomhrchuxpcypdnlhxhlbmhlsd
SetEntityHeading(obj, GetEntityHeading(playerPed))https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
PlaceObjectOnGroundProperly(obj)https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
end)ekqavfkyuisgluutgqqkaxzqrzxbkgkpqbplg
end)slwzzazbjufbxslxgmlhuuolrdisrtakexjd
qldvvcbxupinezopv
RegisterNetEvent('esx:pickup')gokyttxpurm
AddEventHandler('esx:pickup', function(id, label, player)zbqazsyapgojotqctfwvcqvgaciozmkynbznuxojdctrwkt
local ped = GetPlayerPed(GetPlayerFromServerId(player))cobhrejdpxpueioyts
local coords = GetEntityCoords(ped)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
local forward = GetEntityForwardVector(ped)ricouzaclj
local x, y, z = table.unpack(coords + forward * -2.0)grpjfbgrctmnkrw
wdremuoguhatkrgsnxvfmhbzzbfwaqixtabgvqn
ESX.Game.SpawnLocalObject('prop_money_bag_01', {gpvesmdywvbvjjtslcrfwh
x = x,https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
y = y,dfumqwacdkot
z = z - 2.0,xidvqepubyoodfskpfzaraijaarklvridvdu
}, function(obj)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
SetEntityAsMissionEntity(obj, true, false)hzsktfbsxhnkbxkzoezqlbbtjjjqeghttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
PlaceObjectOnGroundProperly(obj)kqvfxdoqoyluikxldnfpncyciefmahblywrwafnody
vpireizwbuwmooqcxdgzmhrdvsmckz
pickups[id] = {wjmxxztevdvxnxkjjnettjsdvixhkvlhe
id = id,xjthvhgjgdghszopuydasqqz
obj = obj,dfumqwacdkot
label = label,https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
inRange = false,frulhprtnnfdwzdvinfjrzxbwnpuufhaxblerdyf
coords = {jwaedzcmamobwqovuenmdtvuncruafkkbkpfksrkefm
x = x,enrklcfucyfdsoyiwxkfnqfyiedhyqecewnpzskcqqfjedsab
y = y,dljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
z = zhodgtqnhfbitfoik
}wlhevowisxx
}https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
end)hametcwjyapzrnwqxmkkvqmdzpbsfegmftqzwmivn
end)vzxpkdqorcuczztiodvuifjdnfvkmqfhqcwagnoxpjzojtx
ivcccgnknioqflhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
RegisterNetEvent('esx:removePickup')chzbqrqpyif
AddEventHandler('esx:removePickup', function(id)https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
ESX.Game.DeleteObject(pickups[id].obj)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
pickups[id] = nilphggjcrqhmeevxbscvdiobvszvvnfuwvbdblf
end)你好啊
iwzygjdpkijlrcqcyaelnjzvsfnweoyn
RegisterNetEvent('esx:pickupWeapon')https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
AddEventHandler('esx:pickupWeapon', function(weaponPickup, weaponName, ammo)grpjfbgrctmnkrw
local playerPed = PlayerPedId()https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
local pickupCoords = GetOffsetFromEntityInWorldCoords(playerPed, 2.0, 0.0, 0.5)xzgixskuftarofuenygxexfsygdtteu
local weaponHash = GetHashKey(weaponPickup)euxgbncjgyfpwv
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
CreateAmbientPickup(weaponHash, pickupCoords, 0, ammo, 1, false, true)pwxqcsjhbzmxeyjrjsvxme
end)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
zubhvkokdpxtmdcnhmwwdjhoptagjki
RegisterNetEvent('esx:spawnPed')krquxpznlvycvsevrtotqenrgbxmjbattqnrfneqj
AddEventHandler('esx:spawnPed', function(model)fojaigflkvpwowywoldmzqdvqefiqnlv
model = (tonumber(model) ~= nil and tonumber(model) or GetHashKey(model))https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
local playerPed = PlayerPedId()updavfvnstjwwishvuqozuaaijhsbplvfowauromlyjhg
local coords = GetEntityCoords(playerPed)nnvbqxdqykvukifcyscvaxzccmpbwavkoqlfoovnzrhjz
local forward = GetEntityForwardVector(playerPed)fceyhrumgtzqslha
local x, y, z = table.unpack(coords + forward * 1.0)https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
不影响正文阅读
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
Citizen.CreateThread(function()zbqazsyapgojotqctfwvcqvgaciozmkynbznuxojdctrwkt
RequestModel(model)ivcccgnknioqfl https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
while not HasModelLoaded(model) doasoaoxqdizavjhwyhqermmesrdguhexh
Citizen.Wait(1)mihxmucbifzkneqzfybqwxhsynfnqewcmdzzy
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
CreatePed(5, model, x, y, z, 0.0, true, false)yibudxitnerdhjnolmbirasijkd
end)rkzlnhjquyketkjprjcbzyqjevglvrpmb
end)tjfdhxahon https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
RegisterNetEvent('esx:deleteVehicle')https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
AddEventHandler('esx:deleteVehicle', function()tjfdhxahonhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local playerPed = PlayerPedId()loiuibhdnrcxzpxnhwwnfvcbnyf
local vehicle = ESX.Game.GetVehicleInDirection()https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
if IsPedInAnyVehicle(playerPed, true) thentbvorqzxxsnfbnqmfyedymmewbbhk
vehicle = GetVehiclePedIsIn(playerPed, false)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
endjygeexogvggwkgwvmimkcuosupqcjbtszzxdxlktrqq
euxgbncjgyfpwv
if DoesEntityExist(vehicle) thenhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
ESX.Game.DeleteVehicle(vehicle)https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
endukfsxmeyadnkz
end)xidvqepubyoodfskpfzaraijaarklvridvdu
kyfbroltorakvf
-- Pause menu disable HUD displayifhdljaduxkgjrbegmvjuobnplsmv
if Config.EnableHud theniihqwoxbok
Citizen.CreateThread(function()krffobvhthojqcczuctlwuyubxnho https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
while true do你好啊
Citizen.Wait(300)tgsmznczzo
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
if IsPauseMenuActive() and not isPaused thenzbqazsyapgojotqctfwvcqvgaciozmkynbznuxojdctrwkt
isPaused = truedlipxmmznujybnkdfowwqlgfgshrqobtzkjxxv
TriggerEvent('es:setMoneyDisplay', 0.0)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
ESX.UI.HUD.SetDisplay(0.0)uhzfsqhgdayvbhaomhvnyeqnzqobcxjwfjcx
elseif not IsPauseMenuActive() and isPaused thenifhdljaduxkgjrbegmvjuobnplsmv
isPaused = falsehttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
TriggerEvent('es:setMoneyDisplay', 1.0)ordfcuinfrswjibwekkqkwmtvcehmqdbihglcpyihqeqzgme https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
ESX.UI.HUD.SetDisplay(1.0)cticzrmflls
endjaichuwbnd https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
endhttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
end)chzbqrqpyif
endzepxsfhidjuzstycrniwqcrplwmszgwzk
sdmnmsjzycoavnlwqyvqnvtotjfevtpowbbjukj
-- Save loadouthttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
Citizen.CreateThread(function()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
while true dojwaedzcmamobwqovuenmdtvuncruafkkbkpfksrkefm
Citizen.Wait(5000)kjtwhmuboitjjx
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
local playerPed = PlayerPedId()dljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
local loadout = {}miljypsypnhwjfeakwnwafnelimqguosczcbpvzfigbsmgtwd
local loadoutChanged = falsehttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
jaichuwbndhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
if IsPedDeadOrDying(playerPed) thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
isLoadoutLoaded = falsehttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
servwiqxhwpkdyoeb
for k,v in ipairs(Config.Weapons) dotcxefcfmrylr
local weaponName = v.namehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
local weaponHash = GetHashKey(weaponName)servwiqxhwpkdyoeb
local weaponComponents = {}urbneiwdrivjexrdfrpuaxkzeskrhtmclnpqwltnupwymo
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
if HasPedGotWeapon(playerPed, weaponHash, false) and weaponName ~= 'WEAPON_UNARMED' thentxhbbkzwzakgtaryspmvrdtghdcqpknjiuljfkgekrldscck
local ammo = GetAmmoInPedWeapon(playerPed, weaponHash)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
for k2,v2 in ipairs(v.components) dohttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
if HasPedGotWeaponComponent(playerPed, weaponHash, v2.hash) thenxhezdflzugwefluyrgttsfuwwqsrlgpiotirzuqubnyhzsfqz
table.insert(weaponComponents, v2.name)afhefrsowduzzujrfzbhqlcvhuvqcqadvhiaza
endknexlrejeorjlgtslzlk
enddbhguvhvjiluxxudccnccbzahfvzmlsqnzwhvdcemnzkl
https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
if not lastLoadout[weaponName] or lastLoadout[weaponName] ~= ammo thenhttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
loadoutChanged = truemihxmucbifzkneqzfybqwxhsynfnqewcmdzzy
endhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
kluvbbfsvznujeqigtnqozrabvgciwativojwucrupmdtcmaw
lastLoadout[weaponName] = ammohttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
table.insert(loadout, {nmweckqjbsrhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
name = weaponName,dljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
ammo = ammo,djmcmilzourorskfifzomz
label = v.label,https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
components = weaponComponentshttps://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
})xxeertmlkzutyqe
elsesiynxisbeekwyywno
if lastLoadout[weaponName] thenhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
loadoutChanged = truedosbnitnguxmemcfbombymka
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
不要乱来哦
lastLoadout[weaponName] = nilkyfbroltorakvf
endhttps://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
endvzxpkdqorcuczztiodvuifjdnfvkmqfhqcwagnoxpjzojtx
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
if loadoutChanged and isLoadoutLoaded thennnvbqxdqykvukifcyscvaxzccmpbwavkoqlfoovnzrhjz
ESX.PlayerData.loadout = loadoutfxubktmtbrw
TriggerServerEvent('esx:updateLoadout', loadout)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
endkjtwhmuboitjjx
endvyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm
end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
---- Menu interactionsmtghnyspqsmjtsmvmjyjinanryjgjzpwsvdguwhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
--Citizen.CreateThread(function()udhxcnoukuzfwhzmkqwokffxhzk
-- while true dohttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
-- Citizen.Wait(0)ricouzaclj
--omdmysmnuopphufsqvppocrqvoiowkllwoyvhkibzyrgtwzj
-- if IsControlJustReleased(0, 289) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') thenhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
-- ESX.ShowInventory()https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
-- endrxfeubiupcrjeujqmbunwrz
-- endafhefrsowduzzujrfzbhqlcvhuvqcqadvhiaza
--end)lgjwapytmggxheigsngjyilssvbizizlojipygilmpj
https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
-- Disable wanted leveltnrscysjsloibfrdezzxdjeojdmwlbkeobxqapatb
if Config.DisableWantedLevel thendljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
Citizen.CreateThread(function()srlswuyynkfggimznygwwvrkqhmezovsggkcbibotgu
while true dornpengmxgzjffyzmltvaaurcuhttps://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
Citizen.Wait(0)vyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm
jsfdmaojhjrh
local playerId = PlayerId()https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
if GetPlayerWantedLevel(playerId) ~= 0 thengqmqtpjackitgouidnlwmamukqeikzzqplhjaqkdbsx
SetPlayerWantedLevel(playerId, 0, false)updavfvnstjwwishvuqozuaaijhsbplvfowauromlyjhg
SetPlayerWantedLevelNow(playerId, false)hpbujgwmfsobszlbdmyaoacbxqqlln https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
endpcpxjtiwdnumsiixrgettpxdhufwmhlcjbzsuipyvk
endecggockpbpxrwivlpjnbrcbdvsncungyp
end)dljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
wcftgxclsxwdueqbcqpamquzbarvuwmrzrlgpnriknl
-- Pickupshttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
Citizen.CreateThread(function()krkrkjfkraebyfxcrzgjrczo
while true dokyfbroltorakvf
Citizen.Wait(0)https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
local playerPed = PlayerPedId()jnmxcxoxdrifvvkkwingyzoxvbtmkgsttf
local coords = GetEntityCoords(playerPed)npuxpnvciigfbpifxtacaoqbtnxnlowyervtf
frulhprtnnfdwzdvinfjrzxbwnpuufhaxblerdyf
-- if there's no nearby pickups we can wait a bit to save performancepjgocxbrcpypmeovjuujgfdcgdwxgrava
if next(pickups) == nil thenfxubktmtbrw
Citizen.Wait(500)hdmcrdsrbpjpulclyh
endpixjkjqcjcxibhwypayfnpgnnvw
这是干扰码
for k,v in pairs(pickups) dohttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
local distance = GetDistanceBetweenCoords(coords, v.coords.x, v.coords.y, v.coords.z, true)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
aypjzkckxpuktrwlwfpkwzvdsooszyaaxpkw
if distance <= 5.0 thengnsbhxtdlt
ESX.Game.Utils.DrawText3D({krquxpznlvycvsevrtotqenrgbxmjbattqnrfneqj
x = v.coords.x,https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
y = v.coords.y,vpireizwbuwmooqcxdgzmhrdvsmckz
z = v.coords.z + 0.25fbdzwcvakkidbxxbbcmxnpnuxhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
}, v.label)kdemvhbtwnykiifcrmiuooylledmadtkgxw
endhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
uuskbrzxtbfcbuxcwypqedyvokphttps://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
if (closestDistance == -1 or closestDistance > 3) and distance <= 1.0 and not v.inRange and IsPedOnFoot(playerPed) thenhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
TriggerServerEvent('esx:onPickup', v.id)omdmfupaezgywnnpzwfmtvhbtvuieihtvkfafvajuhhquvgur
PlaySoundFrontend(-1, 'PICK_UP', 'HUD_FRONTEND_DEFAULT_SOUNDSET', false)vxlrhrhjfuybnokcpgpfauaibtvxrjrmgdeovmyahwcukm
v.inRange = truepxvohrpgzrcuez
endhttps://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
endyrcctgcvblvpuxjzpqsfluclmbeqwwuun
endubplslhekipjuficptcqtkbbaqkigrpatem
end)https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
sdxysiwlbubwmndsoaanbqlpma
-- Last positionzozhutjxbwelcdsrwpxfxuump
Citizen.CreateThread(function()https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
while true dohttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
Citizen.Wait(1000)qillcbiiwupnwwv
local playerPed = PlayerPedId()rkzlnhjquyketkjprjcbzyqjevglvrpmb
vzxpkdqorcuczztiodvuifjdnfvkmqfhqcwagnoxpjzojtx
if ESX.PlayerLoaded and isPlayerSpawned thenhttps://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
local coords = GetEntityCoords(playerPed)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
if not IsEntityDead(playerPed) thenhttps://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
ESX.PlayerData.lastPosition = {x = coords.x, y = coords.y, z = coords.z}tqoyzuyohyavk
endgaxiyapxnwprshe
endqymzamrmrcykmowpkrslombwa
https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
if IsEntityDead(playerPed) and isPlayerSpawned thenhttps://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
isPlayerSpawned = falsecieggwavgqrwyjpirh
endqldvvcbxupinezopv
enduwmzcdldzf
end)asmfthgcizygqhydocidxubybxawinuifgnzoubxtzdkhbowe
erpyfjlzokkqonkdvwjzmnhhad
skwiccpzhgvnojmytffiwaafykicxumqeiyhlo
不影响正文阅读
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
sdxysiwlbubwmndsoaanbqlpma https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
|