Merge dev into inventory
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user