搜索
开启左侧

每个字段保持不变,键值对中的英文转换为简体中文

[复制链接]
wx363880556 发表于 2024-8-19 23:55:45 | 显示全部楼层 |阅读模式


Config.BoxZones = {

    ["craft12"] = {
        name = "Craft12",
        coords = vector3(95.7, 3747.0, 41.83),
        length = 1.9,
        width = 1.5,
        heading = 0,
        debugPoly = false,
        minZ=40.44,
        maxZ=41.00,
        options = {
            {
                event = "inventory:client:WeaponAttachmentCrafting",
                icon = "fas fa-wrench",
                label = "Weapon Attachment Crafting",
            },
            {
                event = "inventory:client:Crafting",
                icon = "fas fa-wrench",
                label = "Item Crafting",
            },
        },
        distance = 2.5
    },

   


    ["mechaniccraft"] = {
        name = "Mechanic Toolbox",
        coords = vector3(136.7, -3051.41, 7.04),
        length = 1,
        width = 1,
        heading = 0,
        debugPoly = false,
        minZ=3.44,
        maxZ=7.44,
        options = {
            {
                type = "client",
                event = "craft:mechanicparts",
                icon = "fas fa-wrench",
                label = "Craft",
                job = "tuner",
            },
        },
        distance = 2.5
    },

   
    ["boxzone1"] = {                                                                        
        name = "MissionRowDutyClipboard",
        coords = vector3(441.7989, -982.0529, 30.67834),
        length = 0.45,
        width = 0.35,
        heading = 11.0,
        debugPoly = false,
        minZ = 30.77834,
        maxZ = 30.87834,
        options = {
            {
              type = "client",
              event = "toxic:policebadge",
              icon = "fas fa-sign-in-alt",
              label = "Request a Police Badge",
              job = "police",
            },
            {
                event = "cr-licensing:OpenUI",
                icon = "fas fa-sign-in-alt",
                label = "Create Business License",
                job = "police",
            },
        },
        distance = 3.5
    },

             ------ SkyDiving --------
             ["SkyDiving"] = {
                name = "SkyDiving",
                coords = vector3(1742.72, 3296.19, 41.11),
                length = 2.4,
                width = 2.4,
                heading = 355,
                debugPoly = false,
                minZ=40.2,
                maxZ=42.22,
                options = {
                    {
                        type = "server",
                        event = "randol_skydive:server:payforgroup",
                        icon = "fas fa-sign-in-alt",
                        label = "Group Jump ($750)",
                    },
                    {
                        type = "client",
                        event = "randol_skydive:client:ridewithbuddy",
                        icon = "fas fa-sign-in-alt",
                        label = "Join Friends",
                    },
                    {
                        type = "server",
                        event = "randol_skydive:server:solojump",
                        icon = "fas fa-sign-in-alt",
                        label = "Jump Alone",
                    }
                },
                distance = 2.5,
            },
        ------ cayo fly // boat --------
        ["CayoBoat"] = {
            name = "CayoBoat",
            coords = vector3(-863.142, -1324.34, 1.6051),
            length = 2.4,
            width = 2.4,
            heading = 355,
            debugPoly = false,
            minZ=1.2,
            maxZ=3.2,
            options = {
                {
                    type = "server",
                    event = "randol_cayoboat:server:takeboat",
                    icon = "fas fa-sign-in-alt",
                    label = "travel to the island",
                },
            },
            distance = 2.5,
        },
        ["CayoBoatReturn"] = {
            name = "CayoBoatReturn",
            coords = vector3(4929.89, -5174.55, 2.48),
            length = 2.4,
            width = 2.4,
            heading = 355,
            debugPoly = false,
            minZ=1.4,
            maxZ=3.4,
            options = {
                {
                    type = "server",
                    event = "randol_cayoboat:server:return",
                    icon = "fas fa-sign-in-alt",
                    label = "Travel to Lossantos",
                },
            },
            distance = 2.5,
        },
        ["CayoPlaneReturn"] = {
            name = "CayoPlaneReturn",
            coords = vector3(4436.98, -4482.86, 4.31),
            length = 2.4,
            width = 2.4,
            heading = 355,
            debugPoly = false,
            minZ=3.4,
            maxZ=5.4,
            options = {
                {
                    type = "server",
                    event = "randol_cayoplane:server:return",
                    icon = "fas fa-sign-in-alt",
                    label = "fly to Lossantos",
                },
            },
            distance = 2.5,
        },
        ["CayoPlane"] = {
            name = "CayoPlane",
            coords = vector3(-1043.14, -2746.89, 20.36),
            length = 2.4,
            width = 2.4,
            heading = 355,
            debugPoly = false,
            minZ=20.4,
            maxZ=22.4,
            options = {
                {
                    type = "server",
                    event = "randol_cayoplane:server:takeplane",
                    icon = "fas fa-sign-in-alt",
                    label = "fly to island",
                },
            },
            distance = 2.5,
        },
            
    ["PDArmory"] = {
        name = "PDArmory",
        coords = vector3(482.31, -995.27, 30.69),
        length = 2,
        width = 1,
        heading = 110,
        debugPoly = false,
        minZ = 45.77834,
        maxZ = 28.87834,
        options = {
            {
                type = "client",
                event = "police:openPDArmory",
                icon = "fas fa-clipboard",
                label = "Open Police Armory",
                job = "police",
            }
        },
        distance = 1.5
    },

}

