v1.3.0
Dashboard access now works the same on every framework.
This release reads the player through the rewritten bridge. On msk_core 3.x the group lookup returns nothing, and dashboard access then depends entirely on your ACE setup. Update msk_core along with this script.
Changed
-
The framework group is read on QBCore and Qbox too. Group membership means "ACE principal or framework group", and the framework half only ever worked on ESX. It went through
xPlayer.getGroup(), a method QBCore and Qbox do not have, so an admin without the matchingadd_principalline was refused there.player.groupis a plain string on all three frameworks since msk_core 4.0.0: ESX hands over what it stores, QBCore and Qbox reduce their permission table to the highest level they find. -
MSK.GetPlayeris called with the server id instead of a{source = }table, which is what msk_core 4.0.0 expects.
Fixed
- The QBCore-only fallback ran on every framework.
GetQbPermissionstarts with a check that leaves the function unless QBCore is running, and that check could never pass: in a consumer resourceMSK.Bridgeused to resolve to a function, so readingMSK.Bridge.Frameworkraisedattempt to index a function valueinstead of returning. msk_core 4.0.0 makesMSK.Bridgea real table, so the branch now does what it says. On Qbox the same information already arrives through the framework group.
Changed files
fxmanifest.lua
server/admin/permissions.lua