[Release] [Standalone] Target Tracking

Have you had any luck with the actual AddTargetModel function the author uses? I’m trying to have it for every dumpster but it doesn’t seem to trigger. Any help is appreciated.

1 Like

Hi, im trying to find out how to target a player and not polyzone or closest distance
Can you help me?

What onduty script are you using for this?

How do I make this work, the black eye pops up but not the blue one?

My custom made duty script

Awsome script, waiting for the integration of looking to specific parts of cars. :grinning:

1 Like

Body parts too, suitable for doctors

Do I have to put this in client or server.lua, or it doesn’t matter. Im trying to add this feature to esx_duty, I created Poly Zone box, set event to duty:onoff but when i click on it, it doesn’t do nothing. Any idea what am I doing wrong?

It goes in a client-side script here’s an example from ruq_duty that I modified to have ems along with all PD locations
cl.lua (4.7 KB)

2 Likes

Does anyone know if there’s a way to set it to recognize all cars instead of adding each individual car?

local pos = GetEntityCoords(GetPlayerPed(-1))
local vehicle = GetClosestVehicle(pos['x'], pos['y'], pos['z'], 5.001, 0, 70)
if DoesEntityExist(vehicle) then
   -- do_something
end

This is suppose to work.
You can also help with: GTAV NATIVE DB

2 Likes

Thanks man. That helps alot. Managed to get it working. Thanks for your help

Can someone explain how to get it working ? hahah

Getting this error. This happens when pressing LAlt and the right clicking. The eye icon pops up but does not turn blue when hovering over the selected area.

Me too

Export it…

Not sure what’s up with it, I’m having the same issue.

Any reason some why some models work and some don’t?
prop_slush_dispenser doesn’t seem to work while prop_juice_dispenser works just fine.
Guessing this is an issue with the polyzones?

Hey, really nice release I have been playing around with this on my server and my players love it!

I made some changes, and submitted it to your repo if you could take a look at it when you get the chance, the changes I made allow for specific vehicle bones to be added. In my use case this allows for my players to open specific car doors, unlock them, and repair the engine.

Github Edits

same any fixes?