[Release] [Standalone] Target Tracking

Good Script

2 Likes

More options? Yessir!

Seem you have already update for the ped. but i mean for player ped. interact with near player. not only the npc

Yes. You can do things like rob player etc.

1 Like

As i can see it only have a ped list there. that mean only can do with the ped in list

1 Like

you can set it to local peds = {
mp_m_freemode_01,
}

that work for all player ped?

youll have to add the female freemode in as well just below it.

1 Like

Hey, how can I make a notification appear every time I enter a location and when I leave it the notification disappears?

1 Like

How about the vehicle ? anyone know

Awesome NUI, i have already put this script to many uses, exports are such a nice thing!.

Thanks for the release mate!

I’m wanting to add more locations to your NUI.

I have done this

    AddBoxZone("SandyPD", vector3(1853.49, 3688.67, 35.26), 0.4, 0.6, { -- SandyPD
        name="SandyPD",
        heading=29.97,
        debugPoly=false,
        minZ=30.79,
        maxZ=30.99
        }, {
            options = {
                {
                    event = "signon",
                    icon = "far fa-clipboard",
                    label = "Toggle Duty",
                },
            },
            distance = 2.5
        })

But doesn’t seem to show up near the clipboard at the SandyPD, any idea?

Cheers bud.

1 Like

Hey.

You gotta make sure the bottom of the poly-zone isn’t floating in mid-air. It has to be placed on a surface.

This would be a perfect example of it. https://i.imgur.com/xizq6jF.png https://i.imgur.com/yWZW9jO.png

    AddBoxZone("PoliceDutySandyPD", vector3(1853.85, 3689.93, 34.27), 0.25, 0.35, {
        name="PoliceDutySandyPD",
        heading=350,
        --debugPoly=true,
        minZ=34.07,
        maxZ=34.12
    }, {
        options = {
            {
                event = "signon",
                icon = "far fa-clipboard",
                label = "Toggle Duty",
            },
        },
        distance = 2.0
    })

I made this example for you that you can use. You can uncomment the debug poly to see how your polyzone are like. You can then re-comment it or delete after you think its good.

1 Like

Awesome appreciate it.

Great release and easy to configure!

Im not great with UI is there any chance you could maybe add some sort of box around the names that you trigger as in some cases it can be quite hard to read.

So far I have used this for our taco shop and burger shop to open an inventory if you hover over the trays!

Hi, great job friend, how can I use the trunk? car doors? also, for example, I would like to hover over a chair and, for example, sit on it, but this requires coordinates, and also animation, I have a similar scenario for interaction, but it is very difficult.
I consider your implementation as a replacement.

Hey,

Would you know how to make it so only my Loadout options only show if the player is on-duty i have this system setup for my blips etc, but wouldn’t know how todo this for the options.

Toggle Duty
    AddBoxZone("PoliceDutySandyPD", vector3(1853.67, 3688.58, 35.26), 0.55, 0.50, {
        name="PoliceDutySandyPD",
        heading=300,
        -- debugPoly=true,
        minZ=33.79,
        maxZ=34.99
    }, {
        options = {
            {
                event = "signon",
                icon = "far fa-clipboard",
                label = "Toggle Duty",
            },
        },
        distance = 2.0
    })
Loadout Option
    AddBoxZone("PoliceDutySandyPDGun", vector3(1842.49, 3689.89, 34.32), 0.60, 0.60, { -- SandyPD Loadouts
        name="PoliceDutySandyPDGun",
        heading=300,
       --debugPoly=true,
        minZ=29.79,
        maxZ=34.10
    }, {
        options = {
            {
                event = "ploadout",
                icon = "far fa-clipboard",
                label = "Patrol Loadout",
            },
            {
                event = "sloadout",
                icon = "far fa-clipboard",
                label = "Swat Loadout",
            },
            {
                event = "rloadout",
                icon = "far fa-clipboard",
                label = "Remove Loadouts",
            },
        },
        distance = 2.0
    })
Toggle Duty Exports
RegisterNetEvent("signon")
AddEventHandler("signon", function()
    if allowedToUse then 
    exports.OnDutyBlips:OnDutyBlipsToggle(person, source)
    exports.InteractionMenu:OnDutyBlipsToggle1(source)
    exports.Police_DoorLocks2:DoorToggle(source)
    ExecuteCommand("panictune")
    else 
        TriggerEvent('chatMessage', "^1 You're not Fire/LEO Personal") 
        TriggerEvent('chatMessage', "^1 Apply on the discord #📝-applications ") 
    end
end)

So it’s not flooding the main options?, i would be wondering it this would be possible with your resource :slight_smile:

Dope feature tbh, good job.

Best release of 2021 by far, hats off!!

1 Like

Just wondering, could you pass function parameters ?