Vehicle system
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user