Player Ping is 0!

Hello there. I have a problem on my FiveM server becouse players are connecting normally to server and when they disconnect they are still on a server with “0” Ping and after reconnecting they get just new ID but “old” player is still on server (solo session). How to manage that?

Can i just write simple script to drop Player if ping == 0 ?

That’s a weird thing, did you updated your server artifact to the last version?
Talking about the code, I think you can, just simply test it out.

Hmm, i did a code but i have used Server Side:

DropPlayer(source, “some text here”)

But problem is players are not getting kicked becouse their ping is 0 and they are not anymore in server but still their character is still here!

You mean that, when the player disconnect from the server, the ped is still there?

Yeah i mean, if player is connected to a server and his Internet breakes he will automaticlly get 0 ping and after reconnecting he can still play with 0 ping and he can*t use DB and everything, but after server restart he can play normaly!