#qb-management

1 messages · Page 1 of 1 (latest)

vapid mantle
#

Im having an issue like this, ^1SCRIPT ERROR: @qb-management/client/cl_boss.lua:97:
^5 An error occurred while calling export openMenu in resource qb-menu:
nil
^5 ---^7
^3> fn^7 (^5@qb-management/client/cl_boss.lua^7:260)
^1SCRIPT ERROR: @qb-menu/client/main.lua:23: attempt to index a nil value (field 'Items')^7
^3> ref^7 (^5@qb-menu/client/main.lua^7:23)
^3> handler^7 (^5@qb-management/client/cl_boss.lua^7:97)
^3> fn^7 (^5@qb-management/client/cl_boss.lua^7:260)
^1SCRIPT ERROR: @qb-management/client/cl_boss.lua:97:
^5 An error occurred while calling export openMenu in resource qb-menu:
nil
^5 ---^7
^3> fn^7 (^5@qb-management/client/cl_boss.lua^7:260)
^1SCRIPT ERROR: Execution of function reference in script host failed:

I think management is broken and i need fix

pseudo skiff
#

Looks like you have a syntax error in your shared items.

Post it here and someone may be able to fix it for you.

stuck sonnet
south iris
#

Hey guys i have the same error, im using newest versions from github, but still happening, can someone help?

south iris
#

Yes.

#

but what does this, have to with qb-menu and qb-management

stuck sonnet
#

Check if there is a Syntax error in data/items.lua

south iris
#

Im not sure, if ox_inventory has something to do with thoose scripts, and if it had syntaxis errors, it would not load?

stuck sonnet
south iris
#

It does load, so it has no syntaxis errors.

stuck sonnet
#

Or send the file here

south iris
#

there is no error for 5th time.

stuck sonnet
#

Ok then wait for an answer of someone that knows about ox

south iris
#

This two scritps has nothing to do with ox_inventory..

stuck sonnet
#

?

south iris
#

Items in the menu are wrong not, the items in the inventory\

#

^^^

stuck sonnet
#

If u can read the error then you wil know its about inventory

south iris
#

Yea, yea, sure

south iris
#

Any suggestions, someone?

#

And sorry for the tag, madcap i forgot its forbidden.

stuck sonnet
#

Ok, bro did you make any edit on the menu options in qb management?

south iris
#

As i said, i've re-downloaded qb-menu and qb-management to try on fresh and it keeps happening.

#

And actually its not only qb-managment but its everything related to qb-menu

stuck sonnet
#

Try replacing the OpenMenu event with this


RegisterNetEvent('qb-bossmenu:client:OpenMenu', function()
    if not PlayerJob.name or not PlayerJob.isboss then return end

    local menuOptions = {
        {
            title = Lang:t('body.manage'),
            description = Lang:t('body.managed'),
            event = 'qb-bossmenu:client:employeelist',
        },
        {
            title = Lang:t('body.hire'),
            description = Lang:t('body.hired'),
            event = 'qb-bossmenu:client:HireMenu',
        },
        {
            title = Lang:t('body.storage'),
            description = Lang:t('body.storaged'),
            serverEvent = 'qb-bossmenu:server:stash',
        },
        {
            title = Lang:t('body.outfits'),
            description = Lang:t('body.outfitsd'),
            event = 'qb-bossmenu:client:Wardrobe',
        }
    }

    if DynamicMenuItems then
        for _, v in ipairs(DynamicMenuItems) do
            menuOptions[#menuOptions + 1] = v
        end
    end

    lib.registerContext({
        id = 'boss_menu',
        title = Lang:t('headers.bsm') .. string.upper(PlayerJob.label),
        options = menuOptions
    })
    lib.showContext('boss_menu')
end)

stuck sonnet
#

Maybe the usage of it is wrong

south iris
#

Im saying that other things with qb-menu are also broken man.

#

Its not only that, im reuploading a backup to see if it will work

#

And also i've just told you i've downloaded fresh copies of them both, from github 🙂

stuck sonnet
#

See if ox lib work

south iris
#

That would not break other things that work with qb-menu for example, cdn-fuel

#

cdn-fuel is broken too

#

with the same error

stuck sonnet
#

Ok if it works with the ox lib tell me

south iris
#

i dont want to use ox_lib..

stuck sonnet
#

And put this in the fxmanifest of qb management

shared_scripts {
    '@ox_lib/init.lua', 
}
south iris
#

I will tell you in about an hour when it finishes uploading

south iris
#

Ok it finished uploading

#

FIXED!!!

stuck sonnet
south iris
#

nope

#

qb-menu

stuck sonnet
#

Ok share how you fix it

#

Maybe people have the same problem

south iris
#

0 IDEA To be honest, i've just reuploaded my backup from yestarday, cuz i do backups everyday.

stuck sonnet
#

?