Click or drag to resize

BaseVehicleCreateStatic Method (VehicleModelType, Vector3, Single, Int32, Int32)

Creates a static BaseVehicle in the world.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static BaseVehicle CreateStatic(
	VehicleModelType vehicleType,
	Vector3 position,
	float rotation,
	int color1,
	int color2
)

Parameters

vehicleType
Type: SampSharp.GameMode.DefinitionsVehicleModelType
The model for the vehicle.
position
Type: SampSharp.GameModeVector3
The coordinates for the vehicle.
rotation
Type: SystemSingle
The facing angle for the vehicle.
color1
Type: SystemInt32
The primary color ID.
color2
Type: SystemInt32
The secondary color ID.

Return Value

Type: BaseVehicle
The BaseVehicle created.
See Also