Permission Issue with ps-mdt Script
Permission Issue with ps-mdt Script on FiveM
Description
I am experiencing an issue with the ps-mdt script on FiveM Version b3095 and ps-mdt version 2.7.3. When I try to delete something in the MDT, such as logs or reports, I receive the message "No Permission to do that".
I have set the permission for level 4 to true in the shared/Config.lua file. In-game, using /job, I see that my job level is 5, so the permission should be correct.
Expected Behavior:
I should be able to delete logs or reports in the MDT without encountering a permission error.
Actual Behavior:
I receive the message "No Permission to do that" when attempting to delete logs or reports in the MDT.
Steps to Reproduce:
- Set permission level 4 to true in the
shared/Config.luafile. - Ensure that the in-game job level is 5.
- Attempt to delete logs or reports in the MDT.
Example Code:
Here are the relevant parts of the shared/Config.lua file:
Config.LogPerms = {
['ambulance'] = {
[4] = true,
},
['police'] = {
[4] = true,
},
['bcso'] = {
[4] = true,
},
['sast'] = {
[4] = true,
},
['sasp'] = {
[4] = true,
},
['sapr'] = {
[4] = true,
},
['doc'] = {
[4] = true,
},
['lssd'] = {
[4] = true,
},
}
Config.RemoveIncidentPerms = {
['ambulance'] = {
[4] = true,
},
['police'] = {
[4] = true,
},
['bcso'] = {
[4] = true,
},
['sast'] = {
[4] = true,
},
['sasp'] = {
[4] = true,
},
['sapr'] = {
[4] = true,
},
['doc'] = {
[4] = true,
},
['lssd'] = {
[4] = true,
},
}
Config.RemoveReportPerms = {
['ambulance'] = {
[4] = true,
},
['police'] = {
[4] = true,
},
['bcso'] = {
[4] = true,
},
['sast'] = {
[4] = true,
},
['sasp'] = {
[4] = true,
},
['sapr'] = {
[4] = true,
},
['doc'] = {
[4] = true,
},
['lssd'] = {
[4] = true,
},
}
Config.RemoveWeaponsPerms = {
['ambulance'] = {
[4] = true,
},
['police'] = {
[4] = true,
},
['bcso'] = {
[4] = true,
},
['sast'] = {
[4] = true,
},
['sasp'] = {
[4] = true,
},
['sapr'] = {
[4] = true,
},
['doc'] = {
[4] = true,
},
['lssd'] = {
[4] = true,
},
}
Error Messages and Logs: No Permission to do that
Environment:
- FiveM Version: b3095
- ps-mdt Version: 2.7.3
- Framework: QBCore
- Inventory: qb-inventory
- Police Job Script: qb-policejob
Additional Information: Is there anything specific that needs to be configured to ensure the permission settings work as expected?
Thank you for looking into this issue!