Vehicle system

This commit is contained in:
hydrant
2018-12-16 12:08:29 +01:00
parent 08ed548732
commit df58d50941
2 changed files with 11 additions and 2 deletions

View File

@@ -199,7 +199,9 @@ namespace reallife_gamemode.Server.Events
if (player.IsInVehicle && player.VehicleSeat == -1)
{
Vehicle v = player.Vehicle;
VehicleStreaming.SetEngineState(v, !VehicleStreaming.GetEngineState(v));
bool state = VehicleStreaming.GetEngineState(v);
NAPI.Util.ConsoleOutput("changing engine state: " + state.ToString());
VehicleStreaming.SetEngineState(v, !state);
}
}
[RemoteEvent("keyPress:X")]