Code Monkey home page Code Monkey logo

bt-target's Introduction

bt-target

bt-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.

Information

This repository was originally a fork and now it's own repository as it's a slightly changed qtarget but still named bt-target, 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 QBCore but can be used by any framework but you will have to make your own changes then or just enable the standalone config option.

You are free to help through Pull Requests, I love some help!

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

Optional Dependencies

Credits

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.

bt-target's People

Contributors

archangelza1 avatar berkiebb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.