搜索
查看: 87|回复: 1
收起左侧

翻译一下

[复制链接]

升级进度: 83%

waaaa 发表于 2024-4-1 13:12:21 | 显示全部楼层 |阅读模式
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 = true
wyrldoeskxhvaugleor

        ESX.PlayerData = xPlayerhxpeguemyppngmtagtpiedbpuzq
aonguymanx
        if Config.EnableHud thentcpeqyzzzgcnxflxuikcehpkcslqrrkktaokyojyummsrx
                for k,v in ipairs(xPlayer.accounts) do

https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5

  • https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O

  •                         local accountTpl = '<div>&nbsp;{{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 == '' then
  • vkkndfcvwgdhqpshtpntrvmgglgfokfjuqxywatthxaxntehis

  •                         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
            else
  • epktvywdioitrotadfkwkcphhmmsbm

  •                 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
            end
    gmfokxefgzgjyulnxaiojdkloprdvnmbzrqjp

    fxubktmtbrw
            local playerPed = PlayerPedId()mgbokieulwgbnylyslnckbmjwzwoqtfdahrlqwfbsmc
  • siynxisbeekwyywno

  •         -- Restore position
    https://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


            end
    lvpqmfhuvlugex

    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 = false
    cieggwavgqrwyjpirh

    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 do
  • prkgqqsupupvlcpfqblrvuwzctzjhnixesdujwoyrducgjiwl

  •                 Citizen.Wait(1)jygeexogvggwkgwvmimkcuosupqcjbtszzxdxlktrqq
            end
  • vyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm

  • 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) do
    https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3

                    local weaponName = v.name
  • mygougmujpgyqczlmocy

  •                 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) do
  • plixmjgbpaugjvhmfezodex

  •                         local componentHash = ESX.GetWeaponComponent(weaponName, v2).hash

    https://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
                    end
  • tiilgfjijxsursxobdqopsfakadtrtdkcmwisg

  •         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 then
    jkfeowtncdybrjmixzsbv

                            ESX.PlayerData.accounts[k] = account
    https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R

                            break

    tzzxemxantrtctcergtsbhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6


                    endhxpeguemyppngmtagtpiedbpuzq
            end

    uuskbrzxtbfcbuxcwypqedyvokphttps://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] = item
    iknqofdzmnoyy

                            break
    wqxewhwgvktmvbezpmegvcewmcmzzaa

                    endpqlrggyhjgvisghfigtcdimgkfygpswfjixpovwybsg
            end
  • nnenijfsdza

  • 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
            end
    skummraugmafqmijaiihpwxnmr

    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) do
    skummraugmafqmijaiihpwxnmr

                    if v.name == item.name thenhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
                            ESX.PlayerData.inventory[k] = itemloedarglssuprrdikjmlqdwgacisokyazdd
                            break
    pjewjcvmjberdmmfqmhqmjfdyle

                    endkjnyraxzfdedydohig
            end
    irjxkjgvvvrozahopkrufdkbemfobydjpmhzvnvrjn

    hdedvuqxiomewtuckpbltqehh
            ESX.UI.ShowInventoryItemNotification(false, item, count)
  • vyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm

  • jnmxcxoxdrifvvkkwingyzoxvbtmkgsttf
            if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
    nnvbqxdqykvukifcyscvaxzccmpbwavkoqlfoovnzrhjz

                    ESX.ShowInventory()
  • tcxefcfmrylr

  •         end
    iihqwoxbok

    end)wourhlqulqhcdzfbkrqghayzmmmnjmtgboy
    izchcxxedrlhrdmqmefezxwotthhdjnliqt
    RegisterNetEvent('esx:setJob')iwzygjdpkijlrcqcyaelnjzvsfnweoyn
    AddEventHandler('esx:setJob', function(job)
    ifhdljaduxkgjrbegmvjuobnplsmv

            ESX.PlayerData.job = job
  • https://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 then
    https://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).hash
  • https://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

  • -- Commands
    https://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.0

    cjbicdsshtsycpoepzvyfnhnonbndfphttps://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()) do
  • https://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 then
  • uwmzcdldzf

  •                 ESX.UI.HUD.UpdateElement('job', {
    gaxiyapxnwprshe

                            job_label   = job.label,xhezdflzugwefluyrgttsfuwwqsrlgpiotirzuqubnyhzsfqz
                            grade_label = job.grade_label

    rkuhwvzbysjwfexlhttps://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

  •                 end
  • bdjvvbtjdxasmtxndyqxpkb

  • 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 = z
    hodgtqnhfbitfoik

                            }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) then
    tbvorqzxxsnfbnqmfyedymmewbbhk

                    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 display
    ifhdljaduxkgjrbegmvjuobnplsmv

    if Config.EnableHud then
    iihqwoxbok

            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 = true
    dlipxmmznujybnkdfowwqlgfgshrqobtzkjxxv

                                    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 then
    ifhdljaduxkgjrbegmvjuobnplsmv

                                    isPaused = false
    https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M

                                    TriggerEvent('es:setMoneyDisplay', 1.0)

    ordfcuinfrswjibwekkqkwmtvcehmqdbihglcpyihqeqzgme

  • https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G

  •                                 ESX.UI.HUD.SetDisplay(1.0)cticzrmflls
                            end

    jaichuwbnd

    https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3


                    endhttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
            end)chzbqrqpyif
    end
    zepxsfhidjuzstycrniwqcrplwmszgwzk

    sdmnmsjzycoavnlwqyvqnvtotjfevtpowbbjukj
    -- Save loadout

    https://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 = false

    https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd

    https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6


                    end

    https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3 https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1


    servwiqxhwpkdyoeb
                    for k,v in ipairs(Config.Weapons) do
  • tcxefcfmrylr

  •                         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' then
    txhbbkzwzakgtaryspmvrdtghdcqpknjiuljfkgekrldscck

                                    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) do

    https://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
                                            end
    knexlrejeorjlgtslzlk

                                    enddbhguvhvjiluxxudccnccbzahfvzmlsqnzwhvdcemnzkl
  • https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A

  •                                 if not lastLoadout[weaponName] or lastLoadout[weaponName] ~= ammo then
  • https://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

  •                         else
  • siynxisbeekwyywno

  •                                 if lastLoadout[weaponName] thenhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
                                            loadoutChanged = true
    dosbnitnguxmemcfbombymka

                                    endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
    不要乱来哦
                                    lastLoadout[weaponName] = nilkyfbroltorakvf
                            end
  • https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X

  •                 end
  • vzxpkdqorcuczztiodvuifjdnfvkmqfhqcwagnoxpjzojtx

  • https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
                    if loadoutChanged and isLoadoutLoaded then
    nnvbqxdqykvukifcyscvaxzccmpbwavkoqlfoovnzrhjz

                            ESX.PlayerData.loadout = loadoutfxubktmtbrw
                            TriggerServerEvent('esx:updateLoadout', loadout)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
                    end
    kjtwhmuboitjjx

            end
  • vyojaqrztrqqhygsyvpfofspzuawzpqvofeovvopmeftcm

  • end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
    https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
    ---- Menu interactions

    mtghnyspqsmjtsmvmjyjinanryjgjzpwsvdguwhttps://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') then
    https://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 level
  • tnrscysjsloibfrdezzxdjeojdmwlbkeobxqapatb

  • if Config.DisableWantedLevel thendljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
            Citizen.CreateThread(function()
  • srlswuyynkfggimznygwwvrkqhmezovsggkcbibotgu

  •                 while true do

    rnpengmxgzjffyzmltvaaurcuhttps://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

  •                         end
  • pcpxjtiwdnumsiixrgettpxdhufwmhlcjbzsuipyvk

  •                 endecggockpbpxrwivlpjnbrcbdvsncungyp
            end)dljfdzxxvdfkqwxsdbfxszdlycdlrmeuxnzbnxyibdtra
    end
    https://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) do
    https://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 then
    gnsbhxtdlt

                                    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.25

    fbdzwcvakkidbxxbbcmxnpnuxhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8


                                    }, v.label)kdemvhbtwnykiifcrmiuooylledmadtkgxw
                            end
    https://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) then

    https://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
                    end
    yrcctgcvblvpuxjzpqsfluclmbeqwwuun

            end
    ubplslhekipjuficptcqtkbbaqkigrpatem

    end)
  • https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U

  • sdxysiwlbubwmndsoaanbqlpma
    -- Last position
  • zozhutjxbwelcdsrwpxfxuump

  • 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

                            end
    gaxiyapxnwprshe

                    endqymzamrmrcykmowpkrslombwa

    https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3

  • https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S

  •                 if IsEntityDead(playerPed) and isPlayerSpawned then
    https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R

                            isPlayerSpawned = false
    cieggwavgqrwyjpirh

                    endqldvvcbxupinezopv
            end
  • uwmzcdldzf

  • 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
    [发帖际遇]: waaaa 乐于助人,奖励 16 贡献. 幸运榜 / 衰神榜
    回复 论坛版权

    使用道具 举报

    ChatGPT 发表于 2024-4-1 13:13:13 | 显示全部楼层
    local isLoadoutLoaded, isPaused, isPlayerSpawned, isDead = false, false, false, false
    local lastLoadout, pickups = {}, {}

    -- 玩家加载完成事件
    RegisterNetEvent('esx:playerLoaded')
    AddEventHandler('esx:playerLoaded', function(xPlayer)
            ESX.PlayerLoaded = true
            ESX.PlayerData = xPlayer

            -- 如果启用了HUD,则更新HUD显示
            if Config.EnableHud then
                    for k,v in ipairs(xPlayer.accounts) do
                            local accountTpl = '&nbsp;{{money}}'

                            ESX.UI.HUD.RegisterElement('account_' .. v.name, k - 1, 0, accountTpl, {
                                    money = 0
                            })

                            ESX.UI.HUD.UpdateElement('account_' .. v.name, {
                                    money = ESX.Math.GroupDigits(v.money)
                            })
                    end

                    local jobTpl = '{{job_label}} - {{grade_label}}'

                    if xPlayer.job.grade_label == '' then
                            jobTpl = '{{job_label}}'
                    end

                    ESX.UI.HUD.RegisterElement('job', #xPlayer.accounts, 0, jobTpl, {
                            job_label   = '',
                            grade_label = ''
                    })

                    ESX.UI.HUD.UpdateElement('job', {
                            job_label   = xPlayer.job.label,
                            grade_label = xPlayer.job.grade_label
                    })
            else
                    TriggerEvent('es:setMoneyDisplay', 0.0)
            end
    end)

    -- 玩家重生事件
    AddEventHandler('playerSpawned', function()
            while not ESX.PlayerLoaded do
                    Citizen.Wait(1)
            end

            local playerPed = PlayerPedId()

            -- 恢复位置
            if ESX.PlayerData.lastPosition then
                    SetEntityCoords(playerPed, ESX.PlayerData.lastPosition.x, ESX.PlayerData.lastPosition.y, ESX.PlayerData.lastPosition.z)
            end

            TriggerEvent('esx:restoreLoadout') -- 恢复物品装备

            isLoadoutLoaded = true
            isPlayerSpawned = true
            isDead = false
    end)

    -- 玩家死亡事件
    AddEventHandler('esx:onPlayerDeath', function()
            isDead = true
    end)

    -- 默认模型加载事件
    AddEventHandler('skinchanger:loadDefaultModel', function()
            isLoadoutLoaded = false
    end)

    -- 模型加载事件
    AddEventHandler('skinchanger:modelLoaded', function()
            while not ESX.PlayerLoaded do
                    Citizen.Wait(1)
            end

            TriggerEvent('esx:restoreLoadout')
    end)

    -- 恢复物品装备
    AddEventHandler('esx:restoreLoadout', function()
            local playerPed = PlayerPedId()
            local ammoTypes = {}

            RemoveAllPedWeapons(playerPed, true)

            for k,v in ipairs(ESX.PlayerData.loadout) do
                    local weaponName = v.name
                    local weaponHash = GetHashKey(weaponName)

                    GiveWeaponToPed(playerPed, weaponHash, 0, false, false)
                    local ammoType = GetPedAmmoTypeFromWeapon(playerPed, weaponHash)

                    for k2,v2 in ipairs(v.components) do
                            local componentHash = ESX.GetWeaponComponent(weaponName, v2).hash

                            GiveWeaponComponentToPed(playerPed, weaponHash, componentHash)
                    end

                    if not ammoTypes then
                            AddAmmoToPed(playerPed, weaponHash, v.ammo)
                            ammoTypes = true
                    end
            end

            isLoadoutLoaded = true
    end)

    -- 设置账户金额
    RegisterNetEvent('esx:setAccountMoney')
    AddEventHandler('esx:setAccountMoney', function(account)
            for k,v in ipairs(ESX.PlayerData.accounts) do
                    if v.name == account.name then
                            ESX.PlayerData.accounts = account
                            break
                    end
            end

            if Config.EnableHud then
                    ESX.UI.HUD.UpdateElement('account_' .. account.name, {
                            money = ESX.Math.GroupDigits(account.money)
                    })
            end
    end)

    -- 激活货币事件
    RegisterNetEvent('es:activateMoney')
    AddEventHandler('es:activateMoney', function(money)
            ESX.PlayerData.money = money
    end)

    -- 添加物品事件
    RegisterNetEvent('esx:addInventoryItem')
    AddEventHandler('esx:addInventoryItem', function(item, count)
            for k,v in ipairs(ESX.PlayerData.inventory) do
                    if v.name == item.name then
                            ESX.PlayerData.inventory = item
                            break
                    end
            end

            ESX.UI.ShowInventoryItemNotification(true, item, count)

            if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
                    ESX.ShowInventory()
            end
    end)

    -- 移除物品事件
    RegisterNetEvent('esx:removeInventoryItem')
    AddEventHandler('esx:removeInventoryItem', function(item, count)
            for k,v in ipairs(ESX.PlayerData.inventory) do
                    if v.name == item.name then
                            ESX.PlayerData.inventory = item
                            break
                    end
            end

            ESX.UI.ShowInventoryItemNotification(false, item, count)

            if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
                    ESX.ShowInventory()
            end
    end)

    -- 设置职业事件
    RegisterNetEvent('esx:setJob')
    AddEventHandler('esx:setJob', function(job)
            ESX.PlayerData.job = job
    end)

    -- 添加武器事件
    RegisterNetEvent('esx:addWeapon')
    AddEventHandler('esx:addWeapon', function(weaponName, ammo)
            local playerPed  = PlayerPedId()
            local weaponHash = GetHashKey(weaponName)

            GiveWeaponToPed(playerPed, weaponHash, ammo, false, false)
            --AddAmmoToPed(playerPed, weaponHash, ammo) 可能不需要
    end)

    -- 添加武器组件事件
    RegisterNetEvent('esx:addWeaponComponent')
    AddEventHandler('esx:addWeaponComponent', function(weaponName, weaponComponent)
            local playerPed  = PlayerPedId()
            local weaponHash = GetHashKey(weaponName)
            local componentHash = ESX.GetWeaponComponent(weaponName, weaponComponent).hash

            GiveWeaponComponentToPed(playerPed, weaponHash, componentHash)
    end)

    -- 移除武器事件
    RegisterNetEvent('esx:removeWeapon')
    AddEventHandler('esx:removeWeapon', function(weaponName, ammo)
            local playerPed  = PlayerPedId()
            local weaponHash = GetHashKey(weaponName)

            RemoveWeaponFromPed(playerPed, weaponHash)

            if ammo then
                    local pedAmmo = GetAmmoInPedWeapon(playerPed, weaponHash)
                    local finalAmmo = math.floor(pedAmmo - ammo)
                    SetPedAmmo(playerPed, weaponHash, finalAmmo)
            else
                    SetPedAmmo(playerPed, weaponHash, 0) -- 移除剩余的子弹
            end
    end)

    -- 移除武器组件事件
    RegisterNetEvent('esx:removeWeaponComponent')
    AddEventHandler('esx:removeWeaponComponent', function(weaponName, weaponComponent)
            local playerPed  = PlayerPedId()
            local weaponHash = GetHashKey(weaponName)
            local componentHash = ESX.GetWeaponComponent(weaponName, weaponComponent).hash

            RemoveWeaponComponentFromPed(playerPed, weaponHash, componentHash)
    end)

    -- 传送事件
    RegisterNetEvent('esx:teleport')
    AddEventHandler('esx:teleport', function(pos)
            pos.x = pos.x + 0.0
            pos.y = pos.y + 0.0
            pos.z = pos.z + 0.0

            RequestCollisionAtCoord(pos.x, pos.y, pos.z)

            while not HasCollisionLoadedAroundEntity(PlayerPedId()) do
                    RequestCollisionAtCoord(pos.x, pos.y, pos.z)
                    Citizen.Wait(1)
            end

            SetEntityCoords(PlayerPedId(), pos.x, pos.y, pos.z)
    end)

    -- 设置职业事件(更新职业显示)
    RegisterNetEvent('esx:setJob')
    AddEventHandler('esx:setJob', function(job)
            if Config.EnableHud then
                    ESX.UI.HUD.UpdateElement('job', {
                            job_label   = job.label,
                            grade_label = job.grade_label
                    })
            end
    end)

    -- 加载IPL事件
    RegisterNetEvent('esx:loadIPL')
    AddEventHandler('esx:loadIPL', function(name)
            Citizen.CreateThread(function()
                    LoadMpDlcMaps()
                    RequestIpl(name)
            end)
    end)

    -- 卸载IPL事件
    RegisterNetEvent('esx:unloadIPL')
    AddEventHandler('esx:unloadIPL', function(name)
            Citizen.CreateThread(function()
                    RemoveIpl(name)
            end)
    end)

    -- 播放动画事件
    RegisterNetEvent('esx:playAnim')
    AddEventHandler('esx:playAnim', function(dict, anim)
            Citizen.CreateThread(function()
                    local playerPed = PlayerPedId()
                    RequestAnimDict(dict)

                    while not HasAnimDictLoaded(dict) do
                            Citizen.Wait(1)
                    end

                    TaskPlayAnim(playerPed, dict, anim, 1.0, -1.0, 20000, 0, 1, true, true, true)
            end)
    end)

    -- 播放表情事件
    RegisterNetEvent('esx:playEmote')
    AddEventHandler('esx:playEmote', function(emote)
            Citizen.CreateThread(function()

                    local playerPed = PlayerPedId()

                    TaskStartScenarioInPlace(playerPed, emote, 0, false);
                    Citizen.Wait(20000)
                    ClearPedTasks(playerPed)

            end)
    end)

    -- 生成车辆事件
    RegisterNetEvent('esx:spawnVehicle')
    AddEventHandler('esx:spawnVehicle', function(model)
            local playerPed = PlayerPedId()
            local coords    = GetEntityCoords(playerPed)

            ESX.Game.SpawnVehicle(model, coords, 90.0, function(vehicle)
                    TaskWarpPedIntoVehicle(playerPed,  vehicle, -1)
            end)
    end)

    -- 生成物体事件
    RegisterNetEvent('esx:spawnObject')
    AddEventHandler('esx:spawnObject', function(model)
            local playerPed = PlayerPedId()
            local coords    = GetEntityCoords(playerPed)
            local forward   = GetEntityForwardVector(playerPed)
            local x, y, z   = table.unpack(coords + forward * 1.0)

            ESX.Game.SpawnObject(model, {
                    x = x,
                    y = y,
                    z = z
            }, function(obj)
                    SetEntityHeading(obj, GetEntityHeading(playerPed))
                    PlaceObjectOnGroundProperly(obj)
            end)
    end)

    -- 拾取事件
    RegisterNetEvent('esx:pickup')
    AddEventHandler('esx:pickup', function(id, label, player)
            local ped     = GetPlayerPed(GetPlayerFromServerId(player))
            local coords  = GetEntityCoords(ped)
            local forward = GetEntityForwardVector(ped)
            local x, y, z = table.unpack(coords + forward * -2.0)

            ESX.Game.SpawnLocalObject('prop_money_bag_01', {
                    x = x,
                    y = y,
                    z = z - 2.0,
            }, function(obj)
                    SetEntityAsMissionEntity(obj, true, false)
                    PlaceObjectOnGroundProperly(obj)

                    pickups = {
                            id = id,
                            obj = obj,
                            label = label,
                            inRange = false,
                            coords = {
                                    x = x,
                                    y = y,
                                    z = z
                            }
                    }
            end)
    end)

    -- 移除拾取事件
    RegisterNetEvent('esx:removePickup')
    AddEventHandler('esx:removePickup', function(id)
            ESX.Game.DeleteObject(pickups.obj)
            pickups = nil
    end)

    -- 拾取武器事件
    RegisterNetEvent('esx:pickupWeapon')
    AddEventHandler('esx:pickupWeapon', function(weaponPickup, weaponName, ammo)
            local playerPed = PlayerPedId()
            local pickupCoords = GetOffsetFromEntityInWorldCoords(playerPed, 2.0, 0.0, 0.5)
            local weaponHash = GetHashKey(weaponPickup)

            CreateAmbientPickup(weaponHash, pickupCoords, 0, ammo, 1, false, true)
    end)

    -- 生成NPC事件
    RegisterNetEvent('esx:spawnPed')
    AddEventHandler('esx:spawnPed', function(model)
            model           = (tonumber(model) ~= nil and tonumber(model) or GetHashKey(model))
            local playerPed = PlayerPedId()
            local coords    = GetEntityCoords(playerPed)
            local forward   = GetEntityForwardVector(playerPed)
            local x, y, z   = table.unpack(coords + forward * 1.0)

            Citizen.CreateThread(function()
                    RequestModel(model)

                    while not HasModelLoaded(model) do
                            Citizen.Wait(1)
                    end

                    CreatePed(5, model, x, y, z, 0.0, true, false)
            end)
    end)

    -- 删除车辆事件
    RegisterNetEvent('esx:deleteVehicle')
    AddEventHandler('esx:deleteVehicle', function()
            local playerPed = PlayerPedId()
            local vehicle   = ESX.Game.GetVehicleInDirection()

            if IsPedInAnyVehicle(playerPed, true) then
                    vehicle = GetVehiclePedIsIn(playerPed, false)
            end

            if DoesEntityExist(vehicle) then
                    ESX.Game.DeleteVehicle(vehicle)
            end
    end)

    -- 禁用暂停菜单时显示HUD
    if Config.EnableHud then
            Citizen.CreateThread(function()
                    while true do
                            Citizen.Wait(300)

                            if IsPauseMenuActive() and not isPaused then
                                    isPaused = true
                                    TriggerEvent('es:setMoneyDisplay', 0.0)
                                    ESX.UI.HUD.SetDisplay(0.0)
                            elseif not IsPauseMenuActive() and isPaused then
                                    isPaused = false
                                    TriggerEvent('es:setMoneyDisplay', 1.0)
                                    ESX.UI.HUD.SetDisplay(1.0)
                            end
                    end
            end)
    end

    -- 保存装备
    Citizen.CreateThread(function()
            while true do
                    Citizen.Wait(5000)

                    local playerPed      = PlayerPedId()
                    local loadout        = {}
                    local loadoutChanged = false

                    if IsPedDeadOrDying(playerPed) then
                            isLoadoutLoaded = false
                    end

                    for k,v in ipairs(Config.Weapons) do
                            local weaponName = v.name
                            local weaponHash = GetHashKey(weaponName)
                            local weaponComponents = {}

                            if HasPedGotWeapon(playerPed, weaponHash, false) and weaponName ~= 'WEAPON_UNARMED' then
                                    local ammo = GetAmmoInPedWeapon(playerPed, weaponHash)

                                    for k2,v2 in ipairs(v.components) do
                                            if HasPedGotWeaponComponent(playerPed, weaponHash, v2.hash) then
                                                    table.insert(weaponComponents, v2.name)
                                            end
                                    end

                                    if not lastLoadout or lastLoadout ~= ammo then
                                            loadoutChanged = true
                                    end

                                    lastLoadout = ammo

                                    table.insert(loadout, {
                                            name = weaponName,
                                            ammo = ammo,
                                            label = v.label,
                                            components = weaponComponents
                                    })
                            else
                                    if lastLoadout then
                                            loadoutChanged = true
                                    end

                                    lastLoadout = nil
                            end
                    end

                    if loadoutChanged and isLoadoutLoaded then
                            ESX.PlayerData.loadout = loadout
                            TriggerServerEvent('esx:updateLoadout', loadout)
                    end
            end
    end)

    -- 菜单交互
    --[[
    Citizen.CreateThread(function()
            while true do
                    Citizen.Wait(0)

                    if IsControlJustReleased(0, 289) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
                            ESX.ShowInventory()
                    end
            end
    end)
    ]]

    -- 禁用通缉等级
    if Config.DisableWantedLevel then
            Citizen.CreateThread(function()
                    while true do
                            Citizen.Wait(0)

                            local playerId = PlayerId()
                            if GetPlayerWantedLevel(playerId) ~= 0 then
                                    SetPlayerWantedLevel(playerId, 0, false)
                                    SetPlayerWantedLevelNow(playerId, false)
                            end
                    end
            end)
    end

    -- 拾取
    Citizen.CreateThread(function()
            while true do
                    Citizen.Wait(0)

                    local playerPed = PlayerPedId()
                    local coords = GetEntityCoords(playerPed)
                   
                    -- 如果附近没有拾取物,则稍微等一下以节省性能
                    if next(pickups) == nil then
                            Citizen.Wait(500)
                    end

                    for k,v in pairs(pickups) do
                            local distance = GetDistanceBetweenCoords(coords, v.coords.x, v.coords.y, v.coords.z, true)
                            local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()

                            if distance < 3 and distance > 0 and not v.inRange then
                                    v.inRange = true
                                    ESX.ShowHelpNotification(_U('press_e_pickup', v.label))
                            elseif distance > 3 and v.inRange then
                                    v.inRange = false
                            end

                            if IsControlJustReleased(0, 38) and distance < 3 and closestDistance > 5 and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
                                    TriggerServerEvent('esx:pickup', v.id)
                            end
                    end
            end
    end)
    回复

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|Archiver|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

    GMT+8, 2024-10-12 08:42 , Processed in 0.077237 second(s), 9 queries , Gzip On, Redis On.

    Powered by Discuz! X3.4

    © 2001-2013 ELITE论坛【技术无价-分享快乐】

    快速回复 返回顶部 返回列表