Config.PolyZones = {

}

Config.TargetBones = {

    ["Vehicle"] = {
        bones = {
            "door_dside_f",
            "door_dside_r",
            "door_pside_f",
            "door_pside_r",
            "wheel_lr"
        },
        options = {
            {
                type = "client",
                event = "vehiclekeys:client:GiveKeys",
                icon = "fas fa-key",
                label = "/givekey",
            },
            {   
                type = "client",
                event = "police:client:PutPlayerInVehicle",
                icon = "fas fa-chevron-circle-left",
                label = "PLACE IN VEHICLE",
                job = {["police"] = 1, ["police"] = 2, ["police"] = 3, ["ambulance"] = 1, ["ambulance"] = 2, ["ambulance"] = 3},
             },
             {
                type = "client",
                event = "police:client:SetPlayerOutVehicle",
                icon = "fas fa-chevron-circle-right",
                label = "TAKE OUT OF VEHICLE",
                job = {["police"] = 1, ["ambulance"] = 2},
            },
            {
                type = "client",
                event = "QBCore:Command:DeleteVehicle",
                icon = "fas fa-car",
                label = "IMPOUND VEHICLE",
                job = 'police',
            },
            {
                type = "client",
                event = "toxic:impounf",
                icon = "fas fa-car",
                label = "IMPOUND VEHICLE",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "QBCore:Command:DeleteVehicle",
                icon = "fas fa-car",
                label = "IMPOUND VEHICLE",
                job = 'police',
            },
            {
                type = "client",
                event = "craft:vehmenu2",
                icon = "fas fa-wrench",
                label = "Examine Vehicle",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "mechanic:client:AdvancedRepairVehicle",
                icon = "fas fa-wrench",
                label = "REPAIR VEHICLE",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "mechanic:client:CleanVehicle",
                icon = "fas fa-hand-sparkles",
                label = "CLEAN VEHICLE",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "nc-trunk:client:GetIn",
                icon = "fas fa-user-secret",
                label = "GET IN TRUNK",
            },
            {
                type = "client",
                event = "vehicle:flipit",
                icon = "fas fa-user-secret",
                label = "Flip Car",
            },
        
        },
        distance = 2.5,
    },
    -- ["bones"] = {
    --      bones = {
    --          'wheel_lr',
    --      },
    --      options = {
    --    {
    --      type = "client",
    --      event = "lj-fuel:client:RefuelVehicle2",
    --      icon = "fas fa-gas-pump",
    --         --item = "weapon_petrolcan",
    --      label = "Refuel Vehicle 2",
    --    },
    --      },
    --        distance = 1.0
    --  },  
    ["mechanic"] = {
            bones = {
                "door_dside_f",
                "door_dside_r",
                "door_pside_f",
                "door_pside_r"
            },
            options = {
                {
                    type = "client",
                    event = "craft:vehmenu",
                    icon = "fas fa-key",
                    label = "Vehicle Menu",
                    job = "tuner",
                },
            },
            distance = 3.0
        },
}

Config.TargetModels = {

    ['weedpick'] = {
        models = `prop_weed_02`,
        options = {
            {
                type = "client",
                event = "weee:pick",
                icon = "fas fa-cannabis",
                label = "Picking Weed",
                --price = 5,
            },
        },
        distance = 2.5
    },

    ["apartment"] = {
        models = {-2048132532},
        options = {
            {
                type = 'client',
                event = 'apartments:client:LeaveApartment',
                icon = 'fas fa-door-open',
                label = "Leave Apartment",
            },
        },
        distance = 3.1
      },

    ['impaundgarage'] = {
        models = `s_m_y_cop_01`,
        options = {
            {
                type = "client",
                event = "nc-garages:open",
                icon = "fas fa-key",
                label = "Impaund",
                --price = 5,
            },
        },
        distance = 2.5
    },

    ["weedsell"] = {
        models = {
            "g_m_y_mexgang_01",
        },
        options = {
            {
                type = "client",
                event = "weed:sell",
                icon = "fas fa-cannabis",
                label = "Sell WeedBag",
            },
        },
        distance = 2.5,
    },



    ["burgershotgarage"] = {
        models = {
            "ig_floyd"
        },
        options = {
            {
                type = "client",
                event = "garage:BurgerShotGarage",
                icon = "fas fa-car",
                label = "BurgerShot Garage",
                job = "burgershot",
            }
        },
        distance = 2.5,
    },

    ["trashsearch"] = {
        models = {
            -1096777189,--normal small
            666561306,--big
            1437508529,--small circle
            -1426008804,--small open circle
            -228596739,--open small circle
            161465839,--werid blue small circle
            651101403,--open medium circle
            218085040,
            682791951,
            1511880420,

        },
        options = {
            {
                type = "client",
                event = "qb-trashsearch:client:searchtrash",
                icon = "fas fa-pencil-ruler",
                label = "Search Trash",
            },
        },
        distance = 2.1
    },


    ["atm"] = {
        models = {-870868698, -1126237515, -1364697528, 506770882, 150237004, -239124254},
        options = {
            {
                type = "client",
                event = "qb-banking:client:atm:openUI",
                icon = "fas fa-pencil-ruler",
                label = "Open ATM",
            },
        },
        distance = 2.1
      },
   
    ["VehicleRental"] = {
        models = {
            `cs_lazlow`,
        },
        options = {
            {
                type = "client",
                event = "qb-rental:openMenu",
                icon = "fas fa-car",
                label = "Rent Vehicle",
            },
        },
        distance = 4.0
    },



    ["PDGarage"] = {
        models = {
            `ig_trafficwarden`
        },
        options = {
            {
                event = "garage:menu",
                icon = "fas fa-shopping-cart",
                label = "Take out PD vehicle",
                job = "police",
               
            },
        },
        distance = 4.5,
    },
    ["ambugaraj"] = {
        models = {
            "u_m_y_baygor",
        },
        options = {
            {
                type = "client",
                event = "garage:ambulance",
                icon = "fas fa-car",
                label = "Ambulans Garage",
            },
        },
        distance = 5.5,
    },
}

