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

帮我汉化且不修改源码

[复制链接]

升级进度: 22%

meimima 发表于 2024-10-29 17:35:03 | 显示全部楼层 |阅读模式
帮我汉化且不修改源码这是干扰码
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6

https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
if Config.Framework == "qbcore" thenhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
    QBCore = exports[Config.QBCoreName]:GetCoreObject()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
    https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
    QBCore.Functions.CreateUseableItem("drone", function(source, item)
  • https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1

  •         local src = sourcehttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
            TriggerClientEvent('dz-drone:client:InitiateDrone', src)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
        end)
  • 你好啊

  •    
  • https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E

  •     QBCore.Functions.CreateUseableItem("drone_lspd", function(source, item)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
            local src = sourcehttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
            TriggerClientEvent('dz-drone:client:InitiateDroneLSPD', src)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
        end)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
    elseif Config.Framework == "esx" thenhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
        if Config.IsESXLegacy thenhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
            ESX = exports[Config.ESXLegacyName]:getSharedObject()https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
        elsehttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
            ESX = nil
    https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9

            TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

    https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop

  • https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst

  •     endhttps://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
        https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
        ESX.RegisterUsableItem("drone", function(source)

    https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6


            local src = sourcehttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
            TriggerClientEvent('dz-drone:client:InitiateDrone', src)https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
        end)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
        https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
        ESX.RegisterUsableItem("drone_lspd", function(source)https://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
            local src = source

    https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1 https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst


            local Player = ESX.GetPlayerFromId(src)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
            if (Player.job.name == "admin") or (Player.job.name == "agent") or (Player.job.name == "police") thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
                TriggerClientEvent('dz-drone:client:InitiateDroneLSPD', src)

    https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef


            elsehttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
                TriggerClientEvent('dz-drone:client:Notify', src, 'You\'re not authorised to use this drone', 2)https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
            endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
        end)https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
    end
  • https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P

  • https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
    RegisterNetEvent('dz-drone:server:DoSyncDrone', function(drone)

    https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst

    https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop


        TriggerClientEvent('dz-drone:server:DoSyncDrone', -1, drone)
  • https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P

  • end)https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
  • https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W

  • RegisterNetEvent('dz-drone:server:PlayerSound', function(sound, coords)
  • https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P

  •     TriggerClientEvent('dz-drone:server:PlayerSound', -1, sound, coords)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
    end)
    https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6

    https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7 https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx


    RegisterNetEvent('dz-drone:server:GetTargetPlayerInformations', function(target)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
        local src = sourcehttps://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
        local Target = tonumber(target)https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
        local TargetInfo = {
    https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4

            Title = "Unknown",

    https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B

  • https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1

  •         SubTitle = "Target is not found in database",
    https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6

            Infos = {}

    https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F


        }https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
        if (Config.Framework == "qbcore") and (QBCore ~= nil) thenhttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
            local Player = QBCore.Functions.GetPlayer(Target)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
            if Player then哈哈
                TargetInfo = {https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
                    Title = Player.PlayerData.charinfo.firstname,https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
                    SubTitle = "Target ID: "..Target,
    https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij

                    Infos = {https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
                        '岛民姓名: '..Player.PlayerData.charinfo.firstname,https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
                        'Lastname: '..Player.PlayerData.charinfo.lastname,
    https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3

                        'Birthdate: '..Player.PlayerData.charinfo.birthdate,
    https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3

                        'Gender: '..(Player.PlayerData.charinfo.gender == 0 and "Male" or "Female"),
    https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst

                        'Nationality: '..Player.PlayerData.charinfo.nationality,

    https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7

  • https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst

  •                 }
  • 你好啊

  •             }https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
                TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)
  • https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L

  •         end

    https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O


        elseif (Config.Framework == "esx") and (ESX ~= nil) then
  • 你好啊

  •         local Player = ESX.GetPlayerFromId(Target)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
            if Player thenhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
                if Config.SQL == "oxmysql" then
  • https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P

  •                 MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = ?', {Player.identifier}, function(result)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
                        if result[1] and result[1].firstname thenhttps://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
                            TargetInfo = {

    https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G


                                Title = result[1].firstname,https://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
                                SubTitle = "Target ID: "..Target,https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
                                Infos = {https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
                                    '岛民姓名: '..result[1].firstname,https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
                                    'Lastname: '..result[1].lastname,https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
                                    'Birthdate: '..result[1].dateofbirth,https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
                                    'Gender: '..(result[1].sex == "m" and "Male" or "Female"),
  • https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L

  •                                 'Height: '..result[1].height,https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
                                }

    https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2 https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8


                            }

    https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3 https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6


                        end
    https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I

                        TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)
    https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6

                    end)

    https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W


                elseif Config.SQL == "mysql-async" then

    https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr 不要乱来哦


                    MySQL.Async.fetchAll('SELECT * FROM `users` WHERE `identifier` = @identifier', {https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
                        ['@identifier'] = Player.identifier

    https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0


                    }, function(result)

    https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L

    https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3


                        if result[1] and result[1].firstname then
  • https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd

  •                         TargetInfo = {https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
                                Title = result[1].firstname,

    https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop


                                SubTitle = "Target ID: "..Target,
  • https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd

  •                             Infos = {

    https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr

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

  •                                 '岛民姓名: '..result[1].firstname,
  • https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd

  •                                 'Lastname: '..result[1].lastname,https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
                                    'Birthdate: '..result[1].dateofbirth,

    https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv

    不影响正文阅读


                                    'Gender: '..(result[1].sex == "m" and "Male" or "Female"),

    https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7

    https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E


                                    'Height: '..result[1].height,
  • https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q

  •                             }https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
                            }
    https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij

                        endhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
                        TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
                    end)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
                else

    https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1 https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M


                    print('^2[dz-drone] ^1Wrong SQL, script allows only \'oxmysql\' or \'mysql-async\'')https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
                    print('^2[dz-drone] ^1Wrong SQL, script allows only \'oxmysql\' or \'mysql-async\'')https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
                    print('^2[dz-drone] ^1Wrong SQL, script allows only \'oxmysql\' or \'mysql-async\'')https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
                    print('^2[dz-drone] ^1Wrong SQL, script allows only \'oxmysql\' or \'mysql-async\'')https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
                    print('^2[dz-drone] ^1Wrong SQL, script allows only \'oxmysql\' or \'mysql-async\'')
  • https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1

  •             endhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
            endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
        else

    https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv

    https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2


            TargetInfo = {https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
                Title = GetPlayerName(Target),https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
                SubTitle = "Target ID: "..Target,https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
                Infos = {}https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
            }https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
            TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
        end

    https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7 哈哈


    end)https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
    https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
    RegisterNetEvent('dz-drone:server:RemoveItem', function(item)https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
        local src = sourcehttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
        local ItemName = item
  • https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W

  •     if ItemName == nil then return end
    https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I

        if (Config.Framework == "qbcore") and (QBCore ~= nil) thenhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
            local Player = QBCore.Functions.GetPlayer(src)

    https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B

    https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5


            Player.Functions.RemoveItem(ItemName, 1)https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5
            TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[ItemName], "remove", 1)哈哈
        elseif (Config.Framework == "esx") and (ESX ~= nil) thenhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
            local Player = ESX.GetPlayerFromId(src)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
            Player.removeInventoryItem(ItemName, 1)https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
        endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
    end)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
    https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
    https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
    https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd

    -- ESX.RegisterCommand('drone', 'admin', function(xPlayer, args, showError)https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
        -- if (tonumber(args.droneId) == 2) thenhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
            -- xPlayer.triggerEvent('dz-drone:client:InitiateDroneLSPD')

    https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B

    https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T


        -- else
  • https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q

  •         -- xPlayer.triggerEvent('dz-drone:client:InitiateDrone')https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
        -- endhttps://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
    -- end, false, {help = 'Initiate Drone', arguments = {

    https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N


        -- {name = 'droneId', help = 'Drone Type : 1 = Normal Drone / 2 = LSPD Drone', type = 'number'},

    https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh


    -- }})

    https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B

    https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J


    https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
    https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
    https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
    https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
    https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1

    https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop

    https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl

    回复 论坛版权

    使用道具 举报

    ChatGPT 发表于 2024-10-29 17:39:54 | 显示全部楼层
    好的,以下是对你的代码进行汉化的版本,但源码保持不变:
    if Config.Framework == "qbcore" then
        QBCore = exports[Config.QBCoreName]:GetCoreObject()
        
        QBCore.Functions.CreateUseableItem("drone", function(source, item)
            local src = source
            TriggerClientEvent('dz-drone:client:InitiateDrone', src) -- 启动无人机
        end)
        
        QBCore.Functions.CreateUseableItem("drone_lspd", function(source, item)
            local src = source
            TriggerClientEvent('dz-drone:client:InitiateDroneLSPD', src) -- 启动LSPD无人机
        end)
    elseif Config.Framework == "esx" then
        if Config.IsESXLegacy then
            ESX = exports[Config.ESXLegacyName]:getSharedObject()
        else
            ESX = nil
            TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        end
        
        ESX.RegisterUsableItem("drone", function(source)
            local src = source
            TriggerClientEvent('dz-drone:client:InitiateDrone', src) -- 启动无人机
        end)
        
        ESX.RegisterUsableItem("drone_lspd", function(source)
            local src = source
            local Player = ESX.GetPlayerFromId(src)
            if (Player.job.name == "admin") or (Player.job.name == "agent") or (Player.job.name == "police") then
                TriggerClientEvent('dz-drone:client:InitiateDroneLSPD', src) -- 启动LSPD无人机
            else
                TriggerClientEvent('dz-drone:client:Notify', src, '您没有使用此无人机的权限', 2) -- 无权限通知
            end
        end)
    end
    
    RegisterNetEvent('dz-drone:server:DoSyncDrone', function(drone)
        TriggerClientEvent('dz-drone:server:DoSyncDrone', -1, drone) -- 同步无人机
    end)
    
    RegisterNetEvent('dz-drone:server:PlayerSound', function(sound, coords)
        TriggerClientEvent('dz-drone:server:PlayerSound', -1, sound, coords) -- 播放声音
    end)
    
    RegisterNetEvent('dz-drone:server:GetTargetPlayerInformations', function(target)
        local src = source
        local Target = tonumber(target)
        local TargetInfo = {
            Title = "未知",
            SubTitle = "目标在数据库中未找到",
            Infos = {}
        }
        if (Config.Framework == "qbcore") and (QBCore ~= nil) then
            local Player = QBCore.Functions.GetPlayer(Target)
            if Player then
                TargetInfo = {
                    Title = Player.PlayerData.charinfo.firstname,
                    SubTitle = "目标ID: "..Target,
                    Infos = {
                        '岛民姓名: '..Player.PlayerData.charinfo.firstname,
                        '姓: '..Player.PlayerData.charinfo.lastname,
                        '出生日期: '..Player.PlayerData.charinfo.birthdate,
                        '性别: '..(Player.PlayerData.charinfo.gender == 0 and "男" or "女"),
                        '国籍: '..Player.PlayerData.charinfo.nationality,
                    }
                }
                TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)
            end
        elseif (Config.Framework == "esx") and (ESX ~= nil) then
            local Player = ESX.GetPlayerFromId(Target)
            if Player then
                if Config.SQL == "oxmysql" then
                    MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = ?', {Player.identifier}, function(result)
                        if result[1] and result[1].firstname then
                            TargetInfo = {
                                Title = result[1].firstname,
                                SubTitle = "目标ID: "..Target,
                                Infos = {
                                    '岛民姓名: '..result[1].firstname,
                                    '姓: '..result[1].lastname,
                                    '出生日期: '..result[1].dateofbirth,
                                    '性别: '..(result[1].sex == "m" and "男" or "女"),
                                    '身高: '..result[1].height,
                                }
                            }
                        end
                        TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)
                    end)
                elseif Config.SQL == "mysql-async" then
                    MySQL.Async.fetchAll('SELECT * FROM `users` WHERE `identifier` = @identifier', {
                        ['@identifier'] = Player.identifier
                    }, function(result)
                        if result[1] and result[1].firstname then
                            TargetInfo = {
                                Title = result[1].firstname,
                                SubTitle = "目标ID: "..Target,
                                Infos = {
                                    '岛民姓名: '..result[1].firstname,
                                    '姓: '..result[1].lastname,
                                    '出生日期: '..result[1].dateofbirth,
                                    '性别: '..(result[1].sex == "m" and "男" or "女"),
                                    '身高: '..result[1].height,
                                }
                            }
                        end
                        TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)
                    end)
                else
                    print('^2 ^1错误的SQL,脚本仅允许使用\'oxmysql\'或\'mysql-async\'')
                end
            end
        else
            TargetInfo = {
                Title = GetPlayerName(Target),
                SubTitle = "目标ID: "..Target,
                Infos = {}
            }
            TriggerClientEvent('dz-drone:client:TargetPlayerInformations', src, TargetInfo)
        end
    end)
    
    RegisterNetEvent('dz-drone:server:RemoveItem', function(item)
        local src = source
        local ItemName = item
        if ItemName == nil then return end
        if (Config.Framework == "qbcore") and (QBCore ~= nil) then
            local Player = QBCore.Functions.GetPlayer(src)
            Player.Functions.RemoveItem(ItemName, 1)
            TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[ItemName], "remove", 1) -- 移除物品
        elseif (Config.Framework == "esx") and (ESX ~= nil) then
            local Player = ESX.GetPlayerFromId(src)
            Player.removeInventoryItem(ItemName, 1) -- 移除物品
        end
    end)
    
    -- ESX.RegisterCommand('drone', 'admin', function(xPlayer, args, showError)
        -- if (tonumber(args.droneId) == 2) then
            -- xPlayer.triggerEvent('dz-drone:client:InitiateDroneLSPD') -- 启动LSPD无人机
        -- else
            -- xPlayer.triggerEvent('dz-drone:client:InitiateDrone') -- 启动无人机
        -- end
    -- end, false, {help = '启动无人机', arguments = {
        -- {name = 'droneId', help = '无人机类型: 1 = 普通无人机 / 2 = LSPD无人机', type = 'number'},
    -- }})

    请注意,以上注释是对代码的功能进行描述,不修改源码。
    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2024-11-14 13:59 , Processed in 0.087850 second(s), 9 queries , Gzip On, Redis On.

    Powered by Discuz! X3.4

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

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