This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
Releases: overextended/qtarget
Releases · overextended/qtarget
2.0.0
What's Changed
- fix exports for item count ox_inventory by @requestrip in #23
- fix: Update job on job change by @LukeWasTakenn in #24
- fix(client): Calculate distance from raycast coords by @antond15 in #28
- Update script.js by @userMacieG in #31
- fix(init): Fix job checking by @antond15 in #30
- fix(init): QB compatibility typo by @BerkieBb in #38
- Support Multiple Zones Inside Another by @JiminyKroket in #41
- Broken check fix by @benitoll in #43
- fix(init): Use right event name to update PlayerData by @BerkieBb in #44
- Vehicle Bones Problem #45 - Fix by @mortalkiller in #47
- For Entity target start blinking on enable #48 by @mortalkiller in #49
New Contributors
- @requestrip made their first contribution in #23
- @LukeWasTakenn made their first contribution in #24
- @antond15 made their first contribution in #28
- @userMacieG made their first contribution in #31
- @JiminyKroket made their first contribution in #41
- @benitoll made their first contribution in #43
- @mortalkiller made their first contribution in #47
Full Changelog: 1.2.0...2.0.0
1.2.0 - Standalone support
Since several things are cut from the public release and the ESX dependency matters less with the refactoring of code, I've set the requirements to run this back to PolyZone alone.
- Changes
- Removed dependency on Intervals
- Removed dependency on ESX
- Moved several functions into the config file
- Use different
CheckOptions
function for standalone - Added
CloneTable
function - Modified direction maths to use math.rad
- Raycast now supports receiving material hit (not yet utilised)
- Removed redundant code
1.1.0
Includes some breaking changes. Please ensure you apply the changes for AddTargetEntity
and all remove
functions.
-
Fixes
- Do not allow vehicle door options to appear when a door does not exist
- AddTargetEntity updated for new table structure
-
Changes
- AddTargetEntity now receives an entity instead of networkid
- AddTargetEntity no longer requires an owner parameter
- Added RemoveTargetEntity
- Removing options now requires the use of labels instead of events
- Functions no longer set as local, to allow use without calling the export from another file
- Added debug options
1.0.1
1.0.0
I'm currently working on the updated documentation which will replace the wiki and example.md
-
Features
- Options are now added to TargetModel instead of replacing existing ones
- Halt main loop while looking at invalid entity/zone
- Append distance parameter to each option in an export
- Check if player moves in/out of range for an option and adjust the list accordingly
- Support overriding options or removing them by using the event name
- Generic functions for adding options to all entities by type (player, ped, vehicle, object)
- Support for
action
parameter to trigger a function instead of event - Included functions for opening vehicle doors
-
Fixes
- Prevent some situations where eye would get stuck open (it will still happen if your code is invalid)
- Corrected checks for breaking focus on a zone
-
Changes
- Reduce redundant code, modify loading of config
- Support both hashes (preferred) and strings through
GetHashKey
- Raycast now uses flag
-1
first, then30
if no valid entity was hit - No longer receiving data from NUI when triggering an option
- Check if ESX and SetInterval are defined