[FREE] BCS Radial Menu V2 (Clean Code & Dev Friendly)

Looks great.

1 Like

People can use this while dead how can I disable that?

Depends on your dead detection script or framework. You can do a check on the registercommand in the client side.

How would you do that for the check though?

It goes through the RegisterKeyMapping

Yes and the registerkeymapping goes through the registercommand, check out the native reference of registerkeymapping RegisterKeyMapping - Natives @ Cfx.re Docs

could you give an example on how to create a submenu within a submenu?

Something like this,

{
    label = 'Job Menu',
    icon = 'MdWork',
    submenu = {
        {
            label = 'the label you want',
            icon = 'MdPhone', -- For example
            event = 'open:phone',
            client = true,
            shouldClose = true,
            args = {'test', '123', 4}
        },
        {
            label = 'Job Menu',
            icon = 'MdWork',
            submenu = {
                {
                    label = 'the label you want',
                    icon = 'MdPhone', -- For example
                    event = 'open:phone',
                    client = true,
                    shouldClose = true,
                    args = {'test', '123', 4}
                },
                {
                    label = 'Job Menu',
                    icon = 'MdWork',
                    submenu = {
                        {
                            label = 'the label you want',
                            icon = 'MdPhone', -- For example
                            event = 'open:phone',
                            client = true,
                            shouldClose = true,
                            args = {'test', '123', 4}
                        },
                        -- and continues
                    }
                }
            }
        }
    }
}
1 Like

How do i change the Button Background i tried everything but it’s always white :frowning: But Nice script works very well :slight_smile:

yes how to change white background?

Got a few issues on qbcore, didnt really work that well.

What was the issue? I may be able to fix it, also do post the issue in the github. I know I have not maintained the radialmenu but an overhaul is coming, since ill be using this radialmenu for my RP server.

Hello everyone,

I want to use the radialmenu but the phone won’t be open, here is the code snippet (i use roadphone)

Config.RadialMenu = {
{
label=“Handy”,
event= “exports[‘roadphone’]:togglePhone()”,
shouldClose=true,
icon=“MdPhoneIphone”,
client=true
},

Sorry to revive an old topic, but i’ve gone through the files and changed all instances of “react-icons/md”; to work with fontawesome, but it still seems to be loading the md library?

Any ideas? Any other lines I need to change?

For now I am going to deprecate v1 as I am currently testing v2 if its stable enough in my server I will release it. It works with fontawesome icons, url links, and custom images you can put (PNGs)

2 Likes

any update on this? :eyes:

1 Like

React icons preview for md (react-icons.github.io)

heres the whole library for any new people looking for the icons, took me about an hour to find it since the link in the readme is broken :joy:

Yooooo updated to V2! Check it out

wow so good :*

1 Like

Hey i’m using the v2 on my server and i love it! Could you possibly add an option that the radial menu remains open as soon as you press the button instead of holding it down?

1 Like

I think you can change that within the registerkeymapping commands.