IWorldServiceAddStaticPickup Method |
Adds a 'static' pickup to the world. These pickups support weapons, health, armor etc., with the ability to function
without scripting them (weapons/health/armor will be given automatically).
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax bool AddStaticPickup(
int model,
PickupType type,
Vector3 position,
int virtualWorld = -1
)
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.
Return Value
Type:
BooleanA value indicating whether the pickup has been created successfully.
See Also