搜索
查看: 58|回复: 2
收起左侧

[有效回答] 汉化

[复制链接]

升级进度: 88%

zmx092800 发表于 2024-10-2 12:23:57 | 显示全部楼层 |阅读模式
ESX = nil
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N

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

https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5


https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0 https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc


https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
local invaderlist = {}
  • https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A

  • https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
    RegisterNetEvent('lifeinvader:instert')
    https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S

    AddEventHandler('lifeinvader:instert', function(text)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
    https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L

        local xPlayer = ESX.GetPlayerFromId(_source)
  • https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V

  •     table.insert(invaderlist, {name = GetPlayerName(_source), text = text })
  • https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P

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

  • end)
    https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1

    https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
    ESX.RegisterServerCallback('delion_tablet:getstarted', function(src, cb)https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
        local xPlayer = ESX.GetPlayerFromId(src)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
        local xInfo = {}
    https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7

        local vehicles = 0
  • https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4

  •     local properties = 0https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
    https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
                MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE owner = @identifier', {['@identifier'] = xPlayer.identifier}, function(result1)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
                    for i,k in pairs(result1) dohttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
                        vehicles = vehicles + 1https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
                    endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
                    xInfo.vehicles = vehicles
  • https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4

  • https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
            MySQL.Async.fetchAll('SELECT * FROM owned_properties WHERE owner = @identifier', {['@identifier'] = xPlayer.identifier}, function(result2)这是干扰码
                for i,k in pairs(result2) do
    https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L

                    properties = properties + 1
  • https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K

  •             endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
        xInfo.properties = properties

    https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn

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


    https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
                    MySQL.Async.fetchAll("SELECT firstname, lastname FROM users WHERE identifier = @identifier", { ["@identifier"] = xPlayer.identifier }, function(result)https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
                            xInfo.fullname = result[1].firstname .. ' ' .. result[1].lastname

    https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S

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


                        cb(xInfo, serveritems)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
                    end)
    https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U

                 end)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
              end)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
    end)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
    ESX.RegisterServerCallback('del_tablet:loadImmos', function(source, cb)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
            local ownedImmos = {}
    https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh

            local s = sourcehttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
            local x = ESX.GetPlayerFromId(s)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
           
    https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh

            MySQL.Async.fetchAll('SELECT * FROM owned_properties WHERE `owner` = @owner', {['@owner'] = x.identifier}, function(properties)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
  • https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U

  •                 for _,v in pairs(properties) dohttps://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
                            table.insert(ownedImmos, {name = v.name, rented = v.rented, price = v.price})

    https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K?pwd=tuv5


                    endhttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
                    cb(ownedImmos)https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
            end)https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
    https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh

    end)

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

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


    https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
    ESX.RegisterServerCallback('delion_tablet:loadVehicles', function(source, cb)
    https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1

            local ownedCars = {}https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
            local s = sourcehttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
            local x = ESX.GetPlayerFromId(s)

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


            https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
            MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE `owner` = @owner', {['@owner'] = x.identifier}, function(vehicles)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1

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


                    for _,v in pairs(vehicles) dohttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
                            local vehicle = json.decode(v.vehicle)
    https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y

                            table.insert(ownedCars, {vehicle = vehicle, stored = v.stored, plate = v.plate})https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
                    endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
                    cb(ownedCars)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
            end)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
    https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
    end)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
    https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
    ESX.RegisterServerCallback('delion_tablet:loadUsers', function(source, cb)https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
            local userlist = {}https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
            local s = sourcehttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
            local x = ESX.GetPlayerFromId(s)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
            https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
            MySQL.Async.fetchAll('SELECT * FROM users WHERE `identifier` = @identifier', {['@identifier'] = x.identifier}, function(result)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
                            table.insert(userlist, {bank = result[1].bank, firstname = result[1].firstname, lastname = result[1].lastname, job = result[1].job, job_grade = result[1].job_grade, phone_number = result[1].phone_number})https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
            end)

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


            Citizen.Wait(1000)你好啊
            cb(userlist)
    https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S

    https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
    end)https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
    https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
    https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
    ESX.RegisterServerCallback('delion_tablet:invadermessages',function(source,cb)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
        if invaderlist ~= nil then

    https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8

    https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn


            cb(invaderlist)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
        end

    https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6 https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R


    end)

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


    https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
    ESX.RegisterServerCallback('delion_tablet:getItemAmount', function(source, cb, item)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
        local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
        local qtty = xPlayer.getInventoryItem(item).count

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

  • https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z

  •     cb(qtty)
    https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0

    end)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
    https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
    https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
    https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
    RegisterServerEvent('bank:transfer')https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
    AddEventHandler('bank:transfer', function(to, amountt)https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
        local _source = source
  • https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop

  •     local xPlayer = ESX.GetPlayerFromId(_source)
  • https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X

  •     local zPlayer = ESX.GetPlayerFromId(to)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
        local balance = 0https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
        if zPlayer ~= nil and GetPlayerEndpoint(to) ~= nil thenhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
            balance = xPlayer.getAccount('bank').moneyhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
            zbalance = zPlayer.getAccount('bank').moneyhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
            if tonumber(_source) == tonumber(to) thenhttps://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
             TriggerClientEvent(Config.notificationstrigger, _source, Config.notificationscolor, "BANKING", 'Du kannst dir selber kein Geld Überweisen!')https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
            elsehttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
                if balance <= 0 or balance < tonumber(amountt) or tonumber(amountt) <=
    https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef

                    0 then

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


                     TriggerClientEvent('notifications', _source, "red", "BANKING", 'Du hast zu wenig Geld!')https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
                elsehttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
                    xPlayer.removeAccountMoney('bank', tonumber(amountt))https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
                    zPlayer.addAccountMoney('bank', tonumber(amountt))https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
                    TriggerClientEvent(Config.notificationstrigger, _source, Config.notificationscolor, "BANKING", 'Du überwest ' ..amountt.. '$ zur ID:' ..to.. '' )https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
                    TriggerClientEvent(Config.notificationstrigger, to, Config.notificationscolor, "BANKING", 'Du bekommst ' ..amountt.. '$ von ' .._source.. '' )
    https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U

                endhttps://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
  • https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl

  •         endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
        end
    https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx

    https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
    end)
    https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N

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

    https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2 https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W

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

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

    https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
    回复 论坛版权

    使用道具 举报

    ChatGPT 发表于 2024-10-2 12:27:53 | 显示全部楼层
    以下是您提供的代码的汉化版本:
    ESX = nil
    
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    
    local invaderlist = {}
    
    RegisterNetEvent('lifeinvader:instert')
    AddEventHandler('lifeinvader:instert', function(text)
        local xPlayer = ESX.GetPlayerFromId(_source)
        table.insert(invaderlist, {name = GetPlayerName(_source), text = text })
    end)
    
    ESX.RegisterServerCallback('delion_tablet:getstarted', function(src, cb)
        local xPlayer = ESX.GetPlayerFromId(src)
        local xInfo = {}
        local vehicles = 0
        local properties = 0
    
        MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE owner = @identifier', {identifier = xPlayer.identifier}, function(result1)
            for i, k in pairs(result1) do
                vehicles = vehicles + 1
            end
            xInfo.vehicles = vehicles
    
            MySQL.Async.fetchAll('SELECT * FROM owned_properties WHERE owner = @identifier', {identifier = xPlayer.identifier}, function(result2)
                for i, k in pairs(result2) do
                    properties = properties + 1
                end
                xInfo.properties = properties
    
                MySQL.Async.fetchAll("SELECT firstname, lastname FROM users WHERE identifier = @identifier", {identifier = xPlayer.identifier}, function(result)
                    xInfo.fullname = result.firstname .. ' ' .. result.lastname
                    cb(xInfo, serveritems)
                end)
            end)
        end)
    end)
    
    ESX.RegisterServerCallback('del_tablet:loadImmos', function(source, cb)
        local ownedImmos = {}
        local s = source
        local x = ESX.GetPlayerFromId(s)
    
        MySQL.Async.fetchAll('SELECT * FROM owned_properties WHERE `owner` = @owner', {owner = x.identifier}, function(properties)
            for _, v in pairs(properties) do
                table.insert(ownedImmos, {name = v.name, rented = v.rented, price = v.price})
            end
            cb(ownedImmos)
        end)
    end)
    
    ESX.RegisterServerCallback('delion_tablet:loadVehicles', function(source, cb)
        local ownedCars = {}
        local s = source
        local x = ESX.GetPlayerFromId(s)
    
        MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE `owner` = @owner', {owner = x.identifier}, function(vehicles)
            for _, v in pairs(vehicles) do
                local vehicle = json.decode(v.vehicle)
                table.insert(ownedCars, {vehicle = vehicle, stored = v.stored, plate = v.plate})
            end
            cb(ownedCars)
        end)
    end)
    
    ESX.RegisterServerCallback('delion_tablet:loadUsers', function(source, cb)
        local userlist = {}
        local s = source
        local x = ESX.GetPlayerFromId(s)
    
        MySQL.Async.fetchAll('SELECT * FROM users WHERE `identifier` = @identifier', {identifier = x.identifier}, function(result)
            table.insert(userlist, {bank = result.bank, firstname = result.firstname, lastname = result.lastname, job = result.job, job_grade = result.job_grade, phone_number = result.phone_number})
        end)
        Citizen.Wait(1000)
        cb(userlist)
    end)
    
    ESX.RegisterServerCallback('delion_tablet:invadermessages', function(source, cb)
        if invaderlist ~= nil then
            cb(invaderlist)
        end
    end)
    
    ESX.RegisterServerCallback('delion_tablet:getItemAmount', function(source, cb, item)
        local xPlayer = ESX.GetPlayerFromId(source)
        local qtty = xPlayer.getInventoryItem(item).count
        cb(qtty)
    end)
    
    RegisterServerEvent('bank:transfer')
    AddEventHandler('bank:transfer', function(to, amountt)
        local _source = source
        local xPlayer = ESX.GetPlayerFromId(_source)
        local zPlayer = ESX.GetPlayerFromId(to)
        local balance = 0
        if zPlayer ~= nil and GetPlayerEndpoint(to) ~= nil then
            balance = xPlayer.getAccount('bank').money
            zbalance = zPlayer.getAccount('bank').money
            if tonumber(_source) == tonumber(to) then
                TriggerClientEvent(Config.notificationstrigger, _source, Config.notificationscolor, "银行", '你不能给自己转账!')
            else
                if balance

    请注意,代码中的某些部分可能需要根据具体的上下文进行调整。以上是对代码的基本汉化,您可以根据需要进一步修改。
    回复

    使用道具 举报

    ChatGPT 发表于 2024-10-2 12:31:56 | 显示全部楼层
    以下是您提供的代码的汉化版本:
    ESX = nil
    
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    
    local invaderlist = {}
    
    RegisterNetEvent('lifeinvader:instert')
    AddEventHandler('lifeinvader:instert', function(text)
        local xPlayer = ESX.GetPlayerFromId(_source)
        table.insert(invaderlist, {name = GetPlayerName(_source), text = text })
    end)
    
    ESX.RegisterServerCallback('delion_tablet:getstarted', function(src, cb)
        local xPlayer = ESX.GetPlayerFromId(src)
        local xInfo = {}
        local vehicles = 0
        local properties = 0
    
        MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE owner = @identifier', {['@identifier'] = xPlayer.identifier}, function(result1)
            for i, k in pairs(result1) do
                vehicles = vehicles + 1
            end
            xInfo.vehicles = vehicles
    
            MySQL.Async.fetchAll('SELECT * FROM owned_properties WHERE owner = @identifier', {['@identifier'] = xPlayer.identifier}, function(result2)
                for i, k in pairs(result2) do
                    properties = properties + 1
                end
                xInfo.properties = properties
    
                MySQL.Async.fetchAll("SELECT firstname, lastname FROM users WHERE identifier = @identifier", {['@identifier'] = xPlayer.identifier}, function(result)
                    xInfo.fullname = result.firstname .. ' ' .. result.lastname
                    cb(xInfo, serveritems)
                end)
            end)
        end)
    end)
    
    ESX.RegisterServerCallback('del_tablet:loadImmos', function(source, cb)
        local ownedImmos = {}
        local s = source
        local x = ESX.GetPlayerFromId(s)
    
        MySQL.Async.fetchAll('SELECT * FROM owned_properties WHERE `owner` = @owner', {['@owner'] = x.identifier}, function(properties)
            for _, v in pairs(properties) do
                table.insert(ownedImmos, {name = v.name, rented = v.rented, price = v.price})
            end
            cb(ownedImmos)
        end)
    end)
    
    ESX.RegisterServerCallback('delion_tablet:loadVehicles', function(source, cb)
        local ownedCars = {}
        local s = source
        local x = ESX.GetPlayerFromId(s)
    
        MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE `owner` = @owner', {['@owner'] = x.identifier}, function(vehicles)
            for _, v in pairs(vehicles) do
                local vehicle = json.decode(v.vehicle)
                table.insert(ownedCars, {vehicle = vehicle, stored = v.stored, plate = v.plate})
            end
            cb(ownedCars)
        end)
    end)
    
    ESX.RegisterServerCallback('delion_tablet:loadUsers', function(source, cb)
        local userlist = {}
        local s = source
        local x = ESX.GetPlayerFromId(s)
    
        MySQL.Async.fetchAll('SELECT * FROM users WHERE `identifier` = @identifier', {['@identifier'] = x.identifier}, function(result)
            table.insert(userlist, {bank = result.bank, firstname = result.firstname, lastname = result.lastname, job = result.job, job_grade = result.job_grade, phone_number = result.phone_number})
        end)
        Citizen.Wait(1000)
        cb(userlist)
    end)
    
    ESX.RegisterServerCallback('delion_tablet:invadermessages', function(source, cb)
        if invaderlist ~= nil then
            cb(invaderlist)
        end
    end)
    
    ESX.RegisterServerCallback('delion_tablet:getItemAmount', function(source, cb, item)
        local xPlayer = ESX.GetPlayerFromId(source)
        local qtty = xPlayer.getInventoryItem(item).count
        cb(qtty)
    end)
    
    RegisterServerEvent('bank:transfer')
    AddEventHandler('bank:transfer', function(to, amountt)
        local _source = source
        local xPlayer = ESX.GetPlayerFromId(_source)
        local zPlayer = ESX.GetPlayerFromId(to)
        local balance = 0
        if zPlayer ~= nil and GetPlayerEndpoint(to) ~= nil then
            balance = xPlayer.getAccount('bank').money
            zbalance = zPlayer.getAccount('bank').money
            if tonumber(_source) == tonumber(to) then
                TriggerClientEvent(Config.notificationstrigger, _source, Config.notificationscolor, "银行", '你不能给自己转账!')
            else
                if balance

    请注意,代码中的一些部分可能需要根据具体的上下文进行调整。以上是对代码的汉化,您可以根据需要进行进一步修改。
    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2024-11-25 03:24 , Processed in 0.098301 second(s), 10 queries , Gzip On, Redis On.

    Powered by Discuz! X3.4

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

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