Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

[BUG] Using old qbox export for hasPlayerGotGroup #8

@avilchiis

Description

@avilchiis

Hi!, in ox_target/client/framework/qbx.lua > hasPlayerGotGroup(filter) it has this code:

function utils.hasPlayerGotGroup(filter)
    return QBX:HasGroup(filter)
end

But this will create conflict with multijob scripts because when running the group check it checks if X group is present and NOT if is the current active, resulting in players using let's say Police job but who also have a 2nd job like Burgershot they can access both police and burgershot zones without being on duty. This can be fixed by updating the qbox export:

function utils.hasPlayerGotGroup(filter)
    return QBX:HasPrimaryGroup(filter)
end

This will validate if the group is the current active group on user and allow them to interact with the zone. 😺

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions