jetzt aber
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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