Tracking device for cops

Hey. Im trying to modify the esx_policejob so it only creates a blip for other cops if they have a tracker item.

1 Like

have you tried looking for a script that does that already and just merging it

I aint gonna lie i tought this is the insert that does the “array” making.

table.insert(blipsCops, blip) -- add blip to array so we can remove it later

But even if I deleted it, I could see all cops on the map.

I didn’t find any scripts that would do this, that’s why I’m “struggling”

well i guess just wait for someone with scripting experience to help you

1 Like

found anything yet?

monitor removeinventoryitem and addinventoryitem events for syncing the blip when player gets and item or lose an item,
when a player loses or gets your desired item, Trigger the esx_policejob:updateBlip

after that go to the main.lua client side and edit the esx_policejob:updateBlip and check if that player also has your tracker or not, if he does not have it then do nothing if he has make a blip

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.