Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lua function to get a player's role #366

Merged
merged 3 commits into from
Oct 5, 2024

Conversation

WiserTixx
Copy link
Collaborator

Adds MP.GetPlayerRole(player_id) to the Lua API to get a player's role ("USER", "EA", "MDEV", "STAFF", "ET") by their player id.
Currently you can only get someone's role in onPlayerAuth from the parameters and in onVehicleSpawned and onVehicleEdited from the packet data, but not in onPlayerJoin for example without storing it.

@lionkor lionkor added this to the v3.6.0 (minor) milestone Sep 20, 2024
@WiserTixx
Copy link
Collaborator Author

Requested changes have been made.

@WiserTixx WiserTixx requested a review from lionkor September 28, 2024 20:58
@lionkor lionkor merged commit cf3985c into BeamMP:minor Oct 5, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants