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-local+709673996c0cc3c0733358a87691d1009326afa7
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