SampSharp
SampSharp
SampSharp.GameMode.World
BasePlayer Class
BasePlayer Methods
SpectateVehicle Method
SpectateVehicle Method (BaseVehicle)
SpectateVehicle Method (BaseVehicle, SpectateMode)
BasePlayer
SpectateVehicle Method (BaseVehicle, SpectateMode)
Sets this
BasePlayer
to spectate another vehicle, i.e. see what its driver sees.
Namespace:
SampSharp.GameMode.World
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
virtual
void
SpectateVehicle
(
BaseVehicle
targetVehicle
,
SpectateMode
mode
)
Parameters
targetVehicle
Type:
SampSharp.GameMode.World
BaseVehicle
The vehicle to spectate.
mode
Type:
SampSharp.GameMode.Definitions
SpectateMode
Spectate mode.
Remarks
Order is CRITICAL! Ensure that you use
ToggleSpectating(Boolean)
before
SpectateVehicle(BaseVehicle, SpectateMode)
.
See Also
Reference
BasePlayer Class
SpectateVehicle Overload
SampSharp.GameMode.World Namespace