show real car names in textlabel from shopvehicles

This commit is contained in:
hydrant
2019-05-09 20:30:13 +02:00
parent 3b7316567f
commit c4e1822f60
2 changed files with 12 additions and 1 deletions

View File

@@ -62,8 +62,10 @@ namespace ReallifeGamemode.Server.Entities
{
numberplate = "Shop";
VehicleStreaming.SetLockStatus(veh, false);
TextLabel label = NAPI.TextLabel.CreateTextLabel(NAPI.Vehicle.GetVehicleDisplayName((VehicleHash)veh.Model) + "\n" + "~g~" + sV.Price.ToMoneyString(),
TextLabel label = NAPI.TextLabel.CreateTextLabel("SHOPVEHICLE\n" + "~g~" + sV.Price.ToMoneyString(),
veh.Position.Add(new Vector3(0, 0, 1.3)), 10.0f, 1f, 1, new Color(255, 255, 255));
veh.SetSharedData("shopVehicleTextLabel", label.Handle.Value);
}
if (this is GroupVehicle gV)