jetzt aber
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user