Changed shop vehicle textlabel attach
This commit is contained in:
@@ -69,7 +69,7 @@ namespace reallife_gamemode.Server.Managers
|
|||||||
NAPI.Vehicle.SetVehicleEngineHealth(current, 0);
|
NAPI.Vehicle.SetVehicleEngineHealth(current, 0);
|
||||||
var tLabel = NAPI.TextLabel.CreateTextLabel(v.ModelName + " | " + v.Price + "~g~$", new Vector3(v.PositionX, v.PositionY, v.PositionZ + 1.5), 10, 1, 0, new Color(255, 255, 255), false, v.Dimension);
|
var tLabel = NAPI.TextLabel.CreateTextLabel(v.ModelName + " | " + v.Price + "~g~$", new Vector3(v.PositionX, v.PositionY, v.PositionZ + 1.5), 10, 1, 0, new Color(255, 255, 255), false, v.Dimension);
|
||||||
current.SetData("shopVehicleId", v.Id);
|
current.SetData("shopVehicleId", v.Id);
|
||||||
tLabel.AttachTo(current, "SKEL_ROOT", new Vector3(v.PositionX, v.PositionY, v.PositionZ + 1.5), new Vector3(0, 0, 0));
|
tLabel.AttachTo(current, "chassis", new Vector3(0, 0, 1.5), new Vector3(0, 0, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach (UserVehicle v in loadData.UserVehicles)
|
foreach (UserVehicle v in loadData.UserVehicles)
|
||||||
|
|||||||
Reference in New Issue
Block a user