Qbox-project / qbx_core

http://qbox-project.github.io
Other
46 stars 113 forks source link

feat: multi job/group implementation #370

Closed Manason closed 4 months ago

Manason commented 5 months ago

The multi-group system is not optional and cannot be disabled. While using external multigroup systems is still possible, unless they use the exports to propagate the data to the qbox multi-group, it may break other scripts that rely on that data being accurate. I considered a way to make it optional, but doing so would have the opposite effect of making it so that other scripts couldn't rely on the built-in multi-group functionality.

Manason commented 5 months ago

Is an export planned for something like exports.qbx_core:HasJob(playerId) for checking if a player has that job even if they are not actively onduty? I could see this being useful for cases where someone wants to have a secondary job but not be required to switch to it to perform the various job functions

We already have the table on PlayerData, so people can get it via doing GetOfflinePlayer(citizenid)