31.03.2016, 16:48
Closing the menu on Disconnect is pointless because this only happens for connection timeouts, so when the server notices it the connection isnt existing anymore.
Also you can only close specific Menus, so it's not possible to close a client-sided menu.
Your best bet is checking if the player was in a modshop and then lost connection. Then you can show a warning message to the player when he reconnects, which tells him to press F and that abusing this bug is not tolerated. Or put him back in a vehicle and teleport him into a modshop.
Also you can only close specific Menus, so it's not possible to close a client-sided menu.
Your best bet is checking if the player was in a modshop and then lost connection. Then you can show a warning message to the player when he reconnects, which tells him to press F and that abusing this bug is not tolerated. Or put him back in a vehicle and teleport him into a modshop.