Skip to content

Known problems with PySAMP

Simen E edited this page Jan 25, 2021 · 6 revisions

Known issues with the PySAMP plugin

1. Toggling spectate mode off causes "Server closed connection":

If you use TogglePlayerSpectating(playerid, True) under OnPlayerRequestClass in your gamemode, you may experience that the gamemode will close the connection to the client when you exit spectate mode. We are not sure why this is happening, but it is documented here: If the player is not loaded in before setting the spectate status to false, the connection can be closed unexpectedly.

The current workaround is to call SpawnPlayer(playerid) just before starting spectating mode

Clone this wiki locally