meta-hub / meta_target

A complete third eye solution for FiveM and RedM, aiming to proving all solutions from fivem-target, bt-target and qtarget under one resource.
21 stars 15 forks source link

meta-target #1

Closed Taavi-AU closed 2 years ago

Taavi-AU commented 2 years ago

converting mf-housing-v3 for meta-target, using the remove export to remove the points etc, this doesnt seem to fully work correctly, e.g I can just move from the door and it doesnt remove the options for the door, yeah the polyZone optins show up, after leaving the polyZone of the first house and creating another and going to the door it doubles up on the options, unless this is a me issue of not doing it correclty

for example

Housing.CreateTargetPoint = function(name,targetOption,targetIndex,position,vars)
  if Config.TargetOptions[targetOption] and Config.TargetOptions[targetOption][targetIndex] then
    exports["meta-target"]:addPoint({
      id = name,
      title = Config.TargetOptions[targetOption][targetIndex].label,
      icon = Config.TargetOptions[targetOption][targetIndex].icon,
      point = position,
      radius = 2.5,
      onSelect = Housing.OnInteract,
      items = Config.TargetOptions[targetOption][targetIndex].options,
      vars = vars
    })
  end
end