formatted code
This commit is contained in:
@@ -48,7 +48,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
|
||||
string numberplate = $"{this.Id}";
|
||||
|
||||
if(this is FactionVehicle fV)
|
||||
if (this is FactionVehicle fV)
|
||||
{
|
||||
numberplate = $"F{fV.FactionId} " + numberplate;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
numberplate = $"U{uV.UserId} " + numberplate;
|
||||
}
|
||||
|
||||
if(this is ShopVehicle sV)
|
||||
if (this is ShopVehicle sV)
|
||||
{
|
||||
numberplate = "Shop";
|
||||
VehicleStreaming.SetLockStatus(veh, false);
|
||||
@@ -66,6 +66,11 @@ namespace ReallifeGamemode.Server.Entities
|
||||
veh.Position.Add(new Vector3(0, 0, 1.3)), 10.0f, 1f, 1, new Color(255, 255, 255));
|
||||
}
|
||||
|
||||
if (this is GroupVehicle gV)
|
||||
{
|
||||
numberplate = $"{gV.GroupId}" + numberplate;
|
||||
}
|
||||
|
||||
veh.NumberPlate = numberplate;
|
||||
|
||||
return veh;
|
||||
|
||||
Reference in New Issue
Block a user