qtarget

A completely rewritten and optimised targeting solution based on bt-target

Entityzone options

exports.qtarget:AddEntityZone(name, targetentity, options, targetoptions)
Creates a polyzonebox around the entity, registers the defined options to display when targetting the surface of the entity.
exports.qtarget:AddEntityZone("nancy", npc, {
    name="nancy",
    debugPoly=false,
    useZ = true
        }, {
        options = {
            {
            event = "hospital:checkInNancy",
            icon = "far fa-comment",
            label = "Check In",
            },
            {
            event = "Duty event",
            icon = "fas fa-sign-out-alt",
            label = "Sign in / Sign out",
            job = "ambulance",
            },
        },
        distance = 2.5
    })  
Remove the zone after usage.
exports.qtarget:RemoveZone('nancy')

Project maintained by overextended Hosted on GitHub Pages — Theme by mattgraham