Merge dev into inventory

This commit is contained in:
VegaZ
2018-12-10 21:29:10 +01:00
14 changed files with 1126 additions and 15 deletions

View File

@@ -854,6 +854,14 @@ namespace reallife_gamemode.Server.Commands
#region ALevel3
Vehicle testV;
[Command]
public void Testveh(Client player)
{
player.SendChatMessage(VehicleStreaming.GetEngineState(player.Vehicle).ToString());
}
[Command("veh", "~m~Benutzung: ~s~/veh [Fahrzeug] (Farbe 1) (Farbe 2)")]
public void CmdAdminVeh(Client player, string hash, int color1 = 111, int color2 = 111)
{
@@ -878,7 +886,9 @@ namespace reallife_gamemode.Server.Commands
return;
}
Vehicle v = NAPI.Vehicle.CreateVehicle(uHash, player.Position, player.Rotation.Z, color1, color2);
Vehicle v = testV = NAPI.Vehicle.CreateVehicle(uHash, player.Position, player.Rotation.Z, color1, color2, engine: false);
VehicleStreaming.SetEngineState(v, true);
VehicleStreaming.SetLockStatus(v, false);
player.SetIntoVehicle(v.Handle, -1);
}