public async Task OnColshape(IColShape colShape, IEntity targetEntity, bool state) => await AltAsync.Do(() => { if (!state) { return; } if (colShape == null || !colShape.Exists) { return; } if (targetEntity.Type != BaseObjectType.Player) { return; } Alt.Log("Busy"); BusEntity busEntity = colShape.GetBusEntity(); if (busEntity == null || busEntity.ColShape != colShape) { return; } IPlayer player = targetEntity as IPlayer; if (player.IsInVehicle) { return; } new Interaction(player, "bus:openWindow", "aby otworzyć ~g~rozkład jazdy"); player.SetData("current:bus", busEntity); });