Click or drag to resize

PickupCreate Method (Int32, Int32, Vector3, Int32)

Creates a Pickup.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static Pickup Create(
	int model,
	int type,
	Vector3 position,
	int virtualWorld = -1
)

Parameters

model
Type: SystemInt32
The model of the pickup.
type
Type: SystemInt32
The pickup spawn type.
position
Type: SampSharp.GameModeVector3
The position where the pickup should be spawned.
virtualWorld (Optional)
Type: SystemInt32
The virtual world ID of the pickup. Use -1 for all worlds.

Return Value

Type: Pickup
The created pickup or null if it cannot be created.
See Also