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

DoesPlayerExist return true if player has exited during loading #2560

Closed
CeebDev opened this issue May 24, 2024 · 0 comments
Closed

DoesPlayerExist return true if player has exited during loading #2560

CeebDev opened this issue May 24, 2024 · 0 comments
Labels

Comments

@CeebDev
Copy link

CeebDev commented May 24, 2024

What happened?

If a player try to connect to the server, wait the loading resources phase (before loading screen) and exit

Then DoesPlayerExist return 1

Tried to relaunch FiveM, wait +30min etc

Expected result

if user exit the loading phase, DoesPlayerExist need to return false

Reproduction steps

Server side

local tempId = REPLACE WITH THE TEMP ID OF USER TRYING TO CONNECT
CreateThread(function()
	while true do
		print(DoesPlayerExist(tempId))
		Wait(1000)
	end
end)
  • Connect to the server
  • Wait for loading resources (before loading screen)
  • Exit the process by spamming close / F8 quit or whatever (crash etc...)
  • Check the log server side
  • it display 1 as long as the server is online

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

FiveM b3095 (canary), Server b7930 Windows 11

Additional information

No response

@CeebDev CeebDev added bug triage Needs a preliminary assessment to determine the urgency and required action labels May 24, 2024
@CeebDev CeebDev closed this as completed May 24, 2024
@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant