Skip to content

feat: add export option#179

Open
Z3rio wants to merge 3 commits into
qbcore-framework:mainfrom
Z3rio:main
Open

feat: add export option#179
Z3rio wants to merge 3 commits into
qbcore-framework:mainfrom
Z3rio:main

Conversation

@Z3rio
Copy link
Copy Markdown
Contributor

@Z3rio Z3rio commented Jan 19, 2025

Describe Pull request
This adds the possibility of using exports in qb-radialmenu, instead of just events.
Also allows the user to customize the arguments the event/export is called with, instead of calling it with the "item" / "option" data

For example:

{
    id = 'cornerselling',
    title = 'Corner Selling',
    icon = 'cannabis',
    type = 'export',
    export= 'qb-drugs.CornerSelling',
    args = { "hello", "world" },
    shouldClose = true
}

Questions (please complete the following information):

  • Have you personally loaded this code into an updated qbcore project and checked all it's functionality?

No

  • Does your code fit the style guidelines?

Yes

  • Does your PR fit the contribution guidelines?

Yes

@QBStevie
Copy link
Copy Markdown

This can be handy

Comment thread client/main.lua
@Z3rio
Copy link
Copy Markdown
Contributor Author

Z3rio commented Aug 1, 2025

@GhzGarage
Rerun the lint workflow and merge this if possible, a lot of people would enjoy this.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants