From SA-MP Wiki
Sets a player to spectate another vehicle. Their camera will be attached to the vehicle as if they are driving it.
|playerid||The ID of the player who should spectate a vehicle.|
|targetvehicleid||The ID of the vehicle the player should spectate.|
|mode||The spectate mode. Can generally be left blank as it defaults to 'normal'.|
TogglePlayerSpectating(playerid, 1); PlayerSpectateVehicle(playerid, vehicleid);
The following functions may be useful, as they are related to this function in one way or another.
- PlayerSpectatePlayer: Spectate a player.
- TogglePlayerSpectating: Start or stop spectating.