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

[有效回答] 翻一页

[复制链接]

升级进度: 83%

king1204 发表于 2024-5-16 22:01:59 | 显示全部楼层 |阅读模式
  • https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R

  • Config = {}
    https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh

    https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
    --[[
  • https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T

  • ▀█▀ █▀▀ █▀▀ ▀█ █▄█   █▀▀ █▀█ █▀█ █▀▀   █▀▄ █▀▀ █░█ █▀▀ █░░ █▀█ █▀█ █▀▄▀█ █▀▀ █▄░█ ▀█▀https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
    ░█░ ██▄ ██▄ █▄ ░█░   █▄▄ █▄█ █▀▄ ██▄   █▄▀ ██▄ ▀▄▀ ██▄ █▄▄ █▄█ █▀▀ █░▀░█ ██▄ █░▀█ ░█░https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
    https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
    https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
    Config.Lang = 'en'

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


    Config.Debug = true                       -- if you want to see debug messages in console
  • https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W

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

    Config.TargetResource = 'ox_target'       -- supported: ox_target, qb-target
  • https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0

  • Config.InventoryResource = 'ox_inventory' -- supported: ox_inventory, qb-inventory, ps-inventory, qs-inventoryhttps://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
    Config.SQLResource = 'oxmysql'            -- supported: oxmysql, mysql-async, ghmattimysqlhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
  • https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0

  • Config.UseCommand = true                  -- if you want to use command to give starter pack to playerhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
    Config.Command = 'starterpack'            -- command to give starter package to player
    https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh

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

  • Config.UseTarget = true                   -- if you want to use target script to give starter pack to player
    https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3

    Config.Target = {https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
        ped = 'a_m_y_business_03',            -- https://docs.fivem.net/docs/game-references/ped-models/https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
        label = 'Get your starter pack',https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
        receiving_radius = 20.0,              -- radius to receive the starter pack
  • https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8

  •     coords = vec4(-1040.479126, -2731.582520, 20.164062, 238.110229),
  • https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1

  •     distance = 2.0,https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
    }
    https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop

    https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
    Config.StarterPackItems = { -- items that will be given to player
    https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H

        { item = 'bread',    amount = 5 },
    https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop

        { item = 'water',    amount = 5 },
    https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx

        { item = 'phone',    amount = 1 },https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
        { item = 'lockpick', amount = 5 },https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
        { item = 'money',    amount = 5000 },
    https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C

    }

    https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9 https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2


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

  • Config.EnableStarterVehicle = true -- if you want to give starter vehicle to player不影响正文阅读
    Config.StarterVehicle = {
    https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T

        model = 'adder',               -- https://docs.fivem.net/docs/game-references/vehicle-models/
  • https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz

  •     teleport_player = true,        -- player will be teleported to the vehicle

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

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


        vehicle_spawns = {             -- vehicle spawn points
  • https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst

  •         ["1"] = vector4(-1039.02, -2727.53, 19.65, 243.17),
    https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G

            ["2"] = vector4(-1043.3, -2725.09, 19.65, 241.12),https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
            ["3"] = vector4(-1047.57, -2722.66, 19.65, 240.54),https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
            ["4"] = vector4(-1034.38, -2719.0, 19.65, 240.52),
    https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H

            ["5"] = vector4(-1038.51, -2716.53, 19.64, 240.34),https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
        },

    https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh

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


        fuel = 100.0, -- fuel level of the vehicle
    https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H

    }https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
    https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
    Config.EnableAlertDialog = true -- if you want to use alert dialog to give a short message to the playerhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
    Config.Dialog = {https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
        title = 'TCD Roleplay Server',https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
        message = 'Welcome to the server, I hope you enjoy your stay. make sure to read the **rules** and have fun! \n\nDo you want to receive the starter pack?',
  • https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef

  • }
    https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C

    https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
    ---@param vehicle anyhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
    ---@param fuel numberhttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
    ---@decription Set fuel level of the vehicle by default it uses LegacyFuelhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
    Config.SetFuel = function(vehicle, fuel)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
        exports.LegacyFuel:SetFuel(vehicle, fuel)https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
    endhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop

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


    ---@param vehicle anyhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
    ---@return string
    https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G

    ---@decription If you have a custom vehicle key system you can give the key to the player
    https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G

    Config.GiveKey = function(vehicle)
    https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N

        local Core, Framework = GetCore()https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
        if Framework == "esx" then不要乱来哦
            -- ESX Vehicle Key System
    https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7

        elsehttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
            TriggerEvent("vehiclekeys:client:SetOwner", Core.Functions.GetPlate(vehicle))https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
        end
    https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R

    endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
    https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh

    Config.Notification = function(message, type, is_server, src)
  • https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef

  •     local Core, Framework = GetCore()
    https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1

        if is_server then

    https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz


            if Framework == "esx" then

    https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q


                TriggerClientEvent("esx:showNotification", src, message)
  • https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T

  •         elsehttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
                TriggerClientEvent('QBCore:Notify', src, message, type, 5000)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
            endhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
        elsehttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
            if Framework == "esx" thenhttps://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
                TriggerEvent("esx:showNotification", message)

    https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U


            elsehttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
                TriggerEvent('QBCore:Notify', message, type, 5000)https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
            endhttps://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
        end

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


    endhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
    https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
    Config.Locale = {https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
        ['en'] = {https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
            ['received'] = 'You have already received your starter pack',https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
            ['success'] = 'You have received your starter pack, Enjoy!',https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
            ['canceled'] = 'You have canceled the starter pack',
    https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx

            ['not_near_receiving_point'] = 'You are not near the receiving point',https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
            ['no_available_spawn'] = 'Possible area for vehicle spawn is occupied',https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
            ['player_in_vehicle'] = 'You can\'t receive the starter pack while in the vehicle',https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
        },
  • https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst

  • }https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
    https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx

    https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O

  • https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
  • https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
    https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
    https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv

  • https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
  • 回复 论坛版权

    使用道具 举报

    ChatGPT 发表于 2024-5-16 22:02:09 | 显示全部楼层
    这段代码是一个配置文件,用于设置玩家加入游戏时的初始设置,包括语言、调试模式、使用的资源、是否使用命令或目标脚本来给玩家起始物品等等。其中包括了一些注释以及函数的定义和描述。此段代码应该是放在服务器的脚本文件server.lua中。
    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2024-11-10 20:53 , Processed in 0.066836 second(s), 10 queries , Gzip On, Redis On.

    Powered by Discuz! X3.4

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

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