Config.GlobalPedOptions = {

}

Config.GlobalVehicleOptions = {

}

Config.GlobalObjectOptions = {

}

Config.GlobalPlayerOptions = {
    options = {
        {
            type = "client",
            event = "police:client:CuffPlayerSoft",
            icon = 'fas fa-circle',
            label = 'Soft Cuff',
            job = 'police',
        },
        -- {
        --     type = "client",
        --     event = "hospital:client:TreatWounds",
        --     icon = 'fas fa-circle',
        --     label = 'Heal Wounds',
        --     job = 'ambulance',
        --     item = "bandage",
        -- },
        -- {
        --     type = "client",
        --     event = "hospital:client:RevivePlayer",
        --     icon = 'fas fa-circle',
        --     label = 'Revive Person',
        --     job = 'ambulance',
        --     item = "firstaid",
        -- },
        {

            type = "client",
            event = "police:client:RobPlayer",
            icon = 'fas fa-circle',
            label = 'Rob',
        },
        {
            type = "command",
            event = "stealshoes",
            icon = 'fas fa-hands',
            label = 'Steel Shoes',
        },
        {
            type = "client",
            event = "police:client:KidnapPlayer",
            icon = 'fas fa-circle',
            label = 'Kidnap Player',
        },
    },
      distance = 2.5,
}






回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-8-19 23:56:28 | 显示全部楼层
Config.BoxZones = {

    ["craft12"] = {
        name = "Craft12",
        coords = vector3(95.7, 3747.0, 41.83),
        length = 1.9,
        width = 1.5,
        heading = 0,
        debugPoly = false,
        minZ=40.44,
        maxZ=41.00,
        options = {
            {
                event = "inventory:client:WeaponAttachmentCrafting",
                icon = "fas fa-wrench",
                label = "武器附件制作", 
            },
            {
                event = "inventory:client:Crafting",
                icon = "fas fa-wrench",
                label = "物品制作", 
            },
        },
        distance = 2.5
    },

    ["mechaniccraft"] = {
        name = "机械工具箱",
        coords = vector3(136.7, -3051.41, 7.04),
        length = 1,
        width = 1,
        heading = 0,
        debugPoly = false,
        minZ=3.44,
        maxZ=7.44,
        options = {
            {
                type = "client",
                event = "craft:mechanicparts", 
                icon = "fas fa-wrench",
                label = "制作",
                job = "tuner",
            },
        },
        distance = 2.5
    },

    ["boxzone1"] = {                                                                         
        name = "MissionRowDutyClipboard",
        coords = vector3(441.7989, -982.0529, 30.67834),
        length = 0.45,
        width = 0.35,
        heading = 11.0,
        debugPoly = false,
        minZ = 30.77834,
        maxZ = 30.87834,
        options = {
            {
              type = "client",
              event = "toxic:policebadge",
              icon = "fas fa-sign-in-alt",
              label = "请求警察徽章",
              job = "police",
            },
            {
                event = "cr-licensing:OpenUI",
                icon = "fas fa-sign-in-alt",
                label = "创建商业执照",
                job = "police",
            },
        },
        distance = 3.5
    },

    ------ SkyDiving --------
    ["SkyDiving"] = {
        name = "跳伞",
        coords = vector3(1742.72, 3296.19, 41.11),
        length = 2.4,
        width = 2.4,
        heading = 355,
        debugPoly = false,
        minZ=40.2,
        maxZ=42.22,
        options = {
            {
                type = "server",
                event = "randol_skydive:server:payforgroup",
                icon = "fas fa-sign-in-alt",
                label = "团体跳伞 ($750)",
            },
            {
                type = "client",
                event = "randol_skydive:client:ridewithbuddy",
                icon = "fas fa-sign-in-alt",
                label = "与朋友一起跳",
            },
            {
                type = "server",
                event = "randol_skydive:server:solojump",
                icon = "fas fa-sign-in-alt",
                label = "单独跳伞",
            }
        },
        distance = 2.5,
    },

    ------ Cayo 飞机 // 船 --------
    ["CayoBoat"] = {
        name = "Cayo船",
        coords = vector3(-863.142, -1324.34, 1.6051),
        length = 2.4,
        width = 2.4,
        heading = 355,
        debugPoly = false,
        minZ=1.2,
        maxZ=3.2,
        options = {
            {
                type = "server",
                event = "randol_cayoboat:server:takeboat",
                icon = "fas fa-sign-in-alt",
                label = "旅行到岛上",
            },
        },
        distance = 2.5,
    },

    ["CayoBoatReturn"] = {
        name = "Cayo返回船",
        coords = vector3(4929.89, -5174.55, 2.48),
        length = 2.4,
        width = 2.4,
        heading = 355,
        debugPoly = false,
        minZ=1.4,
        maxZ=3.4,
        options = {
            {
                type = "server",
                event = "randol_cayoboat:server:return",
                icon = "fas fa-sign-in-alt",
                label = "返回Los Santos",
            },
        },
        distance = 2.5,
    },

    ["CayoPlaneReturn"] = {
        name = "Cayo返回飞机",
        coords = vector3(4436.98, -4482.86, 4.31),
        length = 2.4,
        width = 2.4,
        heading = 355,
        debugPoly = false,
        minZ=3.4,
        maxZ=5.4,
        options = {
            {
                type = "server",
                event = "randol_cayoplane:server:return",
                icon = "fas fa-sign-in-alt",
                label = "飞往Los Santos",
            },
        },
        distance = 2.5,
    },

    ["CayoPlane"] = {
        name = "Cayo飞机",
        coords = vector3(-1043.14, -2746.89, 20.36),
        length = 2.4,
        width = 2.4,
        heading = 355,
        debugPoly = false,
        minZ=20.4,
        maxZ=22.4,
        options = {
            {
                type = "server",
                event = "randol_cayoplane:server:takeplane",
                icon = "fas fa-sign-in-alt",
                label = "飞往岛屿",
            },
        },
        distance = 2.5,
    },
        
    ["PDArmory"] = {
        name = "警察武器库",
        coords = vector3(482.31, -995.27, 30.69),
        length = 2,
        width = 1,
        heading = 110,
        debugPoly = false,
        minZ = 45.77834,
        maxZ = 28.87834,
        options = {
            {
                type = "client",
                event = "police:openPDArmory",
                icon = "fas fa-clipboard",
                label = "打开警察武器库",
                job = "police",
            }
        },
        distance = 1.5
    }, 

}

