code formatiert
This commit is contained in:
@@ -61,7 +61,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
int[] clothId = JsonConvert.DeserializeObject<int[]>(JClothId);
|
||||
|
||||
user = client.GetUser(context);
|
||||
|
||||
|
||||
var character = user.GetCharacter(context);
|
||||
|
||||
var charClothes = context.CharacterClothes.FirstOrDefault(c => c.UserId == user.Id && c.Duty);
|
||||
@@ -137,7 +137,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (user.GetData<bool>("duty") == false)
|
||||
{
|
||||
LoadCharacterDefaults(client);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[RemoteEvent("defaultCharacterCloth")]
|
||||
@@ -159,10 +159,10 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
if (cloth.SlotType == 1)
|
||||
{
|
||||
if(cloth.ClothId != -1)
|
||||
if (cloth.ClothId != -1)
|
||||
{
|
||||
NAPI.Player.SetPlayerAccessory(player, cloth.SlotId, cloth.ClothId, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user