PlayerSpectateVehicle
From SA-MP Wiki
(Difference between revisions)
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.
(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL)
playerid | Player ID |
targetvehicleid | ID of the vehicle to spectate |
mode | Spectate mode |
Return Values:
This function does not return any specific values.
Important | 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.
- PlayerSpectatePlayer: Spectate a player.
- TogglePlayerSpectating: Start or stop spectating.