Config.PolyZones = {

}

Config.TargetBones = {

    ["Vehicle"] = {
        bones = {
            "door_dside_f",
            "door_dside_r",
            "door_pside_f",
            "door_pside_r",
            "wheel_lr"
        },
        options = {
            {
                type = "client",
                event = "vehiclekeys:client:GiveKeys",
                icon = "fas fa-key",
                label = "/给钥匙",
            },
            {   
                type = "client",
                event = "police:client:PutPlayerInVehicle",
                icon = "fas fa-chevron-circle-left",
                label = "放入车辆",
                job = {["police"] = 1, ["police"] = 2, ["police"] = 3, ["ambulance"] = 1, ["ambulance"] = 2, ["ambulance"] = 3},
             },
             {
                type = "client",
                event = "police:client:SetPlayerOutVehicle",
                icon = "fas fa-chevron-circle-right",
                label = "从车辆中移出",
                job = {["police"] = 1, ["ambulance"] = 2},
            },
            {
                type = "client",
                event = "QBCore:Command:DeleteVehicle",
                icon = "fas fa-car",
                label = "扣押车辆",
                job = 'police',
            },
            {
                type = "client",
                event = "toxic:impounf",
                icon = "fas fa-car",
                label = "扣押车辆",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "QBCore:Command:DeleteVehicle",
                icon = "fas fa-car",
                label = "扣押车辆",
                job = 'police',
            },
            {
                type = "client",
                event = "craft:vehmenu2",
                icon = "fas fa-wrench",
                label = "检查车辆",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "mechanic:client:AdvancedRepairVehicle",
                icon = "fas fa-wrench",
                label = "修理车辆",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "mechanic:client:CleanVehicle",
                icon = "fas fa-hand-sparkles",
                label = "清洁车辆",
                job = 'mechanic',
            },
            {
                type = "client",
                event = "nc-trunk:client:GetIn",
                icon = "fas fa-user-secret",
                label = "进入后备箱",
            },
            {
                type = "client",
                event = "vehicle:flipit",
                icon = "fas fa-user-secret",
                label = "翻车",
            },
        },
        distance = 2.5,
    },

    ["mechanic"] = {
        bones = {
            "door_dside_f",
            "door_dside_r",
            "door_pside_f",
            "door_pside_r"
        },
        options = {
            {
                type = "client",
                event = "craft:vehmenu",
                icon = "fas fa-key",
                label = "车辆菜单",
                job = "tuner",
            },
        },
        distance = 3.0
    },
}

