๐Ÿ‘๏ธqb-target

Always watching you...

Introduction

qb-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 of relying on intuitive design to improve player experiences and optimize interaction.

Features

  • Maintains compatibility with bt-target while providing improved utility and performance

  • Optimized 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 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, gang, citizenid, items, or specific entities

  • Utilise the canInteract function for advanced checks to show or hide an option based on any trigger

  • Ped spawner to spawn peds and assign target options to them all in one place

These are Templates for all the functions in qb-target

AddCircleZone

Function Format

Config option, this will go into the Config.CircleZones table

Export option, this will go into any client side resource file aside from qb-target's one

AddBoxZone

Function Format

Config option, this will go into the Config.BoxZones table

Export option, this will go into any client side resource file aside from qb-target's one

AddPolyZone

Function Format

Config option, this will go into the Config.BoxZones table

Export option, this will go into any client side resource file aside from qb-target's one

AddComboZone

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

AddTargetBone

Function Format

Config option, this will go into the Config.TargetBones table

Export option, this will go into any client side resource file aside from qb-target's one

AddTargetEntity

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

AddEntityZone

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

AddTargetModel

Function Format

Config option, this will go into the Config.TargetModels table

Export option, this will go into any client side resource file aside from qb-target's one

RemoveZone

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveTargetBone

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveTargetModel

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveTargetEntity

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

AddGlobalPed

Function Format

Config option, this will go into the Config.GlobalPedOptions table

Export option, this will go into any client side resource file aside from qb-target's one

AddGlobalVehicle

Function Format

Config option, this will go into the Config.GlobalVehicleOptions table

Export option, this will go into any client side resource file aside from qb-target's one

AddGlobalObject

Function Format

Config option, this will go into the Config.GlobalObjectOptions table

Export option, this will go into any client side resource file aside from qb-target's one

AddGlobalPlayer

Function Format

Config option, this will go into the Config.GlobalPlayerOptions table

Export option, this will go into any client side resource file aside from qb-target's one

RemoveGlobalTypeOptions

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveGlobalPed

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveGlobalVehicle

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveGlobalObject

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RemoveGlobalPlayer

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

RaycastCamera

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

Ped Spawner

Function Format

Config option, this will go into the Config.Peds table

Export option, this will go into any client side resource file aside from qb-target's one

RemoveSpawnedPed

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

AllowTargeting

Function Format

Export option, this will go into any client side resource file aside from qb-target's one

Last updated