jetzt aber

This commit is contained in:
michael.reiswich
2021-01-27 22:30:12 +01:00
parent 4ef28ae9b2
commit 87e601c295
2 changed files with 8 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ namespace ReallifeGamemode.Server.Events
}
[RemoteEvent("SERVER:BuyCharacterClothes")]
public void RmtEvent_BuyClothes(Player client, string type, string jsonData)
public void RmtEvent_BuyClothes(Player client, string type, string jsonData, byte hair)
{
/*
* [0] ComponentID
@@ -279,6 +279,12 @@ namespace ReallifeGamemode.Server.Events
}
}
if(data[0] == 2){
User payer = client.GetUser(dbContext);
payer.Character.Hair = hair;
dbContext.SaveChanges();
}
client.GetUser(dbContext).Handmoney -= data[6];
dbContext.SaveChanges();
//client.TriggerEvent("SERVER:SET_HANDMONEY", user.Handmoney);