Merge branch 'develop' of https://development.life-of-german.org/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -205,7 +205,7 @@ export default function tuning(globalData: IGlobalData) {
|
||||
});
|
||||
|
||||
var currentMod = new Array<number>();
|
||||
var currentActiveModItem = new Array<NativeUI.UIMenuItem>();
|
||||
var currentActiveModItem = new Array<VehicleModMenuItem>();
|
||||
var currentSelectedItem: VehicleModMenuItem = null;
|
||||
|
||||
mp.events.add("showTuningMenu", (noMoney, basePrice) => {
|
||||
@@ -373,7 +373,7 @@ export default function tuning(globalData: IGlobalData) {
|
||||
|
||||
mp.events.add("SERVER:Tuning_ModSucessfull", (modType: number, index: number) => {
|
||||
currentMod[modType] = index - 1;
|
||||
currentActiveModItem[modType].SetRightLabel("$" + moneyformat(currentSelectedItem.price));
|
||||
currentActiveModItem[modType].SetRightLabel("$" + moneyformat(currentActiveModItem[modType].price));
|
||||
currentActiveModItem[modType].SetRightBadge(NativeUI.BadgeStyle.None);
|
||||
currentSelectedItem.SetRightBadge(BadgeStyle.Car);
|
||||
currentSelectedItem.SetRightLabel("");
|
||||
|
||||
@@ -355,41 +355,6 @@ namespace ReallifeGamemode.Server.Events
|
||||
user.SetBlipAndNametagColor();
|
||||
}
|
||||
|
||||
//Rentcar Points
|
||||
if (nearestRentcarPoint != null)
|
||||
{
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//Noobspawn
|
||||
if (player.Position.DistanceTo(PositionManager.rentcarPoints[0].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.noobspawnVehicleProperties), "noobspawn");
|
||||
}
|
||||
//Stadthalle
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[1].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.stadthalleVehicleProperties), "lamesa");
|
||||
}
|
||||
//Knast
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[2].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.knastVehicleProperties), "stadthalle");
|
||||
}
|
||||
//Paleto
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[3].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "knast");
|
||||
}
|
||||
//Lamesa
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[4].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "paleto");
|
||||
}
|
||||
}
|
||||
|
||||
if (nearestWeapon != null) // Weapon Point
|
||||
{
|
||||
List<string> primarys = new List<string>();
|
||||
@@ -528,6 +493,42 @@ namespace ReallifeGamemode.Server.Events
|
||||
player.CuffPlayer(nearestCuffPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
//Rentcar Points
|
||||
if (nearestRentcarPoint != null)
|
||||
{
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//Noobspawn
|
||||
if (player.Position.DistanceTo(PositionManager.rentcarPoints[0].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.noobspawnVehicleProperties), "noobspawn");
|
||||
}
|
||||
//Stadthalle
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[1].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.stadthalleVehicleProperties), "lamesa");
|
||||
}
|
||||
//Knast
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[2].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.knastVehicleProperties), "stadthalle");
|
||||
}
|
||||
//Paleto
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[3].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "knast");
|
||||
}
|
||||
//Lamesa
|
||||
else if (player.Position.DistanceTo(PositionManager.rentcarPoints[4].Position) <= 1.5)
|
||||
{
|
||||
player.TriggerEvent("showRentcarMenu", JsonConvert.SerializeObject(Rentcar.paletoVehicleProperties), "paleto");
|
||||
}
|
||||
}
|
||||
|
||||
if (nearestElevatorPoint != null)
|
||||
{
|
||||
List<string> stages = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user