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

fix(es_extended/server/functions): Core.IsPlayerAdmin returning false #1548

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

LivedBackwardss
Copy link
Contributor

@LivedBackwardss LivedBackwardss commented Dec 15, 2024

For some strange reason, the original code local xPlayer = ESX.Players[playerId] always returned null. However, when changed to local xPlayer = ESX.Players[tonumber(playerId)], it correctly returned the data. Not sure if this is an issue just for me.

@Mycroft-Studios Mycroft-Studios merged commit d22c5b9 into esx-framework:main Dec 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for Next Update
Development

Successfully merging this pull request may close these issues.

2 participants