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

@@ -279,7 +279,7 @@ export default function friseurShopList(globalData: IGlobalData) {
if (lastClothing.drawable == currentItem.ClotheId && lastClothing.texture == currentTexture) {
mp.game.audio.playSoundFrontend(1, "Hack_Failed", "DLC_HEIST_BIOLAB_PREP_HACKING_SOUNDS", true);
} else {
mp.events.callRemote("SERVER:BuyHair", "clothe", JSON.stringify(serverData), currentItem.CloteID);
mp.events.callRemote("SERVER:BuyCharacterClothes", "clothe", JSON.stringify(serverData), currentItem.CloteID);
mp.events.call("friseurMenu:close");
}

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);