Class Pickup
Class for a GTA pickup
Inherited Members
Namespace: Slipe.Client.Pickups
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.Pickup)]
public class Pickup : SharedPickup
Constructors
| Improve this Doc View SourcePickup(Vector3, PickupModel)
Creates a custom model pickup
Declaration
public Pickup(Vector3 position, PickupModel model)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
PickupModel | model |
Pickup(Vector3, PickupType, Int32, Int32)
Creates a pickup from the base createPickup paramters
Declaration
public Pickup(Vector3 position, PickupType type, int amount, int ammo = 50)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
PickupType | type | |
Int32 | amount | |
Int32 | ammo |
Pickup(Vector3, PickupType, Int32, Int32, Int32)
Creates a pickup from all CreatePickup variables
Declaration
public Pickup(Vector3 position, PickupType type, int amount, int respawnTime = 30000, int ammo = 50)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
PickupType | type | |
Int32 | amount | |
Int32 | respawnTime | |
Int32 | ammo |
Pickup(Vector3, SharedWeaponModel, Int32)
Creates a weapon pickup
Declaration
public Pickup(Vector3 position, SharedWeaponModel weapon, int ammo = 50)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
SharedWeaponModel | weapon | |
Int32 | ammo |
Pickup(Vector3, Int32)
Creates a model pickup from any model ID
Declaration
public Pickup(Vector3 position, int model)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
Int32 | model |