搜索
开启左侧

翻译

[复制链接]
猪猪侠 发表于 2024-5-17 18:05:32 | 显示全部楼层 |阅读模式

Config = {}

Config.Key = 38 -- [E] Key to open the interaction, check here the keys ID: https://docs.fivem.net/docs/game-references/controls/#controls

Config.AutoCamPosition = true -- If true it'll set the camera position automatically

Config.AutoCamRotation = true -- If true it'll set the camera rotation automatically

Config.HideMinimap = true -- If true it'll hide the minimap when interacting with an NPC

Config.UseOkokTextUI = true -- If true it'll use okokTextUI

Config.CameraAnimationTime = 1000 -- Camera animation time: 1000 = 1 second

Config.TalkToNPC = {
    {
        npc = 'u_m_y_abner',                                        -- Website too see peds name: https://wiki.rage.mp/index.php?title=Peds
        header = 'Employee of the',                                 -- Text over the name
        name = 'Pacific Bank',                                      -- Text under the header
        uiText = "Pacific Bank's Employee",                         -- Name shown on the notification when near the NPC
        dialog = 'Hey, how can I help you?',                        -- Text showm on the message bubble
        coordinates = vector3(254.17, 222.8, 105.3),                -- coordinates of NPC
        heading = 160.0,                                            -- Heading of NPC (needs decimals, 0.0 for example)
        camOffset = vector3(0.0, 0.0, 0.0),                         -- Camera position relative to NPC  | (only works if Config.AutoCamPosition = false)
        camRotation = vector3(0.0, 0.0, 0.0),                       -- Camera rotation                  | (only works if Config.AutoCamRotation = false)
        interactionRange = 2.5,                                     -- From how far the player can interact with the NPC
        options = {                                                 -- Options shown when interacting (Maximum 6 options per NPC)
            {'Where is the toilet?', 'okokTalk:toilet', 'c'},       -- 'c' for client
            {'How can I rob the bank?', 'okokTalk:rob', 'c'},       -- 's' for server (if you write something else it'll be server by default)
            {"I want to access my safe.", 'okokTalk:safe', 'c'},
            {"I want to make a new credit card.", 'okokTalk:card', 'c'},
            {"I lost my credit card.", 'okokTalk:lost', 'c'},
            {"Is Jennifer working?", 'okokTalk:jennifer', 'c'},
        },
        jobs = {                                                    -- Jobs that can interact with the NPC
            
        },
    },
    --[[
    -- This is the template to create new NPCs
    {
        npc = "",
        header = "",
        name = "",
        uiText = "",
        dialog = "",
        coordinates = vector3(0.0, 0.0, 0.0),
        heading = 0.0,
        camOffset = vector3(0.0, 0.0, 0.0),
        camRotation = vector3(0.0, 0.0, 0.0),
        interactionRange = 0,
        options = {
            {"", 'client:event', 'c'},
            {"", 'client:event', 'c'},
            {"", 'client:event', 'c'},
            {"", 'server:event', 's'},
            {"", 'server:event', 's'},
            {"", 'server:event', 's'},
        },
        jobs = {    -- Example jobs
            'police',
            'ambulance',
        },
    },
    ]]--


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-5-17 18:05:50 | 显示全部楼层
Config = {}

Config.Key = 38 -- 打开交互的按键,查看按键ID:https://docs.fivem.net/docs/game-references/controls/#controls

Config.AutoCamPosition = true -- 如果为true,则自动设置摄像机位置

Config.AutoCamRotation = true -- 如果为true,则自动设置摄像机旋转

Config.HideMinimap = true -- 如果为true,则在与NPC交互时隐藏小地图

Config.UseOkokTextUI = true -- 如果为true,则使用okokTextUI

Config.CameraAnimationTime = 1000 -- 摄像机动画时间:1000 = 1秒

Config.TalkToNPC = {
    {
        npc = 'u_m_y_abner',                                        -- 网站查看人物名称:https://wiki.rage.mp/index.php?title=Peds
        header = 'Employee of the',                                 -- 名字上方的文字
        name = 'Pacific Bank',                                      -- 头衔下方的文字
        uiText = "Pacific Bank's Employee",                         -- 当接近NPC时显示在通知中的名字
        dialog = '嗨,我能帮你什么?',                        -- 在对话气泡中显示的文字
        coordinates = vector3(254.17, 222.8, 105.3),                -- NPC的坐标
        heading = 160.0,                                            -- NPC的朝向(需要小数,例如0.0)
        camOffset = vector3(0.0, 0.0, 0.0),                         -- 相对于NPC的摄像机位置 | (仅在Config.AutoCamPosition = false时有效)
        camRotation = vector3(0.0, 0.0, 0.0),                       -- 摄像机旋转                  | (仅在Config.AutoCamRotation = false时有效)
        interactionRange = 2.5,                                     -- 玩家能够与NPC交互的距离
        options = {                                                 -- 与NPC交互时显示的选项(每个NPC最多6个选项)
            {'厕所在哪里?', 'okokTalk:toilet', 'c'},       -- 'c'表示客户端
            {'我怎样抢银行?', 'okokTalk:rob', 'c'},       -- 's'表示服务端(如果写其它内容,默认为服务端)
            {"我想要访问我的保险柜。", 'okokTalk:safe', 'c'}, 
            {"我想要办一张新信用卡。", 'okokTalk:card', 'c'}, 
            {"我丢失了我的信用卡。", 'okokTalk:lost', 'c'}, 
            {"Jennifer在工作吗?", 'okokTalk:jennifer', 'c'}, 
        },
        jobs = {                                                    -- 可以与NPC交互的职业
            
        },
    },
    --[[   
    -- 这是创建新NPC的模板
    {
        npc = "",
        header = "",
        name = "",
        uiText = "",
        dialog = "",
        coordinates = vector3(0.0, 0.0, 0.0),
        heading = 0.0,
        camOffset = vector3(0.0, 0.0, 0.0),
        camRotation = vector3(0.0, 0.0, 0.0),
        interactionRange = 0,
        options = {
            {"", 'client:event', 'c'},
            {"", 'client:event', 'c'},
            {"", 'client:event', 'c'}, 
            {"", 'server:event', 's'}, 
            {"", 'server:event', 's'}, 
            {"", 'server:event', 's'}, 
        },
        jobs = {    
            'police',
            'ambulance',
        },
    },
    ]]--
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-9 04:53 , Processed in 0.060741 second(s), 12 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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