Config.TargetModels = {

    ['weedpick'] = {
        models = `prop_weed_02`,
        options = {
            {
                type = "client",
                event = "weee:pick", 
                icon = "fas fa-cannabis",
                label = "采摘大麻",
                --price = 5,
            },
        },
        distance = 2.5
    },

    ["apartment"] = {
        models = {-2048132532},
        options = {
            {
                type = 'client',
                event = 'apartments:client:LeaveApartment',
                icon = 'fas fa-door-open',
                label = "离开公寓",
            },
        },
        distance = 3.1
    },

    ['impaundgarage'] = {
        models = `s_m_y_cop_01`,
        options = {
            {
                type = "client",
                event = "nc-garages:open", 
                icon = "fas fa-key",
                label = "扣押",
                --price = 5,
            },
        },
        distance = 2.5
    },

    ["weedsell"] = {
        models = {
            "g_m_y_mexgang_01", 
        },
        options = {
            {
                type = "client",
                event = "weed:sell",
                icon = "fas fa-cannabis",
                label = "出售大麻袋",
            },
        },
        distance = 2.5,
    },

    ["burgershotgarage"] = {
        models = {
            "ig_floyd"
        },
        options = {
            {
                type = "client",
                event = "garage:BurgerShotGarage",
                icon = "fas fa-car",
                label = "BurgerShot 车库",
                job = "burgershot",
            }
        },
        distance = 2.5,
    },

    ["trashsearch"] = {
        models = {
            -1096777189,--普通小型
            666561306,--大型
            1437508529,--小型圆形
            -1426008804,--小型开放圆形
            -228596739,--开放小型圆形
            161465839,--奇怪的蓝色小型圆形
            651101403,--开放中型圆形
            218085040,
            682791951,
            1511880420,
        },
        options = {
            {
                type = "client",
                event = "qb-trashsearch:client:searchtrash",
                icon = "fas fa-pencil-ruler",
                label = "搜索垃圾",
            },
        },
        distance = 2.1
    },

    ["atm"] = {
        models = {-870868698, -1126237515, -1364697528, 506770882, 150237004, -239124254},
        options = {
            {
                type = "client",
                event = "qb-banking:client:atm:openUI",
                icon = "fas fa-pencil-ruler",
                label = "打开ATM",
            },
        },
        distance = 2.1
    },
    
    ["VehicleRental"] = {
        models = {
            `cs_lazlow`,
        },
        options = {
            {
                type = "client",
                event = "qb-rental:openMenu",
                icon = "fas fa-car",
                label = "租赁车辆",
            },
        },
        distance = 4.0
    },

    ["PDGarage"] = {
        models = {
            `ig_trafficwarden`
        },
        options = {
            {
                event = "garage:menu",
                icon = "fas fa-shopping-cart",
                label = "取出警车",
                job = "police",
            },
        },
        distance = 4.5,
    },

    ["ambugaraj"] = {
        models = {
            "u_m_y_baygor", 
        },
        options = {
            {
                type = "client",
                event = "garage:ambulance",
                icon = "fas fa-car",
                label = "救护车车库",
            },
        },
        distance = 5.5,
    },
}

Config.GlobalPedOptions = {

}

Config.GlobalVehicleOptions = {

}

Config.GlobalObjectOptions = {

}

Config.GlobalPlayerOptions = {
    options = {
        { 
            type = "client",
            event = "police:client:CuffPlayerSoft",
            icon = 'fas fa-circle',
            label = '软铐',
            job = 'police',
        },
        { 
            type = "client", 
            event = "police:client:RobPlayer", 
            icon = 'fas fa-circle', 
            label = '抢劫',
        },
        { 
            type = "command", 
            event = "stealshoes", 
            icon = 'fas fa-hands', 
            label = '偷鞋',
        },
        { 
            type = "client", 
            event = "police:client:KidnapPlayer", 
            icon = 'fas fa-circle', 
            label = '绑架玩家',
        },
    },
      distance = 2.5,
}
回复

使用道具 举报

 楼主| wx363880556 发表于 2024-8-19 23:57:40 | 显示全部楼层

