Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Releases: overextended/qtarget

2.0.0

27 Dec 08:40
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.2.0...2.0.0

1.2.0 - Standalone support

01 Aug 08:43
611bc78
Compare
Choose a tag to compare

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

28 Jul 12:33
Compare
Choose a tag to compare

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

25 Jul 20:55
Compare
Choose a tag to compare
  • Fixes
    • Send the correct option id after selection through NUI
    • If an option has the action parameter, trigger it instead of event
    • PolyZones no longer require an entity to be hit

1.0.0

24 Jul 18:00
bd90a0c
Compare
Choose a tag to compare
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, then 30 if no valid entity was hit
    • No longer receiving data from NUI when triggering an option
    • Check if ESX and SetInterval are defined