(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL)
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'.
- Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectateVehicle.
- The playerid and vehicleid have to be in the same interior and virtual world for this function to work properly.
TogglePlayerSpectating(playerid, 1); PlayerSpectateVehicle(playerid, vehicleid);
The following functions may be useful, as they are related to this function in one way or another.