Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -5,6 +5,7 @@ using Newtonsoft.Json;
|
||||
using ReallifeGamemode.Database.Entities;
|
||||
using ReallifeGamemode.Database.Models;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using System;
|
||||
|
||||
namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
@@ -278,6 +279,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
undershirt.Texture = data[5];
|
||||
}
|
||||
}
|
||||
|
||||
if(data[0] == 2){
|
||||
User payer = client.GetUser(dbContext);
|
||||
payer.GetCharacter(dbContext);
|
||||
payer.Character.Hair = Convert.ToByte(data[2]);
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
|
||||
client.GetUser(dbContext).Handmoney -= data[6];
|
||||
dbContext.SaveChanges();
|
||||
//client.TriggerEvent("SERVER:SET_HANDMONEY", user.Handmoney);
|
||||
@@ -285,6 +294,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
client.TriggerEvent("clothesMenu:updateLast", data[2], data[1], data[4], data[5], data[3]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[RemoteEvent("SERVER:BuyHairColor")]
|
||||
public void BuyHairColor(Player client, byte HairColor)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
public override int Id => 6;
|
||||
public override string Name => "CarbineRifle";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 4000;
|
||||
public override int Gewicht => 500;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
public override int Price => 0;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
public override int Id => 4;
|
||||
public override string Name => "Combatpistol";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 1180;
|
||||
public override int Gewicht => 500;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
public override int Price => 0;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
public class WeaponDealManager : Script
|
||||
{
|
||||
private const int WEAPON_AMOUNT_GANG = 2;
|
||||
private const int WEAPON_AMOUNT_COP = 8;
|
||||
private const int WEAPON_AMOUNT_COP = 5;
|
||||
private const int WEAPON_AMOUNT_COP_STUNGUN = 2;
|
||||
public static bool checkWeaponDbyVehicle(Vehicle vehicle)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user