Skip to content

Replace 'GetPlayerByEntityId' with 'NetworkGetPlayerIndexFromPed' - #199

Open
boy52hz wants to merge 1 commit into
citizenfx:masterfrom
boy52hz:patch-1
Open

Replace 'GetPlayerByEntityId' with 'NetworkGetPlayerIndexFromPed'#199
boy52hz wants to merge 1 commit into
citizenfx:masterfrom
boy52hz:patch-1

Conversation

@boy52hz

@boy52hz boy52hz commented Nov 25, 2021

Copy link
Copy Markdown

seems like 'GetPlayerByEntityId' is no longer supported and always return -1 to onPlayerKilled event so, I replace it with 'NetworkGetPlayerIndexFromPed' to make it work properly.

seems like 'GetPlayerByEntityId' is no longer supported and always return -1 to onPlayerKilled event so, I replace it with 'NetworkGetPlayerIndexFromPed' to make it work properly.
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