hanf vielleicht fertig
This commit is contained in:
@@ -47,6 +47,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
return;
|
||||
}
|
||||
|
||||
if(player.HasData("IsCarryingPlant") || player.GetData<bool>("IsCarryingPlant"))
|
||||
{
|
||||
var currentModel = player.GetData<int>("HoldingCannabisPlant");
|
||||
|
||||
player.AddAttachment("CannabisPlantInHand" + currentModel, true);
|
||||
player.ResetData("IsCarryingPlant");
|
||||
}
|
||||
|
||||
using var dbContext = new DatabaseContext();
|
||||
|
||||
User user = player.GetUser(dbContext);
|
||||
|
||||
Reference in New Issue
Block a user