fkk-cz / qtarget

A completely rewritten and optimised targeting solution based on bt-target

Home Page:https://forum.cfx.re/t/3984356

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

qTarget is a high performance targeting solution that allows interaction with any predefined entity, model, entity type, or polyzone. At the mere cost of ~0.04ms while activated you can easily and safely replace markers and distance checking, instead relying on intuitive design to improve player experiences.

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 or function after clicking an option, with the ability to pass any data through
  • Define distance on a per-option or overall basis when triggering qtarget function exports
  • Ability to redefine or remove options and add new options without replacing old ones
  • Update the option list when moving towards or away from a target with variable distances on their options
  • Support for entity bones, with built-in tables for opening vehicle 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
  • Improved support when using ox_inventory

Preface

This resource is being actively developed and, as such, it is expected that there will be bugs, issues, and on occasion breaking commits. So long as you accept that this is a work in progress and not yet intended as a final product then we will provide support.

Credits

Issues

Please use the GitHub issues system to report issues.

About

A completely rewritten and optimised targeting solution based on bt-target

https://forum.cfx.re/t/3984356

License:GNU General Public License v3.0


Languages

Language:Lua 92.0%Language:JavaScript 4.2%Language:CSS 2.2%Language:HTML 1.6%