hyddro Posted March 28, 2019 Posted March 28, 2019 Wasn't ACL ported too when GTANetwork & RAGEMP merged? https://wiki.gtanet.work/index.php?title=Getting_Started_with_Access_Control_List_(ACL)
introzen Posted March 28, 2019 Author Posted March 28, 2019 3 hours ago, hyddro said: Wasn't ACL ported too when GTANetwork & RAGEMP merged? https://wiki.gtanet.work/index.php?title=Getting_Started_with_Access_Control_List_(ACL) It was, however this would require me to make a manual list of all commands which then needs to be updated everytime there's a new command created. By utilizing C# custom attribute not only can I control the access requirements next to the command itself in the code, but I can also create dynamic player command lists which shows the player only what he can use.
introzen Posted March 28, 2019 Author Posted March 28, 2019 (edited) All right, this is where I'm at right now. - Player enters a command - Clientside event OnPlayerCommand calls a remote event on server: OnPlayerCommand, then the clientside event deny the player's command from executing by CancelEventArgs. - Server receives the call from client and starts checking if the player's admin level is sufficient to execute the command. Basically this is where I'm at. How can I execute the command for the player if the permission check allows it? EDIT: Will update this later on, I just discovered there's a server event for OnPlayercommand aswell. Edited March 29, 2019 by introzen
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now