ox_lib icon indicating copy to clipboard operation
ox_lib copied to clipboard

feat(radial): added canSelect functin and onEvent / onExport field

Open AstroNext opened this issue 1 year ago • 3 comments

added function to check player can select radial menu item or not. added onEvent field to trigger event when player select radial item

AstroNext avatar Oct 22 '24 14:10 AstroNext

Thank you for the pull request, however it introduces a lot of duplicate code. the canSelect part could be done in a one-liner for example. It would be nice if you could take care of that.

Skryptific avatar Jan 23 '25 14:01 Skryptific

Thank you for the pull request, however it introduces a lot of duplicate code. the canSelect part could be done in a one-liner for example. It would be nice if you could take care of that.

I checked code and I will update PR.

AstroNext avatar Jan 24 '25 20:01 AstroNext

I have added onExport to use export functionality, similar to onSelect with string type. I believe the onSelect with string type for export functionality should be removed as soon as possible.

AstroNext avatar Jan 24 '25 20:01 AstroNext