multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
151 stars 149 forks source link

admin2: forward-ported permissions widget from admin1 #426

Closed Dark-Dragon closed 1 year ago

Dark-Dragon commented 1 year ago

admin2 currently has a non-functional "Give admin" button in the players tab. Not only is it not functional, but it's also a considerable downgrade from admin1's quick player permission management. This pull request brings admin1's permission widget over to admin2.

Since admin2 is structured slightly differently and I'm not very well-versed in working with either of the resources I'm not 100% sure about whether I adjusted for those differences correctly in the places I had to, but feedback from the developer discord so far has been positive. Particularly the data transmission between server and client and refreshing the displayed data might need checking, because I hardly know how it's expected to be used correctly.