Unfortunately, ox_doorlock does not provide functions that will help us grant doorlock access to a member of the organization, so one solution may be to use it as follows.
Go to pp-orgpanel/server/editable/framework
and find this
Change this part of code to this
Below the PlayerLoaded
event, add something like this to keep the door lock system in sync.
Now go to ox_doorlock/server/framework/qb-core
find the IsPlayerInGroup
function and replace it with this
Now set the interior doorlock in pp-orgpanel/config_c/Config.interiors
to the same name as the group in the doorlock settings, for example:
Restart your server and everything should work great now