We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This function
tnj-events/client/functions.lua
Lines 1 to 6 in 7c48ab5
should be changed to
function GetPlayerByEntityID(id) for i=0, GetConvarInt('sv_maxclients', 32) do if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end end return nil end
To account for more than 32 players or alternatively replace with returning NetworkGetPlayerIndexFromPed(id).
NetworkGetPlayerIndexFromPed(id)
Ref: citizenfx/cfx-server-data#199 citizenfx/cfx-server-data#214
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This function
tnj-events/client/functions.lua
Lines 1 to 6 in 7c48ab5
should be changed to
To account for more than 32 players or alternatively replace with returning
NetworkGetPlayerIndexFromPed(id)
.Ref:
citizenfx/cfx-server-data#199
citizenfx/cfx-server-data#214
The text was updated successfully, but these errors were encountered: