PlayerSpectateVehicle

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:02, 3 October 2013
W (Talk | contribs)

← Previous diff
Revision as of 21:49, 2 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 22: Line 22:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:PlayerSpectateVehicle]]

Revision as of 21:49, 2 February 2014



Description:

Sets a player to spectate another vehicle, i.e. see what its driver sees.


Parameters:
(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL)
playeridPlayer ID
targetvehicleidID of the vehicle to spectate
modeSpectate mode


Return Values:

This function does not return any specific values.


Image:32px-Circle-style-warning.png

Important
Note

Order is CRITICAL! Ensure that you use TogglePlayerSpectating before PlayerSpectateVehicle.


TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, specvehicleid);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages