hanf continuation
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using GTANetworkAPI;
|
||||
using ReallifeGamemode.Database.Entities;
|
||||
using ReallifeGamemode.Database.Models;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using ReallifeGamemode.Server.Managers;
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class CannabisSeeds : BaseItem
|
||||
public class CannabisSeeds : UseItem
|
||||
{
|
||||
public override int Id { get; } = 109;
|
||||
public override string Name { get; } = "Cannabis Samen";
|
||||
@@ -13,5 +18,18 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
public override string Einheit { get; } = "g";
|
||||
public override int Price { get; } = 0;
|
||||
public override bool Legal => false;
|
||||
|
||||
public override uint Object { get; }
|
||||
public override bool RemoveWhenUsed { get; } = false;
|
||||
|
||||
public override bool Use(Player player, User user, DatabaseContext databaseContext)
|
||||
{
|
||||
if(!player.IsInVehicle)
|
||||
{
|
||||
HanfManager.StartCannabisPlanting(player);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user