Config.Peds = {

   
    -- ['tuner'] =  {
    --     model = 's_m_y_xmech_01',
    --     coords = vector4(149.0, -3050.15, 6.04, 56.86),
    --     gender = 'male',
    --     freeze = true,
    --     invincible = true,
    --     blockevents = true,
    --     scenario = "WORLD_HUMAN_CLIPBOARD",
    -- },
        

    ["Mechanic1"] = {
        model = 'mp_m_waremech_01',
        coords = vector4(-321.27, -131.41, 38.97, 95.98),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = {
            options = {
                {
                    type="client",
                    event = "openweaponshop",
                    icon = "fas fa-user-secret",
                    label = "Mechanic Shop",
                    job = "mechanic"
                }
            },
         distance = 3,
        }
    },
    ["Hunting"] = {
        model = "cs_hunter",
        coords = vector4(-776.06, 5602.81, 33.74, 253.75),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        target = {
            options = {
                {
                    event = "qb-hunting:client:interactionEvent",
                    icon = "fas fa-circle",
                    label = "Hunting Shop"
                },
                {
                    event = "nc-HuntingSell",
                    icon = "fas fa-circle",
                    label = "Sell Meet"
                }
            },
            distnace = 2.0
        },
    },
   
    --[5782] = {
     --   model = `u_f_y_dancerave_01`,
    --    coords = vector4(211.34, -796.97, 39.895, 295.35),
    --    currentpednumber = 0,
    --    target = {
    --      options = {
    --          {
    --              event = "openweaponshop",
    --              icon = 'fas fa-shopping-basket',
    --              label = 'Garage Cafe',
    --          }
    --      },
    --      distance = 2.0
    --    },
    --    freeze = true,
    --    blockevents = true,
    --    invincible = true,
    --  minusOne = true,
   -- },
    ["OxyPed"] = {
        model = 'a_m_m_og_boss_01',
        coords = vector4(-1563.44, -441.36, 36.96, 97.07),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = {
            options = {
                {
                    type="client",
                    event = "oxyrun:client:sendToOxy",
                    icon = "fas fa-user-secret",
                    label = "Start Oxy"
                }
            },
         distance = 3,
        }
    },

    ["Pharmacy"] = {
        model = 'g_m_y_lost_03',
        coords = vector4(2885.22, 1519.04, 24.97, 1.08),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = {
            options = {
                {
                    type="client",
                    event = "openweaponshop",
                    icon = "fas fa-user-secret",
                    label = "Open Pharmacy"
                }
            },
         distance = 3,
        }
    },

    ["OxyBoxPed"] = {
        model = 'a_m_m_salton_03',
        coords = vector4(-2981.43, 1586.23, 23.69, 13.68),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        target = {
            options = {
                {
                    type="client",
                    event = "oxyrun:client:getBox",
                    icon = "fas fa-user-secret",
                    label = "Grab Package"
                }
            },
         distance = 3,
        }
    },
   
   

    [123] = {
        model = 's_m_m_doctor_01',
        coords = vector4(328.67, -590.88, 28.8, 334.36),
        currentpednumber = 0,
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },

    ["sarapci"] = {
        model = 'mp_m_waremech_01',
        coords = vector4(1537.49, 1702.4, 109.67, 83.48),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = {
            options = {
                {
                    type="client",
                    event = "şş",
                    icon = "fas fa-user-secret",
                    label = "Wine Processing",
                    job = "vineyard"
                }
            },
         distance = 0,
        }
    },
   


    [659] = {
        model = `g_m_y_mexgang_01`,
        coords = vector4(-1164.92, -1566.67, 3.45, 307.22),
        gender = 'male',
        freeze = true,
        invincible = true,
        blockevents = true,
    },

    [126] = {

        ---tunershop----
        model = 's_m_y_xmech_01',
        coords = vector4(149.0, -3050.15, 6.04, 56.86),
        gender = 'male',
        target = {

           
            options = {
                {
                    event = "openweaponshop",
                    icon = 'fas fa-circle',
                    label = 'Open Shop',
                    job = 'tuner'
                }
            },
            distance = 2.0
        },
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = "WORLD_HUMAN_CLIPBOARD",
    },


    [20] = {
        model = 's_m_m_gaffer_01',
        coords = vector4(46.07, -1749.38, 29.64, 53.26),
        currentpednumber = 0,
        target = {
            options = {
                {
                    event = "openweaponshop",
                    icon = 'fas fa-circle',
                    label = 'Megamall',
                }
            },
            distance = 2.0
        },
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },
    [22] = {
        model = 's_m_y_ammucity_01',
        coords = vector4(23.530004, -1105.781, 29.797002, 145.90115),
        currentpednumber = 0,
        target = {
            options = {
                {
                    event = "openweaponshop",
                    icon = 'fas fa-circle',
                    label = 'Purchase Weapons',
                }
            },
            distance = 2.0
        },
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },


    [639] = {
        model = `a_f_y_business_02`, -- Model name as a hash.
        coords = vector4(-592.364, -929.826, 23.869, 92.42), -- (X, Y, Z, Heading)
        gender = 'female', -- The gender of the ped, used for the CreatePed native.
        scenario = 'WORLD_HUMAN_CLIPBOARD', -- Task Scenario
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },

    ["Bankpad2"] = {
        model = 'ig_bankman',
        coords = vector4(-112.24, 6471.07, 31.63, 131.64),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        target = {
          options = {
            {
                type = "client",
                event = "qb-banking:openBankScreen",
                icon = "fas fa-sign-in-alt",
                label = "Open Bank",
            },
         },
         distance = 1.5,
     },

    },


    ["Blackmarket"] = {
        model = 'a_f_y_juggalo_01',
        coords = vector4(-825.32, -108.8, 27.96, 165.9),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        target = {
          options = {
            {
                type = "client",
                event = "openweaponshop",
                icon = "fas fa-sign-in-alt",
                label = "blackmarket",
            },
         },
         distance = 1.5,
     },

    },

    ["applestore"] = {
        model = 'a_f_y_indian_01',
        coords = vector4(325.06, -284.91, 54.24, 341.92),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        target = {
          options = {
            {
                type = "client",
                event = "openweaponshop",
                icon = "fas fa-sign-in-alt",
                label = "Apple Store",
            },
         },
         distance = 1.5,
     },

    },

   
    ["GarbagePed"] = {
        model = 's_m_y_garbage',
        coords = vector4(-349.96, -1569.92, 25.22, 296.46),
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        target = {
          options = {
             {
                 type = "server",
                 event = "garbage:server:getGarbageJob",
                 icon = "fas fa-sign-in-alt",
                 label = "Get Garbage Job",
             },
             {
                 type = "client",
                 event = "garbage:getTruck",
                 icon = "fas fa-sign-in-alt",
                 label = "Get Garbage Truck",
             },
             {
                 type = "server",
                 event = "garbagejob:server:PayShift",
                 icon = "fas fa-sign-in-alt",
                 label = "Collect Pay Check",
             },
         },
         distance = 1.5,
     },
},

}


if Config.EnableDefaultOptions then
    function Config.ToggleDoor(vehicle, door)
        if GetVehicleDoorLockStatus(vehicle) ~= 2 then
            if GetVehicleDoorAngleRatio(vehicle, door) > 0.0 then
                SetVehicleDoorShut(vehicle, door, false)
            else
                SetVehicleDoorOpen(vehicle, door, false)
            end
        end
    end
