Click or drag to resize

IWorldServiceCreatePickup Method

Creates a pickup in the world.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Pickup CreatePickup(
	int model,
	PickupType type,
	Vector3 position,
	int virtualWorld = -1,
	EntityId parent = default
)

Parameters

model
Type: SystemInt32
The model of the pickup.
type
Type: SampSharp.Entities.SAMPPickupType
The pickup spawn type.
position
Type: SampSharp.Entities.SAMPVector3
The position where the pickup should be spawned.
virtualWorld (Optional)
Type: SystemInt32
The virtual world ID of the pickup. Use -1 for all worlds.
parent (Optional)
Type: SampSharp.EntitiesEntityId
The parent of the entity to be created.

Return Value

Type: Pickup
The created pickup.
See Also