qb-menu icon indicating copy to clipboard operation
qb-menu copied to clipboard

Final Revisit to Image on Hover [Feature]

Open KamuiKody opened this issue 1 year ago • 1 comments

Describe Pull request This is image on hover. You can put in an image address and when you hover that button it will display the image in the center of your screen. I have tested and retested and fixed the things that may have presented any sort of issues. Here is a good example of how I made a quick menu to demonstrate this (Would be good to add to Documentation).

RegisterCommand('testmenu', function()
    exports['qb-menu']:openMenu({
        {
            header = 'Sub-menu button',
            txt = 'Print a message!',
            icon = 'fas fa-code-merge',
            image = 'https://cdn.pixabay.com/photo/2014/06/03/19/38/road-sign-361514_1280.png',
            params = {
                isAction = true,
                event = function(data)
                    print(data.message)
                end,
                args = {
                    message = 'This was called by clicking a button'
                }
            }
        }
    })
end)

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all it's functionality? [yes] (Be honest)
  • Does your code fit the style guidelines? [yes]
  • Does your PR fit the contribution guidelines? [yes]

KamuiKody avatar Oct 01 '23 20:10 KamuiKody

Is there a reason i should keep this open? If not im going to close the PR. Was personally asked to reopen this and it just sat for 2 months.

KamuiKody avatar Nov 22 '23 13:11 KamuiKody