example
example

已解决√ 求助 qb-policejob军械库如何设置权限?

感谢楼主的红包!

nihoa领取了您的红包获得了2.30黄金
 
感谢楼主的红包!

xxlio109领取了您的红包获得了0.87黄金
 
Lua:
options = {
    {
        canInteract = function()
            return PlayerJob.grade.level >= 1
        end,
        action = function()
            TriggerEvent("qb-police:client:openArmoury")
        end,
    }
}
 
Lua:
options = {
    {
        canInteract = function()
            return PlayerJob.grade.level >= 1
        end,
        action = function()
            TriggerEvent("qb-police:client:openArmoury")
        end,
    }
}
这个是配置文件夹里面的吗?
 
Lua:
options = {
    {
        canInteract = function()
            return PlayerJob.grade.level >= 1
        end,
        action = function()
            TriggerEvent("qb-police:client:openArmoury")
        end,
    }
}
我再配置文件中似乎没有看到这行代码
 
我再配置文件中似乎没有看到这行代码
Lua:
Config.Items = {
    label = "Police Armory",
    slots = 30,
    items = {
        [1] = {
            name = "weapon_pistol",    --武器名称
            price = 0,
            amount = 1,
            info = {
                serie = "",
                attachments = {
                    {component = "COMPONENT_AT_PI_FLSH", label = "Flashlight"},
                }
            },
            type = "weapon",
            slot = 1,
            authorizedJobGrades = {0, 1, 2, 3, 4}    --授予可以访问该物品警察的等级
 
最后编辑:
Lua:
Config.Items = {
    label = "Police Armory",
    slots = 30,
    items = {
        [1] = {
            name = "weapon_pistol",    --武器名称
            price = 0,
            amount = 1,
            info = {
                serie = "",
                attachments = {
                    {component = "COMPONENT_AT_PI_FLSH", label = "Flashlight"},
                }
            },
            type = "weapon",
            slot = 1,
            authorizedJobGrades = {0, 1, 2, 3, 4}    --授予可以访问该物品的等级
谢谢站长,终于回来了😢
 
后退
顶部