forked from overextended/ox_target
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hi!, in ox_target/client/framework/qbx.lua > hasPlayerGotGroup(filter) it has this code:
function utils.hasPlayerGotGroup(filter)
return QBX:HasGroup(filter)
endBut 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)
endThis will validate if the group is the current active group on user and allow them to interact with the zone. 😺
Metadata
Metadata
Assignees
Labels
No labels