QRCore-RedM-Re / qr-target

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qr-target

Thanks to R S K, for posting this for the QR servers.

qr-target is a targeting solution that allows interaction with any predefined entity, model, entity type, or polyzone. While activated you can easily and safely replace markers and distance checking, instead relying on intuitive design to improve player experiences and optimize interaction.

Credits

  • Lots of credits goes to qtarget for re-writing all of bt-target to make it more optimized!

  • All the credit goes to bt-target from brentN5 for making this awesome resource and making this repository exist!

Dependencies

Information

This repository was originally a fork and now it's own repository as it's basically qtarget but with lots of changes to it to make it better, most of the code comes from qtarget as I find their work awesome on this and what they've achieved with it, mostly the optimization.

This version is for QRCore but can be used by any framework if you make your own changes to it.

You are free to help through Pull Requests and leave as much suggestions or issues, I love some help and want I'm always up for new challenges!

The wiki and examples.md are always being improved and new examples can be made on request, just let me know!

Features

  • Maintains compatibility with bt-target while providing improved utility and performance
  • Optimised and improved raycasting function allows interaction with a wider range of entities
  • Add generic options to apply for all players, peds, vehicles, or objects
  • Trigger an event, function or command after clicking an option, with the ability to pass any data through
  • Define distance on a per-option or overall basis when triggering a target option
  • Ability to redefine or remove options, and add new options without replacing old ones
  • Update option list when moving towards or away from a target with variable distances on their options
  • Support for entity bones, with builtin tables for opening doors
  • Support checking for job, items, or specific entities
  • Utilise the canInteract function for advanced checks to show or hide an option based on any trigger

Issues and Suggestions

Please use the GitHub issues system to report issues or make suggestions, when making suggestion, please keep [Suggestion] in the title to make it clear that it is a suggestion or join the discord.

About

License:GNU General Public License v3.0


Languages

Language:Lua 76.1%Language:JavaScript 14.5%Language:CSS 5.2%Language:HTML 4.1%