end

----------------------------------------------------------------------------------------
-- Default options
----------------------------------------------------------------------------------------

-- These options don't represent the actual way of making TargetBones or filling out Config.TargetBones, refer to the TEMPLATES.md for a template on that, this is only the way to add it without affecting the config table

if Config.EnableDefaultOptions then
    Bones['seat_dside_f'] = {
        ["Toggle Front Door"] = {
            icon = "fas fa-door-open",
            label = "Toggle Front Door",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_dside_f') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 0)
            end,
            distance = 1.2
        }
    }

    Bones['seat_pside_f'] = {
        ["Toggle Front Door"] = {
            icon = "fas fa-door-open",
            label = "Toggle Front Door",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_pside_f') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 1)
            end,
            distance = 1.2
        }
    }

    Bones['seat_dside_r'] = {
        ["Toggle Rear Door"] = {
            icon = "fas fa-door-open",
            label = "Toggle Rear Door",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_dside_r') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 2)
            end,
            distance = 1.2
        }
    }

    Bones['seat_pside_r'] = {
        ["Toggle Rear Door"] = {
            icon = "fas fa-door-open",
            label = "Toggle Rear Door",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_pside_r') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 3)
            end,
            distance = 1.2
        }
    }

    Bones['bonnet'] = {
        ["Toggle Hood"] = {
            icon = "fa-duotone fa-engine",
            label = "Toggle Hood",
            action = function(entity)
                Config.ToggleDoor(entity, 4)
            end,
            distance = 0.9
        }
    }
end


回复

使用道具 举报

