Target

QB-TARGET:

Config.useTarget = true

function target(element, event, isMission, task)
    local zOffset = 1.0
    local entityCoords = GetEntityCoords(element)
    local minZ = entityCoords.z - zOffset
    local maxZ = entityCoords.z + zOffset
    if isMission then
    else
        exports["qb-target"]:AddTargetEntity(
            element,
            {
                options = {
                    {
                        type = "client",
                        event = "bit-advancedtasks:targetMain",
                        icon = "fa-solid fa-scythe",
                        label = "Interact",
                        args = {
                            task = task
                        }
                    }
                },
                distance = 2.5
            }
        )
    end
end

Last updated