diff --git a/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts b/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts index 84a85c30..3ad74970 100644 --- a/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts +++ b/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts @@ -44,23 +44,17 @@ game.events.onEntityStreamIn((entity: IEntity) => { }); function setVehicleData(veh: IVehicle, data: VehicleData): void { - game.ui.sendChatMessage("setVehicleData"); if (!veh) { - game.ui.sendChatMessage("veh is null"); return; } - game.ui.sendChatMessage("veh is not null"); if (data === null) { - game.ui.sendChatMessage("data is null"); data = { EngineState: false, Locked: false }; } - game.ui.sendChatMessage(`engine: ${data.EngineState}, locked: ${data.Locked}`); - var engineState = data.EngineState; if (veh.isSeatFree(VehicleSeat.Driver)) { veh.setEngineStatus(engineState, true, false);