Click or drag to resize

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

Creates a static BaseVehicle in the world.

Namespace:  SampSharp.GameMode.Factories
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
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