vlt fix clothing
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using GTANetworkAPI;
|
using GTANetworkAPI;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
@@ -111,7 +111,18 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
{
|
{
|
||||||
for (var x = 0; x < slotType.Length; x++)
|
for (var x = 0; x < slotType.Length; x++)
|
||||||
{
|
{
|
||||||
var loopCloth = context.CharacterClothes.FirstOrDefault(u => u.UserId == user.Id && u.SlotType == slotType[x] && u.SlotId == slotId[x]);
|
var loopCloth = context.CharacterClothes.FirstOrDefault(u => u.UserId == user.Id && u.SlotType == (byte)slotType[x] && u.SlotId == slotId[x]);
|
||||||
|
|
||||||
|
if (loopCloth == null)
|
||||||
|
{
|
||||||
|
loopCloth = new CharacterCloth()
|
||||||
|
{
|
||||||
|
UserId = user.Id,
|
||||||
|
SlotType = (byte)slotType[x],
|
||||||
|
SlotId = slotId[x]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
loopCloth.ClothId = clothId[x];
|
loopCloth.ClothId = clothId[x];
|
||||||
}
|
}
|
||||||
CharacterCloth torso = context.CharacterClothes.FirstOrDefault(u => u.UserId == user.Id && u.SlotType == 0 && u.SlotId == 3);
|
CharacterCloth torso = context.CharacterClothes.FirstOrDefault(u => u.UserId == user.Id && u.SlotType == 0 && u.SlotId == 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user