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