samen kaufen und hanf -> joint
This commit is contained in:
@@ -243,6 +243,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
AmmunationPoint nearestAmmunationPoint = PositionManager.AmmunationPoints.Find(s => s.Position.DistanceTo(player.Position) <= 1.5);
|
||||
RentcarPoint nearestRentcarPoint = PositionManager.rentcarPoints.Find(s => s.Position.DistanceTo(player.Position) <= 1.5);
|
||||
JailPoint nearestjailPoint = PositionManager.jailPoints.Find(s => s.Position.DistanceTo(player.Position) <= 1.5);
|
||||
bool isNearCannabisSeedBuyPoint = HanfManager.IsPlayerNearSeedBuyPoint(player);
|
||||
bool isNearJointManufacturerPoint = HanfManager.IsPlayerNearJointManufacturer(player);
|
||||
|
||||
if (user?.FactionId != null)
|
||||
{
|
||||
@@ -761,6 +763,18 @@ namespace ReallifeGamemode.Server.Events
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (isNearCannabisSeedBuyPoint)
|
||||
{
|
||||
player.TriggerEvent("SERVER:Hanf_BuySeed", HanfManager.SEED_PRICE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNearJointManufacturerPoint)
|
||||
{
|
||||
HanfManager.BuildJointsFromCannabis(player);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
[RemoteEvent("keyPress:I")]
|
||||
|
||||
Reference in New Issue
Block a user