ChatGPT 发表于 2024-8-19 23:58:15 | 显示全部楼层
wx363880556 发表于 2024-08-19 23:57
Config.Peds = {

   
    --  =  {
    --     mod ...

Config.Peds = {

    -- 机械师NPC
    ["Mechanic1"] = {
        model = 'mp_m_waremech_01', 
        coords = vector4(-321.27, -131.41, 38.97, 95.98),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = { 
            options = {
                {
                    type="client",
                    event = "openweaponshop",
                    icon = "fas fa-user-secret",
                    label = "机械师商店",
                    job = "mechanic"
                }
            },
         distance = 3,
        }
    },
    
    -- 狩猎NPC
    ["Hunting"] = {
        model = "cs_hunter",
        coords = vector4(-776.06, 5602.81, 33.74, 253.75),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        target = {
            options = {
                {
                    event = "qb-hunting:client:interactionEvent",
                    icon = "fas fa-circle",
                    label = "狩猎商店"
                },
                {
                    event = "nc-HuntingSell",
                    icon = "fas fa-circle",
                    label = "出售肉类"
                }
            }, 
            distnace = 2.0
        },
    },

    -- 氧气任务NPC
    ["OxyPed"] = {
        model = 'a_m_m_og_boss_01', 
        coords = vector4(-1563.44, -441.36, 36.96, 97.07),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = { 
            options = {
                {
                    type="client",
                    event = "oxyrun:client:sendToOxy",
                    icon = "fas fa-user-secret",
                    label = "开始氧气任务"
                }
            },
         distance = 3,
        }
    },

    -- 药房NPC
    ["Pharmacy"] = {
        model = 'g_m_y_lost_03', 
        coords = vector4(2885.22, 1519.04, 24.97, 1.08),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = { 
            options = {
                {
                    type="client",
                    event = "openweaponshop",
                    icon = "fas fa-user-secret",
                    label = "打开药房"
                }
            },
         distance = 3,
        }
    },

    -- 氧气箱任务NPC
    ["OxyBoxPed"] = {
        model = 'a_m_m_salton_03', 
        coords = vector4(-2981.43, 1586.23, 23.69, 13.68),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        target = {
            options = {
                {
                    type="client",
                    event = "oxyrun:client:getBox",
                    icon = "fas fa-user-secret",
                    label = "获取包裹"
                }
            },
         distance = 3,
        }
    },
   
    -- 医生NPC
    [123] = {
        model = 's_m_m_doctor_01',
        coords = vector4(328.67, -590.88, 28.8, 334.36),
        currentpednumber = 0,
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },

    -- 葡萄园NPC
    ["sarapci"] = {
        model = 'mp_m_waremech_01', 
        coords = vector4(1537.49, 1702.4, 109.67, 83.48),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        scenario = 'WORLD_HUMAN_DRUG_DEALER',
        target = { 
            options = {
                {
                    type="client",
                    event = "şş",
                    icon = "fas fa-user-secret",
                    label = "葡萄酒加工",
                    job = "vineyard"
                }
            },
         distance = 0,
        }
    },
    
    -- 黑帮NPC
    [659] = { 
        model = `g_m_y_mexgang_01`, 
        coords = vector4(-1164.92, -1566.67, 3.45, 307.22),
        gender = 'male',
        freeze = true,
        invincible = true,
        blockevents = true,
    },

    -- 调速器店铺NPC
    [126] = {
        model = 's_m_y_xmech_01',
        coords = vector4(149.0, -3050.15, 6.04, 56.86),
        gender = 'male',
        target = {
            options = {
                {
                    event = "openweaponshop",
                    icon = 'fas fa-circle',
                    label = '打开商店',
                    job = 'tuner'
                }
            },
            distance = 2.0
        },
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = "WORLD_HUMAN_CLIPBOARD",
    },

    -- 商场NPC
    [20] = {
        model = 's_m_m_gaffer_01',
        coords = vector4(46.07, -1749.38, 29.64, 53.26),
        currentpednumber = 0,
        target = {
            options = {
                {
                    event = "openweaponshop",
                    icon = 'fas fa-circle',
                    label = 'Megamall',
                }
            },
            distance = 2.0
        },
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },

    -- 武器商店NPC
    [22] = {
        model = 's_m_y_ammucity_01',
        coords = vector4(23.530004, -1105.781, 29.797002, 145.90115),
        currentpednumber = 0,
        target = {
            options = {
                {
                    event = "openweaponshop",
                    icon = 'fas fa-circle',
                    label = '购买武器',
                }
            },
            distance = 2.0
        },
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },

    -- 商务女性NPC
    [639] = {
        model = `a_f_y_business_02`,
        coords = vector4(-592.364, -929.826, 23.869, 92.42),
        gender = 'female',
        scenario = 'WORLD_HUMAN_CLIPBOARD',
        freeze = true,
        blockevents = true,
        invincible = true,
        minusOne = true,
    },

    -- 银行职员NPC
    ["Bankpad2"] = {
        model = 'ig_bankman', 
        coords = vector4(-112.24, 6471.07, 31.63, 131.64),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        target = { 
          options = {
            {
                type = "client",
                event = "qb-banking:openBankScreen",
                icon = "fas fa-sign-in-alt",
                label = "打开银行",
            },
         },
         distance = 1.5,
     },
    },

    -- 黑市商人NPC
    ["Blackmarket"] = {
        model = 'a_f_y_juggalo_01', 
        coords = vector4(-825.32, -108.8, 27.96, 165.9),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        target = { 
          options = {
            {
                type = "client",
                event = "openweaponshop",
                icon = "fas fa-sign-in-alt",
                label = "黑市",
            },
         },
         distance = 1.5,
     },
    },

    -- 苹果商店NPC
    ["applestore"] = {
        model = 'a_f_y_indian_01', 
        coords = vector4(325.06, -284.91, 54.24, 341.92),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        target = { 
          options = {
            {
                type = "client",
                event = "openweaponshop",
                icon = "fas fa-sign-in-alt",
                label = "苹果商店",
            },
         },
         distance = 1.5,
     },
    },

    -- 垃圾工NPC
    ["GarbagePed"] = {
        model = 's_m_y_garbage', 
        coords = vector4(-349.96, -1569.92, 25.22, 296.46),
        minusOne = true, 
        freeze = true, 
        invincible = true, 
        blockevents = true,
        target = { 
          options = {
             {
                 type = "server",
                 event = "garbage:server:getGarbageJob",
                 icon = "fas fa-sign-in-alt",
                 label = "获取垃圾工作",
             },
             {
                 type = "client",
                 event = "garbage:getTruck",
                 icon = "fas fa-sign-in-alt",
                 label = "获取垃圾车",
             },
             {
                 type = "server",
                 event = "garbagejob:server:PayShift",
                 icon = "fas fa-sign-in-alt",
                 label = "领取工资",
             },
         },
         distance = 1.5,
     },
 },

}

if Config.EnableDefaultOptions then
    function Config.ToggleDoor(vehicle, door)
        if GetVehicleDoorLockStatus(vehicle) ~= 2 then
            if GetVehicleDoorAngleRatio(vehicle, door) > 0.0 then
                SetVehicleDoorShut(vehicle, door, false)
            else
                SetVehicleDoorOpen(vehicle, door, false)
            end
        end
    end
end

----------------------------------------------------------------------------------------
-- 默认选项
----------------------------------------------------------------------------------------

-- 这些选项并不代表实际制作TargetBones或填写Config.TargetBones的方式,请参考TEMPLATES.md获取模板,这只是添加选项而不影响配置表的方法

if Config.EnableDefaultOptions then
    Bones['seat_dside_f'] = {
        ["Toggle Front Door"] = {
            icon = "fas fa-door-open",
            label = "切换前门",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_dside_f') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 0)
            end,
            distance = 1.2
        }
    }

    Bones['seat_pside_f'] = {
        ["Toggle Front Door"] = {
            icon = "fas fa-door-open",
            label = "切换前门",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_pside_f') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 1)
            end,
            distance = 1.2
        }
    }

    Bones['seat_dside_r'] = {
        ["Toggle Rear Door"] = {
            icon = "fas fa-door-open",
            label = "切换后门",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_dside_r') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 2)
            end,
            distance = 1.2
        }
    }

    Bones['seat_pside_r'] = {
        ["Toggle Rear Door"] = {
            icon = "fas fa-door-open",
            label = "切换后门",
            canInteract = function(entity)
                return GetEntityBoneIndexByName(entity, 'door_pside_r') ~= -1
            end,
            action = function(entity)
                Config.ToggleDoor(entity, 3)
            end,
            distance = 1.2
        }
    }

    Bones['bonnet'] = {
        ["Toggle Hood"] = {
            icon = "fa-duotone fa-engine",
            label = "切换引擎盖",
            action = function(entity)
                Config.ToggleDoor(entity, 4)
            end,
            distance = 0.9
        }
    }
end
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-9 01:58 , Processed in 0.092707 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

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

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